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 DoPrepareDC(*args
, **kwargs
):
211 DoPrepareDC(self, DC dc)
213 Normally what is called by `PrepareDC`.
215 return _windows_
.ScrolledWindow_DoPrepareDC(*args
, **kwargs
)
217 def GetClassDefaultAttributes(*args
, **kwargs
):
219 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
221 Get the default attributes for this class. This is useful if you want
222 to use the same font or colour in your own control as in a standard
223 control -- which is a much better idea than hard coding specific
224 colours or fonts which might look completely out of place on the
225 user's system, especially if it uses themes.
227 The variant parameter is only relevant under Mac currently and is
228 ignore under other platforms. Under Mac, it will change the size of
229 the returned font. See `wx.Window.SetWindowVariant` for more about
232 return _windows_
.ScrolledWindow_GetClassDefaultAttributes(*args
, **kwargs
)
234 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
236 class ScrolledWindowPtr(ScrolledWindow
):
237 def __init__(self
, this
):
239 if not hasattr(self
,"thisown"): self
.thisown
= 0
240 self
.__class
__ = ScrolledWindow
241 _windows_
.ScrolledWindow_swigregister(ScrolledWindowPtr
)
243 def PreScrolledWindow(*args
, **kwargs
):
244 """PreScrolledWindow() -> ScrolledWindow"""
245 val
= _windows_
.new_PreScrolledWindow(*args
, **kwargs
)
249 def ScrolledWindow_GetClassDefaultAttributes(*args
, **kwargs
):
251 ScrolledWindow_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
253 Get the default attributes for this class. This is useful if you want
254 to use the same font or colour in your own control as in a standard
255 control -- which is a much better idea than hard coding specific
256 colours or fonts which might look completely out of place on the
257 user's system, especially if it uses themes.
259 The variant parameter is only relevant under Mac currently and is
260 ignore under other platforms. Under Mac, it will change the size of
261 the returned font. See `wx.Window.SetWindowVariant` for more about
264 return _windows_
.ScrolledWindow_GetClassDefaultAttributes(*args
, **kwargs
)
266 #---------------------------------------------------------------------------
268 STAY_ON_TOP
= _windows_
.STAY_ON_TOP
269 ICONIZE
= _windows_
.ICONIZE
270 MINIMIZE
= _windows_
.MINIMIZE
271 MAXIMIZE
= _windows_
.MAXIMIZE
272 CLOSE_BOX
= _windows_
.CLOSE_BOX
273 THICK_FRAME
= _windows_
.THICK_FRAME
274 SYSTEM_MENU
= _windows_
.SYSTEM_MENU
275 MINIMIZE_BOX
= _windows_
.MINIMIZE_BOX
276 MAXIMIZE_BOX
= _windows_
.MAXIMIZE_BOX
277 TINY_CAPTION_HORIZ
= _windows_
.TINY_CAPTION_HORIZ
278 TINY_CAPTION_VERT
= _windows_
.TINY_CAPTION_VERT
279 RESIZE_BOX
= _windows_
.RESIZE_BOX
280 RESIZE_BORDER
= _windows_
.RESIZE_BORDER
281 DIALOG_NO_PARENT
= _windows_
.DIALOG_NO_PARENT
282 DEFAULT_FRAME_STYLE
= _windows_
.DEFAULT_FRAME_STYLE
283 DEFAULT_DIALOG_STYLE
= _windows_
.DEFAULT_DIALOG_STYLE
284 FRAME_TOOL_WINDOW
= _windows_
.FRAME_TOOL_WINDOW
285 FRAME_FLOAT_ON_PARENT
= _windows_
.FRAME_FLOAT_ON_PARENT
286 FRAME_NO_WINDOW_MENU
= _windows_
.FRAME_NO_WINDOW_MENU
287 FRAME_NO_TASKBAR
= _windows_
.FRAME_NO_TASKBAR
288 FRAME_SHAPED
= _windows_
.FRAME_SHAPED
289 DIALOG_MODAL
= _windows_
.DIALOG_MODAL
290 DIALOG_MODELESS
= _windows_
.DIALOG_MODELESS
291 USER_COLOURS
= _windows_
.USER_COLOURS
292 NO_3D
= _windows_
.NO_3D
293 FULLSCREEN_NOMENUBAR
= _windows_
.FULLSCREEN_NOMENUBAR
294 FULLSCREEN_NOTOOLBAR
= _windows_
.FULLSCREEN_NOTOOLBAR
295 FULLSCREEN_NOSTATUSBAR
= _windows_
.FULLSCREEN_NOSTATUSBAR
296 FULLSCREEN_NOBORDER
= _windows_
.FULLSCREEN_NOBORDER
297 FULLSCREEN_NOCAPTION
= _windows_
.FULLSCREEN_NOCAPTION
298 FULLSCREEN_ALL
= _windows_
.FULLSCREEN_ALL
299 TOPLEVEL_EX_DIALOG
= _windows_
.TOPLEVEL_EX_DIALOG
300 USER_ATTENTION_INFO
= _windows_
.USER_ATTENTION_INFO
301 USER_ATTENTION_ERROR
= _windows_
.USER_ATTENTION_ERROR
302 class TopLevelWindow(_core
.Window
):
303 def __init__(self
): raise RuntimeError, "No constructor defined"
305 return "<%s.%s; proxy of C++ wxTopLevelWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
306 def Maximize(*args
, **kwargs
):
307 """Maximize(self, bool maximize=True)"""
308 return _windows_
.TopLevelWindow_Maximize(*args
, **kwargs
)
310 def Restore(*args
, **kwargs
):
312 return _windows_
.TopLevelWindow_Restore(*args
, **kwargs
)
314 def Iconize(*args
, **kwargs
):
315 """Iconize(self, bool iconize=True)"""
316 return _windows_
.TopLevelWindow_Iconize(*args
, **kwargs
)
318 def IsMaximized(*args
, **kwargs
):
319 """IsMaximized(self) -> bool"""
320 return _windows_
.TopLevelWindow_IsMaximized(*args
, **kwargs
)
322 def IsIconized(*args
, **kwargs
):
323 """IsIconized(self) -> bool"""
324 return _windows_
.TopLevelWindow_IsIconized(*args
, **kwargs
)
326 def GetIcon(*args
, **kwargs
):
327 """GetIcon(self) -> Icon"""
328 return _windows_
.TopLevelWindow_GetIcon(*args
, **kwargs
)
330 def SetIcon(*args
, **kwargs
):
331 """SetIcon(self, Icon icon)"""
332 return _windows_
.TopLevelWindow_SetIcon(*args
, **kwargs
)
334 def SetIcons(*args
, **kwargs
):
335 """SetIcons(self, wxIconBundle icons)"""
336 return _windows_
.TopLevelWindow_SetIcons(*args
, **kwargs
)
338 def ShowFullScreen(*args
, **kwargs
):
339 """ShowFullScreen(self, bool show, long style=FULLSCREEN_ALL) -> bool"""
340 return _windows_
.TopLevelWindow_ShowFullScreen(*args
, **kwargs
)
342 def IsFullScreen(*args
, **kwargs
):
343 """IsFullScreen(self) -> bool"""
344 return _windows_
.TopLevelWindow_IsFullScreen(*args
, **kwargs
)
346 def SetTitle(*args
, **kwargs
):
348 SetTitle(self, String title)
350 Sets the window's title. Applicable only to frames and dialogs.
352 return _windows_
.TopLevelWindow_SetTitle(*args
, **kwargs
)
354 def GetTitle(*args
, **kwargs
):
356 GetTitle(self) -> String
358 Gets the window's title. Applicable only to frames and dialogs.
360 return _windows_
.TopLevelWindow_GetTitle(*args
, **kwargs
)
362 def SetShape(*args
, **kwargs
):
363 """SetShape(self, Region region) -> bool"""
364 return _windows_
.TopLevelWindow_SetShape(*args
, **kwargs
)
366 def RequestUserAttention(*args
, **kwargs
):
367 """RequestUserAttention(self, int flags=USER_ATTENTION_INFO)"""
368 return _windows_
.TopLevelWindow_RequestUserAttention(*args
, **kwargs
)
371 class TopLevelWindowPtr(TopLevelWindow
):
372 def __init__(self
, this
):
374 if not hasattr(self
,"thisown"): self
.thisown
= 0
375 self
.__class
__ = TopLevelWindow
376 _windows_
.TopLevelWindow_swigregister(TopLevelWindowPtr
)
377 cvar
= _windows_
.cvar
378 FrameNameStr
= cvar
.FrameNameStr
379 DialogNameStr
= cvar
.DialogNameStr
380 StatusLineNameStr
= cvar
.StatusLineNameStr
381 ToolBarNameStr
= cvar
.ToolBarNameStr
383 #---------------------------------------------------------------------------
385 class Frame(TopLevelWindow
):
387 return "<%s.%s; proxy of C++ wxFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
388 def __init__(self
, *args
, **kwargs
):
390 __init__(self, Window parent, int id=-1, String title=EmptyString,
391 Point pos=DefaultPosition, Size size=DefaultSize,
392 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> Frame
394 newobj
= _windows_
.new_Frame(*args
, **kwargs
)
395 self
.this
= newobj
.this
398 self
._setOORInfo
(self
)
400 def Create(*args
, **kwargs
):
402 Create(self, Window parent, int id=-1, String title=EmptyString,
403 Point pos=DefaultPosition, Size size=DefaultSize,
404 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> bool
406 return _windows_
.Frame_Create(*args
, **kwargs
)
408 def GetClientAreaOrigin(*args
, **kwargs
):
410 GetClientAreaOrigin(self) -> Point
412 Get the origin of the client area of the window relative to the
413 window's top left corner (the client area may be shifted because of
414 the borders, scrollbars, other decorations...)
416 return _windows_
.Frame_GetClientAreaOrigin(*args
, **kwargs
)
418 def SendSizeEvent(*args
, **kwargs
):
419 """SendSizeEvent(self)"""
420 return _windows_
.Frame_SendSizeEvent(*args
, **kwargs
)
422 def SetMenuBar(*args
, **kwargs
):
423 """SetMenuBar(self, MenuBar menubar)"""
424 return _windows_
.Frame_SetMenuBar(*args
, **kwargs
)
426 def GetMenuBar(*args
, **kwargs
):
427 """GetMenuBar(self) -> MenuBar"""
428 return _windows_
.Frame_GetMenuBar(*args
, **kwargs
)
430 def ProcessCommand(*args
, **kwargs
):
431 """ProcessCommand(self, int winid) -> bool"""
432 return _windows_
.Frame_ProcessCommand(*args
, **kwargs
)
434 Command
= ProcessCommand
435 def CreateStatusBar(*args
, **kwargs
):
437 CreateStatusBar(self, int number=1, long style=wxST_SIZEGRIP|wxFULL_REPAINT_ON_RESIZE,
438 int winid=0, String name=StatusLineNameStr) -> StatusBar
440 return _windows_
.Frame_CreateStatusBar(*args
, **kwargs
)
442 def GetStatusBar(*args
, **kwargs
):
443 """GetStatusBar(self) -> StatusBar"""
444 return _windows_
.Frame_GetStatusBar(*args
, **kwargs
)
446 def SetStatusBar(*args
, **kwargs
):
447 """SetStatusBar(self, StatusBar statBar)"""
448 return _windows_
.Frame_SetStatusBar(*args
, **kwargs
)
450 def SetStatusText(*args
, **kwargs
):
451 """SetStatusText(self, String text, int number=0)"""
452 return _windows_
.Frame_SetStatusText(*args
, **kwargs
)
454 def SetStatusWidths(*args
, **kwargs
):
455 """SetStatusWidths(self, int widths, int widths_field)"""
456 return _windows_
.Frame_SetStatusWidths(*args
, **kwargs
)
458 def PushStatusText(*args
, **kwargs
):
459 """PushStatusText(self, String text, int number=0)"""
460 return _windows_
.Frame_PushStatusText(*args
, **kwargs
)
462 def PopStatusText(*args
, **kwargs
):
463 """PopStatusText(self, int number=0)"""
464 return _windows_
.Frame_PopStatusText(*args
, **kwargs
)
466 def SetStatusBarPane(*args
, **kwargs
):
467 """SetStatusBarPane(self, int n)"""
468 return _windows_
.Frame_SetStatusBarPane(*args
, **kwargs
)
470 def GetStatusBarPane(*args
, **kwargs
):
471 """GetStatusBarPane(self) -> int"""
472 return _windows_
.Frame_GetStatusBarPane(*args
, **kwargs
)
474 def CreateToolBar(*args
, **kwargs
):
475 """CreateToolBar(self, long style=-1, int winid=-1, String name=ToolBarNameStr) -> wxToolBar"""
476 return _windows_
.Frame_CreateToolBar(*args
, **kwargs
)
478 def GetToolBar(*args
, **kwargs
):
479 """GetToolBar(self) -> wxToolBar"""
480 return _windows_
.Frame_GetToolBar(*args
, **kwargs
)
482 def SetToolBar(*args
, **kwargs
):
483 """SetToolBar(self, wxToolBar toolbar)"""
484 return _windows_
.Frame_SetToolBar(*args
, **kwargs
)
486 def DoGiveHelp(*args
, **kwargs
):
487 """DoGiveHelp(self, String text, bool show)"""
488 return _windows_
.Frame_DoGiveHelp(*args
, **kwargs
)
490 def DoMenuUpdates(*args
, **kwargs
):
491 """DoMenuUpdates(self, Menu menu=None)"""
492 return _windows_
.Frame_DoMenuUpdates(*args
, **kwargs
)
494 def GetClassDefaultAttributes(*args
, **kwargs
):
496 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
498 Get the default attributes for this class. This is useful if you want
499 to use the same font or colour in your own control as in a standard
500 control -- which is a much better idea than hard coding specific
501 colours or fonts which might look completely out of place on the
502 user's system, especially if it uses themes.
504 The variant parameter is only relevant under Mac currently and is
505 ignore under other platforms. Under Mac, it will change the size of
506 the returned font. See `wx.Window.SetWindowVariant` for more about
509 return _windows_
.Frame_GetClassDefaultAttributes(*args
, **kwargs
)
511 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
513 class FramePtr(Frame
):
514 def __init__(self
, this
):
516 if not hasattr(self
,"thisown"): self
.thisown
= 0
517 self
.__class
__ = Frame
518 _windows_
.Frame_swigregister(FramePtr
)
520 def PreFrame(*args
, **kwargs
):
521 """PreFrame() -> Frame"""
522 val
= _windows_
.new_PreFrame(*args
, **kwargs
)
526 def Frame_GetClassDefaultAttributes(*args
, **kwargs
):
528 Frame_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
530 Get the default attributes for this class. This is useful if you want
531 to use the same font or colour in your own control as in a standard
532 control -- which is a much better idea than hard coding specific
533 colours or fonts which might look completely out of place on the
534 user's system, especially if it uses themes.
536 The variant parameter is only relevant under Mac currently and is
537 ignore under other platforms. Under Mac, it will change the size of
538 the returned font. See `wx.Window.SetWindowVariant` for more about
541 return _windows_
.Frame_GetClassDefaultAttributes(*args
, **kwargs
)
543 #---------------------------------------------------------------------------
545 class Dialog(TopLevelWindow
):
547 return "<%s.%s; proxy of C++ wxDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
548 def __init__(self
, *args
, **kwargs
):
550 __init__(self, Window parent, int id=-1, String title=EmptyString,
551 Point pos=DefaultPosition, Size size=DefaultSize,
552 long style=DEFAULT_DIALOG_STYLE, String name=DialogNameStr) -> Dialog
554 newobj
= _windows_
.new_Dialog(*args
, **kwargs
)
555 self
.this
= newobj
.this
558 self
._setOORInfo
(self
)
560 def Create(*args
, **kwargs
):
562 Create(self, Window parent, int id=-1, String title=EmptyString,
563 Point pos=DefaultPosition, Size size=DefaultSize,
564 long style=DEFAULT_DIALOG_STYLE, String name=DialogNameStr) -> bool
566 return _windows_
.Dialog_Create(*args
, **kwargs
)
568 def SetReturnCode(*args
, **kwargs
):
569 """SetReturnCode(self, int returnCode)"""
570 return _windows_
.Dialog_SetReturnCode(*args
, **kwargs
)
572 def GetReturnCode(*args
, **kwargs
):
573 """GetReturnCode(self) -> int"""
574 return _windows_
.Dialog_GetReturnCode(*args
, **kwargs
)
576 def CreateTextSizer(*args
, **kwargs
):
577 """CreateTextSizer(self, String message) -> Sizer"""
578 return _windows_
.Dialog_CreateTextSizer(*args
, **kwargs
)
580 def CreateButtonSizer(*args
, **kwargs
):
581 """CreateButtonSizer(self, long flags) -> Sizer"""
582 return _windows_
.Dialog_CreateButtonSizer(*args
, **kwargs
)
584 def IsModal(*args
, **kwargs
):
585 """IsModal(self) -> bool"""
586 return _windows_
.Dialog_IsModal(*args
, **kwargs
)
588 def ShowModal(*args
, **kwargs
):
589 """ShowModal(self) -> int"""
590 return _windows_
.Dialog_ShowModal(*args
, **kwargs
)
592 def EndModal(*args
, **kwargs
):
593 """EndModal(self, int retCode)"""
594 return _windows_
.Dialog_EndModal(*args
, **kwargs
)
596 def GetClassDefaultAttributes(*args
, **kwargs
):
598 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
600 Get the default attributes for this class. This is useful if you want
601 to use the same font or colour in your own control as in a standard
602 control -- which is a much better idea than hard coding specific
603 colours or fonts which might look completely out of place on the
604 user's system, especially if it uses themes.
606 The variant parameter is only relevant under Mac currently and is
607 ignore under other platforms. Under Mac, it will change the size of
608 the returned font. See `wx.Window.SetWindowVariant` for more about
611 return _windows_
.Dialog_GetClassDefaultAttributes(*args
, **kwargs
)
613 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
614 def SendSizeEvent(self
):
615 self
.ProcessEvent(wx
.SizeEvent((-1,-1)))
618 class DialogPtr(Dialog
):
619 def __init__(self
, this
):
621 if not hasattr(self
,"thisown"): self
.thisown
= 0
622 self
.__class
__ = Dialog
623 _windows_
.Dialog_swigregister(DialogPtr
)
625 def PreDialog(*args
, **kwargs
):
626 """PreDialog() -> Dialog"""
627 val
= _windows_
.new_PreDialog(*args
, **kwargs
)
631 def Dialog_GetClassDefaultAttributes(*args
, **kwargs
):
633 Dialog_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
635 Get the default attributes for this class. This is useful if you want
636 to use the same font or colour in your own control as in a standard
637 control -- which is a much better idea than hard coding specific
638 colours or fonts which might look completely out of place on the
639 user's system, especially if it uses themes.
641 The variant parameter is only relevant under Mac currently and is
642 ignore under other platforms. Under Mac, it will change the size of
643 the returned font. See `wx.Window.SetWindowVariant` for more about
646 return _windows_
.Dialog_GetClassDefaultAttributes(*args
, **kwargs
)
648 #---------------------------------------------------------------------------
650 class MiniFrame(Frame
):
652 return "<%s.%s; proxy of C++ wxMiniFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
653 def __init__(self
, *args
, **kwargs
):
655 __init__(self, Window parent, int id=-1, String title=EmptyString,
656 Point pos=DefaultPosition, Size size=DefaultSize,
657 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> MiniFrame
659 newobj
= _windows_
.new_MiniFrame(*args
, **kwargs
)
660 self
.this
= newobj
.this
663 self
._setOORInfo
(self
)
665 def Create(*args
, **kwargs
):
667 Create(self, Window parent, int id=-1, String title=EmptyString,
668 Point pos=DefaultPosition, Size size=DefaultSize,
669 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> bool
671 return _windows_
.MiniFrame_Create(*args
, **kwargs
)
674 class MiniFramePtr(MiniFrame
):
675 def __init__(self
, this
):
677 if not hasattr(self
,"thisown"): self
.thisown
= 0
678 self
.__class
__ = MiniFrame
679 _windows_
.MiniFrame_swigregister(MiniFramePtr
)
681 def PreMiniFrame(*args
, **kwargs
):
682 """PreMiniFrame() -> MiniFrame"""
683 val
= _windows_
.new_PreMiniFrame(*args
, **kwargs
)
687 #---------------------------------------------------------------------------
689 SPLASH_CENTRE_ON_PARENT
= _windows_
.SPLASH_CENTRE_ON_PARENT
690 SPLASH_CENTRE_ON_SCREEN
= _windows_
.SPLASH_CENTRE_ON_SCREEN
691 SPLASH_NO_CENTRE
= _windows_
.SPLASH_NO_CENTRE
692 SPLASH_TIMEOUT
= _windows_
.SPLASH_TIMEOUT
693 SPLASH_NO_TIMEOUT
= _windows_
.SPLASH_NO_TIMEOUT
694 class SplashScreenWindow(_core
.Window
):
696 return "<%s.%s; proxy of C++ wxSplashScreenWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
697 def __init__(self
, *args
, **kwargs
):
699 __init__(self, Bitmap bitmap, Window parent, int id, Point pos=DefaultPosition,
700 Size size=DefaultSize, long style=NO_BORDER) -> SplashScreenWindow
702 newobj
= _windows_
.new_SplashScreenWindow(*args
, **kwargs
)
703 self
.this
= newobj
.this
706 self
._setOORInfo
(self
)
708 def SetBitmap(*args
, **kwargs
):
709 """SetBitmap(self, Bitmap bitmap)"""
710 return _windows_
.SplashScreenWindow_SetBitmap(*args
, **kwargs
)
712 def GetBitmap(*args
, **kwargs
):
713 """GetBitmap(self) -> Bitmap"""
714 return _windows_
.SplashScreenWindow_GetBitmap(*args
, **kwargs
)
717 class SplashScreenWindowPtr(SplashScreenWindow
):
718 def __init__(self
, this
):
720 if not hasattr(self
,"thisown"): self
.thisown
= 0
721 self
.__class
__ = SplashScreenWindow
722 _windows_
.SplashScreenWindow_swigregister(SplashScreenWindowPtr
)
724 class SplashScreen(Frame
):
726 return "<%s.%s; proxy of C++ wxSplashScreen instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
727 def __init__(self
, *args
, **kwargs
):
729 __init__(self, Bitmap bitmap, long splashStyle, int milliseconds,
730 Window parent, int id=-1, Point pos=DefaultPosition,
731 Size size=DefaultSize, long style=wxSIMPLE_BORDER|wxFRAME_NO_TASKBAR|wxSTAY_ON_TOP) -> SplashScreen
733 newobj
= _windows_
.new_SplashScreen(*args
, **kwargs
)
734 self
.this
= newobj
.this
737 self
._setOORInfo
(self
)
739 def GetSplashStyle(*args
, **kwargs
):
740 """GetSplashStyle(self) -> long"""
741 return _windows_
.SplashScreen_GetSplashStyle(*args
, **kwargs
)
743 def GetSplashWindow(*args
, **kwargs
):
744 """GetSplashWindow(self) -> SplashScreenWindow"""
745 return _windows_
.SplashScreen_GetSplashWindow(*args
, **kwargs
)
747 def GetTimeout(*args
, **kwargs
):
748 """GetTimeout(self) -> int"""
749 return _windows_
.SplashScreen_GetTimeout(*args
, **kwargs
)
752 class SplashScreenPtr(SplashScreen
):
753 def __init__(self
, this
):
755 if not hasattr(self
,"thisown"): self
.thisown
= 0
756 self
.__class
__ = SplashScreen
757 _windows_
.SplashScreen_swigregister(SplashScreenPtr
)
759 #---------------------------------------------------------------------------
761 SB_NORMAL
= _windows_
.SB_NORMAL
762 SB_FLAT
= _windows_
.SB_FLAT
763 SB_RAISED
= _windows_
.SB_RAISED
764 class StatusBar(_core
.Window
):
766 return "<%s.%s; proxy of C++ wxStatusBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
767 def __init__(self
, *args
, **kwargs
):
769 __init__(self, Window parent, int id=-1, long style=wxST_SIZEGRIP|wxFULL_REPAINT_ON_RESIZE,
770 String name=StatusLineNameStr) -> StatusBar
772 newobj
= _windows_
.new_StatusBar(*args
, **kwargs
)
773 self
.this
= newobj
.this
776 self
._setOORInfo
(self
)
778 def Create(*args
, **kwargs
):
779 """Create(self, Window parent, int id=-1, long style=ST_SIZEGRIP, String name=StatusLineNameStr) -> bool"""
780 return _windows_
.StatusBar_Create(*args
, **kwargs
)
782 def SetFieldsCount(*args
, **kwargs
):
783 """SetFieldsCount(self, int number=1)"""
784 return _windows_
.StatusBar_SetFieldsCount(*args
, **kwargs
)
786 def GetFieldsCount(*args
, **kwargs
):
787 """GetFieldsCount(self) -> int"""
788 return _windows_
.StatusBar_GetFieldsCount(*args
, **kwargs
)
790 def SetStatusText(*args
, **kwargs
):
791 """SetStatusText(self, String text, int number=0)"""
792 return _windows_
.StatusBar_SetStatusText(*args
, **kwargs
)
794 def GetStatusText(*args
, **kwargs
):
795 """GetStatusText(self, int number=0) -> String"""
796 return _windows_
.StatusBar_GetStatusText(*args
, **kwargs
)
798 def PushStatusText(*args
, **kwargs
):
799 """PushStatusText(self, String text, int number=0)"""
800 return _windows_
.StatusBar_PushStatusText(*args
, **kwargs
)
802 def PopStatusText(*args
, **kwargs
):
803 """PopStatusText(self, int number=0)"""
804 return _windows_
.StatusBar_PopStatusText(*args
, **kwargs
)
806 def SetStatusWidths(*args
, **kwargs
):
807 """SetStatusWidths(self, int widths, int widths_field)"""
808 return _windows_
.StatusBar_SetStatusWidths(*args
, **kwargs
)
810 def SetStatusStyles(*args
, **kwargs
):
811 """SetStatusStyles(self, int styles, int styles_field)"""
812 return _windows_
.StatusBar_SetStatusStyles(*args
, **kwargs
)
814 def GetFieldRect(*args
, **kwargs
):
815 """GetFieldRect(self, int i) -> Rect"""
816 return _windows_
.StatusBar_GetFieldRect(*args
, **kwargs
)
818 def SetMinHeight(*args
, **kwargs
):
819 """SetMinHeight(self, int height)"""
820 return _windows_
.StatusBar_SetMinHeight(*args
, **kwargs
)
822 def GetBorderX(*args
, **kwargs
):
823 """GetBorderX(self) -> int"""
824 return _windows_
.StatusBar_GetBorderX(*args
, **kwargs
)
826 def GetBorderY(*args
, **kwargs
):
827 """GetBorderY(self) -> int"""
828 return _windows_
.StatusBar_GetBorderY(*args
, **kwargs
)
830 def GetClassDefaultAttributes(*args
, **kwargs
):
832 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
834 Get the default attributes for this class. This is useful if you want
835 to use the same font or colour in your own control as in a standard
836 control -- which is a much better idea than hard coding specific
837 colours or fonts which might look completely out of place on the
838 user's system, especially if it uses themes.
840 The variant parameter is only relevant under Mac currently and is
841 ignore under other platforms. Under Mac, it will change the size of
842 the returned font. See `wx.Window.SetWindowVariant` for more about
845 return _windows_
.StatusBar_GetClassDefaultAttributes(*args
, **kwargs
)
847 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
849 class StatusBarPtr(StatusBar
):
850 def __init__(self
, this
):
852 if not hasattr(self
,"thisown"): self
.thisown
= 0
853 self
.__class
__ = StatusBar
854 _windows_
.StatusBar_swigregister(StatusBarPtr
)
856 def PreStatusBar(*args
, **kwargs
):
857 """PreStatusBar() -> StatusBar"""
858 val
= _windows_
.new_PreStatusBar(*args
, **kwargs
)
862 def StatusBar_GetClassDefaultAttributes(*args
, **kwargs
):
864 StatusBar_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
866 Get the default attributes for this class. This is useful if you want
867 to use the same font or colour in your own control as in a standard
868 control -- which is a much better idea than hard coding specific
869 colours or fonts which might look completely out of place on the
870 user's system, especially if it uses themes.
872 The variant parameter is only relevant under Mac currently and is
873 ignore under other platforms. Under Mac, it will change the size of
874 the returned font. See `wx.Window.SetWindowVariant` for more about
877 return _windows_
.StatusBar_GetClassDefaultAttributes(*args
, **kwargs
)
879 #---------------------------------------------------------------------------
881 SP_NOBORDER
= _windows_
.SP_NOBORDER
882 SP_NOSASH
= _windows_
.SP_NOSASH
883 SP_PERMIT_UNSPLIT
= _windows_
.SP_PERMIT_UNSPLIT
884 SP_LIVE_UPDATE
= _windows_
.SP_LIVE_UPDATE
885 SP_3DSASH
= _windows_
.SP_3DSASH
886 SP_3DBORDER
= _windows_
.SP_3DBORDER
887 SP_NO_XP_THEME
= _windows_
.SP_NO_XP_THEME
888 SP_BORDER
= _windows_
.SP_BORDER
889 SP_3D
= _windows_
.SP_3D
890 SPLIT_HORIZONTAL
= _windows_
.SPLIT_HORIZONTAL
891 SPLIT_VERTICAL
= _windows_
.SPLIT_VERTICAL
892 SPLIT_DRAG_NONE
= _windows_
.SPLIT_DRAG_NONE
893 SPLIT_DRAG_DRAGGING
= _windows_
.SPLIT_DRAG_DRAGGING
894 SPLIT_DRAG_LEFT_DOWN
= _windows_
.SPLIT_DRAG_LEFT_DOWN
895 class SplitterWindow(_core
.Window
):
897 wx.SplitterWindow manages up to two subwindows or panes, with an
898 optional vertical or horizontal split which can be used with the mouse
902 return "<%s.%s; proxy of C++ wxSplitterWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
903 def __init__(self
, *args
, **kwargs
):
905 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
906 Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> SplitterWindow
908 Constructor. Creates and shows a SplitterWindow.
910 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point'];del kwargs
['point']
911 newobj
= _windows_
.new_SplitterWindow(*args
, **kwargs
)
912 self
.this
= newobj
.this
915 self
._setOORInfo
(self
)
917 def Create(*args
, **kwargs
):
919 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
920 Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> bool
922 Create the GUI part of the SplitterWindow for the 2-phase create.
924 return _windows_
.SplitterWindow_Create(*args
, **kwargs
)
926 def GetWindow1(*args
, **kwargs
):
928 GetWindow1(self) -> Window
930 Gets the only or left/top pane.
932 return _windows_
.SplitterWindow_GetWindow1(*args
, **kwargs
)
934 def GetWindow2(*args
, **kwargs
):
936 GetWindow2(self) -> Window
938 Gets the right/bottom pane.
940 return _windows_
.SplitterWindow_GetWindow2(*args
, **kwargs
)
942 def SetSplitMode(*args
, **kwargs
):
944 SetSplitMode(self, int mode)
946 Sets the split mode. The mode can be wx.SPLIT_VERTICAL or
947 wx.SPLIT_HORIZONTAL. This only sets the internal variable; does not
950 return _windows_
.SplitterWindow_SetSplitMode(*args
, **kwargs
)
952 def GetSplitMode(*args
, **kwargs
):
954 GetSplitMode(self) -> int
958 return _windows_
.SplitterWindow_GetSplitMode(*args
, **kwargs
)
960 def Initialize(*args
, **kwargs
):
962 Initialize(self, Window window)
964 Initializes the splitter window to have one pane. This should be
965 called if you wish to initially view only a single pane in the
968 return _windows_
.SplitterWindow_Initialize(*args
, **kwargs
)
970 def SplitVertically(*args
, **kwargs
):
972 SplitVertically(self, Window window1, Window window2, int sashPosition=0) -> bool
974 Initializes the left and right panes of the splitter window.
976 return _windows_
.SplitterWindow_SplitVertically(*args
, **kwargs
)
978 def SplitHorizontally(*args
, **kwargs
):
980 SplitHorizontally(self, Window window1, Window window2, int sashPosition=0) -> bool
982 Initializes the top and bottom panes of the splitter window.
984 return _windows_
.SplitterWindow_SplitHorizontally(*args
, **kwargs
)
986 def Unsplit(*args
, **kwargs
):
988 Unsplit(self, Window toRemove=None) -> bool
990 Unsplits the window. Pass the pane to remove, or None to remove the
991 right or bottom pane. Returns True if successful, False otherwise (the
992 window was not split).
994 This function will not actually delete the pane being
995 removed; it sends EVT_SPLITTER_UNSPLIT which can be handled
996 for the desired behaviour. By default, the pane being
997 removed is only hidden.
999 return _windows_
.SplitterWindow_Unsplit(*args
, **kwargs
)
1001 def ReplaceWindow(*args
, **kwargs
):
1003 ReplaceWindow(self, Window winOld, Window winNew) -> bool
1005 This function replaces one of the windows managed by the
1006 SplitterWindow with another one. It is in general better to use it
1007 instead of calling Unsplit() and then resplitting the window back
1008 because it will provoke much less flicker. It is valid to call this
1009 function whether the splitter has two windows or only one.
1011 Both parameters should be non-None and winOld must specify one of the
1012 windows managed by the splitter. If the parameters are incorrect or
1013 the window couldn't be replaced, False is returned. Otherwise the
1014 function will return True, but please notice that it will not Destroy
1015 the replaced window and you may wish to do it yourself.
1017 return _windows_
.SplitterWindow_ReplaceWindow(*args
, **kwargs
)
1019 def UpdateSize(*args
, **kwargs
):
1023 Causes any pending sizing of the sash and child panes to take place
1026 Such resizing normally takes place in idle time, in order to wait for
1027 layout to be completed. However, this can cause unacceptable flicker
1028 as the panes are resized after the window has been shown. To work
1029 around this, you can perform window layout (for example by sending a
1030 size event to the parent window), and then call this function, before
1031 showing the top-level window.
1033 return _windows_
.SplitterWindow_UpdateSize(*args
, **kwargs
)
1035 def IsSplit(*args
, **kwargs
):
1037 IsSplit(self) -> bool
1039 Is the window split?
1041 return _windows_
.SplitterWindow_IsSplit(*args
, **kwargs
)
1043 def SetSashSize(*args
, **kwargs
):
1045 SetSashSize(self, int width)
1049 return _windows_
.SplitterWindow_SetSashSize(*args
, **kwargs
)
1051 def SetBorderSize(*args
, **kwargs
):
1053 SetBorderSize(self, int width)
1055 Sets the border size
1057 return _windows_
.SplitterWindow_SetBorderSize(*args
, **kwargs
)
1059 def GetSashSize(*args
, **kwargs
):
1061 GetSashSize(self) -> int
1065 return _windows_
.SplitterWindow_GetSashSize(*args
, **kwargs
)
1067 def GetBorderSize(*args
, **kwargs
):
1069 GetBorderSize(self) -> int
1071 Gets the border size
1073 return _windows_
.SplitterWindow_GetBorderSize(*args
, **kwargs
)
1075 def SetSashPosition(*args
, **kwargs
):
1077 SetSashPosition(self, int position, bool redraw=True)
1079 Sets the sash position, in pixels. If redraw is Ttrue then the panes
1080 are resized and the sash and border are redrawn.
1082 return _windows_
.SplitterWindow_SetSashPosition(*args
, **kwargs
)
1084 def GetSashPosition(*args
, **kwargs
):
1086 GetSashPosition(self) -> int
1088 Returns the surrent sash position.
1090 return _windows_
.SplitterWindow_GetSashPosition(*args
, **kwargs
)
1092 def SetMinimumPaneSize(*args
, **kwargs
):
1094 SetMinimumPaneSize(self, int min)
1096 Sets the minimum pane size in pixels.
1098 The default minimum pane size is zero, which means that either pane
1099 can be reduced to zero by dragging the sash, thus removing one of the
1100 panes. To prevent this behaviour (and veto out-of-range sash
1101 dragging), set a minimum size, for example 20 pixels. If the
1102 wx.SP_PERMIT_UNSPLIT style is used when a splitter window is created,
1103 the window may be unsplit even if minimum size is non-zero.
1105 return _windows_
.SplitterWindow_SetMinimumPaneSize(*args
, **kwargs
)
1107 def GetMinimumPaneSize(*args
, **kwargs
):
1109 GetMinimumPaneSize(self) -> int
1111 Gets the minimum pane size in pixels.
1113 return _windows_
.SplitterWindow_GetMinimumPaneSize(*args
, **kwargs
)
1115 def SashHitTest(*args
, **kwargs
):
1117 SashHitTest(self, int x, int y, int tolerance=5) -> bool
1119 Tests for x, y over the sash
1121 return _windows_
.SplitterWindow_SashHitTest(*args
, **kwargs
)
1123 def SizeWindows(*args
, **kwargs
):
1129 return _windows_
.SplitterWindow_SizeWindows(*args
, **kwargs
)
1131 def SetNeedUpdating(*args
, **kwargs
):
1132 """SetNeedUpdating(self, bool needUpdating)"""
1133 return _windows_
.SplitterWindow_SetNeedUpdating(*args
, **kwargs
)
1135 def GetNeedUpdating(*args
, **kwargs
):
1136 """GetNeedUpdating(self) -> bool"""
1137 return _windows_
.SplitterWindow_GetNeedUpdating(*args
, **kwargs
)
1139 def GetClassDefaultAttributes(*args
, **kwargs
):
1141 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1143 Get the default attributes for this class. This is useful if you want
1144 to use the same font or colour in your own control as in a standard
1145 control -- which is a much better idea than hard coding specific
1146 colours or fonts which might look completely out of place on the
1147 user's system, especially if it uses themes.
1149 The variant parameter is only relevant under Mac currently and is
1150 ignore under other platforms. Under Mac, it will change the size of
1151 the returned font. See `wx.Window.SetWindowVariant` for more about
1154 return _windows_
.SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
)
1156 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1158 class SplitterWindowPtr(SplitterWindow
):
1159 def __init__(self
, this
):
1161 if not hasattr(self
,"thisown"): self
.thisown
= 0
1162 self
.__class
__ = SplitterWindow
1163 _windows_
.SplitterWindow_swigregister(SplitterWindowPtr
)
1164 SplitterNameStr
= cvar
.SplitterNameStr
1166 def PreSplitterWindow(*args
, **kwargs
):
1168 PreSplitterWindow() -> SplitterWindow
1170 Precreate a SplitterWindow for 2-phase creation.
1172 val
= _windows_
.new_PreSplitterWindow(*args
, **kwargs
)
1176 def SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
):
1178 SplitterWindow_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1180 Get the default attributes for this class. This is useful if you want
1181 to use the same font or colour in your own control as in a standard
1182 control -- which is a much better idea than hard coding specific
1183 colours or fonts which might look completely out of place on the
1184 user's system, especially if it uses themes.
1186 The variant parameter is only relevant under Mac currently and is
1187 ignore under other platforms. Under Mac, it will change the size of
1188 the returned font. See `wx.Window.SetWindowVariant` for more about
1191 return _windows_
.SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
)
1193 class SplitterEvent(_core
.NotifyEvent
):
1194 """This class represents the events generated by a splitter control."""
1196 return "<%s.%s; proxy of C++ wxSplitterEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1197 def __init__(self
, *args
, **kwargs
):
1199 __init__(self, wxEventType type=wxEVT_NULL, SplitterWindow splitter=(wxSplitterWindow *) NULL) -> SplitterEvent
1201 This class represents the events generated by a splitter control.
1203 newobj
= _windows_
.new_SplitterEvent(*args
, **kwargs
)
1204 self
.this
= newobj
.this
1207 def SetSashPosition(*args
, **kwargs
):
1209 SetSashPosition(self, int pos)
1211 This funciton is only meaningful during EVT_SPLITTER_SASH_POS_CHANGING
1212 and EVT_SPLITTER_SASH_POS_CHANGED events. In the case of _CHANGED
1213 events, sets the the new sash position. In the case of _CHANGING
1214 events, sets the new tracking bar position so visual feedback during
1215 dragging will represent that change that will actually take place. Set
1216 to -1 from the event handler code to prevent repositioning.
1218 return _windows_
.SplitterEvent_SetSashPosition(*args
, **kwargs
)
1220 def GetSashPosition(*args
, **kwargs
):
1222 GetSashPosition(self) -> int
1224 Returns the new sash position while in EVT_SPLITTER_SASH_POS_CHANGING
1225 and EVT_SPLITTER_SASH_POS_CHANGED events.
1227 return _windows_
.SplitterEvent_GetSashPosition(*args
, **kwargs
)
1229 def GetWindowBeingRemoved(*args
, **kwargs
):
1231 GetWindowBeingRemoved(self) -> Window
1233 Returns a pointer to the window being removed when a splitter window
1236 return _windows_
.SplitterEvent_GetWindowBeingRemoved(*args
, **kwargs
)
1238 def GetX(*args
, **kwargs
):
1242 Returns the x coordinate of the double-click point in a
1243 EVT_SPLITTER_DCLICK event.
1245 return _windows_
.SplitterEvent_GetX(*args
, **kwargs
)
1247 def GetY(*args
, **kwargs
):
1251 Returns the y coordinate of the double-click point in a
1252 EVT_SPLITTER_DCLICK event.
1254 return _windows_
.SplitterEvent_GetY(*args
, **kwargs
)
1257 class SplitterEventPtr(SplitterEvent
):
1258 def __init__(self
, this
):
1260 if not hasattr(self
,"thisown"): self
.thisown
= 0
1261 self
.__class
__ = SplitterEvent
1262 _windows_
.SplitterEvent_swigregister(SplitterEventPtr
)
1264 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
= _windows_
.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
1265 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
= _windows_
.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
1266 wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
= _windows_
.wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
1267 wxEVT_COMMAND_SPLITTER_UNSPLIT
= _windows_
.wxEVT_COMMAND_SPLITTER_UNSPLIT
1268 EVT_SPLITTER_SASH_POS_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
, 1 )
1269 EVT_SPLITTER_SASH_POS_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
, 1 )
1270 EVT_SPLITTER_DOUBLECLICKED
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
, 1 )
1271 EVT_SPLITTER_UNSPLIT
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_UNSPLIT
, 1 )
1272 EVT_SPLITTER_DCLICK
= EVT_SPLITTER_DOUBLECLICKED
1274 #---------------------------------------------------------------------------
1276 SASH_DRAG_NONE
= _windows_
.SASH_DRAG_NONE
1277 SASH_DRAG_DRAGGING
= _windows_
.SASH_DRAG_DRAGGING
1278 SASH_DRAG_LEFT_DOWN
= _windows_
.SASH_DRAG_LEFT_DOWN
1279 SW_NOBORDER
= _windows_
.SW_NOBORDER
1280 SW_BORDER
= _windows_
.SW_BORDER
1281 SW_3DSASH
= _windows_
.SW_3DSASH
1282 SW_3DBORDER
= _windows_
.SW_3DBORDER
1283 SW_3D
= _windows_
.SW_3D
1284 SASH_TOP
= _windows_
.SASH_TOP
1285 SASH_RIGHT
= _windows_
.SASH_RIGHT
1286 SASH_BOTTOM
= _windows_
.SASH_BOTTOM
1287 SASH_LEFT
= _windows_
.SASH_LEFT
1288 SASH_NONE
= _windows_
.SASH_NONE
1289 class SashWindow(_core
.Window
):
1291 return "<%s.%s; proxy of C++ wxSashWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1292 def __init__(self
, *args
, **kwargs
):
1294 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1295 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1296 String name=SashNameStr) -> SashWindow
1298 newobj
= _windows_
.new_SashWindow(*args
, **kwargs
)
1299 self
.this
= newobj
.this
1302 self
._setOORInfo
(self
)
1304 def Create(*args
, **kwargs
):
1306 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1307 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1308 String name=SashNameStr) -> bool
1310 return _windows_
.SashWindow_Create(*args
, **kwargs
)
1312 def SetSashVisible(*args
, **kwargs
):
1313 """SetSashVisible(self, int edge, bool sash)"""
1314 return _windows_
.SashWindow_SetSashVisible(*args
, **kwargs
)
1316 def GetSashVisible(*args
, **kwargs
):
1317 """GetSashVisible(self, int edge) -> bool"""
1318 return _windows_
.SashWindow_GetSashVisible(*args
, **kwargs
)
1320 def SetSashBorder(*args
, **kwargs
):
1321 """SetSashBorder(self, int edge, bool border)"""
1322 return _windows_
.SashWindow_SetSashBorder(*args
, **kwargs
)
1324 def HasBorder(*args
, **kwargs
):
1325 """HasBorder(self, int edge) -> bool"""
1326 return _windows_
.SashWindow_HasBorder(*args
, **kwargs
)
1328 def GetEdgeMargin(*args
, **kwargs
):
1329 """GetEdgeMargin(self, int edge) -> int"""
1330 return _windows_
.SashWindow_GetEdgeMargin(*args
, **kwargs
)
1332 def SetDefaultBorderSize(*args
, **kwargs
):
1333 """SetDefaultBorderSize(self, int width)"""
1334 return _windows_
.SashWindow_SetDefaultBorderSize(*args
, **kwargs
)
1336 def GetDefaultBorderSize(*args
, **kwargs
):
1337 """GetDefaultBorderSize(self) -> int"""
1338 return _windows_
.SashWindow_GetDefaultBorderSize(*args
, **kwargs
)
1340 def SetExtraBorderSize(*args
, **kwargs
):
1341 """SetExtraBorderSize(self, int width)"""
1342 return _windows_
.SashWindow_SetExtraBorderSize(*args
, **kwargs
)
1344 def GetExtraBorderSize(*args
, **kwargs
):
1345 """GetExtraBorderSize(self) -> int"""
1346 return _windows_
.SashWindow_GetExtraBorderSize(*args
, **kwargs
)
1348 def SetMinimumSizeX(*args
, **kwargs
):
1349 """SetMinimumSizeX(self, int min)"""
1350 return _windows_
.SashWindow_SetMinimumSizeX(*args
, **kwargs
)
1352 def SetMinimumSizeY(*args
, **kwargs
):
1353 """SetMinimumSizeY(self, int min)"""
1354 return _windows_
.SashWindow_SetMinimumSizeY(*args
, **kwargs
)
1356 def GetMinimumSizeX(*args
, **kwargs
):
1357 """GetMinimumSizeX(self) -> int"""
1358 return _windows_
.SashWindow_GetMinimumSizeX(*args
, **kwargs
)
1360 def GetMinimumSizeY(*args
, **kwargs
):
1361 """GetMinimumSizeY(self) -> int"""
1362 return _windows_
.SashWindow_GetMinimumSizeY(*args
, **kwargs
)
1364 def SetMaximumSizeX(*args
, **kwargs
):
1365 """SetMaximumSizeX(self, int max)"""
1366 return _windows_
.SashWindow_SetMaximumSizeX(*args
, **kwargs
)
1368 def SetMaximumSizeY(*args
, **kwargs
):
1369 """SetMaximumSizeY(self, int max)"""
1370 return _windows_
.SashWindow_SetMaximumSizeY(*args
, **kwargs
)
1372 def GetMaximumSizeX(*args
, **kwargs
):
1373 """GetMaximumSizeX(self) -> int"""
1374 return _windows_
.SashWindow_GetMaximumSizeX(*args
, **kwargs
)
1376 def GetMaximumSizeY(*args
, **kwargs
):
1377 """GetMaximumSizeY(self) -> int"""
1378 return _windows_
.SashWindow_GetMaximumSizeY(*args
, **kwargs
)
1380 def SashHitTest(*args
, **kwargs
):
1381 """SashHitTest(self, int x, int y, int tolerance=2) -> int"""
1382 return _windows_
.SashWindow_SashHitTest(*args
, **kwargs
)
1384 def SizeWindows(*args
, **kwargs
):
1385 """SizeWindows(self)"""
1386 return _windows_
.SashWindow_SizeWindows(*args
, **kwargs
)
1389 class SashWindowPtr(SashWindow
):
1390 def __init__(self
, this
):
1392 if not hasattr(self
,"thisown"): self
.thisown
= 0
1393 self
.__class
__ = SashWindow
1394 _windows_
.SashWindow_swigregister(SashWindowPtr
)
1395 SashNameStr
= cvar
.SashNameStr
1396 SashLayoutNameStr
= cvar
.SashLayoutNameStr
1398 def PreSashWindow(*args
, **kwargs
):
1399 """PreSashWindow() -> SashWindow"""
1400 val
= _windows_
.new_PreSashWindow(*args
, **kwargs
)
1404 SASH_STATUS_OK
= _windows_
.SASH_STATUS_OK
1405 SASH_STATUS_OUT_OF_RANGE
= _windows_
.SASH_STATUS_OUT_OF_RANGE
1406 class SashEvent(_core
.CommandEvent
):
1408 return "<%s.%s; proxy of C++ wxSashEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1409 def __init__(self
, *args
, **kwargs
):
1410 """__init__(self, int id=0, int edge=SASH_NONE) -> SashEvent"""
1411 newobj
= _windows_
.new_SashEvent(*args
, **kwargs
)
1412 self
.this
= newobj
.this
1415 def SetEdge(*args
, **kwargs
):
1416 """SetEdge(self, int edge)"""
1417 return _windows_
.SashEvent_SetEdge(*args
, **kwargs
)
1419 def GetEdge(*args
, **kwargs
):
1420 """GetEdge(self) -> int"""
1421 return _windows_
.SashEvent_GetEdge(*args
, **kwargs
)
1423 def SetDragRect(*args
, **kwargs
):
1424 """SetDragRect(self, Rect rect)"""
1425 return _windows_
.SashEvent_SetDragRect(*args
, **kwargs
)
1427 def GetDragRect(*args
, **kwargs
):
1428 """GetDragRect(self) -> Rect"""
1429 return _windows_
.SashEvent_GetDragRect(*args
, **kwargs
)
1431 def SetDragStatus(*args
, **kwargs
):
1432 """SetDragStatus(self, int status)"""
1433 return _windows_
.SashEvent_SetDragStatus(*args
, **kwargs
)
1435 def GetDragStatus(*args
, **kwargs
):
1436 """GetDragStatus(self) -> int"""
1437 return _windows_
.SashEvent_GetDragStatus(*args
, **kwargs
)
1440 class SashEventPtr(SashEvent
):
1441 def __init__(self
, this
):
1443 if not hasattr(self
,"thisown"): self
.thisown
= 0
1444 self
.__class
__ = SashEvent
1445 _windows_
.SashEvent_swigregister(SashEventPtr
)
1447 wxEVT_SASH_DRAGGED
= _windows_
.wxEVT_SASH_DRAGGED
1448 EVT_SASH_DRAGGED
= wx
.PyEventBinder( wxEVT_SASH_DRAGGED
, 1 )
1449 EVT_SASH_DRAGGED_RANGE
= wx
.PyEventBinder( wxEVT_SASH_DRAGGED
, 2 )
1451 #---------------------------------------------------------------------------
1453 LAYOUT_HORIZONTAL
= _windows_
.LAYOUT_HORIZONTAL
1454 LAYOUT_VERTICAL
= _windows_
.LAYOUT_VERTICAL
1455 LAYOUT_NONE
= _windows_
.LAYOUT_NONE
1456 LAYOUT_TOP
= _windows_
.LAYOUT_TOP
1457 LAYOUT_LEFT
= _windows_
.LAYOUT_LEFT
1458 LAYOUT_RIGHT
= _windows_
.LAYOUT_RIGHT
1459 LAYOUT_BOTTOM
= _windows_
.LAYOUT_BOTTOM
1460 LAYOUT_LENGTH_Y
= _windows_
.LAYOUT_LENGTH_Y
1461 LAYOUT_LENGTH_X
= _windows_
.LAYOUT_LENGTH_X
1462 LAYOUT_MRU_LENGTH
= _windows_
.LAYOUT_MRU_LENGTH
1463 LAYOUT_QUERY
= _windows_
.LAYOUT_QUERY
1464 wxEVT_QUERY_LAYOUT_INFO
= _windows_
.wxEVT_QUERY_LAYOUT_INFO
1465 wxEVT_CALCULATE_LAYOUT
= _windows_
.wxEVT_CALCULATE_LAYOUT
1466 class QueryLayoutInfoEvent(_core
.Event
):
1468 return "<%s.%s; proxy of C++ wxQueryLayoutInfoEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1469 def __init__(self
, *args
, **kwargs
):
1470 """__init__(self, int id=0) -> QueryLayoutInfoEvent"""
1471 newobj
= _windows_
.new_QueryLayoutInfoEvent(*args
, **kwargs
)
1472 self
.this
= newobj
.this
1475 def SetRequestedLength(*args
, **kwargs
):
1476 """SetRequestedLength(self, int length)"""
1477 return _windows_
.QueryLayoutInfoEvent_SetRequestedLength(*args
, **kwargs
)
1479 def GetRequestedLength(*args
, **kwargs
):
1480 """GetRequestedLength(self) -> int"""
1481 return _windows_
.QueryLayoutInfoEvent_GetRequestedLength(*args
, **kwargs
)
1483 def SetFlags(*args
, **kwargs
):
1484 """SetFlags(self, int flags)"""
1485 return _windows_
.QueryLayoutInfoEvent_SetFlags(*args
, **kwargs
)
1487 def GetFlags(*args
, **kwargs
):
1488 """GetFlags(self) -> int"""
1489 return _windows_
.QueryLayoutInfoEvent_GetFlags(*args
, **kwargs
)
1491 def SetSize(*args
, **kwargs
):
1492 """SetSize(self, Size size)"""
1493 return _windows_
.QueryLayoutInfoEvent_SetSize(*args
, **kwargs
)
1495 def GetSize(*args
, **kwargs
):
1496 """GetSize(self) -> Size"""
1497 return _windows_
.QueryLayoutInfoEvent_GetSize(*args
, **kwargs
)
1499 def SetOrientation(*args
, **kwargs
):
1500 """SetOrientation(self, int orient)"""
1501 return _windows_
.QueryLayoutInfoEvent_SetOrientation(*args
, **kwargs
)
1503 def GetOrientation(*args
, **kwargs
):
1504 """GetOrientation(self) -> int"""
1505 return _windows_
.QueryLayoutInfoEvent_GetOrientation(*args
, **kwargs
)
1507 def SetAlignment(*args
, **kwargs
):
1508 """SetAlignment(self, int align)"""
1509 return _windows_
.QueryLayoutInfoEvent_SetAlignment(*args
, **kwargs
)
1511 def GetAlignment(*args
, **kwargs
):
1512 """GetAlignment(self) -> int"""
1513 return _windows_
.QueryLayoutInfoEvent_GetAlignment(*args
, **kwargs
)
1516 class QueryLayoutInfoEventPtr(QueryLayoutInfoEvent
):
1517 def __init__(self
, this
):
1519 if not hasattr(self
,"thisown"): self
.thisown
= 0
1520 self
.__class
__ = QueryLayoutInfoEvent
1521 _windows_
.QueryLayoutInfoEvent_swigregister(QueryLayoutInfoEventPtr
)
1523 class CalculateLayoutEvent(_core
.Event
):
1525 return "<%s.%s; proxy of C++ wxCalculateLayoutEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1526 def __init__(self
, *args
, **kwargs
):
1527 """__init__(self, int id=0) -> CalculateLayoutEvent"""
1528 newobj
= _windows_
.new_CalculateLayoutEvent(*args
, **kwargs
)
1529 self
.this
= newobj
.this
1532 def SetFlags(*args
, **kwargs
):
1533 """SetFlags(self, int flags)"""
1534 return _windows_
.CalculateLayoutEvent_SetFlags(*args
, **kwargs
)
1536 def GetFlags(*args
, **kwargs
):
1537 """GetFlags(self) -> int"""
1538 return _windows_
.CalculateLayoutEvent_GetFlags(*args
, **kwargs
)
1540 def SetRect(*args
, **kwargs
):
1541 """SetRect(self, Rect rect)"""
1542 return _windows_
.CalculateLayoutEvent_SetRect(*args
, **kwargs
)
1544 def GetRect(*args
, **kwargs
):
1545 """GetRect(self) -> Rect"""
1546 return _windows_
.CalculateLayoutEvent_GetRect(*args
, **kwargs
)
1549 class CalculateLayoutEventPtr(CalculateLayoutEvent
):
1550 def __init__(self
, this
):
1552 if not hasattr(self
,"thisown"): self
.thisown
= 0
1553 self
.__class
__ = CalculateLayoutEvent
1554 _windows_
.CalculateLayoutEvent_swigregister(CalculateLayoutEventPtr
)
1556 EVT_QUERY_LAYOUT_INFO
= wx
.PyEventBinder( wxEVT_QUERY_LAYOUT_INFO
)
1557 EVT_CALCULATE_LAYOUT
= wx
.PyEventBinder( wxEVT_CALCULATE_LAYOUT
)
1559 class SashLayoutWindow(SashWindow
):
1561 return "<%s.%s; proxy of C++ wxSashLayoutWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1562 def __init__(self
, *args
, **kwargs
):
1564 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1565 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1566 String name=SashLayoutNameStr) -> SashLayoutWindow
1568 newobj
= _windows_
.new_SashLayoutWindow(*args
, **kwargs
)
1569 self
.this
= newobj
.this
1572 self
._setOORInfo
(self
)
1574 def Create(*args
, **kwargs
):
1576 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1577 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1578 String name=SashLayoutNameStr) -> bool
1580 return _windows_
.SashLayoutWindow_Create(*args
, **kwargs
)
1582 def GetAlignment(*args
, **kwargs
):
1583 """GetAlignment(self) -> int"""
1584 return _windows_
.SashLayoutWindow_GetAlignment(*args
, **kwargs
)
1586 def GetOrientation(*args
, **kwargs
):
1587 """GetOrientation(self) -> int"""
1588 return _windows_
.SashLayoutWindow_GetOrientation(*args
, **kwargs
)
1590 def SetAlignment(*args
, **kwargs
):
1591 """SetAlignment(self, int alignment)"""
1592 return _windows_
.SashLayoutWindow_SetAlignment(*args
, **kwargs
)
1594 def SetDefaultSize(*args
, **kwargs
):
1595 """SetDefaultSize(self, Size size)"""
1596 return _windows_
.SashLayoutWindow_SetDefaultSize(*args
, **kwargs
)
1598 def SetOrientation(*args
, **kwargs
):
1599 """SetOrientation(self, int orientation)"""
1600 return _windows_
.SashLayoutWindow_SetOrientation(*args
, **kwargs
)
1603 class SashLayoutWindowPtr(SashLayoutWindow
):
1604 def __init__(self
, this
):
1606 if not hasattr(self
,"thisown"): self
.thisown
= 0
1607 self
.__class
__ = SashLayoutWindow
1608 _windows_
.SashLayoutWindow_swigregister(SashLayoutWindowPtr
)
1610 def PreSashLayoutWindow(*args
, **kwargs
):
1611 """PreSashLayoutWindow() -> SashLayoutWindow"""
1612 val
= _windows_
.new_PreSashLayoutWindow(*args
, **kwargs
)
1616 class LayoutAlgorithm(_core
.Object
):
1618 return "<%s.%s; proxy of C++ wxLayoutAlgorithm instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1619 def __init__(self
, *args
, **kwargs
):
1620 """__init__(self) -> LayoutAlgorithm"""
1621 newobj
= _windows_
.new_LayoutAlgorithm(*args
, **kwargs
)
1622 self
.this
= newobj
.this
1625 def __del__(self
, destroy
=_windows_
.delete_LayoutAlgorithm
):
1628 if self
.thisown
: destroy(self
)
1631 def LayoutMDIFrame(*args
, **kwargs
):
1632 """LayoutMDIFrame(self, MDIParentFrame frame, Rect rect=None) -> bool"""
1633 return _windows_
.LayoutAlgorithm_LayoutMDIFrame(*args
, **kwargs
)
1635 def LayoutFrame(*args
, **kwargs
):
1636 """LayoutFrame(self, Frame frame, Window mainWindow=None) -> bool"""
1637 return _windows_
.LayoutAlgorithm_LayoutFrame(*args
, **kwargs
)
1639 def LayoutWindow(*args
, **kwargs
):
1640 """LayoutWindow(self, Window parent, Window mainWindow=None) -> bool"""
1641 return _windows_
.LayoutAlgorithm_LayoutWindow(*args
, **kwargs
)
1644 class LayoutAlgorithmPtr(LayoutAlgorithm
):
1645 def __init__(self
, this
):
1647 if not hasattr(self
,"thisown"): self
.thisown
= 0
1648 self
.__class
__ = LayoutAlgorithm
1649 _windows_
.LayoutAlgorithm_swigregister(LayoutAlgorithmPtr
)
1651 #---------------------------------------------------------------------------
1653 class PopupWindow(_core
.Window
):
1655 return "<%s.%s; proxy of C++ wxPopupWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1656 def __init__(self
, *args
, **kwargs
):
1657 """__init__(self, Window parent, int flags=BORDER_NONE) -> PopupWindow"""
1658 newobj
= _windows_
.new_PopupWindow(*args
, **kwargs
)
1659 self
.this
= newobj
.this
1662 self
._setOORInfo
(self
)
1664 def Create(*args
, **kwargs
):
1665 """Create(self, Window parent, int flags=BORDER_NONE) -> bool"""
1666 return _windows_
.PopupWindow_Create(*args
, **kwargs
)
1668 def Position(*args
, **kwargs
):
1669 """Position(self, Point ptOrigin, Size size)"""
1670 return _windows_
.PopupWindow_Position(*args
, **kwargs
)
1673 class PopupWindowPtr(PopupWindow
):
1674 def __init__(self
, this
):
1676 if not hasattr(self
,"thisown"): self
.thisown
= 0
1677 self
.__class
__ = PopupWindow
1678 _windows_
.PopupWindow_swigregister(PopupWindowPtr
)
1680 def PrePopupWindow(*args
, **kwargs
):
1681 """PrePopupWindow() -> PopupWindow"""
1682 val
= _windows_
.new_PrePopupWindow(*args
, **kwargs
)
1686 #---------------------------------------------------------------------------
1688 class PopupTransientWindow(PopupWindow
):
1690 return "<%s.%s; proxy of C++ wxPyPopupTransientWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1691 def __init__(self
, *args
, **kwargs
):
1692 """__init__(self, Window parent, int style=BORDER_NONE) -> PopupTransientWindow"""
1693 newobj
= _windows_
.new_PopupTransientWindow(*args
, **kwargs
)
1694 self
.this
= newobj
.this
1697 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, PopupTransientWindow
)
1699 def _setCallbackInfo(*args
, **kwargs
):
1700 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1701 return _windows_
.PopupTransientWindow__setCallbackInfo(*args
, **kwargs
)
1703 def Popup(*args
, **kwargs
):
1704 """Popup(self, Window focus=None)"""
1705 return _windows_
.PopupTransientWindow_Popup(*args
, **kwargs
)
1707 def Dismiss(*args
, **kwargs
):
1709 return _windows_
.PopupTransientWindow_Dismiss(*args
, **kwargs
)
1712 class PopupTransientWindowPtr(PopupTransientWindow
):
1713 def __init__(self
, this
):
1715 if not hasattr(self
,"thisown"): self
.thisown
= 0
1716 self
.__class
__ = PopupTransientWindow
1717 _windows_
.PopupTransientWindow_swigregister(PopupTransientWindowPtr
)
1719 def PrePopupTransientWindow(*args
, **kwargs
):
1720 """PrePopupTransientWindow() -> PopupTransientWindow"""
1721 val
= _windows_
.new_PrePopupTransientWindow(*args
, **kwargs
)
1725 #---------------------------------------------------------------------------
1727 class TipWindow(PopupTransientWindow
):
1729 return "<%s.%s; proxy of C++ wxTipWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1730 def __init__(self
, *args
, **kwargs
):
1731 """__init__(self, Window parent, String text, int maxLength=100, Rect rectBound=None) -> TipWindow"""
1732 newobj
= _windows_
.new_TipWindow(*args
, **kwargs
)
1733 self
.this
= newobj
.this
1736 self
._setOORInfo
(self
)
1738 def SetBoundingRect(*args
, **kwargs
):
1739 """SetBoundingRect(self, Rect rectBound)"""
1740 return _windows_
.TipWindow_SetBoundingRect(*args
, **kwargs
)
1742 def Close(*args
, **kwargs
):
1744 return _windows_
.TipWindow_Close(*args
, **kwargs
)
1747 class TipWindowPtr(TipWindow
):
1748 def __init__(self
, this
):
1750 if not hasattr(self
,"thisown"): self
.thisown
= 0
1751 self
.__class
__ = TipWindow
1752 _windows_
.TipWindow_swigregister(TipWindowPtr
)
1754 #---------------------------------------------------------------------------
1756 class VScrolledWindow(Panel
):
1758 return "<%s.%s; proxy of C++ wxPyVScrolledWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1759 def __init__(self
, *args
, **kwargs
):
1761 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1762 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> VScrolledWindow
1764 newobj
= _windows_
.new_VScrolledWindow(*args
, **kwargs
)
1765 self
.this
= newobj
.this
1768 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, VScrolledWindow
)
1770 def _setCallbackInfo(*args
, **kwargs
):
1771 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1772 return _windows_
.VScrolledWindow__setCallbackInfo(*args
, **kwargs
)
1774 def Create(*args
, **kwargs
):
1776 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1777 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> bool
1779 return _windows_
.VScrolledWindow_Create(*args
, **kwargs
)
1781 def SetLineCount(*args
, **kwargs
):
1782 """SetLineCount(self, size_t count)"""
1783 return _windows_
.VScrolledWindow_SetLineCount(*args
, **kwargs
)
1785 def ScrollToLine(*args
, **kwargs
):
1786 """ScrollToLine(self, size_t line) -> bool"""
1787 return _windows_
.VScrolledWindow_ScrollToLine(*args
, **kwargs
)
1789 def ScrollLines(*args
, **kwargs
):
1791 ScrollLines(self, int lines) -> bool
1793 If the platform and window class supports it, scrolls the window by
1794 the given number of lines down, if lines is positive, or up if lines
1795 is negative. Returns True if the window was scrolled, False if it was
1796 already on top/bottom and nothing was done.
1798 return _windows_
.VScrolledWindow_ScrollLines(*args
, **kwargs
)
1800 def ScrollPages(*args
, **kwargs
):
1802 ScrollPages(self, int pages) -> bool
1804 If the platform and window class supports it, scrolls the window by
1805 the given number of pages down, if pages is positive, or up if pages
1806 is negative. Returns True if the window was scrolled, False if it was
1807 already on top/bottom and nothing was done.
1809 return _windows_
.VScrolledWindow_ScrollPages(*args
, **kwargs
)
1811 def RefreshLine(*args
, **kwargs
):
1812 """RefreshLine(self, size_t line)"""
1813 return _windows_
.VScrolledWindow_RefreshLine(*args
, **kwargs
)
1815 def RefreshLines(*args
, **kwargs
):
1816 """RefreshLines(self, size_t from, size_t to)"""
1817 return _windows_
.VScrolledWindow_RefreshLines(*args
, **kwargs
)
1819 def HitTestXY(*args
, **kwargs
):
1821 HitTestXY(self, int x, int y) -> int
1823 Test where the given (in client coords) point lies
1825 return _windows_
.VScrolledWindow_HitTestXY(*args
, **kwargs
)
1827 def HitTest(*args
, **kwargs
):
1829 HitTest(self, Point pt) -> int
1831 Test where the given (in client coords) point lies
1833 return _windows_
.VScrolledWindow_HitTest(*args
, **kwargs
)
1835 def RefreshAll(*args
, **kwargs
):
1836 """RefreshAll(self)"""
1837 return _windows_
.VScrolledWindow_RefreshAll(*args
, **kwargs
)
1839 def GetLineCount(*args
, **kwargs
):
1840 """GetLineCount(self) -> size_t"""
1841 return _windows_
.VScrolledWindow_GetLineCount(*args
, **kwargs
)
1843 def GetFirstVisibleLine(*args
, **kwargs
):
1844 """GetFirstVisibleLine(self) -> size_t"""
1845 return _windows_
.VScrolledWindow_GetFirstVisibleLine(*args
, **kwargs
)
1847 def GetLastVisibleLine(*args
, **kwargs
):
1848 """GetLastVisibleLine(self) -> size_t"""
1849 return _windows_
.VScrolledWindow_GetLastVisibleLine(*args
, **kwargs
)
1851 def IsVisible(*args
, **kwargs
):
1852 """IsVisible(self, size_t line) -> bool"""
1853 return _windows_
.VScrolledWindow_IsVisible(*args
, **kwargs
)
1856 class VScrolledWindowPtr(VScrolledWindow
):
1857 def __init__(self
, this
):
1859 if not hasattr(self
,"thisown"): self
.thisown
= 0
1860 self
.__class
__ = VScrolledWindow
1861 _windows_
.VScrolledWindow_swigregister(VScrolledWindowPtr
)
1863 def PreVScrolledWindow(*args
, **kwargs
):
1864 """PreVScrolledWindow() -> VScrolledWindow"""
1865 val
= _windows_
.new_PreVScrolledWindow(*args
, **kwargs
)
1869 class VListBox(VScrolledWindow
):
1871 return "<%s.%s; proxy of C++ wxPyVListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1872 def __init__(self
, *args
, **kwargs
):
1874 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1875 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> VListBox
1877 newobj
= _windows_
.new_VListBox(*args
, **kwargs
)
1878 self
.this
= newobj
.this
1881 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, VListBox
)
1883 def _setCallbackInfo(*args
, **kwargs
):
1884 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1885 return _windows_
.VListBox__setCallbackInfo(*args
, **kwargs
)
1887 def Create(*args
, **kwargs
):
1889 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1890 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
1892 return _windows_
.VListBox_Create(*args
, **kwargs
)
1894 def GetItemCount(*args
, **kwargs
):
1895 """GetItemCount(self) -> size_t"""
1896 return _windows_
.VListBox_GetItemCount(*args
, **kwargs
)
1898 def HasMultipleSelection(*args
, **kwargs
):
1899 """HasMultipleSelection(self) -> bool"""
1900 return _windows_
.VListBox_HasMultipleSelection(*args
, **kwargs
)
1902 def GetSelection(*args
, **kwargs
):
1903 """GetSelection(self) -> int"""
1904 return _windows_
.VListBox_GetSelection(*args
, **kwargs
)
1906 def IsCurrent(*args
, **kwargs
):
1907 """IsCurrent(self, size_t item) -> bool"""
1908 return _windows_
.VListBox_IsCurrent(*args
, **kwargs
)
1910 def IsSelected(*args
, **kwargs
):
1911 """IsSelected(self, size_t item) -> bool"""
1912 return _windows_
.VListBox_IsSelected(*args
, **kwargs
)
1914 def GetSelectedCount(*args
, **kwargs
):
1915 """GetSelectedCount(self) -> size_t"""
1916 return _windows_
.VListBox_GetSelectedCount(*args
, **kwargs
)
1918 def GetFirstSelected(*args
, **kwargs
):
1919 """GetFirstSelected(self) -> PyObject"""
1920 return _windows_
.VListBox_GetFirstSelected(*args
, **kwargs
)
1922 def GetNextSelected(*args
, **kwargs
):
1923 """GetNextSelected(self, unsigned long cookie) -> PyObject"""
1924 return _windows_
.VListBox_GetNextSelected(*args
, **kwargs
)
1926 def GetMargins(*args
, **kwargs
):
1927 """GetMargins(self) -> Point"""
1928 return _windows_
.VListBox_GetMargins(*args
, **kwargs
)
1930 def GetSelectionBackground(*args
, **kwargs
):
1931 """GetSelectionBackground(self) -> Colour"""
1932 return _windows_
.VListBox_GetSelectionBackground(*args
, **kwargs
)
1934 def SetItemCount(*args
, **kwargs
):
1935 """SetItemCount(self, size_t count)"""
1936 return _windows_
.VListBox_SetItemCount(*args
, **kwargs
)
1938 def Clear(*args
, **kwargs
):
1940 return _windows_
.VListBox_Clear(*args
, **kwargs
)
1942 def SetSelection(*args
, **kwargs
):
1943 """SetSelection(self, int selection)"""
1944 return _windows_
.VListBox_SetSelection(*args
, **kwargs
)
1946 def Select(*args
, **kwargs
):
1947 """Select(self, size_t item, bool select=True) -> bool"""
1948 return _windows_
.VListBox_Select(*args
, **kwargs
)
1950 def SelectRange(*args
, **kwargs
):
1951 """SelectRange(self, size_t from, size_t to) -> bool"""
1952 return _windows_
.VListBox_SelectRange(*args
, **kwargs
)
1954 def Toggle(*args
, **kwargs
):
1955 """Toggle(self, size_t item)"""
1956 return _windows_
.VListBox_Toggle(*args
, **kwargs
)
1958 def SelectAll(*args
, **kwargs
):
1959 """SelectAll(self) -> bool"""
1960 return _windows_
.VListBox_SelectAll(*args
, **kwargs
)
1962 def DeselectAll(*args
, **kwargs
):
1963 """DeselectAll(self) -> bool"""
1964 return _windows_
.VListBox_DeselectAll(*args
, **kwargs
)
1966 def SetMargins(*args
, **kwargs
):
1967 """SetMargins(self, Point pt)"""
1968 return _windows_
.VListBox_SetMargins(*args
, **kwargs
)
1970 def SetMarginsXY(*args
, **kwargs
):
1971 """SetMarginsXY(self, int x, int y)"""
1972 return _windows_
.VListBox_SetMarginsXY(*args
, **kwargs
)
1974 def SetSelectionBackground(*args
, **kwargs
):
1975 """SetSelectionBackground(self, Colour col)"""
1976 return _windows_
.VListBox_SetSelectionBackground(*args
, **kwargs
)
1979 class VListBoxPtr(VListBox
):
1980 def __init__(self
, this
):
1982 if not hasattr(self
,"thisown"): self
.thisown
= 0
1983 self
.__class
__ = VListBox
1984 _windows_
.VListBox_swigregister(VListBoxPtr
)
1985 VListBoxNameStr
= cvar
.VListBoxNameStr
1987 def PreVListBox(*args
, **kwargs
):
1988 """PreVListBox() -> VListBox"""
1989 val
= _windows_
.new_PreVListBox(*args
, **kwargs
)
1993 class HtmlListBox(VListBox
):
1995 return "<%s.%s; proxy of C++ wxPyHtmlListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1996 def __init__(self
, *args
, **kwargs
):
1998 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1999 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> HtmlListBox
2001 newobj
= _windows_
.new_HtmlListBox(*args
, **kwargs
)
2002 self
.this
= newobj
.this
2005 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, HtmlListBox
)
2007 def _setCallbackInfo(*args
, **kwargs
):
2008 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
2009 return _windows_
.HtmlListBox__setCallbackInfo(*args
, **kwargs
)
2011 def Create(*args
, **kwargs
):
2013 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
2014 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
2016 return _windows_
.HtmlListBox_Create(*args
, **kwargs
)
2018 def RefreshAll(*args
, **kwargs
):
2019 """RefreshAll(self)"""
2020 return _windows_
.HtmlListBox_RefreshAll(*args
, **kwargs
)
2022 def SetItemCount(*args
, **kwargs
):
2023 """SetItemCount(self, size_t count)"""
2024 return _windows_
.HtmlListBox_SetItemCount(*args
, **kwargs
)
2026 def GetFileSystem(*args
, **kwargs
):
2027 """GetFileSystem(self) -> FileSystem"""
2028 return _windows_
.HtmlListBox_GetFileSystem(*args
, **kwargs
)
2031 class HtmlListBoxPtr(HtmlListBox
):
2032 def __init__(self
, this
):
2034 if not hasattr(self
,"thisown"): self
.thisown
= 0
2035 self
.__class
__ = HtmlListBox
2036 _windows_
.HtmlListBox_swigregister(HtmlListBoxPtr
)
2038 def PreHtmlListBox(*args
, **kwargs
):
2039 """PreHtmlListBox() -> HtmlListBox"""
2040 val
= _windows_
.new_PreHtmlListBox(*args
, **kwargs
)
2044 #---------------------------------------------------------------------------
2046 class TaskBarIcon(_core
.EvtHandler
):
2048 return "<%s.%s; proxy of C++ wxTaskBarIcon instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2049 def __init__(self
, *args
, **kwargs
):
2050 """__init__(self) -> TaskBarIcon"""
2051 newobj
= _windows_
.new_TaskBarIcon(*args
, **kwargs
)
2052 self
.this
= newobj
.this
2055 def __del__(self
, destroy
=_windows_
.delete_TaskBarIcon
):
2058 if self
.thisown
: destroy(self
)
2061 def Destroy(*args
, **kwargs
):
2065 Deletes the C++ object this Python object is a proxy for.
2067 return _windows_
.TaskBarIcon_Destroy(*args
, **kwargs
)
2069 def IsOk(*args
, **kwargs
):
2070 """IsOk(self) -> bool"""
2071 return _windows_
.TaskBarIcon_IsOk(*args
, **kwargs
)
2073 def __nonzero__(self
): return self
.IsOk()
2074 def IsIconInstalled(*args
, **kwargs
):
2075 """IsIconInstalled(self) -> bool"""
2076 return _windows_
.TaskBarIcon_IsIconInstalled(*args
, **kwargs
)
2078 def SetIcon(*args
, **kwargs
):
2079 """SetIcon(self, Icon icon, String tooltip=EmptyString) -> bool"""
2080 return _windows_
.TaskBarIcon_SetIcon(*args
, **kwargs
)
2082 def RemoveIcon(*args
, **kwargs
):
2083 """RemoveIcon(self) -> bool"""
2084 return _windows_
.TaskBarIcon_RemoveIcon(*args
, **kwargs
)
2086 def PopupMenu(*args
, **kwargs
):
2087 """PopupMenu(self, Menu menu) -> bool"""
2088 return _windows_
.TaskBarIcon_PopupMenu(*args
, **kwargs
)
2091 class TaskBarIconPtr(TaskBarIcon
):
2092 def __init__(self
, this
):
2094 if not hasattr(self
,"thisown"): self
.thisown
= 0
2095 self
.__class
__ = TaskBarIcon
2096 _windows_
.TaskBarIcon_swigregister(TaskBarIconPtr
)
2098 class TaskBarIconEvent(_core
.Event
):
2100 return "<%s.%s; proxy of C++ wxTaskBarIconEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2101 def __init__(self
, *args
, **kwargs
):
2102 """__init__(self, wxEventType evtType, TaskBarIcon tbIcon) -> TaskBarIconEvent"""
2103 newobj
= _windows_
.new_TaskBarIconEvent(*args
, **kwargs
)
2104 self
.this
= newobj
.this
2108 class TaskBarIconEventPtr(TaskBarIconEvent
):
2109 def __init__(self
, this
):
2111 if not hasattr(self
,"thisown"): self
.thisown
= 0
2112 self
.__class
__ = TaskBarIconEvent
2113 _windows_
.TaskBarIconEvent_swigregister(TaskBarIconEventPtr
)
2115 wxEVT_TASKBAR_MOVE
= _windows_
.wxEVT_TASKBAR_MOVE
2116 wxEVT_TASKBAR_LEFT_DOWN
= _windows_
.wxEVT_TASKBAR_LEFT_DOWN
2117 wxEVT_TASKBAR_LEFT_UP
= _windows_
.wxEVT_TASKBAR_LEFT_UP
2118 wxEVT_TASKBAR_RIGHT_DOWN
= _windows_
.wxEVT_TASKBAR_RIGHT_DOWN
2119 wxEVT_TASKBAR_RIGHT_UP
= _windows_
.wxEVT_TASKBAR_RIGHT_UP
2120 wxEVT_TASKBAR_LEFT_DCLICK
= _windows_
.wxEVT_TASKBAR_LEFT_DCLICK
2121 wxEVT_TASKBAR_RIGHT_DCLICK
= _windows_
.wxEVT_TASKBAR_RIGHT_DCLICK
2122 EVT_TASKBAR_MOVE
= wx
.PyEventBinder ( wxEVT_TASKBAR_MOVE
)
2123 EVT_TASKBAR_LEFT_DOWN
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_DOWN
)
2124 EVT_TASKBAR_LEFT_UP
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_UP
)
2125 EVT_TASKBAR_RIGHT_DOWN
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DOWN
)
2126 EVT_TASKBAR_RIGHT_UP
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_UP
)
2127 EVT_TASKBAR_LEFT_DCLICK
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_DCLICK
)
2128 EVT_TASKBAR_RIGHT_DCLICK
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DCLICK
)
2130 #---------------------------------------------------------------------------
2132 class ColourData(_core
.Object
):
2134 This class holds a variety of information related to the colour
2135 chooser dialog, used to transfer settings and results to and from the
2139 return "<%s.%s; proxy of C++ wxColourData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2140 def __init__(self
, *args
, **kwargs
):
2142 __init__(self) -> ColourData
2144 Constructor, sets default values.
2146 newobj
= _windows_
.new_ColourData(*args
, **kwargs
)
2147 self
.this
= newobj
.this
2150 def __del__(self
, destroy
=_windows_
.delete_ColourData
):
2153 if self
.thisown
: destroy(self
)
2156 def GetChooseFull(*args
, **kwargs
):
2158 GetChooseFull(self) -> bool
2160 Under Windows, determines whether the Windows colour dialog will
2161 display the full dialog with custom colour selection controls. Has no
2162 meaning under other platforms. The default value is true.
2164 return _windows_
.ColourData_GetChooseFull(*args
, **kwargs
)
2166 def GetColour(*args
, **kwargs
):
2168 GetColour(self) -> Colour
2170 Gets the colour (pre)selected by the dialog.
2172 return _windows_
.ColourData_GetColour(*args
, **kwargs
)
2174 def GetCustomColour(*args
, **kwargs
):
2176 GetCustomColour(self, int i) -> Colour
2178 Gets the i'th custom colour associated with the colour dialog. i
2179 should be an integer between 0 and 15. The default custom colours are
2180 all invalid colours.
2182 return _windows_
.ColourData_GetCustomColour(*args
, **kwargs
)
2184 def SetChooseFull(*args
, **kwargs
):
2186 SetChooseFull(self, int flag)
2188 Under Windows, tells the Windows colour dialog to display the full
2189 dialog with custom colour selection controls. Under other platforms,
2190 has no effect. The default value is true.
2192 return _windows_
.ColourData_SetChooseFull(*args
, **kwargs
)
2194 def SetColour(*args
, **kwargs
):
2196 SetColour(self, Colour colour)
2198 Sets the default colour for the colour dialog. The default colour is
2201 return _windows_
.ColourData_SetColour(*args
, **kwargs
)
2203 def SetCustomColour(*args
, **kwargs
):
2205 SetCustomColour(self, int i, Colour colour)
2207 Sets the i'th custom colour for the colour dialog. i should be an
2208 integer between 0 and 15. The default custom colours are all invalid colours.
2210 return _windows_
.ColourData_SetCustomColour(*args
, **kwargs
)
2213 class ColourDataPtr(ColourData
):
2214 def __init__(self
, this
):
2216 if not hasattr(self
,"thisown"): self
.thisown
= 0
2217 self
.__class
__ = ColourData
2218 _windows_
.ColourData_swigregister(ColourDataPtr
)
2219 FileSelectorPromptStr
= cvar
.FileSelectorPromptStr
2220 DirSelectorPromptStr
= cvar
.DirSelectorPromptStr
2221 DirDialogNameStr
= cvar
.DirDialogNameStr
2222 FileSelectorDefaultWildcardStr
= cvar
.FileSelectorDefaultWildcardStr
2223 GetTextFromUserPromptStr
= cvar
.GetTextFromUserPromptStr
2224 MessageBoxCaptionStr
= cvar
.MessageBoxCaptionStr
2226 class ColourDialog(Dialog
):
2227 """This class represents the colour chooser dialog."""
2229 return "<%s.%s; proxy of C++ wxColourDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2230 def __init__(self
, *args
, **kwargs
):
2232 __init__(self, Window parent, ColourData data=None) -> ColourDialog
2234 Constructor. Pass a parent window, and optionally a `wx.ColourData`,
2235 which will be copied to the colour dialog's internal ColourData
2238 newobj
= _windows_
.new_ColourDialog(*args
, **kwargs
)
2239 self
.this
= newobj
.this
2242 self
._setOORInfo
(self
)
2244 def GetColourData(*args
, **kwargs
):
2246 GetColourData(self) -> ColourData
2248 Returns a reference to the `wx.ColourData` used by the dialog.
2250 return _windows_
.ColourDialog_GetColourData(*args
, **kwargs
)
2253 class ColourDialogPtr(ColourDialog
):
2254 def __init__(self
, this
):
2256 if not hasattr(self
,"thisown"): self
.thisown
= 0
2257 self
.__class
__ = ColourDialog
2258 _windows_
.ColourDialog_swigregister(ColourDialogPtr
)
2260 class DirDialog(Dialog
):
2262 wx.DirDialog allows the user to select a directory by browising the
2266 return "<%s.%s; proxy of C++ wxDirDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2267 def __init__(self
, *args
, **kwargs
):
2269 __init__(self, Window parent, String message=DirSelectorPromptStr,
2270 String defaultPath=EmptyString, long style=0,
2271 Point pos=DefaultPosition, Size size=DefaultSize,
2272 String name=DirDialogNameStr) -> DirDialog
2274 Constructor. Use ShowModal method to show the dialog.
2276 newobj
= _windows_
.new_DirDialog(*args
, **kwargs
)
2277 self
.this
= newobj
.this
2280 self
._setOORInfo
(self
)
2282 def GetPath(*args
, **kwargs
):
2284 GetPath(self) -> String
2286 Returns the default or user-selected path.
2288 return _windows_
.DirDialog_GetPath(*args
, **kwargs
)
2290 def GetMessage(*args
, **kwargs
):
2292 GetMessage(self) -> String
2294 Returns the message that will be displayed on the dialog.
2296 return _windows_
.DirDialog_GetMessage(*args
, **kwargs
)
2298 def GetStyle(*args
, **kwargs
):
2300 GetStyle(self) -> long
2302 Returns the dialog style.
2304 return _windows_
.DirDialog_GetStyle(*args
, **kwargs
)
2306 def SetMessage(*args
, **kwargs
):
2308 SetMessage(self, String message)
2310 Sets the message that will be displayed on the dialog.
2312 return _windows_
.DirDialog_SetMessage(*args
, **kwargs
)
2314 def SetPath(*args
, **kwargs
):
2316 SetPath(self, String path)
2318 Sets the default path.
2320 return _windows_
.DirDialog_SetPath(*args
, **kwargs
)
2323 class DirDialogPtr(DirDialog
):
2324 def __init__(self
, this
):
2326 if not hasattr(self
,"thisown"): self
.thisown
= 0
2327 self
.__class
__ = DirDialog
2328 _windows_
.DirDialog_swigregister(DirDialogPtr
)
2330 class FileDialog(Dialog
):
2332 wx.FileDialog allows the user to select one or more files from the
2336 return "<%s.%s; proxy of C++ wxFileDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2337 def __init__(self
, *args
, **kwargs
):
2339 __init__(self, Window parent, String message=FileSelectorPromptStr,
2340 String defaultDir=EmptyString, String defaultFile=EmptyString,
2341 String wildcard=FileSelectorDefaultWildcardStr,
2342 long style=0, Point pos=DefaultPosition) -> FileDialog
2344 Constructor. Use ShowModal method to show the dialog.
2346 newobj
= _windows_
.new_FileDialog(*args
, **kwargs
)
2347 self
.this
= newobj
.this
2350 self
._setOORInfo
(self
)
2352 def SetMessage(*args
, **kwargs
):
2354 SetMessage(self, String message)
2356 Sets the message that will be displayed on the dialog.
2358 return _windows_
.FileDialog_SetMessage(*args
, **kwargs
)
2360 def SetPath(*args
, **kwargs
):
2362 SetPath(self, String path)
2364 Sets the path (the combined directory and filename that will be
2365 returned when the dialog is dismissed).
2367 return _windows_
.FileDialog_SetPath(*args
, **kwargs
)
2369 def SetDirectory(*args
, **kwargs
):
2371 SetDirectory(self, String dir)
2373 Sets the default directory.
2375 return _windows_
.FileDialog_SetDirectory(*args
, **kwargs
)
2377 def SetFilename(*args
, **kwargs
):
2379 SetFilename(self, String name)
2381 Sets the default filename.
2383 return _windows_
.FileDialog_SetFilename(*args
, **kwargs
)
2385 def SetWildcard(*args
, **kwargs
):
2387 SetWildcard(self, String wildCard)
2389 Sets the wildcard, which can contain multiple file types, for
2392 "BMP files (*.bmp)|*.bmp|GIF files (*.gif)|*.gif"
2395 return _windows_
.FileDialog_SetWildcard(*args
, **kwargs
)
2397 def SetStyle(*args
, **kwargs
):
2399 SetStyle(self, long style)
2401 Sets the dialog style.
2403 return _windows_
.FileDialog_SetStyle(*args
, **kwargs
)
2405 def SetFilterIndex(*args
, **kwargs
):
2407 SetFilterIndex(self, int filterIndex)
2409 Sets the default filter index, starting from zero.
2411 return _windows_
.FileDialog_SetFilterIndex(*args
, **kwargs
)
2413 def GetMessage(*args
, **kwargs
):
2415 GetMessage(self) -> String
2417 Returns the message that will be displayed on the dialog.
2419 return _windows_
.FileDialog_GetMessage(*args
, **kwargs
)
2421 def GetPath(*args
, **kwargs
):
2423 GetPath(self) -> String
2425 Returns the full path (directory and filename) of the selected file.
2427 return _windows_
.FileDialog_GetPath(*args
, **kwargs
)
2429 def GetDirectory(*args
, **kwargs
):
2431 GetDirectory(self) -> String
2433 Returns the default directory.
2435 return _windows_
.FileDialog_GetDirectory(*args
, **kwargs
)
2437 def GetFilename(*args
, **kwargs
):
2439 GetFilename(self) -> String
2441 Returns the default filename.
2443 return _windows_
.FileDialog_GetFilename(*args
, **kwargs
)
2445 def GetWildcard(*args
, **kwargs
):
2447 GetWildcard(self) -> String
2449 Returns the file dialog wildcard.
2451 return _windows_
.FileDialog_GetWildcard(*args
, **kwargs
)
2453 def GetStyle(*args
, **kwargs
):
2455 GetStyle(self) -> long
2457 Returns the dialog style.
2459 return _windows_
.FileDialog_GetStyle(*args
, **kwargs
)
2461 def GetFilterIndex(*args
, **kwargs
):
2463 GetFilterIndex(self) -> int
2465 Returns the index into the list of filters supplied, optionally, in
2466 the wildcard parameter. Before the dialog is shown, this is the index
2467 which will be used when the dialog is first displayed. After the
2468 dialog is shown, this is the index selected by the user.
2470 return _windows_
.FileDialog_GetFilterIndex(*args
, **kwargs
)
2472 def GetFilenames(*args
, **kwargs
):
2474 GetFilenames(self) -> PyObject
2476 Returns a list of filenames chosen in the dialog. This function
2477 should only be used with the dialogs which have wx.MULTIPLE style, use
2478 GetFilename for the others.
2480 return _windows_
.FileDialog_GetFilenames(*args
, **kwargs
)
2482 def GetPaths(*args
, **kwargs
):
2484 GetPaths(self) -> PyObject
2486 Fills the array paths with the full paths of the files chosen. This
2487 function should only be used with the dialogs which have wx.MULTIPLE
2488 style, use GetPath for the others.
2490 return _windows_
.FileDialog_GetPaths(*args
, **kwargs
)
2493 class FileDialogPtr(FileDialog
):
2494 def __init__(self
, this
):
2496 if not hasattr(self
,"thisown"): self
.thisown
= 0
2497 self
.__class
__ = FileDialog
2498 _windows_
.FileDialog_swigregister(FileDialogPtr
)
2500 CHOICEDLG_STYLE
= _windows_
.CHOICEDLG_STYLE
2501 class MultiChoiceDialog(Dialog
):
2502 """A simple dialog with a multi selection listbox."""
2504 return "<%s.%s; proxy of C++ wxMultiChoiceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2505 def __init__(self
, *args
, **kwargs
):
2507 __init__(Window parent, String message, String caption,
2508 List choices=[], long style=CHOICEDLG_STYLE,
2509 Point pos=DefaultPosition) -> MultiChoiceDialog
2511 Constructor. Use ShowModal method to show the dialog.
2513 newobj
= _windows_
.new_MultiChoiceDialog(*args
, **kwargs
)
2514 self
.this
= newobj
.this
2517 self
._setOORInfo
(self
)
2519 def SetSelections(*args
, **kwargs
):
2521 SetSelections(List selections)
2523 Specify the items in the list that should be selected, using a list of
2526 return _windows_
.MultiChoiceDialog_SetSelections(*args
, **kwargs
)
2528 def GetSelections(*args
, **kwargs
):
2530 GetSelections() -> [selections]
2532 Returns a list of integers representing the items that are selected.
2534 return _windows_
.MultiChoiceDialog_GetSelections(*args
, **kwargs
)
2537 class MultiChoiceDialogPtr(MultiChoiceDialog
):
2538 def __init__(self
, this
):
2540 if not hasattr(self
,"thisown"): self
.thisown
= 0
2541 self
.__class
__ = MultiChoiceDialog
2542 _windows_
.MultiChoiceDialog_swigregister(MultiChoiceDialogPtr
)
2544 class SingleChoiceDialog(Dialog
):
2545 """A simple dialog with a single selection listbox."""
2547 return "<%s.%s; proxy of C++ wxSingleChoiceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2548 def __init__(self
, *args
, **kwargs
):
2550 __init__(Window parent, String message, String caption,
2551 List choices=[], long style=CHOICEDLG_STYLE,
2552 Point pos=DefaultPosition) -> SingleChoiceDialog
2554 Constructor. Use ShowModal method to show the dialog.
2556 newobj
= _windows_
.new_SingleChoiceDialog(*args
, **kwargs
)
2557 self
.this
= newobj
.this
2560 self
._setOORInfo
(self
)
2562 def GetSelection(*args
, **kwargs
):
2564 GetSelection(self) -> int
2566 Get the index of teh currently selected item.
2568 return _windows_
.SingleChoiceDialog_GetSelection(*args
, **kwargs
)
2570 def GetStringSelection(*args
, **kwargs
):
2572 GetStringSelection(self) -> String
2574 Returns the string value of the currently selected item
2576 return _windows_
.SingleChoiceDialog_GetStringSelection(*args
, **kwargs
)
2578 def SetSelection(*args
, **kwargs
):
2580 SetSelection(self, int sel)
2582 Set the current selected item to sel
2584 return _windows_
.SingleChoiceDialog_SetSelection(*args
, **kwargs
)
2587 class SingleChoiceDialogPtr(SingleChoiceDialog
):
2588 def __init__(self
, this
):
2590 if not hasattr(self
,"thisown"): self
.thisown
= 0
2591 self
.__class
__ = SingleChoiceDialog
2592 _windows_
.SingleChoiceDialog_swigregister(SingleChoiceDialogPtr
)
2594 class TextEntryDialog(Dialog
):
2595 """A dialog with text control, [ok] and [cancel] buttons"""
2597 return "<%s.%s; proxy of C++ wxTextEntryDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2598 def __init__(self
, *args
, **kwargs
):
2600 __init__(self, Window parent, String message, String caption=GetTextFromUserPromptStr,
2601 String defaultValue=EmptyString,
2602 long style=wxOK|wxCANCEL|wxCENTRE, Point pos=DefaultPosition) -> TextEntryDialog
2604 Constructor. Use ShowModal method to show the dialog.
2606 newobj
= _windows_
.new_TextEntryDialog(*args
, **kwargs
)
2607 self
.this
= newobj
.this
2610 self
._setOORInfo
(self
)
2612 def GetValue(*args
, **kwargs
):
2614 GetValue(self) -> String
2616 Returns the text that the user has entered if the user has pressed OK,
2617 or the original value if the user has pressed Cancel.
2619 return _windows_
.TextEntryDialog_GetValue(*args
, **kwargs
)
2621 def SetValue(*args
, **kwargs
):
2623 SetValue(self, String value)
2625 Sets the default text value.
2627 return _windows_
.TextEntryDialog_SetValue(*args
, **kwargs
)
2630 class TextEntryDialogPtr(TextEntryDialog
):
2631 def __init__(self
, this
):
2633 if not hasattr(self
,"thisown"): self
.thisown
= 0
2634 self
.__class
__ = TextEntryDialog
2635 _windows_
.TextEntryDialog_swigregister(TextEntryDialogPtr
)
2637 class FontData(_core
.Object
):
2639 This class holds a variety of information related to font dialogs and
2640 is used to transfer settings to and results from a `wx.FontDialog`.
2643 return "<%s.%s; proxy of C++ wxFontData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2644 def __init__(self
, *args
, **kwargs
):
2646 __init__(self) -> FontData
2648 This class holds a variety of information related to font dialogs and
2649 is used to transfer settings to and results from a `wx.FontDialog`.
2651 newobj
= _windows_
.new_FontData(*args
, **kwargs
)
2652 self
.this
= newobj
.this
2655 def __del__(self
, destroy
=_windows_
.delete_FontData
):
2658 if self
.thisown
: destroy(self
)
2661 def EnableEffects(*args
, **kwargs
):
2663 EnableEffects(self, bool enable)
2665 Enables or disables 'effects' under MS Windows only. This refers to
2666 the controls for manipulating colour, strikeout and underline
2667 properties. The default value is true.
2669 return _windows_
.FontData_EnableEffects(*args
, **kwargs
)
2671 def GetAllowSymbols(*args
, **kwargs
):
2673 GetAllowSymbols(self) -> bool
2675 Under MS Windows, returns a flag determining whether symbol fonts can
2676 be selected. Has no effect on other platforms. The default value is
2679 return _windows_
.FontData_GetAllowSymbols(*args
, **kwargs
)
2681 def GetColour(*args
, **kwargs
):
2683 GetColour(self) -> Colour
2685 Gets the colour associated with the font dialog. The default value is
2688 return _windows_
.FontData_GetColour(*args
, **kwargs
)
2690 def GetChosenFont(*args
, **kwargs
):
2692 GetChosenFont(self) -> Font
2694 Gets the font chosen by the user.
2696 return _windows_
.FontData_GetChosenFont(*args
, **kwargs
)
2698 def GetEnableEffects(*args
, **kwargs
):
2700 GetEnableEffects(self) -> bool
2702 Determines whether 'effects' are enabled under Windows.
2704 return _windows_
.FontData_GetEnableEffects(*args
, **kwargs
)
2706 def GetInitialFont(*args
, **kwargs
):
2708 GetInitialFont(self) -> Font
2710 Gets the font that will be initially used by the font dialog. This
2711 should have previously been set by the application.
2713 return _windows_
.FontData_GetInitialFont(*args
, **kwargs
)
2715 def GetShowHelp(*args
, **kwargs
):
2717 GetShowHelp(self) -> bool
2719 Returns true if the Help button will be shown (Windows only). The
2720 default value is false.
2722 return _windows_
.FontData_GetShowHelp(*args
, **kwargs
)
2724 def SetAllowSymbols(*args
, **kwargs
):
2726 SetAllowSymbols(self, bool allowSymbols)
2728 Under MS Windows, determines whether symbol fonts can be selected. Has
2729 no effect on other platforms. The default value is true.
2731 return _windows_
.FontData_SetAllowSymbols(*args
, **kwargs
)
2733 def SetChosenFont(*args
, **kwargs
):
2735 SetChosenFont(self, Font font)
2737 Sets the font that will be returned to the user (normally for internal
2740 return _windows_
.FontData_SetChosenFont(*args
, **kwargs
)
2742 def SetColour(*args
, **kwargs
):
2744 SetColour(self, Colour colour)
2746 Sets the colour that will be used for the font foreground colour. The
2747 default colour is black.
2749 return _windows_
.FontData_SetColour(*args
, **kwargs
)
2751 def SetInitialFont(*args
, **kwargs
):
2753 SetInitialFont(self, Font font)
2755 Sets the font that will be initially used by the font dialog.
2757 return _windows_
.FontData_SetInitialFont(*args
, **kwargs
)
2759 def SetRange(*args
, **kwargs
):
2761 SetRange(self, int min, int max)
2763 Sets the valid range for the font point size (Windows only). The
2764 default is 0, 0 (unrestricted range).
2766 return _windows_
.FontData_SetRange(*args
, **kwargs
)
2768 def SetShowHelp(*args
, **kwargs
):
2770 SetShowHelp(self, bool showHelp)
2772 Determines whether the Help button will be displayed in the font
2773 dialog (Windows only). The default value is false.
2775 return _windows_
.FontData_SetShowHelp(*args
, **kwargs
)
2778 class FontDataPtr(FontData
):
2779 def __init__(self
, this
):
2781 if not hasattr(self
,"thisown"): self
.thisown
= 0
2782 self
.__class
__ = FontData
2783 _windows_
.FontData_swigregister(FontDataPtr
)
2785 class FontDialog(Dialog
):
2787 wx.FontDialog allows the user to select a system font and its attributes.
2793 return "<%s.%s; proxy of C++ wxFontDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2794 def __init__(self
, *args
, **kwargs
):
2796 __init__(self, Window parent, FontData data) -> FontDialog
2798 Constructor. Pass a parent window and the `wx.FontData` object to be
2799 used to initialize the dialog controls. Call `ShowModal` to display
2800 the dialog. If ShowModal returns ``wx.ID_OK`` then you can fetch the
2801 results with via the `wx.FontData` returned by `GetFontData`.
2803 newobj
= _windows_
.new_FontDialog(*args
, **kwargs
)
2804 self
.this
= newobj
.this
2807 self
._setOORInfo
(self
)
2809 def GetFontData(*args
, **kwargs
):
2811 GetFontData(self) -> FontData
2813 Returns a reference to the internal `wx.FontData` used by the
2816 return _windows_
.FontDialog_GetFontData(*args
, **kwargs
)
2819 class FontDialogPtr(FontDialog
):
2820 def __init__(self
, this
):
2822 if not hasattr(self
,"thisown"): self
.thisown
= 0
2823 self
.__class
__ = FontDialog
2824 _windows_
.FontDialog_swigregister(FontDialogPtr
)
2826 class MessageDialog(Dialog
):
2828 This class provides a simple dialog that shows a single or multi-line
2829 message, with a choice of OK, Yes, No and/or Cancel buttons.
2832 return "<%s.%s; proxy of C++ wxMessageDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2833 def __init__(self
, *args
, **kwargs
):
2835 __init__(self, Window parent, String message, String caption=MessageBoxCaptionStr,
2836 long style=wxOK|wxCANCEL|wxCENTRE,
2837 Point pos=DefaultPosition) -> MessageDialog
2839 Constructor, use `ShowModal` to display the dialog.
2841 newobj
= _windows_
.new_MessageDialog(*args
, **kwargs
)
2842 self
.this
= newobj
.this
2845 self
._setOORInfo
(self
)
2848 class MessageDialogPtr(MessageDialog
):
2849 def __init__(self
, this
):
2851 if not hasattr(self
,"thisown"): self
.thisown
= 0
2852 self
.__class
__ = MessageDialog
2853 _windows_
.MessageDialog_swigregister(MessageDialogPtr
)
2855 class ProgressDialog(Frame
):
2857 A dialog that shows a short message and a progress bar. Optionally, it
2858 can display an ABORT button.
2861 return "<%s.%s; proxy of C++ wxProgressDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2862 def __init__(self
, *args
, **kwargs
):
2864 __init__(self, String title, String message, int maximum=100, Window parent=None,
2865 int style=wxPD_AUTO_HIDE|wxPD_APP_MODAL) -> ProgressDialog
2867 Constructor. Creates the dialog, displays it and disables user input
2868 for other windows, or, if wx.PD_APP_MODAL flag is not given, for its
2871 newobj
= _windows_
.new_ProgressDialog(*args
, **kwargs
)
2872 self
.this
= newobj
.this
2875 self
._setOORInfo
(self
)
2877 def Update(*args
, **kwargs
):
2879 Update(self, int value, String newmsg=EmptyString) -> bool
2881 Updates the dialog, setting the progress bar to the new value and, if
2882 given changes the message above it. The value given should be less
2883 than or equal to the maximum value given to the constructor and the
2884 dialog is closed if it is equal to the maximum. Returns true unless
2885 the Cancel button has been pressed.
2887 If false is returned, the application can either immediately destroy
2888 the dialog or ask the user for the confirmation and if the abort is
2889 not confirmed the dialog may be resumed with Resume function.
2891 return _windows_
.ProgressDialog_Update(*args
, **kwargs
)
2893 def Resume(*args
, **kwargs
):
2897 Can be used to continue with the dialog, after the user had chosen to
2900 return _windows_
.ProgressDialog_Resume(*args
, **kwargs
)
2903 class ProgressDialogPtr(ProgressDialog
):
2904 def __init__(self
, this
):
2906 if not hasattr(self
,"thisown"): self
.thisown
= 0
2907 self
.__class
__ = ProgressDialog
2908 _windows_
.ProgressDialog_swigregister(ProgressDialogPtr
)
2910 FR_DOWN
= _windows_
.FR_DOWN
2911 FR_WHOLEWORD
= _windows_
.FR_WHOLEWORD
2912 FR_MATCHCASE
= _windows_
.FR_MATCHCASE
2913 FR_REPLACEDIALOG
= _windows_
.FR_REPLACEDIALOG
2914 FR_NOUPDOWN
= _windows_
.FR_NOUPDOWN
2915 FR_NOMATCHCASE
= _windows_
.FR_NOMATCHCASE
2916 FR_NOWHOLEWORD
= _windows_
.FR_NOWHOLEWORD
2917 wxEVT_COMMAND_FIND
= _windows_
.wxEVT_COMMAND_FIND
2918 wxEVT_COMMAND_FIND_NEXT
= _windows_
.wxEVT_COMMAND_FIND_NEXT
2919 wxEVT_COMMAND_FIND_REPLACE
= _windows_
.wxEVT_COMMAND_FIND_REPLACE
2920 wxEVT_COMMAND_FIND_REPLACE_ALL
= _windows_
.wxEVT_COMMAND_FIND_REPLACE_ALL
2921 wxEVT_COMMAND_FIND_CLOSE
= _windows_
.wxEVT_COMMAND_FIND_CLOSE
2922 EVT_FIND
= wx
.PyEventBinder( wxEVT_COMMAND_FIND
, 1 )
2923 EVT_FIND_NEXT
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_NEXT
, 1 )
2924 EVT_FIND_REPLACE
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE
, 1 )
2925 EVT_FIND_REPLACE_ALL
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE_ALL
, 1 )
2926 EVT_FIND_CLOSE
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_CLOSE
, 1 )
2928 # For backwards compatibility. Should they be removed?
2929 EVT_COMMAND_FIND
= EVT_FIND
2930 EVT_COMMAND_FIND_NEXT
= EVT_FIND_NEXT
2931 EVT_COMMAND_FIND_REPLACE
= EVT_FIND_REPLACE
2932 EVT_COMMAND_FIND_REPLACE_ALL
= EVT_FIND_REPLACE_ALL
2933 EVT_COMMAND_FIND_CLOSE
= EVT_FIND_CLOSE
2935 class FindDialogEvent(_core
.CommandEvent
):
2936 """Events for the FindReplaceDialog"""
2938 return "<%s.%s; proxy of C++ wxFindDialogEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2939 def __init__(self
, *args
, **kwargs
):
2941 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0) -> FindDialogEvent
2943 Events for the FindReplaceDialog
2945 newobj
= _windows_
.new_FindDialogEvent(*args
, **kwargs
)
2946 self
.this
= newobj
.this
2949 def GetFlags(*args
, **kwargs
):
2951 GetFlags(self) -> int
2953 Get the currently selected flags: this is the combination of
2954 wx.FR_DOWN, wx.FR_WHOLEWORD and wx.FR_MATCHCASE flags.
2956 return _windows_
.FindDialogEvent_GetFlags(*args
, **kwargs
)
2958 def GetFindString(*args
, **kwargs
):
2960 GetFindString(self) -> String
2962 Return the string to find (never empty).
2964 return _windows_
.FindDialogEvent_GetFindString(*args
, **kwargs
)
2966 def GetReplaceString(*args
, **kwargs
):
2968 GetReplaceString(self) -> String
2970 Return the string to replace the search string with (only for replace
2971 and replace all events).
2973 return _windows_
.FindDialogEvent_GetReplaceString(*args
, **kwargs
)
2975 def GetDialog(*args
, **kwargs
):
2977 GetDialog(self) -> FindReplaceDialog
2979 Return the pointer to the dialog which generated this event.
2981 return _windows_
.FindDialogEvent_GetDialog(*args
, **kwargs
)
2983 def SetFlags(*args
, **kwargs
):
2984 """SetFlags(self, int flags)"""
2985 return _windows_
.FindDialogEvent_SetFlags(*args
, **kwargs
)
2987 def SetFindString(*args
, **kwargs
):
2988 """SetFindString(self, String str)"""
2989 return _windows_
.FindDialogEvent_SetFindString(*args
, **kwargs
)
2991 def SetReplaceString(*args
, **kwargs
):
2992 """SetReplaceString(self, String str)"""
2993 return _windows_
.FindDialogEvent_SetReplaceString(*args
, **kwargs
)
2996 class FindDialogEventPtr(FindDialogEvent
):
2997 def __init__(self
, this
):
2999 if not hasattr(self
,"thisown"): self
.thisown
= 0
3000 self
.__class
__ = FindDialogEvent
3001 _windows_
.FindDialogEvent_swigregister(FindDialogEventPtr
)
3003 class FindReplaceData(_core
.Object
):
3005 wx.FindReplaceData holds the data for wx.FindReplaceDialog. It is used
3006 to initialize the dialog with the default values and will keep the
3007 last values from the dialog when it is closed. It is also updated each
3008 time a `wx.FindDialogEvent` is generated so instead of using the
3009 `wx.FindDialogEvent` methods you can also directly query this object.
3011 Note that all SetXXX() methods may only be called before showing the
3012 dialog and calling them has no effect later.
3015 return "<%s.%s; proxy of C++ wxFindReplaceData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3016 def __init__(self
, *args
, **kwargs
):
3018 __init__(self, int flags=0) -> FindReplaceData
3020 Constuctor initializes the flags to default value (0).
3022 newobj
= _windows_
.new_FindReplaceData(*args
, **kwargs
)
3023 self
.this
= newobj
.this
3026 def __del__(self
, destroy
=_windows_
.delete_FindReplaceData
):
3029 if self
.thisown
: destroy(self
)
3032 def GetFindString(*args
, **kwargs
):
3034 GetFindString(self) -> String
3036 Get the string to find.
3038 return _windows_
.FindReplaceData_GetFindString(*args
, **kwargs
)
3040 def GetReplaceString(*args
, **kwargs
):
3042 GetReplaceString(self) -> String
3044 Get the replacement string.
3046 return _windows_
.FindReplaceData_GetReplaceString(*args
, **kwargs
)
3048 def GetFlags(*args
, **kwargs
):
3050 GetFlags(self) -> int
3052 Get the combination of flag values.
3054 return _windows_
.FindReplaceData_GetFlags(*args
, **kwargs
)
3056 def SetFlags(*args
, **kwargs
):
3058 SetFlags(self, int flags)
3060 Set the flags to use to initialize the controls of the dialog.
3062 return _windows_
.FindReplaceData_SetFlags(*args
, **kwargs
)
3064 def SetFindString(*args
, **kwargs
):
3066 SetFindString(self, String str)
3068 Set the string to find (used as initial value by the dialog).
3070 return _windows_
.FindReplaceData_SetFindString(*args
, **kwargs
)
3072 def SetReplaceString(*args
, **kwargs
):
3074 SetReplaceString(self, String str)
3076 Set the replacement string (used as initial value by the dialog).
3078 return _windows_
.FindReplaceData_SetReplaceString(*args
, **kwargs
)
3081 class FindReplaceDataPtr(FindReplaceData
):
3082 def __init__(self
, this
):
3084 if not hasattr(self
,"thisown"): self
.thisown
= 0
3085 self
.__class
__ = FindReplaceData
3086 _windows_
.FindReplaceData_swigregister(FindReplaceDataPtr
)
3088 class FindReplaceDialog(Dialog
):
3090 wx.FindReplaceDialog is a standard modeless dialog which is used to
3091 allow the user to search for some text (and possibly replace it with
3092 something else). The actual searching is supposed to be done in the
3093 owner window which is the parent of this dialog. Note that it means
3094 that unlike for the other standard dialogs this one must have a parent
3095 window. Also note that there is no way to use this dialog in a modal
3096 way; it is always, by design and implementation, modeless.
3099 return "<%s.%s; proxy of C++ wxFindReplaceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3100 def __init__(self
, *args
, **kwargs
):
3102 __init__(self, Window parent, FindReplaceData data, String title,
3103 int style=0) -> FindReplaceDialog
3105 Create a FindReplaceDialog. The parent and data parameters must be
3106 non-None. Use Show to display the dialog.
3108 newobj
= _windows_
.new_FindReplaceDialog(*args
, **kwargs
)
3109 self
.this
= newobj
.this
3112 self
._setOORInfo
(self
)
3114 def Create(*args
, **kwargs
):
3116 Create(self, Window parent, FindReplaceData data, String title,
3117 int style=0) -> bool
3119 Create the dialog, for 2-phase create.
3121 return _windows_
.FindReplaceDialog_Create(*args
, **kwargs
)
3123 def GetData(*args
, **kwargs
):
3125 GetData(self) -> FindReplaceData
3127 Get the FindReplaceData object used by this dialog.
3129 return _windows_
.FindReplaceDialog_GetData(*args
, **kwargs
)
3131 def SetData(*args
, **kwargs
):
3133 SetData(self, FindReplaceData data)
3135 Set the FindReplaceData object used by this dialog.
3137 return _windows_
.FindReplaceDialog_SetData(*args
, **kwargs
)
3140 class FindReplaceDialogPtr(FindReplaceDialog
):
3141 def __init__(self
, this
):
3143 if not hasattr(self
,"thisown"): self
.thisown
= 0
3144 self
.__class
__ = FindReplaceDialog
3145 _windows_
.FindReplaceDialog_swigregister(FindReplaceDialogPtr
)
3147 def PreFindReplaceDialog(*args
, **kwargs
):
3149 PreFindReplaceDialog() -> FindReplaceDialog
3151 Precreate a FindReplaceDialog for 2-phase creation
3153 val
= _windows_
.new_PreFindReplaceDialog(*args
, **kwargs
)
3157 #---------------------------------------------------------------------------
3159 IDM_WINDOWTILE
= _windows_
.IDM_WINDOWTILE
3160 IDM_WINDOWTILEHOR
= _windows_
.IDM_WINDOWTILEHOR
3161 IDM_WINDOWCASCADE
= _windows_
.IDM_WINDOWCASCADE
3162 IDM_WINDOWICONS
= _windows_
.IDM_WINDOWICONS
3163 IDM_WINDOWNEXT
= _windows_
.IDM_WINDOWNEXT
3164 IDM_WINDOWTILEVERT
= _windows_
.IDM_WINDOWTILEVERT
3165 FIRST_MDI_CHILD
= _windows_
.FIRST_MDI_CHILD
3166 LAST_MDI_CHILD
= _windows_
.LAST_MDI_CHILD
3167 class MDIParentFrame(Frame
):
3169 return "<%s.%s; proxy of C++ wxMDIParentFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3170 def __init__(self
, *args
, **kwargs
):
3172 __init__(self, Window parent, int id=-1, String title=EmptyString,
3173 Point pos=DefaultPosition, Size size=DefaultSize,
3174 long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
3175 String name=FrameNameStr) -> MDIParentFrame
3177 newobj
= _windows_
.new_MDIParentFrame(*args
, **kwargs
)
3178 self
.this
= newobj
.this
3181 self
._setOORInfo
(self
)
3183 def Create(*args
, **kwargs
):
3185 Create(self, Window parent, int id=-1, String title=EmptyString,
3186 Point pos=DefaultPosition, Size size=DefaultSize,
3187 long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
3188 String name=FrameNameStr) -> bool
3190 return _windows_
.MDIParentFrame_Create(*args
, **kwargs
)
3192 def ActivateNext(*args
, **kwargs
):
3193 """ActivateNext(self)"""
3194 return _windows_
.MDIParentFrame_ActivateNext(*args
, **kwargs
)
3196 def ActivatePrevious(*args
, **kwargs
):
3197 """ActivatePrevious(self)"""
3198 return _windows_
.MDIParentFrame_ActivatePrevious(*args
, **kwargs
)
3200 def ArrangeIcons(*args
, **kwargs
):
3201 """ArrangeIcons(self)"""
3202 return _windows_
.MDIParentFrame_ArrangeIcons(*args
, **kwargs
)
3204 def Cascade(*args
, **kwargs
):
3206 return _windows_
.MDIParentFrame_Cascade(*args
, **kwargs
)
3208 def GetActiveChild(*args
, **kwargs
):
3209 """GetActiveChild(self) -> MDIChildFrame"""
3210 return _windows_
.MDIParentFrame_GetActiveChild(*args
, **kwargs
)
3212 def GetClientWindow(*args
, **kwargs
):
3213 """GetClientWindow(self) -> MDIClientWindow"""
3214 return _windows_
.MDIParentFrame_GetClientWindow(*args
, **kwargs
)
3216 def GetToolBar(*args
, **kwargs
):
3217 """GetToolBar(self) -> Window"""
3218 return _windows_
.MDIParentFrame_GetToolBar(*args
, **kwargs
)
3220 def Tile(*args
, **kwargs
):
3222 return _windows_
.MDIParentFrame_Tile(*args
, **kwargs
)
3225 class MDIParentFramePtr(MDIParentFrame
):
3226 def __init__(self
, this
):
3228 if not hasattr(self
,"thisown"): self
.thisown
= 0
3229 self
.__class
__ = MDIParentFrame
3230 _windows_
.MDIParentFrame_swigregister(MDIParentFramePtr
)
3232 def PreMDIParentFrame(*args
, **kwargs
):
3233 """PreMDIParentFrame() -> MDIParentFrame"""
3234 val
= _windows_
.new_PreMDIParentFrame(*args
, **kwargs
)
3238 class MDIChildFrame(Frame
):
3240 return "<%s.%s; proxy of C++ wxMDIChildFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3241 def __init__(self
, *args
, **kwargs
):
3243 __init__(self, MDIParentFrame parent, int id=-1, String title=EmptyString,
3244 Point pos=DefaultPosition, Size size=DefaultSize,
3245 long style=DEFAULT_FRAME_STYLE,
3246 String name=FrameNameStr) -> MDIChildFrame
3248 newobj
= _windows_
.new_MDIChildFrame(*args
, **kwargs
)
3249 self
.this
= newobj
.this
3252 self
._setOORInfo
(self
)
3254 def Create(*args
, **kwargs
):
3256 Create(self, MDIParentFrame parent, int id=-1, String title=EmptyString,
3257 Point pos=DefaultPosition, Size size=DefaultSize,
3258 long style=DEFAULT_FRAME_STYLE,
3259 String name=FrameNameStr) -> bool
3261 return _windows_
.MDIChildFrame_Create(*args
, **kwargs
)
3263 def Activate(*args
, **kwargs
):
3264 """Activate(self)"""
3265 return _windows_
.MDIChildFrame_Activate(*args
, **kwargs
)
3267 def Maximize(*args
, **kwargs
):
3268 """Maximize(self, bool maximize)"""
3269 return _windows_
.MDIChildFrame_Maximize(*args
, **kwargs
)
3271 def Restore(*args
, **kwargs
):
3273 return _windows_
.MDIChildFrame_Restore(*args
, **kwargs
)
3276 class MDIChildFramePtr(MDIChildFrame
):
3277 def __init__(self
, this
):
3279 if not hasattr(self
,"thisown"): self
.thisown
= 0
3280 self
.__class
__ = MDIChildFrame
3281 _windows_
.MDIChildFrame_swigregister(MDIChildFramePtr
)
3283 def PreMDIChildFrame(*args
, **kwargs
):
3284 """PreMDIChildFrame() -> MDIChildFrame"""
3285 val
= _windows_
.new_PreMDIChildFrame(*args
, **kwargs
)
3289 class MDIClientWindow(_core
.Window
):
3291 return "<%s.%s; proxy of C++ wxMDIClientWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3292 def __init__(self
, *args
, **kwargs
):
3293 """__init__(self, MDIParentFrame parent, long style=0) -> MDIClientWindow"""
3294 newobj
= _windows_
.new_MDIClientWindow(*args
, **kwargs
)
3295 self
.this
= newobj
.this
3298 self
._setOORInfo
(self
)
3300 def Create(*args
, **kwargs
):
3301 """Create(self, MDIParentFrame parent, long style=0) -> bool"""
3302 return _windows_
.MDIClientWindow_Create(*args
, **kwargs
)
3305 class MDIClientWindowPtr(MDIClientWindow
):
3306 def __init__(self
, this
):
3308 if not hasattr(self
,"thisown"): self
.thisown
= 0
3309 self
.__class
__ = MDIClientWindow
3310 _windows_
.MDIClientWindow_swigregister(MDIClientWindowPtr
)
3312 def PreMDIClientWindow(*args
, **kwargs
):
3313 """PreMDIClientWindow() -> MDIClientWindow"""
3314 val
= _windows_
.new_PreMDIClientWindow(*args
, **kwargs
)
3318 #---------------------------------------------------------------------------
3320 class PyWindow(_core
.Window
):
3322 return "<%s.%s; proxy of C++ wxPyWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3323 def __init__(self
, *args
, **kwargs
):
3325 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3326 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyWindow
3328 newobj
= _windows_
.new_PyWindow(*args
, **kwargs
)
3329 self
.this
= newobj
.this
3332 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyWindow
)
3334 def _setCallbackInfo(*args
, **kwargs
):
3335 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3336 return _windows_
.PyWindow__setCallbackInfo(*args
, **kwargs
)
3338 def SetBestSize(*args
, **kwargs
):
3339 """SetBestSize(self, Size size)"""
3340 return _windows_
.PyWindow_SetBestSize(*args
, **kwargs
)
3342 def base_DoMoveWindow(*args
, **kwargs
):
3343 """base_DoMoveWindow(self, int x, int y, int width, int height)"""
3344 return _windows_
.PyWindow_base_DoMoveWindow(*args
, **kwargs
)
3346 def base_DoSetSize(*args
, **kwargs
):
3347 """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3348 return _windows_
.PyWindow_base_DoSetSize(*args
, **kwargs
)
3350 def base_DoSetClientSize(*args
, **kwargs
):
3351 """base_DoSetClientSize(self, int width, int height)"""
3352 return _windows_
.PyWindow_base_DoSetClientSize(*args
, **kwargs
)
3354 def base_DoSetVirtualSize(*args
, **kwargs
):
3355 """base_DoSetVirtualSize(self, int x, int y)"""
3356 return _windows_
.PyWindow_base_DoSetVirtualSize(*args
, **kwargs
)
3358 def base_DoGetSize(*args
, **kwargs
):
3359 """base_DoGetSize() -> (width, height)"""
3360 return _windows_
.PyWindow_base_DoGetSize(*args
, **kwargs
)
3362 def base_DoGetClientSize(*args
, **kwargs
):
3363 """base_DoGetClientSize() -> (width, height)"""
3364 return _windows_
.PyWindow_base_DoGetClientSize(*args
, **kwargs
)
3366 def base_DoGetPosition(*args
, **kwargs
):
3367 """base_DoGetPosition() -> (x,y)"""
3368 return _windows_
.PyWindow_base_DoGetPosition(*args
, **kwargs
)
3370 def base_DoGetVirtualSize(*args
, **kwargs
):
3371 """base_DoGetVirtualSize(self) -> Size"""
3372 return _windows_
.PyWindow_base_DoGetVirtualSize(*args
, **kwargs
)
3374 def base_DoGetBestSize(*args
, **kwargs
):
3375 """base_DoGetBestSize(self) -> Size"""
3376 return _windows_
.PyWindow_base_DoGetBestSize(*args
, **kwargs
)
3378 def base_InitDialog(*args
, **kwargs
):
3379 """base_InitDialog(self)"""
3380 return _windows_
.PyWindow_base_InitDialog(*args
, **kwargs
)
3382 def base_TransferDataToWindow(*args
, **kwargs
):
3383 """base_TransferDataToWindow(self) -> bool"""
3384 return _windows_
.PyWindow_base_TransferDataToWindow(*args
, **kwargs
)
3386 def base_TransferDataFromWindow(*args
, **kwargs
):
3387 """base_TransferDataFromWindow(self) -> bool"""
3388 return _windows_
.PyWindow_base_TransferDataFromWindow(*args
, **kwargs
)
3390 def base_Validate(*args
, **kwargs
):
3391 """base_Validate(self) -> bool"""
3392 return _windows_
.PyWindow_base_Validate(*args
, **kwargs
)
3394 def base_AcceptsFocus(*args
, **kwargs
):
3395 """base_AcceptsFocus(self) -> bool"""
3396 return _windows_
.PyWindow_base_AcceptsFocus(*args
, **kwargs
)
3398 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
3399 """base_AcceptsFocusFromKeyboard(self) -> bool"""
3400 return _windows_
.PyWindow_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3402 def base_GetMaxSize(*args
, **kwargs
):
3403 """base_GetMaxSize(self) -> Size"""
3404 return _windows_
.PyWindow_base_GetMaxSize(*args
, **kwargs
)
3406 def base_AddChild(*args
, **kwargs
):
3407 """base_AddChild(self, Window child)"""
3408 return _windows_
.PyWindow_base_AddChild(*args
, **kwargs
)
3410 def base_RemoveChild(*args
, **kwargs
):
3411 """base_RemoveChild(self, Window child)"""
3412 return _windows_
.PyWindow_base_RemoveChild(*args
, **kwargs
)
3414 def base_ShouldInheritColours(*args
, **kwargs
):
3415 """base_ShouldInheritColours(self) -> bool"""
3416 return _windows_
.PyWindow_base_ShouldInheritColours(*args
, **kwargs
)
3418 def base_ApplyParentThemeBackground(*args
, **kwargs
):
3419 """base_ApplyParentThemeBackground(self, Colour c)"""
3420 return _windows_
.PyWindow_base_ApplyParentThemeBackground(*args
, **kwargs
)
3422 def base_GetDefaultAttributes(*args
, **kwargs
):
3423 """base_GetDefaultAttributes(self) -> VisualAttributes"""
3424 return _windows_
.PyWindow_base_GetDefaultAttributes(*args
, **kwargs
)
3427 class PyWindowPtr(PyWindow
):
3428 def __init__(self
, this
):
3430 if not hasattr(self
,"thisown"): self
.thisown
= 0
3431 self
.__class
__ = PyWindow
3432 _windows_
.PyWindow_swigregister(PyWindowPtr
)
3434 def PrePyWindow(*args
, **kwargs
):
3435 """PrePyWindow() -> PyWindow"""
3436 val
= _windows_
.new_PrePyWindow(*args
, **kwargs
)
3440 class PyPanel(Panel
):
3442 return "<%s.%s; proxy of C++ wxPyPanel instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3443 def __init__(self
, *args
, **kwargs
):
3445 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3446 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyPanel
3448 newobj
= _windows_
.new_PyPanel(*args
, **kwargs
)
3449 self
.this
= newobj
.this
3452 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyPanel
)
3454 def _setCallbackInfo(*args
, **kwargs
):
3455 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3456 return _windows_
.PyPanel__setCallbackInfo(*args
, **kwargs
)
3458 def SetBestSize(*args
, **kwargs
):
3459 """SetBestSize(self, Size size)"""
3460 return _windows_
.PyPanel_SetBestSize(*args
, **kwargs
)
3462 def base_DoMoveWindow(*args
, **kwargs
):
3463 """base_DoMoveWindow(self, int x, int y, int width, int height)"""
3464 return _windows_
.PyPanel_base_DoMoveWindow(*args
, **kwargs
)
3466 def base_DoSetSize(*args
, **kwargs
):
3467 """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3468 return _windows_
.PyPanel_base_DoSetSize(*args
, **kwargs
)
3470 def base_DoSetClientSize(*args
, **kwargs
):
3471 """base_DoSetClientSize(self, int width, int height)"""
3472 return _windows_
.PyPanel_base_DoSetClientSize(*args
, **kwargs
)
3474 def base_DoSetVirtualSize(*args
, **kwargs
):
3475 """base_DoSetVirtualSize(self, int x, int y)"""
3476 return _windows_
.PyPanel_base_DoSetVirtualSize(*args
, **kwargs
)
3478 def base_DoGetSize(*args
, **kwargs
):
3479 """base_DoGetSize() -> (width, height)"""
3480 return _windows_
.PyPanel_base_DoGetSize(*args
, **kwargs
)
3482 def base_DoGetClientSize(*args
, **kwargs
):
3483 """base_DoGetClientSize() -> (width, height)"""
3484 return _windows_
.PyPanel_base_DoGetClientSize(*args
, **kwargs
)
3486 def base_DoGetPosition(*args
, **kwargs
):
3487 """base_DoGetPosition() -> (x,y)"""
3488 return _windows_
.PyPanel_base_DoGetPosition(*args
, **kwargs
)
3490 def base_DoGetVirtualSize(*args
, **kwargs
):
3491 """base_DoGetVirtualSize(self) -> Size"""
3492 return _windows_
.PyPanel_base_DoGetVirtualSize(*args
, **kwargs
)
3494 def base_DoGetBestSize(*args
, **kwargs
):
3495 """base_DoGetBestSize(self) -> Size"""
3496 return _windows_
.PyPanel_base_DoGetBestSize(*args
, **kwargs
)
3498 def base_InitDialog(*args
, **kwargs
):
3499 """base_InitDialog(self)"""
3500 return _windows_
.PyPanel_base_InitDialog(*args
, **kwargs
)
3502 def base_TransferDataToWindow(*args
, **kwargs
):
3503 """base_TransferDataToWindow(self) -> bool"""
3504 return _windows_
.PyPanel_base_TransferDataToWindow(*args
, **kwargs
)
3506 def base_TransferDataFromWindow(*args
, **kwargs
):
3507 """base_TransferDataFromWindow(self) -> bool"""
3508 return _windows_
.PyPanel_base_TransferDataFromWindow(*args
, **kwargs
)
3510 def base_Validate(*args
, **kwargs
):
3511 """base_Validate(self) -> bool"""
3512 return _windows_
.PyPanel_base_Validate(*args
, **kwargs
)
3514 def base_AcceptsFocus(*args
, **kwargs
):
3515 """base_AcceptsFocus(self) -> bool"""
3516 return _windows_
.PyPanel_base_AcceptsFocus(*args
, **kwargs
)
3518 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
3519 """base_AcceptsFocusFromKeyboard(self) -> bool"""
3520 return _windows_
.PyPanel_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3522 def base_GetMaxSize(*args
, **kwargs
):
3523 """base_GetMaxSize(self) -> Size"""
3524 return _windows_
.PyPanel_base_GetMaxSize(*args
, **kwargs
)
3526 def base_AddChild(*args
, **kwargs
):
3527 """base_AddChild(self, Window child)"""
3528 return _windows_
.PyPanel_base_AddChild(*args
, **kwargs
)
3530 def base_RemoveChild(*args
, **kwargs
):
3531 """base_RemoveChild(self, Window child)"""
3532 return _windows_
.PyPanel_base_RemoveChild(*args
, **kwargs
)
3534 def base_ShouldInheritColours(*args
, **kwargs
):
3535 """base_ShouldInheritColours(self) -> bool"""
3536 return _windows_
.PyPanel_base_ShouldInheritColours(*args
, **kwargs
)
3538 def base_ApplyParentThemeBackground(*args
, **kwargs
):
3539 """base_ApplyParentThemeBackground(self, Colour c)"""
3540 return _windows_
.PyPanel_base_ApplyParentThemeBackground(*args
, **kwargs
)
3542 def base_GetDefaultAttributes(*args
, **kwargs
):
3543 """base_GetDefaultAttributes(self) -> VisualAttributes"""
3544 return _windows_
.PyPanel_base_GetDefaultAttributes(*args
, **kwargs
)
3547 class PyPanelPtr(PyPanel
):
3548 def __init__(self
, this
):
3550 if not hasattr(self
,"thisown"): self
.thisown
= 0
3551 self
.__class
__ = PyPanel
3552 _windows_
.PyPanel_swigregister(PyPanelPtr
)
3554 def PrePyPanel(*args
, **kwargs
):
3555 """PrePyPanel() -> PyPanel"""
3556 val
= _windows_
.new_PrePyPanel(*args
, **kwargs
)
3560 class PyScrolledWindow(ScrolledWindow
):
3562 return "<%s.%s; proxy of C++ wxPyScrolledWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3563 def __init__(self
, *args
, **kwargs
):
3565 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3566 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyScrolledWindow
3568 newobj
= _windows_
.new_PyScrolledWindow(*args
, **kwargs
)
3569 self
.this
= newobj
.this
3572 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyPanel
)
3574 def _setCallbackInfo(*args
, **kwargs
):
3575 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3576 return _windows_
.PyScrolledWindow__setCallbackInfo(*args
, **kwargs
)
3578 def SetBestSize(*args
, **kwargs
):
3579 """SetBestSize(self, Size size)"""
3580 return _windows_
.PyScrolledWindow_SetBestSize(*args
, **kwargs
)
3582 def base_DoMoveWindow(*args
, **kwargs
):
3583 """base_DoMoveWindow(self, int x, int y, int width, int height)"""
3584 return _windows_
.PyScrolledWindow_base_DoMoveWindow(*args
, **kwargs
)
3586 def base_DoSetSize(*args
, **kwargs
):
3587 """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3588 return _windows_
.PyScrolledWindow_base_DoSetSize(*args
, **kwargs
)
3590 def base_DoSetClientSize(*args
, **kwargs
):
3591 """base_DoSetClientSize(self, int width, int height)"""
3592 return _windows_
.PyScrolledWindow_base_DoSetClientSize(*args
, **kwargs
)
3594 def base_DoSetVirtualSize(*args
, **kwargs
):
3595 """base_DoSetVirtualSize(self, int x, int y)"""
3596 return _windows_
.PyScrolledWindow_base_DoSetVirtualSize(*args
, **kwargs
)
3598 def base_DoGetSize(*args
, **kwargs
):
3599 """base_DoGetSize() -> (width, height)"""
3600 return _windows_
.PyScrolledWindow_base_DoGetSize(*args
, **kwargs
)
3602 def base_DoGetClientSize(*args
, **kwargs
):
3603 """base_DoGetClientSize() -> (width, height)"""
3604 return _windows_
.PyScrolledWindow_base_DoGetClientSize(*args
, **kwargs
)
3606 def base_DoGetPosition(*args
, **kwargs
):
3607 """base_DoGetPosition() -> (x,y)"""
3608 return _windows_
.PyScrolledWindow_base_DoGetPosition(*args
, **kwargs
)
3610 def base_DoGetVirtualSize(*args
, **kwargs
):
3611 """base_DoGetVirtualSize(self) -> Size"""
3612 return _windows_
.PyScrolledWindow_base_DoGetVirtualSize(*args
, **kwargs
)
3614 def base_DoGetBestSize(*args
, **kwargs
):
3615 """base_DoGetBestSize(self) -> Size"""
3616 return _windows_
.PyScrolledWindow_base_DoGetBestSize(*args
, **kwargs
)
3618 def base_InitDialog(*args
, **kwargs
):
3619 """base_InitDialog(self)"""
3620 return _windows_
.PyScrolledWindow_base_InitDialog(*args
, **kwargs
)
3622 def base_TransferDataToWindow(*args
, **kwargs
):
3623 """base_TransferDataToWindow(self) -> bool"""
3624 return _windows_
.PyScrolledWindow_base_TransferDataToWindow(*args
, **kwargs
)
3626 def base_TransferDataFromWindow(*args
, **kwargs
):
3627 """base_TransferDataFromWindow(self) -> bool"""
3628 return _windows_
.PyScrolledWindow_base_TransferDataFromWindow(*args
, **kwargs
)
3630 def base_Validate(*args
, **kwargs
):
3631 """base_Validate(self) -> bool"""
3632 return _windows_
.PyScrolledWindow_base_Validate(*args
, **kwargs
)
3634 def base_AcceptsFocus(*args
, **kwargs
):
3635 """base_AcceptsFocus(self) -> bool"""
3636 return _windows_
.PyScrolledWindow_base_AcceptsFocus(*args
, **kwargs
)
3638 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
3639 """base_AcceptsFocusFromKeyboard(self) -> bool"""
3640 return _windows_
.PyScrolledWindow_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3642 def base_GetMaxSize(*args
, **kwargs
):
3643 """base_GetMaxSize(self) -> Size"""
3644 return _windows_
.PyScrolledWindow_base_GetMaxSize(*args
, **kwargs
)
3646 def base_AddChild(*args
, **kwargs
):
3647 """base_AddChild(self, Window child)"""
3648 return _windows_
.PyScrolledWindow_base_AddChild(*args
, **kwargs
)
3650 def base_RemoveChild(*args
, **kwargs
):
3651 """base_RemoveChild(self, Window child)"""
3652 return _windows_
.PyScrolledWindow_base_RemoveChild(*args
, **kwargs
)
3654 def base_ShouldInheritColours(*args
, **kwargs
):
3655 """base_ShouldInheritColours(self) -> bool"""
3656 return _windows_
.PyScrolledWindow_base_ShouldInheritColours(*args
, **kwargs
)
3658 def base_ApplyParentThemeBackground(*args
, **kwargs
):
3659 """base_ApplyParentThemeBackground(self, Colour c)"""
3660 return _windows_
.PyScrolledWindow_base_ApplyParentThemeBackground(*args
, **kwargs
)
3662 def base_GetDefaultAttributes(*args
, **kwargs
):
3663 """base_GetDefaultAttributes(self) -> VisualAttributes"""
3664 return _windows_
.PyScrolledWindow_base_GetDefaultAttributes(*args
, **kwargs
)
3667 class PyScrolledWindowPtr(PyScrolledWindow
):
3668 def __init__(self
, this
):
3670 if not hasattr(self
,"thisown"): self
.thisown
= 0
3671 self
.__class
__ = PyScrolledWindow
3672 _windows_
.PyScrolledWindow_swigregister(PyScrolledWindowPtr
)
3674 def PrePyScrolledWindow(*args
, **kwargs
):
3675 """PrePyScrolledWindow() -> PyScrolledWindow"""
3676 val
= _windows_
.new_PrePyScrolledWindow(*args
, **kwargs
)
3680 #---------------------------------------------------------------------------
3682 PRINT_MODE_NONE
= _windows_
.PRINT_MODE_NONE
3683 PRINT_MODE_PREVIEW
= _windows_
.PRINT_MODE_PREVIEW
3684 PRINT_MODE_FILE
= _windows_
.PRINT_MODE_FILE
3685 PRINT_MODE_PRINTER
= _windows_
.PRINT_MODE_PRINTER
3686 PRINT_MODE_STREAM
= _windows_
.PRINT_MODE_STREAM
3687 class PrintData(_core
.Object
):
3689 return "<%s.%s; proxy of C++ wxPrintData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3690 def __init__(self
, *args
):
3692 __init__(self) -> PrintData
3693 __init__(self, PrintData data) -> PrintData
3695 newobj
= _windows_
.new_PrintData(*args
)
3696 self
.this
= newobj
.this
3699 def __del__(self
, destroy
=_windows_
.delete_PrintData
):
3702 if self
.thisown
: destroy(self
)
3705 def GetNoCopies(*args
, **kwargs
):
3706 """GetNoCopies(self) -> int"""
3707 return _windows_
.PrintData_GetNoCopies(*args
, **kwargs
)
3709 def GetCollate(*args
, **kwargs
):
3710 """GetCollate(self) -> bool"""
3711 return _windows_
.PrintData_GetCollate(*args
, **kwargs
)
3713 def GetOrientation(*args
, **kwargs
):
3714 """GetOrientation(self) -> int"""
3715 return _windows_
.PrintData_GetOrientation(*args
, **kwargs
)
3717 def Ok(*args
, **kwargs
):
3718 """Ok(self) -> bool"""
3719 return _windows_
.PrintData_Ok(*args
, **kwargs
)
3721 def GetPrinterName(*args
, **kwargs
):
3722 """GetPrinterName(self) -> String"""
3723 return _windows_
.PrintData_GetPrinterName(*args
, **kwargs
)
3725 def GetColour(*args
, **kwargs
):
3726 """GetColour(self) -> bool"""
3727 return _windows_
.PrintData_GetColour(*args
, **kwargs
)
3729 def GetDuplex(*args
, **kwargs
):
3730 """GetDuplex(self) -> int"""
3731 return _windows_
.PrintData_GetDuplex(*args
, **kwargs
)
3733 def GetPaperId(*args
, **kwargs
):
3734 """GetPaperId(self) -> int"""
3735 return _windows_
.PrintData_GetPaperId(*args
, **kwargs
)
3737 def GetPaperSize(*args
, **kwargs
):
3738 """GetPaperSize(self) -> Size"""
3739 return _windows_
.PrintData_GetPaperSize(*args
, **kwargs
)
3741 def GetQuality(*args
, **kwargs
):
3742 """GetQuality(self) -> int"""
3743 return _windows_
.PrintData_GetQuality(*args
, **kwargs
)
3745 def SetNoCopies(*args
, **kwargs
):
3746 """SetNoCopies(self, int v)"""
3747 return _windows_
.PrintData_SetNoCopies(*args
, **kwargs
)
3749 def SetCollate(*args
, **kwargs
):
3750 """SetCollate(self, bool flag)"""
3751 return _windows_
.PrintData_SetCollate(*args
, **kwargs
)
3753 def SetOrientation(*args
, **kwargs
):
3754 """SetOrientation(self, int orient)"""
3755 return _windows_
.PrintData_SetOrientation(*args
, **kwargs
)
3757 def SetPrinterName(*args
, **kwargs
):
3758 """SetPrinterName(self, String name)"""
3759 return _windows_
.PrintData_SetPrinterName(*args
, **kwargs
)
3761 def SetColour(*args
, **kwargs
):
3762 """SetColour(self, bool colour)"""
3763 return _windows_
.PrintData_SetColour(*args
, **kwargs
)
3765 def SetDuplex(*args
, **kwargs
):
3766 """SetDuplex(self, int duplex)"""
3767 return _windows_
.PrintData_SetDuplex(*args
, **kwargs
)
3769 def SetPaperId(*args
, **kwargs
):
3770 """SetPaperId(self, int sizeId)"""
3771 return _windows_
.PrintData_SetPaperId(*args
, **kwargs
)
3773 def SetPaperSize(*args
, **kwargs
):
3774 """SetPaperSize(self, Size sz)"""
3775 return _windows_
.PrintData_SetPaperSize(*args
, **kwargs
)
3777 def SetQuality(*args
, **kwargs
):
3778 """SetQuality(self, int quality)"""
3779 return _windows_
.PrintData_SetQuality(*args
, **kwargs
)
3781 def GetPrinterCommand(*args
, **kwargs
):
3782 """GetPrinterCommand(self) -> String"""
3783 return _windows_
.PrintData_GetPrinterCommand(*args
, **kwargs
)
3785 def GetPrinterOptions(*args
, **kwargs
):
3786 """GetPrinterOptions(self) -> String"""
3787 return _windows_
.PrintData_GetPrinterOptions(*args
, **kwargs
)
3789 def GetPreviewCommand(*args
, **kwargs
):
3790 """GetPreviewCommand(self) -> String"""
3791 return _windows_
.PrintData_GetPreviewCommand(*args
, **kwargs
)
3793 def GetFilename(*args
, **kwargs
):
3794 """GetFilename(self) -> String"""
3795 return _windows_
.PrintData_GetFilename(*args
, **kwargs
)
3797 def GetFontMetricPath(*args
, **kwargs
):
3798 """GetFontMetricPath(self) -> String"""
3799 return _windows_
.PrintData_GetFontMetricPath(*args
, **kwargs
)
3801 def GetPrinterScaleX(*args
, **kwargs
):
3802 """GetPrinterScaleX(self) -> double"""
3803 return _windows_
.PrintData_GetPrinterScaleX(*args
, **kwargs
)
3805 def GetPrinterScaleY(*args
, **kwargs
):
3806 """GetPrinterScaleY(self) -> double"""
3807 return _windows_
.PrintData_GetPrinterScaleY(*args
, **kwargs
)
3809 def GetPrinterTranslateX(*args
, **kwargs
):
3810 """GetPrinterTranslateX(self) -> long"""
3811 return _windows_
.PrintData_GetPrinterTranslateX(*args
, **kwargs
)
3813 def GetPrinterTranslateY(*args
, **kwargs
):
3814 """GetPrinterTranslateY(self) -> long"""
3815 return _windows_
.PrintData_GetPrinterTranslateY(*args
, **kwargs
)
3817 def GetPrintMode(*args
, **kwargs
):
3818 """GetPrintMode(self) -> int"""
3819 return _windows_
.PrintData_GetPrintMode(*args
, **kwargs
)
3821 def SetPrinterCommand(*args
, **kwargs
):
3822 """SetPrinterCommand(self, String command)"""
3823 return _windows_
.PrintData_SetPrinterCommand(*args
, **kwargs
)
3825 def SetPrinterOptions(*args
, **kwargs
):
3826 """SetPrinterOptions(self, String options)"""
3827 return _windows_
.PrintData_SetPrinterOptions(*args
, **kwargs
)
3829 def SetPreviewCommand(*args
, **kwargs
):
3830 """SetPreviewCommand(self, String command)"""
3831 return _windows_
.PrintData_SetPreviewCommand(*args
, **kwargs
)
3833 def SetFilename(*args
, **kwargs
):
3834 """SetFilename(self, String filename)"""
3835 return _windows_
.PrintData_SetFilename(*args
, **kwargs
)
3837 def SetFontMetricPath(*args
, **kwargs
):
3838 """SetFontMetricPath(self, String path)"""
3839 return _windows_
.PrintData_SetFontMetricPath(*args
, **kwargs
)
3841 def SetPrinterScaleX(*args
, **kwargs
):
3842 """SetPrinterScaleX(self, double x)"""
3843 return _windows_
.PrintData_SetPrinterScaleX(*args
, **kwargs
)
3845 def SetPrinterScaleY(*args
, **kwargs
):
3846 """SetPrinterScaleY(self, double y)"""
3847 return _windows_
.PrintData_SetPrinterScaleY(*args
, **kwargs
)
3849 def SetPrinterScaling(*args
, **kwargs
):
3850 """SetPrinterScaling(self, double x, double y)"""
3851 return _windows_
.PrintData_SetPrinterScaling(*args
, **kwargs
)
3853 def SetPrinterTranslateX(*args
, **kwargs
):
3854 """SetPrinterTranslateX(self, long x)"""
3855 return _windows_
.PrintData_SetPrinterTranslateX(*args
, **kwargs
)
3857 def SetPrinterTranslateY(*args
, **kwargs
):
3858 """SetPrinterTranslateY(self, long y)"""
3859 return _windows_
.PrintData_SetPrinterTranslateY(*args
, **kwargs
)
3861 def SetPrinterTranslation(*args
, **kwargs
):
3862 """SetPrinterTranslation(self, long x, long y)"""
3863 return _windows_
.PrintData_SetPrinterTranslation(*args
, **kwargs
)
3865 def SetPrintMode(*args
, **kwargs
):
3866 """SetPrintMode(self, int printMode)"""
3867 return _windows_
.PrintData_SetPrintMode(*args
, **kwargs
)
3869 def GetOutputStream(*args
, **kwargs
):
3870 """GetOutputStream(self) -> OutputStream"""
3871 return _windows_
.PrintData_GetOutputStream(*args
, **kwargs
)
3873 def SetOutputStream(*args
, **kwargs
):
3874 """SetOutputStream(self, OutputStream outputstream)"""
3875 return _windows_
.PrintData_SetOutputStream(*args
, **kwargs
)
3877 def __nonzero__(self
): return self
.Ok()
3879 class PrintDataPtr(PrintData
):
3880 def __init__(self
, this
):
3882 if not hasattr(self
,"thisown"): self
.thisown
= 0
3883 self
.__class
__ = PrintData
3884 _windows_
.PrintData_swigregister(PrintDataPtr
)
3885 PrintoutTitleStr
= cvar
.PrintoutTitleStr
3886 PreviewCanvasNameStr
= cvar
.PreviewCanvasNameStr
3888 class PageSetupDialogData(_core
.Object
):
3890 return "<%s.%s; proxy of C++ wxPageSetupDialogData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3891 def __init__(self
, *args
):
3893 __init__(self) -> PageSetupDialogData
3894 __init__(self, PageSetupDialogData data) -> PageSetupDialogData
3896 newobj
= _windows_
.new_PageSetupDialogData(*args
)
3897 self
.this
= newobj
.this
3900 def __del__(self
, destroy
=_windows_
.delete_PageSetupDialogData
):
3903 if self
.thisown
: destroy(self
)
3906 def EnableHelp(*args
, **kwargs
):
3907 """EnableHelp(self, bool flag)"""
3908 return _windows_
.PageSetupDialogData_EnableHelp(*args
, **kwargs
)
3910 def EnableMargins(*args
, **kwargs
):
3911 """EnableMargins(self, bool flag)"""
3912 return _windows_
.PageSetupDialogData_EnableMargins(*args
, **kwargs
)
3914 def EnableOrientation(*args
, **kwargs
):
3915 """EnableOrientation(self, bool flag)"""
3916 return _windows_
.PageSetupDialogData_EnableOrientation(*args
, **kwargs
)
3918 def EnablePaper(*args
, **kwargs
):
3919 """EnablePaper(self, bool flag)"""
3920 return _windows_
.PageSetupDialogData_EnablePaper(*args
, **kwargs
)
3922 def EnablePrinter(*args
, **kwargs
):
3923 """EnablePrinter(self, bool flag)"""
3924 return _windows_
.PageSetupDialogData_EnablePrinter(*args
, **kwargs
)
3926 def GetDefaultMinMargins(*args
, **kwargs
):
3927 """GetDefaultMinMargins(self) -> bool"""
3928 return _windows_
.PageSetupDialogData_GetDefaultMinMargins(*args
, **kwargs
)
3930 def GetEnableMargins(*args
, **kwargs
):
3931 """GetEnableMargins(self) -> bool"""
3932 return _windows_
.PageSetupDialogData_GetEnableMargins(*args
, **kwargs
)
3934 def GetEnableOrientation(*args
, **kwargs
):
3935 """GetEnableOrientation(self) -> bool"""
3936 return _windows_
.PageSetupDialogData_GetEnableOrientation(*args
, **kwargs
)
3938 def GetEnablePaper(*args
, **kwargs
):
3939 """GetEnablePaper(self) -> bool"""
3940 return _windows_
.PageSetupDialogData_GetEnablePaper(*args
, **kwargs
)
3942 def GetEnablePrinter(*args
, **kwargs
):
3943 """GetEnablePrinter(self) -> bool"""
3944 return _windows_
.PageSetupDialogData_GetEnablePrinter(*args
, **kwargs
)
3946 def GetEnableHelp(*args
, **kwargs
):
3947 """GetEnableHelp(self) -> bool"""
3948 return _windows_
.PageSetupDialogData_GetEnableHelp(*args
, **kwargs
)
3950 def GetDefaultInfo(*args
, **kwargs
):
3951 """GetDefaultInfo(self) -> bool"""
3952 return _windows_
.PageSetupDialogData_GetDefaultInfo(*args
, **kwargs
)
3954 def GetMarginTopLeft(*args
, **kwargs
):
3955 """GetMarginTopLeft(self) -> Point"""
3956 return _windows_
.PageSetupDialogData_GetMarginTopLeft(*args
, **kwargs
)
3958 def GetMarginBottomRight(*args
, **kwargs
):
3959 """GetMarginBottomRight(self) -> Point"""
3960 return _windows_
.PageSetupDialogData_GetMarginBottomRight(*args
, **kwargs
)
3962 def GetMinMarginTopLeft(*args
, **kwargs
):
3963 """GetMinMarginTopLeft(self) -> Point"""
3964 return _windows_
.PageSetupDialogData_GetMinMarginTopLeft(*args
, **kwargs
)
3966 def GetMinMarginBottomRight(*args
, **kwargs
):
3967 """GetMinMarginBottomRight(self) -> Point"""
3968 return _windows_
.PageSetupDialogData_GetMinMarginBottomRight(*args
, **kwargs
)
3970 def GetPaperId(*args
, **kwargs
):
3971 """GetPaperId(self) -> int"""
3972 return _windows_
.PageSetupDialogData_GetPaperId(*args
, **kwargs
)
3974 def GetPaperSize(*args
, **kwargs
):
3975 """GetPaperSize(self) -> Size"""
3976 return _windows_
.PageSetupDialogData_GetPaperSize(*args
, **kwargs
)
3978 def GetPrintData(*args
, **kwargs
):
3979 """GetPrintData(self) -> PrintData"""
3980 return _windows_
.PageSetupDialogData_GetPrintData(*args
, **kwargs
)
3982 def Ok(*args
, **kwargs
):
3983 """Ok(self) -> bool"""
3984 return _windows_
.PageSetupDialogData_Ok(*args
, **kwargs
)
3986 def SetDefaultInfo(*args
, **kwargs
):
3987 """SetDefaultInfo(self, bool flag)"""
3988 return _windows_
.PageSetupDialogData_SetDefaultInfo(*args
, **kwargs
)
3990 def SetDefaultMinMargins(*args
, **kwargs
):
3991 """SetDefaultMinMargins(self, bool flag)"""
3992 return _windows_
.PageSetupDialogData_SetDefaultMinMargins(*args
, **kwargs
)
3994 def SetMarginTopLeft(*args
, **kwargs
):
3995 """SetMarginTopLeft(self, Point pt)"""
3996 return _windows_
.PageSetupDialogData_SetMarginTopLeft(*args
, **kwargs
)
3998 def SetMarginBottomRight(*args
, **kwargs
):
3999 """SetMarginBottomRight(self, Point pt)"""
4000 return _windows_
.PageSetupDialogData_SetMarginBottomRight(*args
, **kwargs
)
4002 def SetMinMarginTopLeft(*args
, **kwargs
):
4003 """SetMinMarginTopLeft(self, Point pt)"""
4004 return _windows_
.PageSetupDialogData_SetMinMarginTopLeft(*args
, **kwargs
)
4006 def SetMinMarginBottomRight(*args
, **kwargs
):
4007 """SetMinMarginBottomRight(self, Point pt)"""
4008 return _windows_
.PageSetupDialogData_SetMinMarginBottomRight(*args
, **kwargs
)
4010 def SetPaperId(*args
, **kwargs
):
4011 """SetPaperId(self, int id)"""
4012 return _windows_
.PageSetupDialogData_SetPaperId(*args
, **kwargs
)
4014 def SetPaperSize(*args
, **kwargs
):
4015 """SetPaperSize(self, Size size)"""
4016 return _windows_
.PageSetupDialogData_SetPaperSize(*args
, **kwargs
)
4018 def SetPrintData(*args
, **kwargs
):
4019 """SetPrintData(self, PrintData printData)"""
4020 return _windows_
.PageSetupDialogData_SetPrintData(*args
, **kwargs
)
4022 def __nonzero__(self
): return self
.Ok()
4024 class PageSetupDialogDataPtr(PageSetupDialogData
):
4025 def __init__(self
, this
):
4027 if not hasattr(self
,"thisown"): self
.thisown
= 0
4028 self
.__class
__ = PageSetupDialogData
4029 _windows_
.PageSetupDialogData_swigregister(PageSetupDialogDataPtr
)
4031 class PageSetupDialog(Dialog
):
4033 return "<%s.%s; proxy of C++ wxPageSetupDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4034 def __init__(self
, *args
, **kwargs
):
4035 """__init__(self, Window parent, PageSetupDialogData data=None) -> PageSetupDialog"""
4036 newobj
= _windows_
.new_PageSetupDialog(*args
, **kwargs
)
4037 self
.this
= newobj
.this
4040 self
._setOORInfo
(self
)
4042 def GetPageSetupData(*args
, **kwargs
):
4043 """GetPageSetupData(self) -> PageSetupDialogData"""
4044 return _windows_
.PageSetupDialog_GetPageSetupData(*args
, **kwargs
)
4046 def ShowModal(*args
, **kwargs
):
4047 """ShowModal(self) -> int"""
4048 return _windows_
.PageSetupDialog_ShowModal(*args
, **kwargs
)
4051 class PageSetupDialogPtr(PageSetupDialog
):
4052 def __init__(self
, this
):
4054 if not hasattr(self
,"thisown"): self
.thisown
= 0
4055 self
.__class
__ = PageSetupDialog
4056 _windows_
.PageSetupDialog_swigregister(PageSetupDialogPtr
)
4058 class PrintDialogData(_core
.Object
):
4060 return "<%s.%s; proxy of C++ wxPrintDialogData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4061 def __init__(self
, *args
):
4063 __init__(self) -> PrintDialogData
4064 __init__(self, PrintData printData) -> PrintDialogData
4066 newobj
= _windows_
.new_PrintDialogData(*args
)
4067 self
.this
= newobj
.this
4070 def __del__(self
, destroy
=_windows_
.delete_PrintDialogData
):
4073 if self
.thisown
: destroy(self
)
4076 def GetFromPage(*args
, **kwargs
):
4077 """GetFromPage(self) -> int"""
4078 return _windows_
.PrintDialogData_GetFromPage(*args
, **kwargs
)
4080 def GetToPage(*args
, **kwargs
):
4081 """GetToPage(self) -> int"""
4082 return _windows_
.PrintDialogData_GetToPage(*args
, **kwargs
)
4084 def GetMinPage(*args
, **kwargs
):
4085 """GetMinPage(self) -> int"""
4086 return _windows_
.PrintDialogData_GetMinPage(*args
, **kwargs
)
4088 def GetMaxPage(*args
, **kwargs
):
4089 """GetMaxPage(self) -> int"""
4090 return _windows_
.PrintDialogData_GetMaxPage(*args
, **kwargs
)
4092 def GetNoCopies(*args
, **kwargs
):
4093 """GetNoCopies(self) -> int"""
4094 return _windows_
.PrintDialogData_GetNoCopies(*args
, **kwargs
)
4096 def GetAllPages(*args
, **kwargs
):
4097 """GetAllPages(self) -> bool"""
4098 return _windows_
.PrintDialogData_GetAllPages(*args
, **kwargs
)
4100 def GetSelection(*args
, **kwargs
):
4101 """GetSelection(self) -> bool"""
4102 return _windows_
.PrintDialogData_GetSelection(*args
, **kwargs
)
4104 def GetCollate(*args
, **kwargs
):
4105 """GetCollate(self) -> bool"""
4106 return _windows_
.PrintDialogData_GetCollate(*args
, **kwargs
)
4108 def GetPrintToFile(*args
, **kwargs
):
4109 """GetPrintToFile(self) -> bool"""
4110 return _windows_
.PrintDialogData_GetPrintToFile(*args
, **kwargs
)
4112 def GetSetupDialog(*args
, **kwargs
):
4113 """GetSetupDialog(self) -> bool"""
4114 return _windows_
.PrintDialogData_GetSetupDialog(*args
, **kwargs
)
4116 def SetFromPage(*args
, **kwargs
):
4117 """SetFromPage(self, int v)"""
4118 return _windows_
.PrintDialogData_SetFromPage(*args
, **kwargs
)
4120 def SetToPage(*args
, **kwargs
):
4121 """SetToPage(self, int v)"""
4122 return _windows_
.PrintDialogData_SetToPage(*args
, **kwargs
)
4124 def SetMinPage(*args
, **kwargs
):
4125 """SetMinPage(self, int v)"""
4126 return _windows_
.PrintDialogData_SetMinPage(*args
, **kwargs
)
4128 def SetMaxPage(*args
, **kwargs
):
4129 """SetMaxPage(self, int v)"""
4130 return _windows_
.PrintDialogData_SetMaxPage(*args
, **kwargs
)
4132 def SetNoCopies(*args
, **kwargs
):
4133 """SetNoCopies(self, int v)"""
4134 return _windows_
.PrintDialogData_SetNoCopies(*args
, **kwargs
)
4136 def SetAllPages(*args
, **kwargs
):
4137 """SetAllPages(self, bool flag)"""
4138 return _windows_
.PrintDialogData_SetAllPages(*args
, **kwargs
)
4140 def SetSelection(*args
, **kwargs
):
4141 """SetSelection(self, bool flag)"""
4142 return _windows_
.PrintDialogData_SetSelection(*args
, **kwargs
)
4144 def SetCollate(*args
, **kwargs
):
4145 """SetCollate(self, bool flag)"""
4146 return _windows_
.PrintDialogData_SetCollate(*args
, **kwargs
)
4148 def SetPrintToFile(*args
, **kwargs
):
4149 """SetPrintToFile(self, bool flag)"""
4150 return _windows_
.PrintDialogData_SetPrintToFile(*args
, **kwargs
)
4152 def SetSetupDialog(*args
, **kwargs
):
4153 """SetSetupDialog(self, bool flag)"""
4154 return _windows_
.PrintDialogData_SetSetupDialog(*args
, **kwargs
)
4156 def EnablePrintToFile(*args
, **kwargs
):
4157 """EnablePrintToFile(self, bool flag)"""
4158 return _windows_
.PrintDialogData_EnablePrintToFile(*args
, **kwargs
)
4160 def EnableSelection(*args
, **kwargs
):
4161 """EnableSelection(self, bool flag)"""
4162 return _windows_
.PrintDialogData_EnableSelection(*args
, **kwargs
)
4164 def EnablePageNumbers(*args
, **kwargs
):
4165 """EnablePageNumbers(self, bool flag)"""
4166 return _windows_
.PrintDialogData_EnablePageNumbers(*args
, **kwargs
)
4168 def EnableHelp(*args
, **kwargs
):
4169 """EnableHelp(self, bool flag)"""
4170 return _windows_
.PrintDialogData_EnableHelp(*args
, **kwargs
)
4172 def GetEnablePrintToFile(*args
, **kwargs
):
4173 """GetEnablePrintToFile(self) -> bool"""
4174 return _windows_
.PrintDialogData_GetEnablePrintToFile(*args
, **kwargs
)
4176 def GetEnableSelection(*args
, **kwargs
):
4177 """GetEnableSelection(self) -> bool"""
4178 return _windows_
.PrintDialogData_GetEnableSelection(*args
, **kwargs
)
4180 def GetEnablePageNumbers(*args
, **kwargs
):
4181 """GetEnablePageNumbers(self) -> bool"""
4182 return _windows_
.PrintDialogData_GetEnablePageNumbers(*args
, **kwargs
)
4184 def GetEnableHelp(*args
, **kwargs
):
4185 """GetEnableHelp(self) -> bool"""
4186 return _windows_
.PrintDialogData_GetEnableHelp(*args
, **kwargs
)
4188 def Ok(*args
, **kwargs
):
4189 """Ok(self) -> bool"""
4190 return _windows_
.PrintDialogData_Ok(*args
, **kwargs
)
4192 def GetPrintData(*args
, **kwargs
):
4193 """GetPrintData(self) -> PrintData"""
4194 return _windows_
.PrintDialogData_GetPrintData(*args
, **kwargs
)
4196 def SetPrintData(*args
, **kwargs
):
4197 """SetPrintData(self, PrintData printData)"""
4198 return _windows_
.PrintDialogData_SetPrintData(*args
, **kwargs
)
4200 def __nonzero__(self
): return self
.Ok()
4202 class PrintDialogDataPtr(PrintDialogData
):
4203 def __init__(self
, this
):
4205 if not hasattr(self
,"thisown"): self
.thisown
= 0
4206 self
.__class
__ = PrintDialogData
4207 _windows_
.PrintDialogData_swigregister(PrintDialogDataPtr
)
4209 class PrintDialog(Dialog
):
4211 return "<%s.%s; proxy of C++ wxPrintDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4212 def __init__(self
, *args
, **kwargs
):
4213 """__init__(self, Window parent, PrintDialogData data=None) -> PrintDialog"""
4214 newobj
= _windows_
.new_PrintDialog(*args
, **kwargs
)
4215 self
.this
= newobj
.this
4218 self
._setOORInfo
(self
)
4220 def GetPrintDialogData(*args
, **kwargs
):
4221 """GetPrintDialogData(self) -> PrintDialogData"""
4222 return _windows_
.PrintDialog_GetPrintDialogData(*args
, **kwargs
)
4224 def GetPrintDC(*args
, **kwargs
):
4225 """GetPrintDC(self) -> DC"""
4226 return _windows_
.PrintDialog_GetPrintDC(*args
, **kwargs
)
4228 def ShowModal(*args
, **kwargs
):
4229 """ShowModal(self) -> int"""
4230 return _windows_
.PrintDialog_ShowModal(*args
, **kwargs
)
4233 class PrintDialogPtr(PrintDialog
):
4234 def __init__(self
, this
):
4236 if not hasattr(self
,"thisown"): self
.thisown
= 0
4237 self
.__class
__ = PrintDialog
4238 _windows_
.PrintDialog_swigregister(PrintDialogPtr
)
4240 PRINTER_NO_ERROR
= _windows_
.PRINTER_NO_ERROR
4241 PRINTER_CANCELLED
= _windows_
.PRINTER_CANCELLED
4242 PRINTER_ERROR
= _windows_
.PRINTER_ERROR
4243 class Printer(_core
.Object
):
4245 return "<%s.%s; proxy of C++ wxPrinter instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4246 def __init__(self
, *args
, **kwargs
):
4247 """__init__(self, PrintDialogData data=None) -> Printer"""
4248 newobj
= _windows_
.new_Printer(*args
, **kwargs
)
4249 self
.this
= newobj
.this
4252 def __del__(self
, destroy
=_windows_
.delete_Printer
):
4255 if self
.thisown
: destroy(self
)
4258 def CreateAbortWindow(*args
, **kwargs
):
4259 """CreateAbortWindow(self, Window parent, Printout printout)"""
4260 return _windows_
.Printer_CreateAbortWindow(*args
, **kwargs
)
4262 def GetPrintDialogData(*args
, **kwargs
):
4263 """GetPrintDialogData(self) -> PrintDialogData"""
4264 return _windows_
.Printer_GetPrintDialogData(*args
, **kwargs
)
4266 def Print(*args
, **kwargs
):
4267 """Print(self, Window parent, Printout printout, int prompt=True) -> bool"""
4268 return _windows_
.Printer_Print(*args
, **kwargs
)
4270 def PrintDialog(*args
, **kwargs
):
4271 """PrintDialog(self, Window parent) -> DC"""
4272 return _windows_
.Printer_PrintDialog(*args
, **kwargs
)
4274 def ReportError(*args
, **kwargs
):
4275 """ReportError(self, Window parent, Printout printout, String message)"""
4276 return _windows_
.Printer_ReportError(*args
, **kwargs
)
4278 def Setup(*args
, **kwargs
):
4279 """Setup(self, Window parent) -> bool"""
4280 return _windows_
.Printer_Setup(*args
, **kwargs
)
4282 def GetAbort(*args
, **kwargs
):
4283 """GetAbort(self) -> bool"""
4284 return _windows_
.Printer_GetAbort(*args
, **kwargs
)
4286 def GetLastError(*args
, **kwargs
):
4287 """GetLastError() -> int"""
4288 return _windows_
.Printer_GetLastError(*args
, **kwargs
)
4290 GetLastError
= staticmethod(GetLastError
)
4292 class PrinterPtr(Printer
):
4293 def __init__(self
, this
):
4295 if not hasattr(self
,"thisown"): self
.thisown
= 0
4296 self
.__class
__ = Printer
4297 _windows_
.Printer_swigregister(PrinterPtr
)
4299 def Printer_GetLastError(*args
, **kwargs
):
4300 """Printer_GetLastError() -> int"""
4301 return _windows_
.Printer_GetLastError(*args
, **kwargs
)
4303 class Printout(_core
.Object
):
4305 return "<%s.%s; proxy of C++ wxPyPrintout instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4306 def __init__(self
, *args
, **kwargs
):
4307 """__init__(self, String title=PrintoutTitleStr) -> Printout"""
4308 newobj
= _windows_
.new_Printout(*args
, **kwargs
)
4309 self
.this
= newobj
.this
4312 self
._setCallbackInfo
(self
, Printout
)
4314 def _setCallbackInfo(*args
, **kwargs
):
4315 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4316 return _windows_
.Printout__setCallbackInfo(*args
, **kwargs
)
4318 def GetTitle(*args
, **kwargs
):
4319 """GetTitle(self) -> String"""
4320 return _windows_
.Printout_GetTitle(*args
, **kwargs
)
4322 def GetDC(*args
, **kwargs
):
4323 """GetDC(self) -> DC"""
4324 return _windows_
.Printout_GetDC(*args
, **kwargs
)
4326 def SetDC(*args
, **kwargs
):
4327 """SetDC(self, DC dc)"""
4328 return _windows_
.Printout_SetDC(*args
, **kwargs
)
4330 def SetPageSizePixels(*args
, **kwargs
):
4331 """SetPageSizePixels(self, int w, int h)"""
4332 return _windows_
.Printout_SetPageSizePixels(*args
, **kwargs
)
4334 def GetPageSizePixels(*args
, **kwargs
):
4335 """GetPageSizePixels() -> (w, h)"""
4336 return _windows_
.Printout_GetPageSizePixels(*args
, **kwargs
)
4338 def SetPageSizeMM(*args
, **kwargs
):
4339 """SetPageSizeMM(self, int w, int h)"""
4340 return _windows_
.Printout_SetPageSizeMM(*args
, **kwargs
)
4342 def GetPageSizeMM(*args
, **kwargs
):
4343 """GetPageSizeMM() -> (w, h)"""
4344 return _windows_
.Printout_GetPageSizeMM(*args
, **kwargs
)
4346 def SetPPIScreen(*args
, **kwargs
):
4347 """SetPPIScreen(self, int x, int y)"""
4348 return _windows_
.Printout_SetPPIScreen(*args
, **kwargs
)
4350 def GetPPIScreen(*args
, **kwargs
):
4351 """GetPPIScreen() -> (x,y)"""
4352 return _windows_
.Printout_GetPPIScreen(*args
, **kwargs
)
4354 def SetPPIPrinter(*args
, **kwargs
):
4355 """SetPPIPrinter(self, int x, int y)"""
4356 return _windows_
.Printout_SetPPIPrinter(*args
, **kwargs
)
4358 def GetPPIPrinter(*args
, **kwargs
):
4359 """GetPPIPrinter() -> (x,y)"""
4360 return _windows_
.Printout_GetPPIPrinter(*args
, **kwargs
)
4362 def IsPreview(*args
, **kwargs
):
4363 """IsPreview(self) -> bool"""
4364 return _windows_
.Printout_IsPreview(*args
, **kwargs
)
4366 def SetIsPreview(*args
, **kwargs
):
4367 """SetIsPreview(self, bool p)"""
4368 return _windows_
.Printout_SetIsPreview(*args
, **kwargs
)
4370 def base_OnBeginDocument(*args
, **kwargs
):
4371 """base_OnBeginDocument(self, int startPage, int endPage) -> bool"""
4372 return _windows_
.Printout_base_OnBeginDocument(*args
, **kwargs
)
4374 def base_OnEndDocument(*args
, **kwargs
):
4375 """base_OnEndDocument(self)"""
4376 return _windows_
.Printout_base_OnEndDocument(*args
, **kwargs
)
4378 def base_OnBeginPrinting(*args
, **kwargs
):
4379 """base_OnBeginPrinting(self)"""
4380 return _windows_
.Printout_base_OnBeginPrinting(*args
, **kwargs
)
4382 def base_OnEndPrinting(*args
, **kwargs
):
4383 """base_OnEndPrinting(self)"""
4384 return _windows_
.Printout_base_OnEndPrinting(*args
, **kwargs
)
4386 def base_OnPreparePrinting(*args
, **kwargs
):
4387 """base_OnPreparePrinting(self)"""
4388 return _windows_
.Printout_base_OnPreparePrinting(*args
, **kwargs
)
4390 def base_HasPage(*args
, **kwargs
):
4391 """base_HasPage(self, int page) -> bool"""
4392 return _windows_
.Printout_base_HasPage(*args
, **kwargs
)
4394 def base_GetPageInfo(*args
, **kwargs
):
4395 """base_GetPageInfo() -> (minPage, maxPage, pageFrom, pageTo)"""
4396 return _windows_
.Printout_base_GetPageInfo(*args
, **kwargs
)
4399 class PrintoutPtr(Printout
):
4400 def __init__(self
, this
):
4402 if not hasattr(self
,"thisown"): self
.thisown
= 0
4403 self
.__class
__ = Printout
4404 _windows_
.Printout_swigregister(PrintoutPtr
)
4406 class PreviewCanvas(ScrolledWindow
):
4408 return "<%s.%s; proxy of C++ wxPreviewCanvas instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4409 def __init__(self
, *args
, **kwargs
):
4411 __init__(self, PrintPreview preview, Window parent, Point pos=DefaultPosition,
4412 Size size=DefaultSize, long style=0,
4413 String name=PreviewCanvasNameStr) -> PreviewCanvas
4415 newobj
= _windows_
.new_PreviewCanvas(*args
, **kwargs
)
4416 self
.this
= newobj
.this
4419 self
._setOORInfo
(self
)
4422 class PreviewCanvasPtr(PreviewCanvas
):
4423 def __init__(self
, this
):
4425 if not hasattr(self
,"thisown"): self
.thisown
= 0
4426 self
.__class
__ = PreviewCanvas
4427 _windows_
.PreviewCanvas_swigregister(PreviewCanvasPtr
)
4429 class PreviewFrame(Frame
):
4431 return "<%s.%s; proxy of C++ wxPreviewFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4432 def __init__(self
, *args
, **kwargs
):
4434 __init__(self, PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4435 Size size=DefaultSize,
4436 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PreviewFrame
4438 newobj
= _windows_
.new_PreviewFrame(*args
, **kwargs
)
4439 self
.this
= newobj
.this
4442 self
._setOORInfo
(self
)
4444 def Initialize(*args
, **kwargs
):
4445 """Initialize(self)"""
4446 return _windows_
.PreviewFrame_Initialize(*args
, **kwargs
)
4448 def CreateControlBar(*args
, **kwargs
):
4449 """CreateControlBar(self)"""
4450 return _windows_
.PreviewFrame_CreateControlBar(*args
, **kwargs
)
4452 def CreateCanvas(*args
, **kwargs
):
4453 """CreateCanvas(self)"""
4454 return _windows_
.PreviewFrame_CreateCanvas(*args
, **kwargs
)
4456 def GetControlBar(*args
, **kwargs
):
4457 """GetControlBar(self) -> PreviewControlBar"""
4458 return _windows_
.PreviewFrame_GetControlBar(*args
, **kwargs
)
4461 class PreviewFramePtr(PreviewFrame
):
4462 def __init__(self
, this
):
4464 if not hasattr(self
,"thisown"): self
.thisown
= 0
4465 self
.__class
__ = PreviewFrame
4466 _windows_
.PreviewFrame_swigregister(PreviewFramePtr
)
4468 PREVIEW_PRINT
= _windows_
.PREVIEW_PRINT
4469 PREVIEW_PREVIOUS
= _windows_
.PREVIEW_PREVIOUS
4470 PREVIEW_NEXT
= _windows_
.PREVIEW_NEXT
4471 PREVIEW_ZOOM
= _windows_
.PREVIEW_ZOOM
4472 PREVIEW_FIRST
= _windows_
.PREVIEW_FIRST
4473 PREVIEW_LAST
= _windows_
.PREVIEW_LAST
4474 PREVIEW_GOTO
= _windows_
.PREVIEW_GOTO
4475 PREVIEW_DEFAULT
= _windows_
.PREVIEW_DEFAULT
4476 ID_PREVIEW_CLOSE
= _windows_
.ID_PREVIEW_CLOSE
4477 ID_PREVIEW_NEXT
= _windows_
.ID_PREVIEW_NEXT
4478 ID_PREVIEW_PREVIOUS
= _windows_
.ID_PREVIEW_PREVIOUS
4479 ID_PREVIEW_PRINT
= _windows_
.ID_PREVIEW_PRINT
4480 ID_PREVIEW_ZOOM
= _windows_
.ID_PREVIEW_ZOOM
4481 ID_PREVIEW_FIRST
= _windows_
.ID_PREVIEW_FIRST
4482 ID_PREVIEW_LAST
= _windows_
.ID_PREVIEW_LAST
4483 ID_PREVIEW_GOTO
= _windows_
.ID_PREVIEW_GOTO
4484 class PreviewControlBar(Panel
):
4486 return "<%s.%s; proxy of C++ wxPreviewControlBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4487 def __init__(self
, *args
, **kwargs
):
4489 __init__(self, PrintPreview preview, long buttons, Window parent,
4490 Point pos=DefaultPosition, Size size=DefaultSize,
4491 long style=TAB_TRAVERSAL, String name=PanelNameStr) -> PreviewControlBar
4493 newobj
= _windows_
.new_PreviewControlBar(*args
, **kwargs
)
4494 self
.this
= newobj
.this
4497 self
._setOORInfo
(self
)
4499 def GetZoomControl(*args
, **kwargs
):
4500 """GetZoomControl(self) -> int"""
4501 return _windows_
.PreviewControlBar_GetZoomControl(*args
, **kwargs
)
4503 def SetZoomControl(*args
, **kwargs
):
4504 """SetZoomControl(self, int zoom)"""
4505 return _windows_
.PreviewControlBar_SetZoomControl(*args
, **kwargs
)
4507 def GetPrintPreview(*args
, **kwargs
):
4508 """GetPrintPreview(self) -> PrintPreview"""
4509 return _windows_
.PreviewControlBar_GetPrintPreview(*args
, **kwargs
)
4511 def OnNext(*args
, **kwargs
):
4513 return _windows_
.PreviewControlBar_OnNext(*args
, **kwargs
)
4515 def OnPrevious(*args
, **kwargs
):
4516 """OnPrevious(self)"""
4517 return _windows_
.PreviewControlBar_OnPrevious(*args
, **kwargs
)
4519 def OnFirst(*args
, **kwargs
):
4521 return _windows_
.PreviewControlBar_OnFirst(*args
, **kwargs
)
4523 def OnLast(*args
, **kwargs
):
4525 return _windows_
.PreviewControlBar_OnLast(*args
, **kwargs
)
4527 def OnGoto(*args
, **kwargs
):
4529 return _windows_
.PreviewControlBar_OnGoto(*args
, **kwargs
)
4532 class PreviewControlBarPtr(PreviewControlBar
):
4533 def __init__(self
, this
):
4535 if not hasattr(self
,"thisown"): self
.thisown
= 0
4536 self
.__class
__ = PreviewControlBar
4537 _windows_
.PreviewControlBar_swigregister(PreviewControlBarPtr
)
4539 class PrintPreview(_core
.Object
):
4541 return "<%s.%s; proxy of C++ wxPrintPreview instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4542 def __init__(self
, *args
):
4544 __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PrintPreview
4545 __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PrintPreview
4547 newobj
= _windows_
.new_PrintPreview(*args
)
4548 self
.this
= newobj
.this
4551 def SetCurrentPage(*args
, **kwargs
):
4552 """SetCurrentPage(self, int pageNum) -> bool"""
4553 return _windows_
.PrintPreview_SetCurrentPage(*args
, **kwargs
)
4555 def GetCurrentPage(*args
, **kwargs
):
4556 """GetCurrentPage(self) -> int"""
4557 return _windows_
.PrintPreview_GetCurrentPage(*args
, **kwargs
)
4559 def SetPrintout(*args
, **kwargs
):
4560 """SetPrintout(self, Printout printout)"""
4561 return _windows_
.PrintPreview_SetPrintout(*args
, **kwargs
)
4563 def GetPrintout(*args
, **kwargs
):
4564 """GetPrintout(self) -> Printout"""
4565 return _windows_
.PrintPreview_GetPrintout(*args
, **kwargs
)
4567 def GetPrintoutForPrinting(*args
, **kwargs
):
4568 """GetPrintoutForPrinting(self) -> Printout"""
4569 return _windows_
.PrintPreview_GetPrintoutForPrinting(*args
, **kwargs
)
4571 def SetFrame(*args
, **kwargs
):
4572 """SetFrame(self, Frame frame)"""
4573 return _windows_
.PrintPreview_SetFrame(*args
, **kwargs
)
4575 def SetCanvas(*args
, **kwargs
):
4576 """SetCanvas(self, PreviewCanvas canvas)"""
4577 return _windows_
.PrintPreview_SetCanvas(*args
, **kwargs
)
4579 def GetFrame(*args
, **kwargs
):
4580 """GetFrame(self) -> Frame"""
4581 return _windows_
.PrintPreview_GetFrame(*args
, **kwargs
)
4583 def GetCanvas(*args
, **kwargs
):
4584 """GetCanvas(self) -> PreviewCanvas"""
4585 return _windows_
.PrintPreview_GetCanvas(*args
, **kwargs
)
4587 def PaintPage(*args
, **kwargs
):
4588 """PaintPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4589 return _windows_
.PrintPreview_PaintPage(*args
, **kwargs
)
4591 def DrawBlankPage(*args
, **kwargs
):
4592 """DrawBlankPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4593 return _windows_
.PrintPreview_DrawBlankPage(*args
, **kwargs
)
4595 def RenderPage(*args
, **kwargs
):
4596 """RenderPage(self, int pageNum) -> bool"""
4597 return _windows_
.PrintPreview_RenderPage(*args
, **kwargs
)
4599 def AdjustScrollbars(*args
, **kwargs
):
4600 """AdjustScrollbars(self, PreviewCanvas canvas)"""
4601 return _windows_
.PrintPreview_AdjustScrollbars(*args
, **kwargs
)
4603 def GetPrintDialogData(*args
, **kwargs
):
4604 """GetPrintDialogData(self) -> PrintDialogData"""
4605 return _windows_
.PrintPreview_GetPrintDialogData(*args
, **kwargs
)
4607 def SetZoom(*args
, **kwargs
):
4608 """SetZoom(self, int percent)"""
4609 return _windows_
.PrintPreview_SetZoom(*args
, **kwargs
)
4611 def GetZoom(*args
, **kwargs
):
4612 """GetZoom(self) -> int"""
4613 return _windows_
.PrintPreview_GetZoom(*args
, **kwargs
)
4615 def GetMaxPage(*args
, **kwargs
):
4616 """GetMaxPage(self) -> int"""
4617 return _windows_
.PrintPreview_GetMaxPage(*args
, **kwargs
)
4619 def GetMinPage(*args
, **kwargs
):
4620 """GetMinPage(self) -> int"""
4621 return _windows_
.PrintPreview_GetMinPage(*args
, **kwargs
)
4623 def Ok(*args
, **kwargs
):
4624 """Ok(self) -> bool"""
4625 return _windows_
.PrintPreview_Ok(*args
, **kwargs
)
4627 def SetOk(*args
, **kwargs
):
4628 """SetOk(self, bool ok)"""
4629 return _windows_
.PrintPreview_SetOk(*args
, **kwargs
)
4631 def Print(*args
, **kwargs
):
4632 """Print(self, bool interactive) -> bool"""
4633 return _windows_
.PrintPreview_Print(*args
, **kwargs
)
4635 def DetermineScaling(*args
, **kwargs
):
4636 """DetermineScaling(self)"""
4637 return _windows_
.PrintPreview_DetermineScaling(*args
, **kwargs
)
4639 def __nonzero__(self
): return self
.Ok()
4641 class PrintPreviewPtr(PrintPreview
):
4642 def __init__(self
, this
):
4644 if not hasattr(self
,"thisown"): self
.thisown
= 0
4645 self
.__class
__ = PrintPreview
4646 _windows_
.PrintPreview_swigregister(PrintPreviewPtr
)
4648 class PyPrintPreview(PrintPreview
):
4650 return "<%s.%s; proxy of C++ wxPyPrintPreview instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4651 def __init__(self
, *args
):
4653 __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PyPrintPreview
4654 __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PyPrintPreview
4656 newobj
= _windows_
.new_PyPrintPreview(*args
)
4657 self
.this
= newobj
.this
4660 self
._setCallbackInfo
(self
, PyPrintPreview
)
4662 def _setCallbackInfo(*args
, **kwargs
):
4663 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4664 return _windows_
.PyPrintPreview__setCallbackInfo(*args
, **kwargs
)
4666 def base_SetCurrentPage(*args
, **kwargs
):
4667 """base_SetCurrentPage(self, int pageNum) -> bool"""
4668 return _windows_
.PyPrintPreview_base_SetCurrentPage(*args
, **kwargs
)
4670 def base_PaintPage(*args
, **kwargs
):
4671 """base_PaintPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4672 return _windows_
.PyPrintPreview_base_PaintPage(*args
, **kwargs
)
4674 def base_DrawBlankPage(*args
, **kwargs
):
4675 """base_DrawBlankPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4676 return _windows_
.PyPrintPreview_base_DrawBlankPage(*args
, **kwargs
)
4678 def base_RenderPage(*args
, **kwargs
):
4679 """base_RenderPage(self, int pageNum) -> bool"""
4680 return _windows_
.PyPrintPreview_base_RenderPage(*args
, **kwargs
)
4682 def base_SetZoom(*args
, **kwargs
):
4683 """base_SetZoom(self, int percent)"""
4684 return _windows_
.PyPrintPreview_base_SetZoom(*args
, **kwargs
)
4686 def base_Print(*args
, **kwargs
):
4687 """base_Print(self, bool interactive) -> bool"""
4688 return _windows_
.PyPrintPreview_base_Print(*args
, **kwargs
)
4690 def base_DetermineScaling(*args
, **kwargs
):
4691 """base_DetermineScaling(self)"""
4692 return _windows_
.PyPrintPreview_base_DetermineScaling(*args
, **kwargs
)
4695 class PyPrintPreviewPtr(PyPrintPreview
):
4696 def __init__(self
, this
):
4698 if not hasattr(self
,"thisown"): self
.thisown
= 0
4699 self
.__class
__ = PyPrintPreview
4700 _windows_
.PyPrintPreview_swigregister(PyPrintPreviewPtr
)
4702 class PyPreviewFrame(PreviewFrame
):
4704 return "<%s.%s; proxy of C++ wxPyPreviewFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4705 def __init__(self
, *args
, **kwargs
):
4707 __init__(self, PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4708 Size size=DefaultSize,
4709 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PyPreviewFrame
4711 newobj
= _windows_
.new_PyPreviewFrame(*args
, **kwargs
)
4712 self
.this
= newobj
.this
4715 self
._setCallbackInfo
(self
, PyPreviewFrame
); self
._setOORInfo
(self
)
4717 def _setCallbackInfo(*args
, **kwargs
):
4718 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4719 return _windows_
.PyPreviewFrame__setCallbackInfo(*args
, **kwargs
)
4721 def SetPreviewCanvas(*args
, **kwargs
):
4722 """SetPreviewCanvas(self, PreviewCanvas canvas)"""
4723 return _windows_
.PyPreviewFrame_SetPreviewCanvas(*args
, **kwargs
)
4725 def SetControlBar(*args
, **kwargs
):
4726 """SetControlBar(self, PreviewControlBar bar)"""
4727 return _windows_
.PyPreviewFrame_SetControlBar(*args
, **kwargs
)
4729 def base_Initialize(*args
, **kwargs
):
4730 """base_Initialize(self)"""
4731 return _windows_
.PyPreviewFrame_base_Initialize(*args
, **kwargs
)
4733 def base_CreateCanvas(*args
, **kwargs
):
4734 """base_CreateCanvas(self)"""
4735 return _windows_
.PyPreviewFrame_base_CreateCanvas(*args
, **kwargs
)
4737 def base_CreateControlBar(*args
, **kwargs
):
4738 """base_CreateControlBar(self)"""
4739 return _windows_
.PyPreviewFrame_base_CreateControlBar(*args
, **kwargs
)
4742 class PyPreviewFramePtr(PyPreviewFrame
):
4743 def __init__(self
, this
):
4745 if not hasattr(self
,"thisown"): self
.thisown
= 0
4746 self
.__class
__ = PyPreviewFrame
4747 _windows_
.PyPreviewFrame_swigregister(PyPreviewFramePtr
)
4749 class PyPreviewControlBar(PreviewControlBar
):
4751 return "<%s.%s; proxy of C++ wxPyPreviewControlBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4752 def __init__(self
, *args
, **kwargs
):
4754 __init__(self, PrintPreview preview, long buttons, Window parent,
4755 Point pos=DefaultPosition, Size size=DefaultSize,
4756 long style=0, String name=PanelNameStr) -> PyPreviewControlBar
4758 newobj
= _windows_
.new_PyPreviewControlBar(*args
, **kwargs
)
4759 self
.this
= newobj
.this
4762 self
._setCallbackInfo
(self
, PyPreviewControlBar
); self
._setOORInfo
(self
)
4764 def _setCallbackInfo(*args
, **kwargs
):
4765 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4766 return _windows_
.PyPreviewControlBar__setCallbackInfo(*args
, **kwargs
)
4768 def SetPrintPreview(*args
, **kwargs
):
4769 """SetPrintPreview(self, PrintPreview preview)"""
4770 return _windows_
.PyPreviewControlBar_SetPrintPreview(*args
, **kwargs
)
4772 def base_CreateButtons(*args
, **kwargs
):
4773 """base_CreateButtons(self)"""
4774 return _windows_
.PyPreviewControlBar_base_CreateButtons(*args
, **kwargs
)
4776 def base_SetZoomControl(*args
, **kwargs
):
4777 """base_SetZoomControl(self, int zoom)"""
4778 return _windows_
.PyPreviewControlBar_base_SetZoomControl(*args
, **kwargs
)
4781 class PyPreviewControlBarPtr(PyPreviewControlBar
):
4782 def __init__(self
, this
):
4784 if not hasattr(self
,"thisown"): self
.thisown
= 0
4785 self
.__class
__ = PyPreviewControlBar
4786 _windows_
.PyPreviewControlBar_swigregister(PyPreviewControlBarPtr
)