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