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 SetFocus(*args
, **kwargs
):
48 Overrides `wx.Window.SetFocus`. This method uses the (undocumented)
49 mix-in class wxControlContainer which manages the focus and TAB logic
50 for controls which usually have child controls. In practice, if you
51 call this method and the panel has at least one child window, then the
52 focus will be given to the child window.
54 return _windows_
.Panel_SetFocus(*args
, **kwargs
)
56 def SetFocusIgnoringChildren(*args
, **kwargs
):
58 SetFocusIgnoringChildren(self)
60 In contrast to `SetFocus` (see above) this will set the focus to the
61 panel even of there are child windows in the panel. This is only
64 return _windows_
.Panel_SetFocusIgnoringChildren(*args
, **kwargs
)
66 def GetClassDefaultAttributes(*args
, **kwargs
):
68 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
70 Get the default attributes for this class. This is useful if you want
71 to use the same font or colour in your own control as in a standard
72 control -- which is a much better idea than hard coding specific
73 colours or fonts which might look completely out of place on the
74 user's system, especially if it uses themes.
76 The variant parameter is only relevant under Mac currently and is
77 ignore under other platforms. Under Mac, it will change the size of
78 the returned font. See `wx.Window.SetWindowVariant` for more about
81 return _windows_
.Panel_GetClassDefaultAttributes(*args
, **kwargs
)
83 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
85 class PanelPtr(Panel
):
86 def __init__(self
, this
):
88 if not hasattr(self
,"thisown"): self
.thisown
= 0
89 self
.__class
__ = Panel
90 _windows_
.Panel_swigregister(PanelPtr
)
92 def PrePanel(*args
, **kwargs
):
93 """PrePanel() -> Panel"""
94 val
= _windows_
.new_PrePanel(*args
, **kwargs
)
98 def Panel_GetClassDefaultAttributes(*args
, **kwargs
):
100 Panel_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
102 Get the default attributes for this class. This is useful if you want
103 to use the same font or colour in your own control as in a standard
104 control -- which is a much better idea than hard coding specific
105 colours or fonts which might look completely out of place on the
106 user's system, especially if it uses themes.
108 The variant parameter is only relevant under Mac currently and is
109 ignore under other platforms. Under Mac, it will change the size of
110 the returned font. See `wx.Window.SetWindowVariant` for more about
113 return _windows_
.Panel_GetClassDefaultAttributes(*args
, **kwargs
)
115 #---------------------------------------------------------------------------
117 class ScrolledWindow(Panel
):
119 return "<%s.%s; proxy of C++ wxScrolledWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
120 def __init__(self
, *args
, **kwargs
):
122 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
123 Size size=DefaultSize, long style=wxHSCROLL|wxVSCROLL,
124 String name=PanelNameStr) -> ScrolledWindow
126 newobj
= _windows_
.new_ScrolledWindow(*args
, **kwargs
)
127 self
.this
= newobj
.this
130 self
._setOORInfo
(self
)
132 def Create(*args
, **kwargs
):
134 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
135 Size size=DefaultSize, long style=wxHSCROLL|wxVSCROLL,
136 String name=PanelNameStr) -> bool
138 Create the GUI part of the Window for 2-phase creation mode.
140 return _windows_
.ScrolledWindow_Create(*args
, **kwargs
)
142 def SetScrollbars(*args
, **kwargs
):
144 SetScrollbars(self, int pixelsPerUnitX, int pixelsPerUnitY, int noUnitsX,
145 int noUnitsY, int xPos=0, int yPos=0, bool noRefresh=False)
147 return _windows_
.ScrolledWindow_SetScrollbars(*args
, **kwargs
)
149 def Scroll(*args
, **kwargs
):
150 """Scroll(self, int x, int y)"""
151 return _windows_
.ScrolledWindow_Scroll(*args
, **kwargs
)
153 def GetScrollPageSize(*args
, **kwargs
):
154 """GetScrollPageSize(self, int orient) -> int"""
155 return _windows_
.ScrolledWindow_GetScrollPageSize(*args
, **kwargs
)
157 def SetScrollPageSize(*args
, **kwargs
):
158 """SetScrollPageSize(self, int orient, int pageSize)"""
159 return _windows_
.ScrolledWindow_SetScrollPageSize(*args
, **kwargs
)
161 def SetScrollRate(*args
, **kwargs
):
162 """SetScrollRate(self, int xstep, int ystep)"""
163 return _windows_
.ScrolledWindow_SetScrollRate(*args
, **kwargs
)
165 def GetScrollPixelsPerUnit(*args
, **kwargs
):
167 GetScrollPixelsPerUnit() -> (xUnit, yUnit)
169 Get the size of one logical unit in physical units.
171 return _windows_
.ScrolledWindow_GetScrollPixelsPerUnit(*args
, **kwargs
)
173 def EnableScrolling(*args
, **kwargs
):
174 """EnableScrolling(self, bool x_scrolling, bool y_scrolling)"""
175 return _windows_
.ScrolledWindow_EnableScrolling(*args
, **kwargs
)
177 def GetViewStart(*args
, **kwargs
):
179 GetViewStart() -> (x,y)
183 return _windows_
.ScrolledWindow_GetViewStart(*args
, **kwargs
)
185 def SetScale(*args
, **kwargs
):
186 """SetScale(self, double xs, double ys)"""
187 return _windows_
.ScrolledWindow_SetScale(*args
, **kwargs
)
189 def GetScaleX(*args
, **kwargs
):
190 """GetScaleX(self) -> double"""
191 return _windows_
.ScrolledWindow_GetScaleX(*args
, **kwargs
)
193 def GetScaleY(*args
, **kwargs
):
194 """GetScaleY(self) -> double"""
195 return _windows_
.ScrolledWindow_GetScaleY(*args
, **kwargs
)
197 def CalcScrolledPosition(*args
):
199 CalcScrolledPosition(self, Point pt) -> Point
200 CalcScrolledPosition(int x, int y) -> (sx, sy)
202 Translate between scrolled and unscrolled coordinates.
204 return _windows_
.ScrolledWindow_CalcScrolledPosition(*args
)
206 def CalcUnscrolledPosition(*args
):
208 CalcUnscrolledPosition(self, Point pt) -> Point
209 CalcUnscrolledPosition(int x, int y) -> (ux, uy)
211 Translate between scrolled and unscrolled coordinates.
213 return _windows_
.ScrolledWindow_CalcUnscrolledPosition(*args
)
215 def AdjustScrollbars(*args
, **kwargs
):
216 """AdjustScrollbars(self)"""
217 return _windows_
.ScrolledWindow_AdjustScrollbars(*args
, **kwargs
)
219 def CalcScrollInc(*args
, **kwargs
):
220 """CalcScrollInc(self, ScrollWinEvent event) -> int"""
221 return _windows_
.ScrolledWindow_CalcScrollInc(*args
, **kwargs
)
223 def SetTargetWindow(*args
, **kwargs
):
224 """SetTargetWindow(self, Window target)"""
225 return _windows_
.ScrolledWindow_SetTargetWindow(*args
, **kwargs
)
227 def GetTargetWindow(*args
, **kwargs
):
228 """GetTargetWindow(self) -> Window"""
229 return _windows_
.ScrolledWindow_GetTargetWindow(*args
, **kwargs
)
231 def DoPrepareDC(*args
, **kwargs
):
233 DoPrepareDC(self, DC dc)
235 Normally what is called by `PrepareDC`.
237 return _windows_
.ScrolledWindow_DoPrepareDC(*args
, **kwargs
)
239 def GetClassDefaultAttributes(*args
, **kwargs
):
241 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
243 Get the default attributes for this class. This is useful if you want
244 to use the same font or colour in your own control as in a standard
245 control -- which is a much better idea than hard coding specific
246 colours or fonts which might look completely out of place on the
247 user's system, especially if it uses themes.
249 The variant parameter is only relevant under Mac currently and is
250 ignore under other platforms. Under Mac, it will change the size of
251 the returned font. See `wx.Window.SetWindowVariant` for more about
254 return _windows_
.ScrolledWindow_GetClassDefaultAttributes(*args
, **kwargs
)
256 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
258 class ScrolledWindowPtr(ScrolledWindow
):
259 def __init__(self
, this
):
261 if not hasattr(self
,"thisown"): self
.thisown
= 0
262 self
.__class
__ = ScrolledWindow
263 _windows_
.ScrolledWindow_swigregister(ScrolledWindowPtr
)
265 def PreScrolledWindow(*args
, **kwargs
):
266 """PreScrolledWindow() -> ScrolledWindow"""
267 val
= _windows_
.new_PreScrolledWindow(*args
, **kwargs
)
271 def ScrolledWindow_GetClassDefaultAttributes(*args
, **kwargs
):
273 ScrolledWindow_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
275 Get the default attributes for this class. This is useful if you want
276 to use the same font or colour in your own control as in a standard
277 control -- which is a much better idea than hard coding specific
278 colours or fonts which might look completely out of place on the
279 user's system, especially if it uses themes.
281 The variant parameter is only relevant under Mac currently and is
282 ignore under other platforms. Under Mac, it will change the size of
283 the returned font. See `wx.Window.SetWindowVariant` for more about
286 return _windows_
.ScrolledWindow_GetClassDefaultAttributes(*args
, **kwargs
)
288 #---------------------------------------------------------------------------
290 STAY_ON_TOP
= _windows_
.STAY_ON_TOP
291 ICONIZE
= _windows_
.ICONIZE
292 MINIMIZE
= _windows_
.MINIMIZE
293 MAXIMIZE
= _windows_
.MAXIMIZE
294 CLOSE_BOX
= _windows_
.CLOSE_BOX
295 THICK_FRAME
= _windows_
.THICK_FRAME
296 SYSTEM_MENU
= _windows_
.SYSTEM_MENU
297 MINIMIZE_BOX
= _windows_
.MINIMIZE_BOX
298 MAXIMIZE_BOX
= _windows_
.MAXIMIZE_BOX
299 TINY_CAPTION_HORIZ
= _windows_
.TINY_CAPTION_HORIZ
300 TINY_CAPTION_VERT
= _windows_
.TINY_CAPTION_VERT
301 RESIZE_BOX
= _windows_
.RESIZE_BOX
302 RESIZE_BORDER
= _windows_
.RESIZE_BORDER
303 DIALOG_NO_PARENT
= _windows_
.DIALOG_NO_PARENT
304 DEFAULT_FRAME_STYLE
= _windows_
.DEFAULT_FRAME_STYLE
305 DEFAULT_DIALOG_STYLE
= _windows_
.DEFAULT_DIALOG_STYLE
306 FRAME_TOOL_WINDOW
= _windows_
.FRAME_TOOL_WINDOW
307 FRAME_FLOAT_ON_PARENT
= _windows_
.FRAME_FLOAT_ON_PARENT
308 FRAME_NO_WINDOW_MENU
= _windows_
.FRAME_NO_WINDOW_MENU
309 FRAME_NO_TASKBAR
= _windows_
.FRAME_NO_TASKBAR
310 FRAME_SHAPED
= _windows_
.FRAME_SHAPED
311 FRAME_DRAWER
= _windows_
.FRAME_DRAWER
312 DIALOG_MODAL
= _windows_
.DIALOG_MODAL
313 DIALOG_MODELESS
= _windows_
.DIALOG_MODELESS
314 USER_COLOURS
= _windows_
.USER_COLOURS
315 NO_3D
= _windows_
.NO_3D
316 FULLSCREEN_NOMENUBAR
= _windows_
.FULLSCREEN_NOMENUBAR
317 FULLSCREEN_NOTOOLBAR
= _windows_
.FULLSCREEN_NOTOOLBAR
318 FULLSCREEN_NOSTATUSBAR
= _windows_
.FULLSCREEN_NOSTATUSBAR
319 FULLSCREEN_NOBORDER
= _windows_
.FULLSCREEN_NOBORDER
320 FULLSCREEN_NOCAPTION
= _windows_
.FULLSCREEN_NOCAPTION
321 FULLSCREEN_ALL
= _windows_
.FULLSCREEN_ALL
322 TOPLEVEL_EX_DIALOG
= _windows_
.TOPLEVEL_EX_DIALOG
323 USER_ATTENTION_INFO
= _windows_
.USER_ATTENTION_INFO
324 USER_ATTENTION_ERROR
= _windows_
.USER_ATTENTION_ERROR
325 class TopLevelWindow(_core
.Window
):
326 def __init__(self
): raise RuntimeError, "No constructor defined"
328 return "<%s.%s; proxy of C++ wxTopLevelWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
329 def Maximize(*args
, **kwargs
):
330 """Maximize(self, bool maximize=True)"""
331 return _windows_
.TopLevelWindow_Maximize(*args
, **kwargs
)
333 def Restore(*args
, **kwargs
):
335 return _windows_
.TopLevelWindow_Restore(*args
, **kwargs
)
337 def Iconize(*args
, **kwargs
):
338 """Iconize(self, bool iconize=True)"""
339 return _windows_
.TopLevelWindow_Iconize(*args
, **kwargs
)
341 def IsMaximized(*args
, **kwargs
):
342 """IsMaximized(self) -> bool"""
343 return _windows_
.TopLevelWindow_IsMaximized(*args
, **kwargs
)
345 def IsIconized(*args
, **kwargs
):
346 """IsIconized(self) -> bool"""
347 return _windows_
.TopLevelWindow_IsIconized(*args
, **kwargs
)
349 def GetIcon(*args
, **kwargs
):
350 """GetIcon(self) -> Icon"""
351 return _windows_
.TopLevelWindow_GetIcon(*args
, **kwargs
)
353 def SetIcon(*args
, **kwargs
):
354 """SetIcon(self, Icon icon)"""
355 return _windows_
.TopLevelWindow_SetIcon(*args
, **kwargs
)
357 def SetIcons(*args
, **kwargs
):
358 """SetIcons(self, wxIconBundle icons)"""
359 return _windows_
.TopLevelWindow_SetIcons(*args
, **kwargs
)
361 def ShowFullScreen(*args
, **kwargs
):
362 """ShowFullScreen(self, bool show, long style=FULLSCREEN_ALL) -> bool"""
363 return _windows_
.TopLevelWindow_ShowFullScreen(*args
, **kwargs
)
365 def IsFullScreen(*args
, **kwargs
):
366 """IsFullScreen(self) -> bool"""
367 return _windows_
.TopLevelWindow_IsFullScreen(*args
, **kwargs
)
369 def SetTitle(*args
, **kwargs
):
371 SetTitle(self, String title)
373 Sets the window's title. Applicable only to frames and dialogs.
375 return _windows_
.TopLevelWindow_SetTitle(*args
, **kwargs
)
377 def GetTitle(*args
, **kwargs
):
379 GetTitle(self) -> String
381 Gets the window's title. Applicable only to frames and dialogs.
383 return _windows_
.TopLevelWindow_GetTitle(*args
, **kwargs
)
385 def SetShape(*args
, **kwargs
):
386 """SetShape(self, Region region) -> bool"""
387 return _windows_
.TopLevelWindow_SetShape(*args
, **kwargs
)
389 def RequestUserAttention(*args
, **kwargs
):
390 """RequestUserAttention(self, int flags=USER_ATTENTION_INFO)"""
391 return _windows_
.TopLevelWindow_RequestUserAttention(*args
, **kwargs
)
393 def IsActive(*args
, **kwargs
):
394 """IsActive(self) -> bool"""
395 return _windows_
.TopLevelWindow_IsActive(*args
, **kwargs
)
397 def MacSetMetalAppearance(*args
, **kwargs
):
398 """MacSetMetalAppearance(self, bool on)"""
399 return _windows_
.TopLevelWindow_MacSetMetalAppearance(*args
, **kwargs
)
401 def MacGetMetalAppearance(*args
, **kwargs
):
402 """MacGetMetalAppearance(self) -> bool"""
403 return _windows_
.TopLevelWindow_MacGetMetalAppearance(*args
, **kwargs
)
406 class TopLevelWindowPtr(TopLevelWindow
):
407 def __init__(self
, this
):
409 if not hasattr(self
,"thisown"): self
.thisown
= 0
410 self
.__class
__ = TopLevelWindow
411 _windows_
.TopLevelWindow_swigregister(TopLevelWindowPtr
)
412 cvar
= _windows_
.cvar
413 FrameNameStr
= cvar
.FrameNameStr
414 DialogNameStr
= cvar
.DialogNameStr
415 StatusLineNameStr
= cvar
.StatusLineNameStr
416 ToolBarNameStr
= cvar
.ToolBarNameStr
418 #---------------------------------------------------------------------------
420 class Frame(TopLevelWindow
):
422 return "<%s.%s; proxy of C++ wxFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
423 def __init__(self
, *args
, **kwargs
):
425 __init__(self, Window parent, int id=-1, String title=EmptyString,
426 Point pos=DefaultPosition, Size size=DefaultSize,
427 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> Frame
429 newobj
= _windows_
.new_Frame(*args
, **kwargs
)
430 self
.this
= newobj
.this
433 self
._setOORInfo
(self
)
435 def Create(*args
, **kwargs
):
437 Create(self, Window parent, int id=-1, String title=EmptyString,
438 Point pos=DefaultPosition, Size size=DefaultSize,
439 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> bool
441 return _windows_
.Frame_Create(*args
, **kwargs
)
443 def GetClientAreaOrigin(*args
, **kwargs
):
445 GetClientAreaOrigin(self) -> Point
447 Get the origin of the client area of the window relative to the
448 window's top left corner (the client area may be shifted because of
449 the borders, scrollbars, other decorations...)
451 return _windows_
.Frame_GetClientAreaOrigin(*args
, **kwargs
)
453 def SendSizeEvent(*args
, **kwargs
):
454 """SendSizeEvent(self)"""
455 return _windows_
.Frame_SendSizeEvent(*args
, **kwargs
)
457 def SetMenuBar(*args
, **kwargs
):
458 """SetMenuBar(self, MenuBar menubar)"""
459 return _windows_
.Frame_SetMenuBar(*args
, **kwargs
)
461 def GetMenuBar(*args
, **kwargs
):
462 """GetMenuBar(self) -> MenuBar"""
463 return _windows_
.Frame_GetMenuBar(*args
, **kwargs
)
465 def ProcessCommand(*args
, **kwargs
):
466 """ProcessCommand(self, int winid) -> bool"""
467 return _windows_
.Frame_ProcessCommand(*args
, **kwargs
)
469 Command
= ProcessCommand
470 def CreateStatusBar(*args
, **kwargs
):
472 CreateStatusBar(self, int number=1, long style=wxST_SIZEGRIP|wxFULL_REPAINT_ON_RESIZE,
473 int winid=0, String name=StatusLineNameStr) -> StatusBar
475 return _windows_
.Frame_CreateStatusBar(*args
, **kwargs
)
477 def GetStatusBar(*args
, **kwargs
):
478 """GetStatusBar(self) -> StatusBar"""
479 return _windows_
.Frame_GetStatusBar(*args
, **kwargs
)
481 def SetStatusBar(*args
, **kwargs
):
482 """SetStatusBar(self, StatusBar statBar)"""
483 return _windows_
.Frame_SetStatusBar(*args
, **kwargs
)
485 def SetStatusText(*args
, **kwargs
):
486 """SetStatusText(self, String text, int number=0)"""
487 return _windows_
.Frame_SetStatusText(*args
, **kwargs
)
489 def SetStatusWidths(*args
, **kwargs
):
490 """SetStatusWidths(self, int widths, int widths_field)"""
491 return _windows_
.Frame_SetStatusWidths(*args
, **kwargs
)
493 def PushStatusText(*args
, **kwargs
):
494 """PushStatusText(self, String text, int number=0)"""
495 return _windows_
.Frame_PushStatusText(*args
, **kwargs
)
497 def PopStatusText(*args
, **kwargs
):
498 """PopStatusText(self, int number=0)"""
499 return _windows_
.Frame_PopStatusText(*args
, **kwargs
)
501 def SetStatusBarPane(*args
, **kwargs
):
502 """SetStatusBarPane(self, int n)"""
503 return _windows_
.Frame_SetStatusBarPane(*args
, **kwargs
)
505 def GetStatusBarPane(*args
, **kwargs
):
506 """GetStatusBarPane(self) -> int"""
507 return _windows_
.Frame_GetStatusBarPane(*args
, **kwargs
)
509 def CreateToolBar(*args
, **kwargs
):
510 """CreateToolBar(self, long style=-1, int winid=-1, String name=ToolBarNameStr) -> wxToolBar"""
511 return _windows_
.Frame_CreateToolBar(*args
, **kwargs
)
513 def GetToolBar(*args
, **kwargs
):
514 """GetToolBar(self) -> wxToolBar"""
515 return _windows_
.Frame_GetToolBar(*args
, **kwargs
)
517 def SetToolBar(*args
, **kwargs
):
518 """SetToolBar(self, wxToolBar toolbar)"""
519 return _windows_
.Frame_SetToolBar(*args
, **kwargs
)
521 def DoGiveHelp(*args
, **kwargs
):
522 """DoGiveHelp(self, String text, bool show)"""
523 return _windows_
.Frame_DoGiveHelp(*args
, **kwargs
)
525 def DoMenuUpdates(*args
, **kwargs
):
526 """DoMenuUpdates(self, Menu menu=None)"""
527 return _windows_
.Frame_DoMenuUpdates(*args
, **kwargs
)
529 def GetClassDefaultAttributes(*args
, **kwargs
):
531 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
533 Get the default attributes for this class. This is useful if you want
534 to use the same font or colour in your own control as in a standard
535 control -- which is a much better idea than hard coding specific
536 colours or fonts which might look completely out of place on the
537 user's system, especially if it uses themes.
539 The variant parameter is only relevant under Mac currently and is
540 ignore under other platforms. Under Mac, it will change the size of
541 the returned font. See `wx.Window.SetWindowVariant` for more about
544 return _windows_
.Frame_GetClassDefaultAttributes(*args
, **kwargs
)
546 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
548 class FramePtr(Frame
):
549 def __init__(self
, this
):
551 if not hasattr(self
,"thisown"): self
.thisown
= 0
552 self
.__class
__ = Frame
553 _windows_
.Frame_swigregister(FramePtr
)
555 def PreFrame(*args
, **kwargs
):
556 """PreFrame() -> Frame"""
557 val
= _windows_
.new_PreFrame(*args
, **kwargs
)
561 def Frame_GetClassDefaultAttributes(*args
, **kwargs
):
563 Frame_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
565 Get the default attributes for this class. This is useful if you want
566 to use the same font or colour in your own control as in a standard
567 control -- which is a much better idea than hard coding specific
568 colours or fonts which might look completely out of place on the
569 user's system, especially if it uses themes.
571 The variant parameter is only relevant under Mac currently and is
572 ignore under other platforms. Under Mac, it will change the size of
573 the returned font. See `wx.Window.SetWindowVariant` for more about
576 return _windows_
.Frame_GetClassDefaultAttributes(*args
, **kwargs
)
578 #---------------------------------------------------------------------------
580 class Dialog(TopLevelWindow
):
582 return "<%s.%s; proxy of C++ wxDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
583 def __init__(self
, *args
, **kwargs
):
585 __init__(self, Window parent, int id=-1, String title=EmptyString,
586 Point pos=DefaultPosition, Size size=DefaultSize,
587 long style=DEFAULT_DIALOG_STYLE, String name=DialogNameStr) -> Dialog
589 newobj
= _windows_
.new_Dialog(*args
, **kwargs
)
590 self
.this
= newobj
.this
593 self
._setOORInfo
(self
)
595 def Create(*args
, **kwargs
):
597 Create(self, Window parent, int id=-1, String title=EmptyString,
598 Point pos=DefaultPosition, Size size=DefaultSize,
599 long style=DEFAULT_DIALOG_STYLE, String name=DialogNameStr) -> bool
601 return _windows_
.Dialog_Create(*args
, **kwargs
)
603 def SetReturnCode(*args
, **kwargs
):
604 """SetReturnCode(self, int returnCode)"""
605 return _windows_
.Dialog_SetReturnCode(*args
, **kwargs
)
607 def GetReturnCode(*args
, **kwargs
):
608 """GetReturnCode(self) -> int"""
609 return _windows_
.Dialog_GetReturnCode(*args
, **kwargs
)
611 def CreateTextSizer(*args
, **kwargs
):
612 """CreateTextSizer(self, String message) -> Sizer"""
613 return _windows_
.Dialog_CreateTextSizer(*args
, **kwargs
)
615 def CreateButtonSizer(*args
, **kwargs
):
616 """CreateButtonSizer(self, long flags) -> Sizer"""
617 return _windows_
.Dialog_CreateButtonSizer(*args
, **kwargs
)
619 def IsModal(*args
, **kwargs
):
620 """IsModal(self) -> bool"""
621 return _windows_
.Dialog_IsModal(*args
, **kwargs
)
623 def ShowModal(*args
, **kwargs
):
624 """ShowModal(self) -> int"""
625 return _windows_
.Dialog_ShowModal(*args
, **kwargs
)
627 def EndModal(*args
, **kwargs
):
628 """EndModal(self, int retCode)"""
629 return _windows_
.Dialog_EndModal(*args
, **kwargs
)
631 def GetClassDefaultAttributes(*args
, **kwargs
):
633 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
635 Get the default attributes for this class. This is useful if you want
636 to use the same font or colour in your own control as in a standard
637 control -- which is a much better idea than hard coding specific
638 colours or fonts which might look completely out of place on the
639 user's system, especially if it uses themes.
641 The variant parameter is only relevant under Mac currently and is
642 ignore under other platforms. Under Mac, it will change the size of
643 the returned font. See `wx.Window.SetWindowVariant` for more about
646 return _windows_
.Dialog_GetClassDefaultAttributes(*args
, **kwargs
)
648 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
649 def SendSizeEvent(self
):
650 self
.ProcessEvent(wx
.SizeEvent((-1,-1)))
653 class DialogPtr(Dialog
):
654 def __init__(self
, this
):
656 if not hasattr(self
,"thisown"): self
.thisown
= 0
657 self
.__class
__ = Dialog
658 _windows_
.Dialog_swigregister(DialogPtr
)
660 def PreDialog(*args
, **kwargs
):
661 """PreDialog() -> Dialog"""
662 val
= _windows_
.new_PreDialog(*args
, **kwargs
)
666 def Dialog_GetClassDefaultAttributes(*args
, **kwargs
):
668 Dialog_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
670 Get the default attributes for this class. This is useful if you want
671 to use the same font or colour in your own control as in a standard
672 control -- which is a much better idea than hard coding specific
673 colours or fonts which might look completely out of place on the
674 user's system, especially if it uses themes.
676 The variant parameter is only relevant under Mac currently and is
677 ignore under other platforms. Under Mac, it will change the size of
678 the returned font. See `wx.Window.SetWindowVariant` for more about
681 return _windows_
.Dialog_GetClassDefaultAttributes(*args
, **kwargs
)
683 #---------------------------------------------------------------------------
685 class MiniFrame(Frame
):
687 return "<%s.%s; proxy of C++ wxMiniFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
688 def __init__(self
, *args
, **kwargs
):
690 __init__(self, Window parent, int id=-1, String title=EmptyString,
691 Point pos=DefaultPosition, Size size=DefaultSize,
692 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> MiniFrame
694 newobj
= _windows_
.new_MiniFrame(*args
, **kwargs
)
695 self
.this
= newobj
.this
698 self
._setOORInfo
(self
)
700 def Create(*args
, **kwargs
):
702 Create(self, Window parent, int id=-1, String title=EmptyString,
703 Point pos=DefaultPosition, Size size=DefaultSize,
704 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> bool
706 return _windows_
.MiniFrame_Create(*args
, **kwargs
)
709 class MiniFramePtr(MiniFrame
):
710 def __init__(self
, this
):
712 if not hasattr(self
,"thisown"): self
.thisown
= 0
713 self
.__class
__ = MiniFrame
714 _windows_
.MiniFrame_swigregister(MiniFramePtr
)
716 def PreMiniFrame(*args
, **kwargs
):
717 """PreMiniFrame() -> MiniFrame"""
718 val
= _windows_
.new_PreMiniFrame(*args
, **kwargs
)
722 #---------------------------------------------------------------------------
724 SPLASH_CENTRE_ON_PARENT
= _windows_
.SPLASH_CENTRE_ON_PARENT
725 SPLASH_CENTRE_ON_SCREEN
= _windows_
.SPLASH_CENTRE_ON_SCREEN
726 SPLASH_NO_CENTRE
= _windows_
.SPLASH_NO_CENTRE
727 SPLASH_TIMEOUT
= _windows_
.SPLASH_TIMEOUT
728 SPLASH_NO_TIMEOUT
= _windows_
.SPLASH_NO_TIMEOUT
729 class SplashScreenWindow(_core
.Window
):
731 return "<%s.%s; proxy of C++ wxSplashScreenWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
732 def __init__(self
, *args
, **kwargs
):
734 __init__(self, Bitmap bitmap, Window parent, int id, Point pos=DefaultPosition,
735 Size size=DefaultSize, long style=NO_BORDER) -> SplashScreenWindow
737 newobj
= _windows_
.new_SplashScreenWindow(*args
, **kwargs
)
738 self
.this
= newobj
.this
741 self
._setOORInfo
(self
)
743 def SetBitmap(*args
, **kwargs
):
744 """SetBitmap(self, Bitmap bitmap)"""
745 return _windows_
.SplashScreenWindow_SetBitmap(*args
, **kwargs
)
747 def GetBitmap(*args
, **kwargs
):
748 """GetBitmap(self) -> Bitmap"""
749 return _windows_
.SplashScreenWindow_GetBitmap(*args
, **kwargs
)
752 class SplashScreenWindowPtr(SplashScreenWindow
):
753 def __init__(self
, this
):
755 if not hasattr(self
,"thisown"): self
.thisown
= 0
756 self
.__class
__ = SplashScreenWindow
757 _windows_
.SplashScreenWindow_swigregister(SplashScreenWindowPtr
)
759 class SplashScreen(Frame
):
761 return "<%s.%s; proxy of C++ wxSplashScreen instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
762 def __init__(self
, *args
, **kwargs
):
764 __init__(self, Bitmap bitmap, long splashStyle, int milliseconds,
765 Window parent, int id=-1, Point pos=DefaultPosition,
766 Size size=DefaultSize, long style=wxSIMPLE_BORDER|wxFRAME_NO_TASKBAR|wxSTAY_ON_TOP) -> SplashScreen
768 newobj
= _windows_
.new_SplashScreen(*args
, **kwargs
)
769 self
.this
= newobj
.this
772 self
._setOORInfo
(self
)
774 def GetSplashStyle(*args
, **kwargs
):
775 """GetSplashStyle(self) -> long"""
776 return _windows_
.SplashScreen_GetSplashStyle(*args
, **kwargs
)
778 def GetSplashWindow(*args
, **kwargs
):
779 """GetSplashWindow(self) -> SplashScreenWindow"""
780 return _windows_
.SplashScreen_GetSplashWindow(*args
, **kwargs
)
782 def GetTimeout(*args
, **kwargs
):
783 """GetTimeout(self) -> int"""
784 return _windows_
.SplashScreen_GetTimeout(*args
, **kwargs
)
787 class SplashScreenPtr(SplashScreen
):
788 def __init__(self
, this
):
790 if not hasattr(self
,"thisown"): self
.thisown
= 0
791 self
.__class
__ = SplashScreen
792 _windows_
.SplashScreen_swigregister(SplashScreenPtr
)
794 #---------------------------------------------------------------------------
796 SB_NORMAL
= _windows_
.SB_NORMAL
797 SB_FLAT
= _windows_
.SB_FLAT
798 SB_RAISED
= _windows_
.SB_RAISED
799 class StatusBar(_core
.Window
):
801 return "<%s.%s; proxy of C++ wxStatusBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
802 def __init__(self
, *args
, **kwargs
):
804 __init__(self, Window parent, int id=-1, long style=wxST_SIZEGRIP|wxFULL_REPAINT_ON_RESIZE,
805 String name=StatusLineNameStr) -> StatusBar
807 newobj
= _windows_
.new_StatusBar(*args
, **kwargs
)
808 self
.this
= newobj
.this
811 self
._setOORInfo
(self
)
813 def Create(*args
, **kwargs
):
814 """Create(self, Window parent, int id=-1, long style=ST_SIZEGRIP, String name=StatusLineNameStr) -> bool"""
815 return _windows_
.StatusBar_Create(*args
, **kwargs
)
817 def SetFieldsCount(*args
, **kwargs
):
818 """SetFieldsCount(self, int number=1)"""
819 return _windows_
.StatusBar_SetFieldsCount(*args
, **kwargs
)
821 def GetFieldsCount(*args
, **kwargs
):
822 """GetFieldsCount(self) -> int"""
823 return _windows_
.StatusBar_GetFieldsCount(*args
, **kwargs
)
825 def SetStatusText(*args
, **kwargs
):
826 """SetStatusText(self, String text, int number=0)"""
827 return _windows_
.StatusBar_SetStatusText(*args
, **kwargs
)
829 def GetStatusText(*args
, **kwargs
):
830 """GetStatusText(self, int number=0) -> String"""
831 return _windows_
.StatusBar_GetStatusText(*args
, **kwargs
)
833 def PushStatusText(*args
, **kwargs
):
834 """PushStatusText(self, String text, int number=0)"""
835 return _windows_
.StatusBar_PushStatusText(*args
, **kwargs
)
837 def PopStatusText(*args
, **kwargs
):
838 """PopStatusText(self, int number=0)"""
839 return _windows_
.StatusBar_PopStatusText(*args
, **kwargs
)
841 def SetStatusWidths(*args
, **kwargs
):
842 """SetStatusWidths(self, int widths, int widths_field)"""
843 return _windows_
.StatusBar_SetStatusWidths(*args
, **kwargs
)
845 def SetStatusStyles(*args
, **kwargs
):
846 """SetStatusStyles(self, int styles, int styles_field)"""
847 return _windows_
.StatusBar_SetStatusStyles(*args
, **kwargs
)
849 def GetFieldRect(*args
, **kwargs
):
850 """GetFieldRect(self, int i) -> Rect"""
851 return _windows_
.StatusBar_GetFieldRect(*args
, **kwargs
)
853 def SetMinHeight(*args
, **kwargs
):
854 """SetMinHeight(self, int height)"""
855 return _windows_
.StatusBar_SetMinHeight(*args
, **kwargs
)
857 def GetBorderX(*args
, **kwargs
):
858 """GetBorderX(self) -> int"""
859 return _windows_
.StatusBar_GetBorderX(*args
, **kwargs
)
861 def GetBorderY(*args
, **kwargs
):
862 """GetBorderY(self) -> int"""
863 return _windows_
.StatusBar_GetBorderY(*args
, **kwargs
)
865 def GetClassDefaultAttributes(*args
, **kwargs
):
867 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
869 Get the default attributes for this class. This is useful if you want
870 to use the same font or colour in your own control as in a standard
871 control -- which is a much better idea than hard coding specific
872 colours or fonts which might look completely out of place on the
873 user's system, especially if it uses themes.
875 The variant parameter is only relevant under Mac currently and is
876 ignore under other platforms. Under Mac, it will change the size of
877 the returned font. See `wx.Window.SetWindowVariant` for more about
880 return _windows_
.StatusBar_GetClassDefaultAttributes(*args
, **kwargs
)
882 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
884 class StatusBarPtr(StatusBar
):
885 def __init__(self
, this
):
887 if not hasattr(self
,"thisown"): self
.thisown
= 0
888 self
.__class
__ = StatusBar
889 _windows_
.StatusBar_swigregister(StatusBarPtr
)
891 def PreStatusBar(*args
, **kwargs
):
892 """PreStatusBar() -> StatusBar"""
893 val
= _windows_
.new_PreStatusBar(*args
, **kwargs
)
897 def StatusBar_GetClassDefaultAttributes(*args
, **kwargs
):
899 StatusBar_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
901 Get the default attributes for this class. This is useful if you want
902 to use the same font or colour in your own control as in a standard
903 control -- which is a much better idea than hard coding specific
904 colours or fonts which might look completely out of place on the
905 user's system, especially if it uses themes.
907 The variant parameter is only relevant under Mac currently and is
908 ignore under other platforms. Under Mac, it will change the size of
909 the returned font. See `wx.Window.SetWindowVariant` for more about
912 return _windows_
.StatusBar_GetClassDefaultAttributes(*args
, **kwargs
)
914 #---------------------------------------------------------------------------
916 SP_NOBORDER
= _windows_
.SP_NOBORDER
917 SP_NOSASH
= _windows_
.SP_NOSASH
918 SP_PERMIT_UNSPLIT
= _windows_
.SP_PERMIT_UNSPLIT
919 SP_LIVE_UPDATE
= _windows_
.SP_LIVE_UPDATE
920 SP_3DSASH
= _windows_
.SP_3DSASH
921 SP_3DBORDER
= _windows_
.SP_3DBORDER
922 SP_NO_XP_THEME
= _windows_
.SP_NO_XP_THEME
923 SP_BORDER
= _windows_
.SP_BORDER
924 SP_3D
= _windows_
.SP_3D
925 SPLIT_HORIZONTAL
= _windows_
.SPLIT_HORIZONTAL
926 SPLIT_VERTICAL
= _windows_
.SPLIT_VERTICAL
927 SPLIT_DRAG_NONE
= _windows_
.SPLIT_DRAG_NONE
928 SPLIT_DRAG_DRAGGING
= _windows_
.SPLIT_DRAG_DRAGGING
929 SPLIT_DRAG_LEFT_DOWN
= _windows_
.SPLIT_DRAG_LEFT_DOWN
930 class SplitterWindow(_core
.Window
):
932 wx.SplitterWindow manages up to two subwindows or panes, with an
933 optional vertical or horizontal split which can be used with the mouse
937 return "<%s.%s; proxy of C++ wxSplitterWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
938 def __init__(self
, *args
, **kwargs
):
940 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
941 Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> SplitterWindow
943 Constructor. Creates and shows a SplitterWindow.
945 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point'];del kwargs
['point']
946 newobj
= _windows_
.new_SplitterWindow(*args
, **kwargs
)
947 self
.this
= newobj
.this
950 self
._setOORInfo
(self
)
952 def Create(*args
, **kwargs
):
954 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
955 Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> bool
957 Create the GUI part of the SplitterWindow for the 2-phase create.
959 return _windows_
.SplitterWindow_Create(*args
, **kwargs
)
961 def GetWindow1(*args
, **kwargs
):
963 GetWindow1(self) -> Window
965 Gets the only or left/top pane.
967 return _windows_
.SplitterWindow_GetWindow1(*args
, **kwargs
)
969 def GetWindow2(*args
, **kwargs
):
971 GetWindow2(self) -> Window
973 Gets the right/bottom pane.
975 return _windows_
.SplitterWindow_GetWindow2(*args
, **kwargs
)
977 def SetSplitMode(*args
, **kwargs
):
979 SetSplitMode(self, int mode)
981 Sets the split mode. The mode can be wx.SPLIT_VERTICAL or
982 wx.SPLIT_HORIZONTAL. This only sets the internal variable; does not
985 return _windows_
.SplitterWindow_SetSplitMode(*args
, **kwargs
)
987 def GetSplitMode(*args
, **kwargs
):
989 GetSplitMode(self) -> int
993 return _windows_
.SplitterWindow_GetSplitMode(*args
, **kwargs
)
995 def Initialize(*args
, **kwargs
):
997 Initialize(self, Window window)
999 Initializes the splitter window to have one pane. This should be
1000 called if you wish to initially view only a single pane in the
1003 return _windows_
.SplitterWindow_Initialize(*args
, **kwargs
)
1005 def SplitVertically(*args
, **kwargs
):
1007 SplitVertically(self, Window window1, Window window2, int sashPosition=0) -> bool
1009 Initializes the left and right panes of the splitter window.
1011 return _windows_
.SplitterWindow_SplitVertically(*args
, **kwargs
)
1013 def SplitHorizontally(*args
, **kwargs
):
1015 SplitHorizontally(self, Window window1, Window window2, int sashPosition=0) -> bool
1017 Initializes the top and bottom panes of the splitter window.
1019 return _windows_
.SplitterWindow_SplitHorizontally(*args
, **kwargs
)
1021 def Unsplit(*args
, **kwargs
):
1023 Unsplit(self, Window toRemove=None) -> bool
1025 Unsplits the window. Pass the pane to remove, or None to remove the
1026 right or bottom pane. Returns True if successful, False otherwise (the
1027 window was not split).
1029 This function will not actually delete the pane being
1030 removed; it sends EVT_SPLITTER_UNSPLIT which can be handled
1031 for the desired behaviour. By default, the pane being
1032 removed is only hidden.
1034 return _windows_
.SplitterWindow_Unsplit(*args
, **kwargs
)
1036 def ReplaceWindow(*args
, **kwargs
):
1038 ReplaceWindow(self, Window winOld, Window winNew) -> bool
1040 This function replaces one of the windows managed by the
1041 SplitterWindow with another one. It is in general better to use it
1042 instead of calling Unsplit() and then resplitting the window back
1043 because it will provoke much less flicker. It is valid to call this
1044 function whether the splitter has two windows or only one.
1046 Both parameters should be non-None and winOld must specify one of the
1047 windows managed by the splitter. If the parameters are incorrect or
1048 the window couldn't be replaced, False is returned. Otherwise the
1049 function will return True, but please notice that it will not Destroy
1050 the replaced window and you may wish to do it yourself.
1052 return _windows_
.SplitterWindow_ReplaceWindow(*args
, **kwargs
)
1054 def UpdateSize(*args
, **kwargs
):
1058 Causes any pending sizing of the sash and child panes to take place
1061 Such resizing normally takes place in idle time, in order to wait for
1062 layout to be completed. However, this can cause unacceptable flicker
1063 as the panes are resized after the window has been shown. To work
1064 around this, you can perform window layout (for example by sending a
1065 size event to the parent window), and then call this function, before
1066 showing the top-level window.
1068 return _windows_
.SplitterWindow_UpdateSize(*args
, **kwargs
)
1070 def IsSplit(*args
, **kwargs
):
1072 IsSplit(self) -> bool
1074 Is the window split?
1076 return _windows_
.SplitterWindow_IsSplit(*args
, **kwargs
)
1078 def SetSashSize(*args
, **kwargs
):
1080 SetSashSize(self, int width)
1082 Sets the sash size. Currently a NOP.
1084 return _windows_
.SplitterWindow_SetSashSize(*args
, **kwargs
)
1086 def SetBorderSize(*args
, **kwargs
):
1088 SetBorderSize(self, int width)
1090 Sets the border size. Currently a NOP.
1092 return _windows_
.SplitterWindow_SetBorderSize(*args
, **kwargs
)
1094 def GetSashSize(*args
, **kwargs
):
1096 GetSashSize(self) -> int
1100 return _windows_
.SplitterWindow_GetSashSize(*args
, **kwargs
)
1102 def GetBorderSize(*args
, **kwargs
):
1104 GetBorderSize(self) -> int
1106 Gets the border size
1108 return _windows_
.SplitterWindow_GetBorderSize(*args
, **kwargs
)
1110 def SetSashPosition(*args
, **kwargs
):
1112 SetSashPosition(self, int position, bool redraw=True)
1114 Sets the sash position, in pixels. If redraw is Ttrue then the panes
1115 are resized and the sash and border are redrawn.
1117 return _windows_
.SplitterWindow_SetSashPosition(*args
, **kwargs
)
1119 def GetSashPosition(*args
, **kwargs
):
1121 GetSashPosition(self) -> int
1123 Returns the surrent sash position.
1125 return _windows_
.SplitterWindow_GetSashPosition(*args
, **kwargs
)
1127 def SetSashGravity(*args
, **kwargs
):
1129 SetSashGravity(self, double gravity)
1131 Set the sash gravity. Gravity is a floating-point factor between 0.0
1132 and 1.0 which controls position of sash while resizing the
1133 `wx.SplitterWindow`. The gravity specifies how much the left/top
1134 window will grow while resizing.
1136 return _windows_
.SplitterWindow_SetSashGravity(*args
, **kwargs
)
1138 def GetSashGravity(*args
, **kwargs
):
1140 GetSashGravity(self) -> double
1142 Gets the sash gravity.
1144 :see: `SetSashGravity`
1147 return _windows_
.SplitterWindow_GetSashGravity(*args
, **kwargs
)
1149 def SetMinimumPaneSize(*args
, **kwargs
):
1151 SetMinimumPaneSize(self, int min)
1153 Sets the minimum pane size in pixels.
1155 The default minimum pane size is zero, which means that either pane
1156 can be reduced to zero by dragging the sash, thus removing one of the
1157 panes. To prevent this behaviour (and veto out-of-range sash
1158 dragging), set a minimum size, for example 20 pixels. If the
1159 wx.SP_PERMIT_UNSPLIT style is used when a splitter window is created,
1160 the window may be unsplit even if minimum size is non-zero.
1162 return _windows_
.SplitterWindow_SetMinimumPaneSize(*args
, **kwargs
)
1164 def GetMinimumPaneSize(*args
, **kwargs
):
1166 GetMinimumPaneSize(self) -> int
1168 Gets the minimum pane size in pixels.
1170 return _windows_
.SplitterWindow_GetMinimumPaneSize(*args
, **kwargs
)
1172 def SashHitTest(*args
, **kwargs
):
1174 SashHitTest(self, int x, int y, int tolerance=5) -> bool
1176 Tests for x, y over the sash
1178 return _windows_
.SplitterWindow_SashHitTest(*args
, **kwargs
)
1180 def SizeWindows(*args
, **kwargs
):
1186 return _windows_
.SplitterWindow_SizeWindows(*args
, **kwargs
)
1188 def SetNeedUpdating(*args
, **kwargs
):
1189 """SetNeedUpdating(self, bool needUpdating)"""
1190 return _windows_
.SplitterWindow_SetNeedUpdating(*args
, **kwargs
)
1192 def GetNeedUpdating(*args
, **kwargs
):
1193 """GetNeedUpdating(self) -> bool"""
1194 return _windows_
.SplitterWindow_GetNeedUpdating(*args
, **kwargs
)
1196 def GetClassDefaultAttributes(*args
, **kwargs
):
1198 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1200 Get the default attributes for this class. This is useful if you want
1201 to use the same font or colour in your own control as in a standard
1202 control -- which is a much better idea than hard coding specific
1203 colours or fonts which might look completely out of place on the
1204 user's system, especially if it uses themes.
1206 The variant parameter is only relevant under Mac currently and is
1207 ignore under other platforms. Under Mac, it will change the size of
1208 the returned font. See `wx.Window.SetWindowVariant` for more about
1211 return _windows_
.SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
)
1213 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1215 class SplitterWindowPtr(SplitterWindow
):
1216 def __init__(self
, this
):
1218 if not hasattr(self
,"thisown"): self
.thisown
= 0
1219 self
.__class
__ = SplitterWindow
1220 _windows_
.SplitterWindow_swigregister(SplitterWindowPtr
)
1221 SplitterNameStr
= cvar
.SplitterNameStr
1223 def PreSplitterWindow(*args
, **kwargs
):
1225 PreSplitterWindow() -> SplitterWindow
1227 Precreate a SplitterWindow for 2-phase creation.
1229 val
= _windows_
.new_PreSplitterWindow(*args
, **kwargs
)
1233 def SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
):
1235 SplitterWindow_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1237 Get the default attributes for this class. This is useful if you want
1238 to use the same font or colour in your own control as in a standard
1239 control -- which is a much better idea than hard coding specific
1240 colours or fonts which might look completely out of place on the
1241 user's system, especially if it uses themes.
1243 The variant parameter is only relevant under Mac currently and is
1244 ignore under other platforms. Under Mac, it will change the size of
1245 the returned font. See `wx.Window.SetWindowVariant` for more about
1248 return _windows_
.SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
)
1250 class SplitterEvent(_core
.NotifyEvent
):
1251 """This class represents the events generated by a splitter control."""
1253 return "<%s.%s; proxy of C++ wxSplitterEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1254 def __init__(self
, *args
, **kwargs
):
1256 __init__(self, wxEventType type=wxEVT_NULL, SplitterWindow splitter=(wxSplitterWindow *) NULL) -> SplitterEvent
1258 This class represents the events generated by a splitter control.
1260 newobj
= _windows_
.new_SplitterEvent(*args
, **kwargs
)
1261 self
.this
= newobj
.this
1264 def SetSashPosition(*args
, **kwargs
):
1266 SetSashPosition(self, int pos)
1268 This funciton is only meaningful during EVT_SPLITTER_SASH_POS_CHANGING
1269 and EVT_SPLITTER_SASH_POS_CHANGED events. In the case of _CHANGED
1270 events, sets the the new sash position. In the case of _CHANGING
1271 events, sets the new tracking bar position so visual feedback during
1272 dragging will represent that change that will actually take place. Set
1273 to -1 from the event handler code to prevent repositioning.
1275 return _windows_
.SplitterEvent_SetSashPosition(*args
, **kwargs
)
1277 def GetSashPosition(*args
, **kwargs
):
1279 GetSashPosition(self) -> int
1281 Returns the new sash position while in EVT_SPLITTER_SASH_POS_CHANGING
1282 and EVT_SPLITTER_SASH_POS_CHANGED events.
1284 return _windows_
.SplitterEvent_GetSashPosition(*args
, **kwargs
)
1286 def GetWindowBeingRemoved(*args
, **kwargs
):
1288 GetWindowBeingRemoved(self) -> Window
1290 Returns a pointer to the window being removed when a splitter window
1293 return _windows_
.SplitterEvent_GetWindowBeingRemoved(*args
, **kwargs
)
1295 def GetX(*args
, **kwargs
):
1299 Returns the x coordinate of the double-click point in a
1300 EVT_SPLITTER_DCLICK event.
1302 return _windows_
.SplitterEvent_GetX(*args
, **kwargs
)
1304 def GetY(*args
, **kwargs
):
1308 Returns the y coordinate of the double-click point in a
1309 EVT_SPLITTER_DCLICK event.
1311 return _windows_
.SplitterEvent_GetY(*args
, **kwargs
)
1314 class SplitterEventPtr(SplitterEvent
):
1315 def __init__(self
, this
):
1317 if not hasattr(self
,"thisown"): self
.thisown
= 0
1318 self
.__class
__ = SplitterEvent
1319 _windows_
.SplitterEvent_swigregister(SplitterEventPtr
)
1321 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
= _windows_
.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
1322 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
= _windows_
.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
1323 wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
= _windows_
.wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
1324 wxEVT_COMMAND_SPLITTER_UNSPLIT
= _windows_
.wxEVT_COMMAND_SPLITTER_UNSPLIT
1325 EVT_SPLITTER_SASH_POS_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
, 1 )
1326 EVT_SPLITTER_SASH_POS_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
, 1 )
1327 EVT_SPLITTER_DOUBLECLICKED
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
, 1 )
1328 EVT_SPLITTER_UNSPLIT
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_UNSPLIT
, 1 )
1329 EVT_SPLITTER_DCLICK
= EVT_SPLITTER_DOUBLECLICKED
1331 #---------------------------------------------------------------------------
1333 SASH_DRAG_NONE
= _windows_
.SASH_DRAG_NONE
1334 SASH_DRAG_DRAGGING
= _windows_
.SASH_DRAG_DRAGGING
1335 SASH_DRAG_LEFT_DOWN
= _windows_
.SASH_DRAG_LEFT_DOWN
1336 SW_NOBORDER
= _windows_
.SW_NOBORDER
1337 SW_BORDER
= _windows_
.SW_BORDER
1338 SW_3DSASH
= _windows_
.SW_3DSASH
1339 SW_3DBORDER
= _windows_
.SW_3DBORDER
1340 SW_3D
= _windows_
.SW_3D
1341 SASH_TOP
= _windows_
.SASH_TOP
1342 SASH_RIGHT
= _windows_
.SASH_RIGHT
1343 SASH_BOTTOM
= _windows_
.SASH_BOTTOM
1344 SASH_LEFT
= _windows_
.SASH_LEFT
1345 SASH_NONE
= _windows_
.SASH_NONE
1346 class SashWindow(_core
.Window
):
1348 return "<%s.%s; proxy of C++ wxSashWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1349 def __init__(self
, *args
, **kwargs
):
1351 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1352 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1353 String name=SashNameStr) -> SashWindow
1355 newobj
= _windows_
.new_SashWindow(*args
, **kwargs
)
1356 self
.this
= newobj
.this
1359 self
._setOORInfo
(self
)
1361 def Create(*args
, **kwargs
):
1363 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1364 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1365 String name=SashNameStr) -> bool
1367 return _windows_
.SashWindow_Create(*args
, **kwargs
)
1369 def SetSashVisible(*args
, **kwargs
):
1370 """SetSashVisible(self, int edge, bool sash)"""
1371 return _windows_
.SashWindow_SetSashVisible(*args
, **kwargs
)
1373 def GetSashVisible(*args
, **kwargs
):
1374 """GetSashVisible(self, int edge) -> bool"""
1375 return _windows_
.SashWindow_GetSashVisible(*args
, **kwargs
)
1377 def SetSashBorder(*args
, **kwargs
):
1378 """SetSashBorder(self, int edge, bool border)"""
1379 return _windows_
.SashWindow_SetSashBorder(*args
, **kwargs
)
1381 def HasBorder(*args
, **kwargs
):
1382 """HasBorder(self, int edge) -> bool"""
1383 return _windows_
.SashWindow_HasBorder(*args
, **kwargs
)
1385 def GetEdgeMargin(*args
, **kwargs
):
1386 """GetEdgeMargin(self, int edge) -> int"""
1387 return _windows_
.SashWindow_GetEdgeMargin(*args
, **kwargs
)
1389 def SetDefaultBorderSize(*args
, **kwargs
):
1390 """SetDefaultBorderSize(self, int width)"""
1391 return _windows_
.SashWindow_SetDefaultBorderSize(*args
, **kwargs
)
1393 def GetDefaultBorderSize(*args
, **kwargs
):
1394 """GetDefaultBorderSize(self) -> int"""
1395 return _windows_
.SashWindow_GetDefaultBorderSize(*args
, **kwargs
)
1397 def SetExtraBorderSize(*args
, **kwargs
):
1398 """SetExtraBorderSize(self, int width)"""
1399 return _windows_
.SashWindow_SetExtraBorderSize(*args
, **kwargs
)
1401 def GetExtraBorderSize(*args
, **kwargs
):
1402 """GetExtraBorderSize(self) -> int"""
1403 return _windows_
.SashWindow_GetExtraBorderSize(*args
, **kwargs
)
1405 def SetMinimumSizeX(*args
, **kwargs
):
1406 """SetMinimumSizeX(self, int min)"""
1407 return _windows_
.SashWindow_SetMinimumSizeX(*args
, **kwargs
)
1409 def SetMinimumSizeY(*args
, **kwargs
):
1410 """SetMinimumSizeY(self, int min)"""
1411 return _windows_
.SashWindow_SetMinimumSizeY(*args
, **kwargs
)
1413 def GetMinimumSizeX(*args
, **kwargs
):
1414 """GetMinimumSizeX(self) -> int"""
1415 return _windows_
.SashWindow_GetMinimumSizeX(*args
, **kwargs
)
1417 def GetMinimumSizeY(*args
, **kwargs
):
1418 """GetMinimumSizeY(self) -> int"""
1419 return _windows_
.SashWindow_GetMinimumSizeY(*args
, **kwargs
)
1421 def SetMaximumSizeX(*args
, **kwargs
):
1422 """SetMaximumSizeX(self, int max)"""
1423 return _windows_
.SashWindow_SetMaximumSizeX(*args
, **kwargs
)
1425 def SetMaximumSizeY(*args
, **kwargs
):
1426 """SetMaximumSizeY(self, int max)"""
1427 return _windows_
.SashWindow_SetMaximumSizeY(*args
, **kwargs
)
1429 def GetMaximumSizeX(*args
, **kwargs
):
1430 """GetMaximumSizeX(self) -> int"""
1431 return _windows_
.SashWindow_GetMaximumSizeX(*args
, **kwargs
)
1433 def GetMaximumSizeY(*args
, **kwargs
):
1434 """GetMaximumSizeY(self) -> int"""
1435 return _windows_
.SashWindow_GetMaximumSizeY(*args
, **kwargs
)
1437 def SashHitTest(*args
, **kwargs
):
1438 """SashHitTest(self, int x, int y, int tolerance=2) -> int"""
1439 return _windows_
.SashWindow_SashHitTest(*args
, **kwargs
)
1441 def SizeWindows(*args
, **kwargs
):
1442 """SizeWindows(self)"""
1443 return _windows_
.SashWindow_SizeWindows(*args
, **kwargs
)
1446 class SashWindowPtr(SashWindow
):
1447 def __init__(self
, this
):
1449 if not hasattr(self
,"thisown"): self
.thisown
= 0
1450 self
.__class
__ = SashWindow
1451 _windows_
.SashWindow_swigregister(SashWindowPtr
)
1452 SashNameStr
= cvar
.SashNameStr
1453 SashLayoutNameStr
= cvar
.SashLayoutNameStr
1455 def PreSashWindow(*args
, **kwargs
):
1456 """PreSashWindow() -> SashWindow"""
1457 val
= _windows_
.new_PreSashWindow(*args
, **kwargs
)
1461 SASH_STATUS_OK
= _windows_
.SASH_STATUS_OK
1462 SASH_STATUS_OUT_OF_RANGE
= _windows_
.SASH_STATUS_OUT_OF_RANGE
1463 class SashEvent(_core
.CommandEvent
):
1465 return "<%s.%s; proxy of C++ wxSashEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1466 def __init__(self
, *args
, **kwargs
):
1467 """__init__(self, int id=0, int edge=SASH_NONE) -> SashEvent"""
1468 newobj
= _windows_
.new_SashEvent(*args
, **kwargs
)
1469 self
.this
= newobj
.this
1472 def SetEdge(*args
, **kwargs
):
1473 """SetEdge(self, int edge)"""
1474 return _windows_
.SashEvent_SetEdge(*args
, **kwargs
)
1476 def GetEdge(*args
, **kwargs
):
1477 """GetEdge(self) -> int"""
1478 return _windows_
.SashEvent_GetEdge(*args
, **kwargs
)
1480 def SetDragRect(*args
, **kwargs
):
1481 """SetDragRect(self, Rect rect)"""
1482 return _windows_
.SashEvent_SetDragRect(*args
, **kwargs
)
1484 def GetDragRect(*args
, **kwargs
):
1485 """GetDragRect(self) -> Rect"""
1486 return _windows_
.SashEvent_GetDragRect(*args
, **kwargs
)
1488 def SetDragStatus(*args
, **kwargs
):
1489 """SetDragStatus(self, int status)"""
1490 return _windows_
.SashEvent_SetDragStatus(*args
, **kwargs
)
1492 def GetDragStatus(*args
, **kwargs
):
1493 """GetDragStatus(self) -> int"""
1494 return _windows_
.SashEvent_GetDragStatus(*args
, **kwargs
)
1497 class SashEventPtr(SashEvent
):
1498 def __init__(self
, this
):
1500 if not hasattr(self
,"thisown"): self
.thisown
= 0
1501 self
.__class
__ = SashEvent
1502 _windows_
.SashEvent_swigregister(SashEventPtr
)
1504 wxEVT_SASH_DRAGGED
= _windows_
.wxEVT_SASH_DRAGGED
1505 EVT_SASH_DRAGGED
= wx
.PyEventBinder( wxEVT_SASH_DRAGGED
, 1 )
1506 EVT_SASH_DRAGGED_RANGE
= wx
.PyEventBinder( wxEVT_SASH_DRAGGED
, 2 )
1508 #---------------------------------------------------------------------------
1510 LAYOUT_HORIZONTAL
= _windows_
.LAYOUT_HORIZONTAL
1511 LAYOUT_VERTICAL
= _windows_
.LAYOUT_VERTICAL
1512 LAYOUT_NONE
= _windows_
.LAYOUT_NONE
1513 LAYOUT_TOP
= _windows_
.LAYOUT_TOP
1514 LAYOUT_LEFT
= _windows_
.LAYOUT_LEFT
1515 LAYOUT_RIGHT
= _windows_
.LAYOUT_RIGHT
1516 LAYOUT_BOTTOM
= _windows_
.LAYOUT_BOTTOM
1517 LAYOUT_LENGTH_Y
= _windows_
.LAYOUT_LENGTH_Y
1518 LAYOUT_LENGTH_X
= _windows_
.LAYOUT_LENGTH_X
1519 LAYOUT_MRU_LENGTH
= _windows_
.LAYOUT_MRU_LENGTH
1520 LAYOUT_QUERY
= _windows_
.LAYOUT_QUERY
1521 wxEVT_QUERY_LAYOUT_INFO
= _windows_
.wxEVT_QUERY_LAYOUT_INFO
1522 wxEVT_CALCULATE_LAYOUT
= _windows_
.wxEVT_CALCULATE_LAYOUT
1523 class QueryLayoutInfoEvent(_core
.Event
):
1525 return "<%s.%s; proxy of C++ wxQueryLayoutInfoEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1526 def __init__(self
, *args
, **kwargs
):
1527 """__init__(self, int id=0) -> QueryLayoutInfoEvent"""
1528 newobj
= _windows_
.new_QueryLayoutInfoEvent(*args
, **kwargs
)
1529 self
.this
= newobj
.this
1532 def SetRequestedLength(*args
, **kwargs
):
1533 """SetRequestedLength(self, int length)"""
1534 return _windows_
.QueryLayoutInfoEvent_SetRequestedLength(*args
, **kwargs
)
1536 def GetRequestedLength(*args
, **kwargs
):
1537 """GetRequestedLength(self) -> int"""
1538 return _windows_
.QueryLayoutInfoEvent_GetRequestedLength(*args
, **kwargs
)
1540 def SetFlags(*args
, **kwargs
):
1541 """SetFlags(self, int flags)"""
1542 return _windows_
.QueryLayoutInfoEvent_SetFlags(*args
, **kwargs
)
1544 def GetFlags(*args
, **kwargs
):
1545 """GetFlags(self) -> int"""
1546 return _windows_
.QueryLayoutInfoEvent_GetFlags(*args
, **kwargs
)
1548 def SetSize(*args
, **kwargs
):
1549 """SetSize(self, Size size)"""
1550 return _windows_
.QueryLayoutInfoEvent_SetSize(*args
, **kwargs
)
1552 def GetSize(*args
, **kwargs
):
1553 """GetSize(self) -> Size"""
1554 return _windows_
.QueryLayoutInfoEvent_GetSize(*args
, **kwargs
)
1556 def SetOrientation(*args
, **kwargs
):
1557 """SetOrientation(self, int orient)"""
1558 return _windows_
.QueryLayoutInfoEvent_SetOrientation(*args
, **kwargs
)
1560 def GetOrientation(*args
, **kwargs
):
1561 """GetOrientation(self) -> int"""
1562 return _windows_
.QueryLayoutInfoEvent_GetOrientation(*args
, **kwargs
)
1564 def SetAlignment(*args
, **kwargs
):
1565 """SetAlignment(self, int align)"""
1566 return _windows_
.QueryLayoutInfoEvent_SetAlignment(*args
, **kwargs
)
1568 def GetAlignment(*args
, **kwargs
):
1569 """GetAlignment(self) -> int"""
1570 return _windows_
.QueryLayoutInfoEvent_GetAlignment(*args
, **kwargs
)
1573 class QueryLayoutInfoEventPtr(QueryLayoutInfoEvent
):
1574 def __init__(self
, this
):
1576 if not hasattr(self
,"thisown"): self
.thisown
= 0
1577 self
.__class
__ = QueryLayoutInfoEvent
1578 _windows_
.QueryLayoutInfoEvent_swigregister(QueryLayoutInfoEventPtr
)
1580 class CalculateLayoutEvent(_core
.Event
):
1582 return "<%s.%s; proxy of C++ wxCalculateLayoutEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1583 def __init__(self
, *args
, **kwargs
):
1584 """__init__(self, int id=0) -> CalculateLayoutEvent"""
1585 newobj
= _windows_
.new_CalculateLayoutEvent(*args
, **kwargs
)
1586 self
.this
= newobj
.this
1589 def SetFlags(*args
, **kwargs
):
1590 """SetFlags(self, int flags)"""
1591 return _windows_
.CalculateLayoutEvent_SetFlags(*args
, **kwargs
)
1593 def GetFlags(*args
, **kwargs
):
1594 """GetFlags(self) -> int"""
1595 return _windows_
.CalculateLayoutEvent_GetFlags(*args
, **kwargs
)
1597 def SetRect(*args
, **kwargs
):
1598 """SetRect(self, Rect rect)"""
1599 return _windows_
.CalculateLayoutEvent_SetRect(*args
, **kwargs
)
1601 def GetRect(*args
, **kwargs
):
1602 """GetRect(self) -> Rect"""
1603 return _windows_
.CalculateLayoutEvent_GetRect(*args
, **kwargs
)
1606 class CalculateLayoutEventPtr(CalculateLayoutEvent
):
1607 def __init__(self
, this
):
1609 if not hasattr(self
,"thisown"): self
.thisown
= 0
1610 self
.__class
__ = CalculateLayoutEvent
1611 _windows_
.CalculateLayoutEvent_swigregister(CalculateLayoutEventPtr
)
1613 EVT_QUERY_LAYOUT_INFO
= wx
.PyEventBinder( wxEVT_QUERY_LAYOUT_INFO
)
1614 EVT_CALCULATE_LAYOUT
= wx
.PyEventBinder( wxEVT_CALCULATE_LAYOUT
)
1616 class SashLayoutWindow(SashWindow
):
1618 return "<%s.%s; proxy of C++ wxSashLayoutWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1619 def __init__(self
, *args
, **kwargs
):
1621 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1622 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1623 String name=SashLayoutNameStr) -> SashLayoutWindow
1625 newobj
= _windows_
.new_SashLayoutWindow(*args
, **kwargs
)
1626 self
.this
= newobj
.this
1629 self
._setOORInfo
(self
)
1631 def Create(*args
, **kwargs
):
1633 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1634 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1635 String name=SashLayoutNameStr) -> bool
1637 return _windows_
.SashLayoutWindow_Create(*args
, **kwargs
)
1639 def GetAlignment(*args
, **kwargs
):
1640 """GetAlignment(self) -> int"""
1641 return _windows_
.SashLayoutWindow_GetAlignment(*args
, **kwargs
)
1643 def GetOrientation(*args
, **kwargs
):
1644 """GetOrientation(self) -> int"""
1645 return _windows_
.SashLayoutWindow_GetOrientation(*args
, **kwargs
)
1647 def SetAlignment(*args
, **kwargs
):
1648 """SetAlignment(self, int alignment)"""
1649 return _windows_
.SashLayoutWindow_SetAlignment(*args
, **kwargs
)
1651 def SetDefaultSize(*args
, **kwargs
):
1652 """SetDefaultSize(self, Size size)"""
1653 return _windows_
.SashLayoutWindow_SetDefaultSize(*args
, **kwargs
)
1655 def SetOrientation(*args
, **kwargs
):
1656 """SetOrientation(self, int orientation)"""
1657 return _windows_
.SashLayoutWindow_SetOrientation(*args
, **kwargs
)
1660 class SashLayoutWindowPtr(SashLayoutWindow
):
1661 def __init__(self
, this
):
1663 if not hasattr(self
,"thisown"): self
.thisown
= 0
1664 self
.__class
__ = SashLayoutWindow
1665 _windows_
.SashLayoutWindow_swigregister(SashLayoutWindowPtr
)
1667 def PreSashLayoutWindow(*args
, **kwargs
):
1668 """PreSashLayoutWindow() -> SashLayoutWindow"""
1669 val
= _windows_
.new_PreSashLayoutWindow(*args
, **kwargs
)
1673 class LayoutAlgorithm(_core
.Object
):
1675 return "<%s.%s; proxy of C++ wxLayoutAlgorithm instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1676 def __init__(self
, *args
, **kwargs
):
1677 """__init__(self) -> LayoutAlgorithm"""
1678 newobj
= _windows_
.new_LayoutAlgorithm(*args
, **kwargs
)
1679 self
.this
= newobj
.this
1682 def __del__(self
, destroy
=_windows_
.delete_LayoutAlgorithm
):
1685 if self
.thisown
: destroy(self
)
1688 def LayoutMDIFrame(*args
, **kwargs
):
1689 """LayoutMDIFrame(self, MDIParentFrame frame, Rect rect=None) -> bool"""
1690 return _windows_
.LayoutAlgorithm_LayoutMDIFrame(*args
, **kwargs
)
1692 def LayoutFrame(*args
, **kwargs
):
1693 """LayoutFrame(self, Frame frame, Window mainWindow=None) -> bool"""
1694 return _windows_
.LayoutAlgorithm_LayoutFrame(*args
, **kwargs
)
1696 def LayoutWindow(*args
, **kwargs
):
1697 """LayoutWindow(self, Window parent, Window mainWindow=None) -> bool"""
1698 return _windows_
.LayoutAlgorithm_LayoutWindow(*args
, **kwargs
)
1701 class LayoutAlgorithmPtr(LayoutAlgorithm
):
1702 def __init__(self
, this
):
1704 if not hasattr(self
,"thisown"): self
.thisown
= 0
1705 self
.__class
__ = LayoutAlgorithm
1706 _windows_
.LayoutAlgorithm_swigregister(LayoutAlgorithmPtr
)
1708 #---------------------------------------------------------------------------
1710 class PopupWindow(_core
.Window
):
1712 return "<%s.%s; proxy of C++ wxPopupWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1713 def __init__(self
, *args
, **kwargs
):
1714 """__init__(self, Window parent, int flags=BORDER_NONE) -> PopupWindow"""
1715 newobj
= _windows_
.new_PopupWindow(*args
, **kwargs
)
1716 self
.this
= newobj
.this
1719 self
._setOORInfo
(self
)
1721 def Create(*args
, **kwargs
):
1722 """Create(self, Window parent, int flags=BORDER_NONE) -> bool"""
1723 return _windows_
.PopupWindow_Create(*args
, **kwargs
)
1725 def Position(*args
, **kwargs
):
1726 """Position(self, Point ptOrigin, Size size)"""
1727 return _windows_
.PopupWindow_Position(*args
, **kwargs
)
1730 class PopupWindowPtr(PopupWindow
):
1731 def __init__(self
, this
):
1733 if not hasattr(self
,"thisown"): self
.thisown
= 0
1734 self
.__class
__ = PopupWindow
1735 _windows_
.PopupWindow_swigregister(PopupWindowPtr
)
1737 def PrePopupWindow(*args
, **kwargs
):
1738 """PrePopupWindow() -> PopupWindow"""
1739 val
= _windows_
.new_PrePopupWindow(*args
, **kwargs
)
1743 #---------------------------------------------------------------------------
1745 class PopupTransientWindow(PopupWindow
):
1747 return "<%s.%s; proxy of C++ wxPyPopupTransientWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1748 def __init__(self
, *args
, **kwargs
):
1749 """__init__(self, Window parent, int style=BORDER_NONE) -> PopupTransientWindow"""
1750 newobj
= _windows_
.new_PopupTransientWindow(*args
, **kwargs
)
1751 self
.this
= newobj
.this
1754 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, PopupTransientWindow
)
1756 def _setCallbackInfo(*args
, **kwargs
):
1757 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1758 return _windows_
.PopupTransientWindow__setCallbackInfo(*args
, **kwargs
)
1760 def Popup(*args
, **kwargs
):
1761 """Popup(self, Window focus=None)"""
1762 return _windows_
.PopupTransientWindow_Popup(*args
, **kwargs
)
1764 def Dismiss(*args
, **kwargs
):
1766 return _windows_
.PopupTransientWindow_Dismiss(*args
, **kwargs
)
1769 class PopupTransientWindowPtr(PopupTransientWindow
):
1770 def __init__(self
, this
):
1772 if not hasattr(self
,"thisown"): self
.thisown
= 0
1773 self
.__class
__ = PopupTransientWindow
1774 _windows_
.PopupTransientWindow_swigregister(PopupTransientWindowPtr
)
1776 def PrePopupTransientWindow(*args
, **kwargs
):
1777 """PrePopupTransientWindow() -> PopupTransientWindow"""
1778 val
= _windows_
.new_PrePopupTransientWindow(*args
, **kwargs
)
1782 #---------------------------------------------------------------------------
1784 class TipWindow(PopupTransientWindow
):
1786 return "<%s.%s; proxy of C++ wxTipWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1787 def __init__(self
, *args
, **kwargs
):
1788 """__init__(self, Window parent, String text, int maxLength=100, Rect rectBound=None) -> TipWindow"""
1789 newobj
= _windows_
.new_TipWindow(*args
, **kwargs
)
1790 self
.this
= newobj
.this
1793 self
._setOORInfo
(self
)
1795 def SetBoundingRect(*args
, **kwargs
):
1796 """SetBoundingRect(self, Rect rectBound)"""
1797 return _windows_
.TipWindow_SetBoundingRect(*args
, **kwargs
)
1799 def Close(*args
, **kwargs
):
1801 return _windows_
.TipWindow_Close(*args
, **kwargs
)
1804 class TipWindowPtr(TipWindow
):
1805 def __init__(self
, this
):
1807 if not hasattr(self
,"thisown"): self
.thisown
= 0
1808 self
.__class
__ = TipWindow
1809 _windows_
.TipWindow_swigregister(TipWindowPtr
)
1811 #---------------------------------------------------------------------------
1813 class VScrolledWindow(Panel
):
1815 return "<%s.%s; proxy of C++ wxPyVScrolledWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1816 def __init__(self
, *args
, **kwargs
):
1818 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1819 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> VScrolledWindow
1821 newobj
= _windows_
.new_VScrolledWindow(*args
, **kwargs
)
1822 self
.this
= newobj
.this
1825 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, VScrolledWindow
)
1827 def _setCallbackInfo(*args
, **kwargs
):
1828 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1829 return _windows_
.VScrolledWindow__setCallbackInfo(*args
, **kwargs
)
1831 def Create(*args
, **kwargs
):
1833 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1834 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> bool
1836 return _windows_
.VScrolledWindow_Create(*args
, **kwargs
)
1838 def SetLineCount(*args
, **kwargs
):
1839 """SetLineCount(self, size_t count)"""
1840 return _windows_
.VScrolledWindow_SetLineCount(*args
, **kwargs
)
1842 def ScrollToLine(*args
, **kwargs
):
1843 """ScrollToLine(self, size_t line) -> bool"""
1844 return _windows_
.VScrolledWindow_ScrollToLine(*args
, **kwargs
)
1846 def ScrollLines(*args
, **kwargs
):
1848 ScrollLines(self, int lines) -> bool
1850 If the platform and window class supports it, scrolls the window by
1851 the given number of lines down, if lines is positive, or up if lines
1852 is negative. Returns True if the window was scrolled, False if it was
1853 already on top/bottom and nothing was done.
1855 return _windows_
.VScrolledWindow_ScrollLines(*args
, **kwargs
)
1857 def ScrollPages(*args
, **kwargs
):
1859 ScrollPages(self, int pages) -> bool
1861 If the platform and window class supports it, scrolls the window by
1862 the given number of pages down, if pages is positive, or up if pages
1863 is negative. Returns True if the window was scrolled, False if it was
1864 already on top/bottom and nothing was done.
1866 return _windows_
.VScrolledWindow_ScrollPages(*args
, **kwargs
)
1868 def RefreshLine(*args
, **kwargs
):
1869 """RefreshLine(self, size_t line)"""
1870 return _windows_
.VScrolledWindow_RefreshLine(*args
, **kwargs
)
1872 def RefreshLines(*args
, **kwargs
):
1873 """RefreshLines(self, size_t from, size_t to)"""
1874 return _windows_
.VScrolledWindow_RefreshLines(*args
, **kwargs
)
1876 def HitTestXY(*args
, **kwargs
):
1878 HitTestXY(self, int x, int y) -> int
1880 Test where the given (in client coords) point lies
1882 return _windows_
.VScrolledWindow_HitTestXY(*args
, **kwargs
)
1884 def HitTest(*args
, **kwargs
):
1886 HitTest(self, Point pt) -> int
1888 Test where the given (in client coords) point lies
1890 return _windows_
.VScrolledWindow_HitTest(*args
, **kwargs
)
1892 def RefreshAll(*args
, **kwargs
):
1893 """RefreshAll(self)"""
1894 return _windows_
.VScrolledWindow_RefreshAll(*args
, **kwargs
)
1896 def GetLineCount(*args
, **kwargs
):
1897 """GetLineCount(self) -> size_t"""
1898 return _windows_
.VScrolledWindow_GetLineCount(*args
, **kwargs
)
1900 def GetFirstVisibleLine(*args
, **kwargs
):
1901 """GetFirstVisibleLine(self) -> size_t"""
1902 return _windows_
.VScrolledWindow_GetFirstVisibleLine(*args
, **kwargs
)
1904 def GetLastVisibleLine(*args
, **kwargs
):
1905 """GetLastVisibleLine(self) -> size_t"""
1906 return _windows_
.VScrolledWindow_GetLastVisibleLine(*args
, **kwargs
)
1908 def IsVisible(*args
, **kwargs
):
1909 """IsVisible(self, size_t line) -> bool"""
1910 return _windows_
.VScrolledWindow_IsVisible(*args
, **kwargs
)
1913 class VScrolledWindowPtr(VScrolledWindow
):
1914 def __init__(self
, this
):
1916 if not hasattr(self
,"thisown"): self
.thisown
= 0
1917 self
.__class
__ = VScrolledWindow
1918 _windows_
.VScrolledWindow_swigregister(VScrolledWindowPtr
)
1920 def PreVScrolledWindow(*args
, **kwargs
):
1921 """PreVScrolledWindow() -> VScrolledWindow"""
1922 val
= _windows_
.new_PreVScrolledWindow(*args
, **kwargs
)
1926 class VListBox(VScrolledWindow
):
1928 return "<%s.%s; proxy of C++ wxPyVListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1929 def __init__(self
, *args
, **kwargs
):
1931 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1932 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> VListBox
1934 newobj
= _windows_
.new_VListBox(*args
, **kwargs
)
1935 self
.this
= newobj
.this
1938 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, VListBox
)
1940 def _setCallbackInfo(*args
, **kwargs
):
1941 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1942 return _windows_
.VListBox__setCallbackInfo(*args
, **kwargs
)
1944 def Create(*args
, **kwargs
):
1946 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1947 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
1949 return _windows_
.VListBox_Create(*args
, **kwargs
)
1951 def GetItemCount(*args
, **kwargs
):
1952 """GetItemCount(self) -> size_t"""
1953 return _windows_
.VListBox_GetItemCount(*args
, **kwargs
)
1955 def HasMultipleSelection(*args
, **kwargs
):
1956 """HasMultipleSelection(self) -> bool"""
1957 return _windows_
.VListBox_HasMultipleSelection(*args
, **kwargs
)
1959 def GetSelection(*args
, **kwargs
):
1960 """GetSelection(self) -> int"""
1961 return _windows_
.VListBox_GetSelection(*args
, **kwargs
)
1963 def IsCurrent(*args
, **kwargs
):
1964 """IsCurrent(self, size_t item) -> bool"""
1965 return _windows_
.VListBox_IsCurrent(*args
, **kwargs
)
1967 def IsSelected(*args
, **kwargs
):
1968 """IsSelected(self, size_t item) -> bool"""
1969 return _windows_
.VListBox_IsSelected(*args
, **kwargs
)
1971 def GetSelectedCount(*args
, **kwargs
):
1972 """GetSelectedCount(self) -> size_t"""
1973 return _windows_
.VListBox_GetSelectedCount(*args
, **kwargs
)
1975 def GetFirstSelected(*args
, **kwargs
):
1976 """GetFirstSelected(self) -> PyObject"""
1977 return _windows_
.VListBox_GetFirstSelected(*args
, **kwargs
)
1979 def GetNextSelected(*args
, **kwargs
):
1980 """GetNextSelected(self, unsigned long cookie) -> PyObject"""
1981 return _windows_
.VListBox_GetNextSelected(*args
, **kwargs
)
1983 def GetMargins(*args
, **kwargs
):
1984 """GetMargins(self) -> Point"""
1985 return _windows_
.VListBox_GetMargins(*args
, **kwargs
)
1987 def GetSelectionBackground(*args
, **kwargs
):
1988 """GetSelectionBackground(self) -> Colour"""
1989 return _windows_
.VListBox_GetSelectionBackground(*args
, **kwargs
)
1991 def SetItemCount(*args
, **kwargs
):
1992 """SetItemCount(self, size_t count)"""
1993 return _windows_
.VListBox_SetItemCount(*args
, **kwargs
)
1995 def Clear(*args
, **kwargs
):
1997 return _windows_
.VListBox_Clear(*args
, **kwargs
)
1999 def SetSelection(*args
, **kwargs
):
2000 """SetSelection(self, int selection)"""
2001 return _windows_
.VListBox_SetSelection(*args
, **kwargs
)
2003 def Select(*args
, **kwargs
):
2004 """Select(self, size_t item, bool select=True) -> bool"""
2005 return _windows_
.VListBox_Select(*args
, **kwargs
)
2007 def SelectRange(*args
, **kwargs
):
2008 """SelectRange(self, size_t from, size_t to) -> bool"""
2009 return _windows_
.VListBox_SelectRange(*args
, **kwargs
)
2011 def Toggle(*args
, **kwargs
):
2012 """Toggle(self, size_t item)"""
2013 return _windows_
.VListBox_Toggle(*args
, **kwargs
)
2015 def SelectAll(*args
, **kwargs
):
2016 """SelectAll(self) -> bool"""
2017 return _windows_
.VListBox_SelectAll(*args
, **kwargs
)
2019 def DeselectAll(*args
, **kwargs
):
2020 """DeselectAll(self) -> bool"""
2021 return _windows_
.VListBox_DeselectAll(*args
, **kwargs
)
2023 def SetMargins(*args
, **kwargs
):
2024 """SetMargins(self, Point pt)"""
2025 return _windows_
.VListBox_SetMargins(*args
, **kwargs
)
2027 def SetMarginsXY(*args
, **kwargs
):
2028 """SetMarginsXY(self, int x, int y)"""
2029 return _windows_
.VListBox_SetMarginsXY(*args
, **kwargs
)
2031 def SetSelectionBackground(*args
, **kwargs
):
2032 """SetSelectionBackground(self, Colour col)"""
2033 return _windows_
.VListBox_SetSelectionBackground(*args
, **kwargs
)
2036 class VListBoxPtr(VListBox
):
2037 def __init__(self
, this
):
2039 if not hasattr(self
,"thisown"): self
.thisown
= 0
2040 self
.__class
__ = VListBox
2041 _windows_
.VListBox_swigregister(VListBoxPtr
)
2042 VListBoxNameStr
= cvar
.VListBoxNameStr
2044 def PreVListBox(*args
, **kwargs
):
2045 """PreVListBox() -> VListBox"""
2046 val
= _windows_
.new_PreVListBox(*args
, **kwargs
)
2050 class HtmlListBox(VListBox
):
2052 return "<%s.%s; proxy of C++ wxPyHtmlListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2053 def __init__(self
, *args
, **kwargs
):
2055 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
2056 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> HtmlListBox
2058 newobj
= _windows_
.new_HtmlListBox(*args
, **kwargs
)
2059 self
.this
= newobj
.this
2062 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, HtmlListBox
)
2064 def _setCallbackInfo(*args
, **kwargs
):
2065 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
2066 return _windows_
.HtmlListBox__setCallbackInfo(*args
, **kwargs
)
2068 def Create(*args
, **kwargs
):
2070 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
2071 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
2073 return _windows_
.HtmlListBox_Create(*args
, **kwargs
)
2075 def RefreshAll(*args
, **kwargs
):
2076 """RefreshAll(self)"""
2077 return _windows_
.HtmlListBox_RefreshAll(*args
, **kwargs
)
2079 def SetItemCount(*args
, **kwargs
):
2080 """SetItemCount(self, size_t count)"""
2081 return _windows_
.HtmlListBox_SetItemCount(*args
, **kwargs
)
2083 def GetFileSystem(*args
, **kwargs
):
2084 """GetFileSystem(self) -> FileSystem"""
2085 return _windows_
.HtmlListBox_GetFileSystem(*args
, **kwargs
)
2088 class HtmlListBoxPtr(HtmlListBox
):
2089 def __init__(self
, this
):
2091 if not hasattr(self
,"thisown"): self
.thisown
= 0
2092 self
.__class
__ = HtmlListBox
2093 _windows_
.HtmlListBox_swigregister(HtmlListBoxPtr
)
2095 def PreHtmlListBox(*args
, **kwargs
):
2096 """PreHtmlListBox() -> HtmlListBox"""
2097 val
= _windows_
.new_PreHtmlListBox(*args
, **kwargs
)
2101 #---------------------------------------------------------------------------
2103 class TaskBarIcon(_core
.EvtHandler
):
2105 return "<%s.%s; proxy of C++ wxPyTaskBarIcon instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2106 def __init__(self
, *args
, **kwargs
):
2107 """__init__(self) -> TaskBarIcon"""
2108 newobj
= _windows_
.new_TaskBarIcon(*args
, **kwargs
)
2109 self
.this
= newobj
.this
2112 self
._setCallbackInfo
(self
, TaskBarIcon
, 0)
2114 def _setCallbackInfo(*args
, **kwargs
):
2115 """_setCallbackInfo(self, PyObject self, PyObject _class, int incref)"""
2116 return _windows_
.TaskBarIcon__setCallbackInfo(*args
, **kwargs
)
2118 def Destroy(*args
, **kwargs
):
2122 Deletes the C++ object this Python object is a proxy for.
2124 return _windows_
.TaskBarIcon_Destroy(*args
, **kwargs
)
2126 def IsOk(*args
, **kwargs
):
2127 """IsOk(self) -> bool"""
2128 return _windows_
.TaskBarIcon_IsOk(*args
, **kwargs
)
2130 def __nonzero__(self
): return self
.IsOk()
2131 def IsIconInstalled(*args
, **kwargs
):
2132 """IsIconInstalled(self) -> bool"""
2133 return _windows_
.TaskBarIcon_IsIconInstalled(*args
, **kwargs
)
2135 def SetIcon(*args
, **kwargs
):
2136 """SetIcon(self, Icon icon, String tooltip=EmptyString) -> bool"""
2137 return _windows_
.TaskBarIcon_SetIcon(*args
, **kwargs
)
2139 def RemoveIcon(*args
, **kwargs
):
2140 """RemoveIcon(self) -> bool"""
2141 return _windows_
.TaskBarIcon_RemoveIcon(*args
, **kwargs
)
2143 def PopupMenu(*args
, **kwargs
):
2144 """PopupMenu(self, Menu menu) -> bool"""
2145 return _windows_
.TaskBarIcon_PopupMenu(*args
, **kwargs
)
2148 class TaskBarIconPtr(TaskBarIcon
):
2149 def __init__(self
, this
):
2151 if not hasattr(self
,"thisown"): self
.thisown
= 0
2152 self
.__class
__ = TaskBarIcon
2153 _windows_
.TaskBarIcon_swigregister(TaskBarIconPtr
)
2155 class TaskBarIconEvent(_core
.Event
):
2157 return "<%s.%s; proxy of C++ wxTaskBarIconEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2158 def __init__(self
, *args
, **kwargs
):
2159 """__init__(self, wxEventType evtType, wxTaskBarIcon tbIcon) -> TaskBarIconEvent"""
2160 newobj
= _windows_
.new_TaskBarIconEvent(*args
, **kwargs
)
2161 self
.this
= newobj
.this
2165 class TaskBarIconEventPtr(TaskBarIconEvent
):
2166 def __init__(self
, this
):
2168 if not hasattr(self
,"thisown"): self
.thisown
= 0
2169 self
.__class
__ = TaskBarIconEvent
2170 _windows_
.TaskBarIconEvent_swigregister(TaskBarIconEventPtr
)
2172 wxEVT_TASKBAR_MOVE
= _windows_
.wxEVT_TASKBAR_MOVE
2173 wxEVT_TASKBAR_LEFT_DOWN
= _windows_
.wxEVT_TASKBAR_LEFT_DOWN
2174 wxEVT_TASKBAR_LEFT_UP
= _windows_
.wxEVT_TASKBAR_LEFT_UP
2175 wxEVT_TASKBAR_RIGHT_DOWN
= _windows_
.wxEVT_TASKBAR_RIGHT_DOWN
2176 wxEVT_TASKBAR_RIGHT_UP
= _windows_
.wxEVT_TASKBAR_RIGHT_UP
2177 wxEVT_TASKBAR_LEFT_DCLICK
= _windows_
.wxEVT_TASKBAR_LEFT_DCLICK
2178 wxEVT_TASKBAR_RIGHT_DCLICK
= _windows_
.wxEVT_TASKBAR_RIGHT_DCLICK
2179 EVT_TASKBAR_MOVE
= wx
.PyEventBinder ( wxEVT_TASKBAR_MOVE
)
2180 EVT_TASKBAR_LEFT_DOWN
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_DOWN
)
2181 EVT_TASKBAR_LEFT_UP
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_UP
)
2182 EVT_TASKBAR_RIGHT_DOWN
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DOWN
)
2183 EVT_TASKBAR_RIGHT_UP
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_UP
)
2184 EVT_TASKBAR_LEFT_DCLICK
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_DCLICK
)
2185 EVT_TASKBAR_RIGHT_DCLICK
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DCLICK
)
2187 #---------------------------------------------------------------------------
2189 class ColourData(_core
.Object
):
2191 This class holds a variety of information related to the colour
2192 chooser dialog, used to transfer settings and results to and from the
2196 return "<%s.%s; proxy of C++ wxColourData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2197 def __init__(self
, *args
, **kwargs
):
2199 __init__(self) -> ColourData
2201 Constructor, sets default values.
2203 newobj
= _windows_
.new_ColourData(*args
, **kwargs
)
2204 self
.this
= newobj
.this
2207 def __del__(self
, destroy
=_windows_
.delete_ColourData
):
2210 if self
.thisown
: destroy(self
)
2213 def GetChooseFull(*args
, **kwargs
):
2215 GetChooseFull(self) -> bool
2217 Under Windows, determines whether the Windows colour dialog will
2218 display the full dialog with custom colour selection controls. Has no
2219 meaning under other platforms. The default value is true.
2221 return _windows_
.ColourData_GetChooseFull(*args
, **kwargs
)
2223 def GetColour(*args
, **kwargs
):
2225 GetColour(self) -> Colour
2227 Gets the colour (pre)selected by the dialog.
2229 return _windows_
.ColourData_GetColour(*args
, **kwargs
)
2231 def GetCustomColour(*args
, **kwargs
):
2233 GetCustomColour(self, int i) -> Colour
2235 Gets the i'th custom colour associated with the colour dialog. i
2236 should be an integer between 0 and 15. The default custom colours are
2237 all invalid colours.
2239 return _windows_
.ColourData_GetCustomColour(*args
, **kwargs
)
2241 def SetChooseFull(*args
, **kwargs
):
2243 SetChooseFull(self, int flag)
2245 Under Windows, tells the Windows colour dialog to display the full
2246 dialog with custom colour selection controls. Under other platforms,
2247 has no effect. The default value is true.
2249 return _windows_
.ColourData_SetChooseFull(*args
, **kwargs
)
2251 def SetColour(*args
, **kwargs
):
2253 SetColour(self, Colour colour)
2255 Sets the default colour for the colour dialog. The default colour is
2258 return _windows_
.ColourData_SetColour(*args
, **kwargs
)
2260 def SetCustomColour(*args
, **kwargs
):
2262 SetCustomColour(self, int i, Colour colour)
2264 Sets the i'th custom colour for the colour dialog. i should be an
2265 integer between 0 and 15. The default custom colours are all invalid colours.
2267 return _windows_
.ColourData_SetCustomColour(*args
, **kwargs
)
2270 class ColourDataPtr(ColourData
):
2271 def __init__(self
, this
):
2273 if not hasattr(self
,"thisown"): self
.thisown
= 0
2274 self
.__class
__ = ColourData
2275 _windows_
.ColourData_swigregister(ColourDataPtr
)
2276 FileSelectorPromptStr
= cvar
.FileSelectorPromptStr
2277 DirSelectorPromptStr
= cvar
.DirSelectorPromptStr
2278 DirDialogNameStr
= cvar
.DirDialogNameStr
2279 FileSelectorDefaultWildcardStr
= cvar
.FileSelectorDefaultWildcardStr
2280 GetTextFromUserPromptStr
= cvar
.GetTextFromUserPromptStr
2281 MessageBoxCaptionStr
= cvar
.MessageBoxCaptionStr
2283 class ColourDialog(Dialog
):
2284 """This class represents the colour chooser dialog."""
2286 return "<%s.%s; proxy of C++ wxColourDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2287 def __init__(self
, *args
, **kwargs
):
2289 __init__(self, Window parent, ColourData data=None) -> ColourDialog
2291 Constructor. Pass a parent window, and optionally a `wx.ColourData`,
2292 which will be copied to the colour dialog's internal ColourData
2295 newobj
= _windows_
.new_ColourDialog(*args
, **kwargs
)
2296 self
.this
= newobj
.this
2299 self
._setOORInfo
(self
)
2301 def GetColourData(*args
, **kwargs
):
2303 GetColourData(self) -> ColourData
2305 Returns a reference to the `wx.ColourData` used by the dialog.
2307 return _windows_
.ColourDialog_GetColourData(*args
, **kwargs
)
2310 class ColourDialogPtr(ColourDialog
):
2311 def __init__(self
, this
):
2313 if not hasattr(self
,"thisown"): self
.thisown
= 0
2314 self
.__class
__ = ColourDialog
2315 _windows_
.ColourDialog_swigregister(ColourDialogPtr
)
2317 class DirDialog(Dialog
):
2319 wx.DirDialog allows the user to select a directory by browising the
2323 return "<%s.%s; proxy of C++ wxDirDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2324 def __init__(self
, *args
, **kwargs
):
2326 __init__(self, Window parent, String message=DirSelectorPromptStr,
2327 String defaultPath=EmptyString, long style=0,
2328 Point pos=DefaultPosition, Size size=DefaultSize,
2329 String name=DirDialogNameStr) -> DirDialog
2331 Constructor. Use ShowModal method to show the dialog.
2333 newobj
= _windows_
.new_DirDialog(*args
, **kwargs
)
2334 self
.this
= newobj
.this
2337 self
._setOORInfo
(self
)
2339 def GetPath(*args
, **kwargs
):
2341 GetPath(self) -> String
2343 Returns the default or user-selected path.
2345 return _windows_
.DirDialog_GetPath(*args
, **kwargs
)
2347 def GetMessage(*args
, **kwargs
):
2349 GetMessage(self) -> String
2351 Returns the message that will be displayed on the dialog.
2353 return _windows_
.DirDialog_GetMessage(*args
, **kwargs
)
2355 def GetStyle(*args
, **kwargs
):
2357 GetStyle(self) -> long
2359 Returns the dialog style.
2361 return _windows_
.DirDialog_GetStyle(*args
, **kwargs
)
2363 def SetMessage(*args
, **kwargs
):
2365 SetMessage(self, String message)
2367 Sets the message that will be displayed on the dialog.
2369 return _windows_
.DirDialog_SetMessage(*args
, **kwargs
)
2371 def SetPath(*args
, **kwargs
):
2373 SetPath(self, String path)
2375 Sets the default path.
2377 return _windows_
.DirDialog_SetPath(*args
, **kwargs
)
2380 class DirDialogPtr(DirDialog
):
2381 def __init__(self
, this
):
2383 if not hasattr(self
,"thisown"): self
.thisown
= 0
2384 self
.__class
__ = DirDialog
2385 _windows_
.DirDialog_swigregister(DirDialogPtr
)
2387 class FileDialog(Dialog
):
2389 wx.FileDialog allows the user to select one or more files from the
2393 return "<%s.%s; proxy of C++ wxFileDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2394 def __init__(self
, *args
, **kwargs
):
2396 __init__(self, Window parent, String message=FileSelectorPromptStr,
2397 String defaultDir=EmptyString, String defaultFile=EmptyString,
2398 String wildcard=FileSelectorDefaultWildcardStr,
2399 long style=0, Point pos=DefaultPosition) -> FileDialog
2401 Constructor. Use ShowModal method to show the dialog.
2403 newobj
= _windows_
.new_FileDialog(*args
, **kwargs
)
2404 self
.this
= newobj
.this
2407 self
._setOORInfo
(self
)
2409 def SetMessage(*args
, **kwargs
):
2411 SetMessage(self, String message)
2413 Sets the message that will be displayed on the dialog.
2415 return _windows_
.FileDialog_SetMessage(*args
, **kwargs
)
2417 def SetPath(*args
, **kwargs
):
2419 SetPath(self, String path)
2421 Sets the path (the combined directory and filename that will be
2422 returned when the dialog is dismissed).
2424 return _windows_
.FileDialog_SetPath(*args
, **kwargs
)
2426 def SetDirectory(*args
, **kwargs
):
2428 SetDirectory(self, String dir)
2430 Sets the default directory.
2432 return _windows_
.FileDialog_SetDirectory(*args
, **kwargs
)
2434 def SetFilename(*args
, **kwargs
):
2436 SetFilename(self, String name)
2438 Sets the default filename.
2440 return _windows_
.FileDialog_SetFilename(*args
, **kwargs
)
2442 def SetWildcard(*args
, **kwargs
):
2444 SetWildcard(self, String wildCard)
2446 Sets the wildcard, which can contain multiple file types, for
2449 "BMP files (*.bmp)|*.bmp|GIF files (*.gif)|*.gif"
2452 return _windows_
.FileDialog_SetWildcard(*args
, **kwargs
)
2454 def SetStyle(*args
, **kwargs
):
2456 SetStyle(self, long style)
2458 Sets the dialog style.
2460 return _windows_
.FileDialog_SetStyle(*args
, **kwargs
)
2462 def SetFilterIndex(*args
, **kwargs
):
2464 SetFilterIndex(self, int filterIndex)
2466 Sets the default filter index, starting from zero.
2468 return _windows_
.FileDialog_SetFilterIndex(*args
, **kwargs
)
2470 def GetMessage(*args
, **kwargs
):
2472 GetMessage(self) -> String
2474 Returns the message that will be displayed on the dialog.
2476 return _windows_
.FileDialog_GetMessage(*args
, **kwargs
)
2478 def GetPath(*args
, **kwargs
):
2480 GetPath(self) -> String
2482 Returns the full path (directory and filename) of the selected file.
2484 return _windows_
.FileDialog_GetPath(*args
, **kwargs
)
2486 def GetDirectory(*args
, **kwargs
):
2488 GetDirectory(self) -> String
2490 Returns the default directory.
2492 return _windows_
.FileDialog_GetDirectory(*args
, **kwargs
)
2494 def GetFilename(*args
, **kwargs
):
2496 GetFilename(self) -> String
2498 Returns the default filename.
2500 return _windows_
.FileDialog_GetFilename(*args
, **kwargs
)
2502 def GetWildcard(*args
, **kwargs
):
2504 GetWildcard(self) -> String
2506 Returns the file dialog wildcard.
2508 return _windows_
.FileDialog_GetWildcard(*args
, **kwargs
)
2510 def GetStyle(*args
, **kwargs
):
2512 GetStyle(self) -> long
2514 Returns the dialog style.
2516 return _windows_
.FileDialog_GetStyle(*args
, **kwargs
)
2518 def GetFilterIndex(*args
, **kwargs
):
2520 GetFilterIndex(self) -> int
2522 Returns the index into the list of filters supplied, optionally, in
2523 the wildcard parameter. Before the dialog is shown, this is the index
2524 which will be used when the dialog is first displayed. After the
2525 dialog is shown, this is the index selected by the user.
2527 return _windows_
.FileDialog_GetFilterIndex(*args
, **kwargs
)
2529 def GetFilenames(*args
, **kwargs
):
2531 GetFilenames(self) -> PyObject
2533 Returns a list of filenames chosen in the dialog. This function
2534 should only be used with the dialogs which have wx.MULTIPLE style, use
2535 GetFilename for the others.
2537 return _windows_
.FileDialog_GetFilenames(*args
, **kwargs
)
2539 def GetPaths(*args
, **kwargs
):
2541 GetPaths(self) -> PyObject
2543 Fills the array paths with the full paths of the files chosen. This
2544 function should only be used with the dialogs which have wx.MULTIPLE
2545 style, use GetPath for the others.
2547 return _windows_
.FileDialog_GetPaths(*args
, **kwargs
)
2550 class FileDialogPtr(FileDialog
):
2551 def __init__(self
, this
):
2553 if not hasattr(self
,"thisown"): self
.thisown
= 0
2554 self
.__class
__ = FileDialog
2555 _windows_
.FileDialog_swigregister(FileDialogPtr
)
2557 CHOICEDLG_STYLE
= _windows_
.CHOICEDLG_STYLE
2558 class MultiChoiceDialog(Dialog
):
2559 """A simple dialog with a multi selection listbox."""
2561 return "<%s.%s; proxy of C++ wxMultiChoiceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2562 def __init__(self
, *args
, **kwargs
):
2564 __init__(Window parent, String message, String caption,
2565 List choices=[], long style=CHOICEDLG_STYLE,
2566 Point pos=DefaultPosition) -> MultiChoiceDialog
2568 Constructor. Use ShowModal method to show the dialog.
2570 newobj
= _windows_
.new_MultiChoiceDialog(*args
, **kwargs
)
2571 self
.this
= newobj
.this
2574 self
._setOORInfo
(self
)
2576 def SetSelections(*args
, **kwargs
):
2578 SetSelections(List selections)
2580 Specify the items in the list that should be selected, using a list of
2583 return _windows_
.MultiChoiceDialog_SetSelections(*args
, **kwargs
)
2585 def GetSelections(*args
, **kwargs
):
2587 GetSelections() -> [selections]
2589 Returns a list of integers representing the items that are selected.
2591 return _windows_
.MultiChoiceDialog_GetSelections(*args
, **kwargs
)
2594 class MultiChoiceDialogPtr(MultiChoiceDialog
):
2595 def __init__(self
, this
):
2597 if not hasattr(self
,"thisown"): self
.thisown
= 0
2598 self
.__class
__ = MultiChoiceDialog
2599 _windows_
.MultiChoiceDialog_swigregister(MultiChoiceDialogPtr
)
2601 class SingleChoiceDialog(Dialog
):
2602 """A simple dialog with a single selection listbox."""
2604 return "<%s.%s; proxy of C++ wxSingleChoiceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2605 def __init__(self
, *args
, **kwargs
):
2607 __init__(Window parent, String message, String caption,
2608 List choices=[], long style=CHOICEDLG_STYLE,
2609 Point pos=DefaultPosition) -> SingleChoiceDialog
2611 Constructor. Use ShowModal method to show the dialog.
2613 newobj
= _windows_
.new_SingleChoiceDialog(*args
, **kwargs
)
2614 self
.this
= newobj
.this
2617 self
._setOORInfo
(self
)
2619 def GetSelection(*args
, **kwargs
):
2621 GetSelection(self) -> int
2623 Get the index of teh currently selected item.
2625 return _windows_
.SingleChoiceDialog_GetSelection(*args
, **kwargs
)
2627 def GetStringSelection(*args
, **kwargs
):
2629 GetStringSelection(self) -> String
2631 Returns the string value of the currently selected item
2633 return _windows_
.SingleChoiceDialog_GetStringSelection(*args
, **kwargs
)
2635 def SetSelection(*args
, **kwargs
):
2637 SetSelection(self, int sel)
2639 Set the current selected item to sel
2641 return _windows_
.SingleChoiceDialog_SetSelection(*args
, **kwargs
)
2644 class SingleChoiceDialogPtr(SingleChoiceDialog
):
2645 def __init__(self
, this
):
2647 if not hasattr(self
,"thisown"): self
.thisown
= 0
2648 self
.__class
__ = SingleChoiceDialog
2649 _windows_
.SingleChoiceDialog_swigregister(SingleChoiceDialogPtr
)
2651 TextEntryDialogStyle
= _windows_
.TextEntryDialogStyle
2652 class TextEntryDialog(Dialog
):
2653 """A dialog with text control, [ok] and [cancel] buttons"""
2655 return "<%s.%s; proxy of C++ wxTextEntryDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2656 def __init__(self
, *args
, **kwargs
):
2658 __init__(self, Window parent, String message, String caption=GetTextFromUserPromptStr,
2659 String defaultValue=EmptyString,
2660 long style=TextEntryDialogStyle, Point pos=DefaultPosition) -> TextEntryDialog
2662 Constructor. Use ShowModal method to show the dialog.
2664 newobj
= _windows_
.new_TextEntryDialog(*args
, **kwargs
)
2665 self
.this
= newobj
.this
2668 self
._setOORInfo
(self
)
2670 def GetValue(*args
, **kwargs
):
2672 GetValue(self) -> String
2674 Returns the text that the user has entered if the user has pressed OK,
2675 or the original value if the user has pressed Cancel.
2677 return _windows_
.TextEntryDialog_GetValue(*args
, **kwargs
)
2679 def SetValue(*args
, **kwargs
):
2681 SetValue(self, String value)
2683 Sets the default text value.
2685 return _windows_
.TextEntryDialog_SetValue(*args
, **kwargs
)
2688 class TextEntryDialogPtr(TextEntryDialog
):
2689 def __init__(self
, this
):
2691 if not hasattr(self
,"thisown"): self
.thisown
= 0
2692 self
.__class
__ = TextEntryDialog
2693 _windows_
.TextEntryDialog_swigregister(TextEntryDialogPtr
)
2695 class PasswordEntryDialog(TextEntryDialog
):
2697 return "<%s.%s; proxy of C++ wxPasswordEntryDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2698 def __init__(self
, *args
, **kwargs
):
2700 __init__(self, Window parent, String message, String caption=GetPasswordFromUserPromptStr,
2701 String value=EmptyString,
2702 long style=TextEntryDialogStyle, Point pos=DefaultPosition) -> PasswordEntryDialog
2704 newobj
= _windows_
.new_PasswordEntryDialog(*args
, **kwargs
)
2705 self
.this
= newobj
.this
2709 class PasswordEntryDialogPtr(PasswordEntryDialog
):
2710 def __init__(self
, this
):
2712 if not hasattr(self
,"thisown"): self
.thisown
= 0
2713 self
.__class
__ = PasswordEntryDialog
2714 _windows_
.PasswordEntryDialog_swigregister(PasswordEntryDialogPtr
)
2715 GetPasswordFromUserPromptStr
= cvar
.GetPasswordFromUserPromptStr
2717 class FontData(_core
.Object
):
2719 This class holds a variety of information related to font dialogs and
2720 is used to transfer settings to and results from a `wx.FontDialog`.
2723 return "<%s.%s; proxy of C++ wxFontData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2724 def __init__(self
, *args
, **kwargs
):
2726 __init__(self) -> FontData
2728 This class holds a variety of information related to font dialogs and
2729 is used to transfer settings to and results from a `wx.FontDialog`.
2731 newobj
= _windows_
.new_FontData(*args
, **kwargs
)
2732 self
.this
= newobj
.this
2735 def __del__(self
, destroy
=_windows_
.delete_FontData
):
2738 if self
.thisown
: destroy(self
)
2741 def EnableEffects(*args
, **kwargs
):
2743 EnableEffects(self, bool enable)
2745 Enables or disables 'effects' under MS Windows only. This refers to
2746 the controls for manipulating colour, strikeout and underline
2747 properties. The default value is true.
2749 return _windows_
.FontData_EnableEffects(*args
, **kwargs
)
2751 def GetAllowSymbols(*args
, **kwargs
):
2753 GetAllowSymbols(self) -> bool
2755 Under MS Windows, returns a flag determining whether symbol fonts can
2756 be selected. Has no effect on other platforms. The default value is
2759 return _windows_
.FontData_GetAllowSymbols(*args
, **kwargs
)
2761 def GetColour(*args
, **kwargs
):
2763 GetColour(self) -> Colour
2765 Gets the colour associated with the font dialog. The default value is
2768 return _windows_
.FontData_GetColour(*args
, **kwargs
)
2770 def GetChosenFont(*args
, **kwargs
):
2772 GetChosenFont(self) -> Font
2774 Gets the font chosen by the user.
2776 return _windows_
.FontData_GetChosenFont(*args
, **kwargs
)
2778 def GetEnableEffects(*args
, **kwargs
):
2780 GetEnableEffects(self) -> bool
2782 Determines whether 'effects' are enabled under Windows.
2784 return _windows_
.FontData_GetEnableEffects(*args
, **kwargs
)
2786 def GetInitialFont(*args
, **kwargs
):
2788 GetInitialFont(self) -> Font
2790 Gets the font that will be initially used by the font dialog. This
2791 should have previously been set by the application.
2793 return _windows_
.FontData_GetInitialFont(*args
, **kwargs
)
2795 def GetShowHelp(*args
, **kwargs
):
2797 GetShowHelp(self) -> bool
2799 Returns true if the Help button will be shown (Windows only). The
2800 default value is false.
2802 return _windows_
.FontData_GetShowHelp(*args
, **kwargs
)
2804 def SetAllowSymbols(*args
, **kwargs
):
2806 SetAllowSymbols(self, bool allowSymbols)
2808 Under MS Windows, determines whether symbol fonts can be selected. Has
2809 no effect on other platforms. The default value is true.
2811 return _windows_
.FontData_SetAllowSymbols(*args
, **kwargs
)
2813 def SetChosenFont(*args
, **kwargs
):
2815 SetChosenFont(self, Font font)
2817 Sets the font that will be returned to the user (normally for internal
2820 return _windows_
.FontData_SetChosenFont(*args
, **kwargs
)
2822 def SetColour(*args
, **kwargs
):
2824 SetColour(self, Colour colour)
2826 Sets the colour that will be used for the font foreground colour. The
2827 default colour is black.
2829 return _windows_
.FontData_SetColour(*args
, **kwargs
)
2831 def SetInitialFont(*args
, **kwargs
):
2833 SetInitialFont(self, Font font)
2835 Sets the font that will be initially used by the font dialog.
2837 return _windows_
.FontData_SetInitialFont(*args
, **kwargs
)
2839 def SetRange(*args
, **kwargs
):
2841 SetRange(self, int min, int max)
2843 Sets the valid range for the font point size (Windows only). The
2844 default is 0, 0 (unrestricted range).
2846 return _windows_
.FontData_SetRange(*args
, **kwargs
)
2848 def SetShowHelp(*args
, **kwargs
):
2850 SetShowHelp(self, bool showHelp)
2852 Determines whether the Help button will be displayed in the font
2853 dialog (Windows only). The default value is false.
2855 return _windows_
.FontData_SetShowHelp(*args
, **kwargs
)
2858 class FontDataPtr(FontData
):
2859 def __init__(self
, this
):
2861 if not hasattr(self
,"thisown"): self
.thisown
= 0
2862 self
.__class
__ = FontData
2863 _windows_
.FontData_swigregister(FontDataPtr
)
2865 class FontDialog(Dialog
):
2867 wx.FontDialog allows the user to select a system font and its attributes.
2873 return "<%s.%s; proxy of C++ wxFontDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2874 def __init__(self
, *args
, **kwargs
):
2876 __init__(self, Window parent, FontData data) -> FontDialog
2878 Constructor. Pass a parent window and the `wx.FontData` object to be
2879 used to initialize the dialog controls. Call `ShowModal` to display
2880 the dialog. If ShowModal returns ``wx.ID_OK`` then you can fetch the
2881 results with via the `wx.FontData` returned by `GetFontData`.
2883 newobj
= _windows_
.new_FontDialog(*args
, **kwargs
)
2884 self
.this
= newobj
.this
2887 self
._setOORInfo
(self
)
2889 def GetFontData(*args
, **kwargs
):
2891 GetFontData(self) -> FontData
2893 Returns a reference to the internal `wx.FontData` used by the
2896 return _windows_
.FontDialog_GetFontData(*args
, **kwargs
)
2899 class FontDialogPtr(FontDialog
):
2900 def __init__(self
, this
):
2902 if not hasattr(self
,"thisown"): self
.thisown
= 0
2903 self
.__class
__ = FontDialog
2904 _windows_
.FontDialog_swigregister(FontDialogPtr
)
2906 class MessageDialog(Dialog
):
2908 This class provides a simple dialog that shows a single or multi-line
2909 message, with a choice of OK, Yes, No and/or Cancel buttons.
2912 return "<%s.%s; proxy of C++ wxMessageDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2913 def __init__(self
, *args
, **kwargs
):
2915 __init__(self, Window parent, String message, String caption=MessageBoxCaptionStr,
2916 long style=wxOK|wxCANCEL|wxCENTRE,
2917 Point pos=DefaultPosition) -> MessageDialog
2919 Constructor, use `ShowModal` to display the dialog.
2921 newobj
= _windows_
.new_MessageDialog(*args
, **kwargs
)
2922 self
.this
= newobj
.this
2925 self
._setOORInfo
(self
)
2928 class MessageDialogPtr(MessageDialog
):
2929 def __init__(self
, this
):
2931 if not hasattr(self
,"thisown"): self
.thisown
= 0
2932 self
.__class
__ = MessageDialog
2933 _windows_
.MessageDialog_swigregister(MessageDialogPtr
)
2935 class ProgressDialog(Frame
):
2937 A dialog that shows a short message and a progress bar. Optionally, it
2938 can display an ABORT button.
2941 return "<%s.%s; proxy of C++ wxProgressDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2942 def __init__(self
, *args
, **kwargs
):
2944 __init__(self, String title, String message, int maximum=100, Window parent=None,
2945 int style=wxPD_AUTO_HIDE|wxPD_APP_MODAL) -> ProgressDialog
2947 Constructor. Creates the dialog, displays it and disables user input
2948 for other windows, or, if wx.PD_APP_MODAL flag is not given, for its
2951 newobj
= _windows_
.new_ProgressDialog(*args
, **kwargs
)
2952 self
.this
= newobj
.this
2955 self
._setOORInfo
(self
)
2957 def Update(*args
, **kwargs
):
2959 Update(self, int value, String newmsg=EmptyString) -> bool
2961 Updates the dialog, setting the progress bar to the new value and, if
2962 given changes the message above it. The value given should be less
2963 than or equal to the maximum value given to the constructor and the
2964 dialog is closed if it is equal to the maximum. Returns true unless
2965 the Cancel button has been pressed.
2967 If false is returned, the application can either immediately destroy
2968 the dialog or ask the user for the confirmation and if the abort is
2969 not confirmed the dialog may be resumed with Resume function.
2971 return _windows_
.ProgressDialog_Update(*args
, **kwargs
)
2973 def Resume(*args
, **kwargs
):
2977 Can be used to continue with the dialog, after the user had chosen to
2980 return _windows_
.ProgressDialog_Resume(*args
, **kwargs
)
2983 class ProgressDialogPtr(ProgressDialog
):
2984 def __init__(self
, this
):
2986 if not hasattr(self
,"thisown"): self
.thisown
= 0
2987 self
.__class
__ = ProgressDialog
2988 _windows_
.ProgressDialog_swigregister(ProgressDialogPtr
)
2990 FR_DOWN
= _windows_
.FR_DOWN
2991 FR_WHOLEWORD
= _windows_
.FR_WHOLEWORD
2992 FR_MATCHCASE
= _windows_
.FR_MATCHCASE
2993 FR_REPLACEDIALOG
= _windows_
.FR_REPLACEDIALOG
2994 FR_NOUPDOWN
= _windows_
.FR_NOUPDOWN
2995 FR_NOMATCHCASE
= _windows_
.FR_NOMATCHCASE
2996 FR_NOWHOLEWORD
= _windows_
.FR_NOWHOLEWORD
2997 wxEVT_COMMAND_FIND
= _windows_
.wxEVT_COMMAND_FIND
2998 wxEVT_COMMAND_FIND_NEXT
= _windows_
.wxEVT_COMMAND_FIND_NEXT
2999 wxEVT_COMMAND_FIND_REPLACE
= _windows_
.wxEVT_COMMAND_FIND_REPLACE
3000 wxEVT_COMMAND_FIND_REPLACE_ALL
= _windows_
.wxEVT_COMMAND_FIND_REPLACE_ALL
3001 wxEVT_COMMAND_FIND_CLOSE
= _windows_
.wxEVT_COMMAND_FIND_CLOSE
3002 EVT_FIND
= wx
.PyEventBinder( wxEVT_COMMAND_FIND
, 1 )
3003 EVT_FIND_NEXT
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_NEXT
, 1 )
3004 EVT_FIND_REPLACE
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE
, 1 )
3005 EVT_FIND_REPLACE_ALL
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE_ALL
, 1 )
3006 EVT_FIND_CLOSE
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_CLOSE
, 1 )
3008 # For backwards compatibility. Should they be removed?
3009 EVT_COMMAND_FIND
= EVT_FIND
3010 EVT_COMMAND_FIND_NEXT
= EVT_FIND_NEXT
3011 EVT_COMMAND_FIND_REPLACE
= EVT_FIND_REPLACE
3012 EVT_COMMAND_FIND_REPLACE_ALL
= EVT_FIND_REPLACE_ALL
3013 EVT_COMMAND_FIND_CLOSE
= EVT_FIND_CLOSE
3015 class FindDialogEvent(_core
.CommandEvent
):
3016 """Events for the FindReplaceDialog"""
3018 return "<%s.%s; proxy of C++ wxFindDialogEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3019 def __init__(self
, *args
, **kwargs
):
3021 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0) -> FindDialogEvent
3023 Events for the FindReplaceDialog
3025 newobj
= _windows_
.new_FindDialogEvent(*args
, **kwargs
)
3026 self
.this
= newobj
.this
3029 def GetFlags(*args
, **kwargs
):
3031 GetFlags(self) -> int
3033 Get the currently selected flags: this is the combination of
3034 wx.FR_DOWN, wx.FR_WHOLEWORD and wx.FR_MATCHCASE flags.
3036 return _windows_
.FindDialogEvent_GetFlags(*args
, **kwargs
)
3038 def GetFindString(*args
, **kwargs
):
3040 GetFindString(self) -> String
3042 Return the string to find (never empty).
3044 return _windows_
.FindDialogEvent_GetFindString(*args
, **kwargs
)
3046 def GetReplaceString(*args
, **kwargs
):
3048 GetReplaceString(self) -> String
3050 Return the string to replace the search string with (only for replace
3051 and replace all events).
3053 return _windows_
.FindDialogEvent_GetReplaceString(*args
, **kwargs
)
3055 def GetDialog(*args
, **kwargs
):
3057 GetDialog(self) -> FindReplaceDialog
3059 Return the pointer to the dialog which generated this event.
3061 return _windows_
.FindDialogEvent_GetDialog(*args
, **kwargs
)
3063 def SetFlags(*args
, **kwargs
):
3064 """SetFlags(self, int flags)"""
3065 return _windows_
.FindDialogEvent_SetFlags(*args
, **kwargs
)
3067 def SetFindString(*args
, **kwargs
):
3068 """SetFindString(self, String str)"""
3069 return _windows_
.FindDialogEvent_SetFindString(*args
, **kwargs
)
3071 def SetReplaceString(*args
, **kwargs
):
3072 """SetReplaceString(self, String str)"""
3073 return _windows_
.FindDialogEvent_SetReplaceString(*args
, **kwargs
)
3076 class FindDialogEventPtr(FindDialogEvent
):
3077 def __init__(self
, this
):
3079 if not hasattr(self
,"thisown"): self
.thisown
= 0
3080 self
.__class
__ = FindDialogEvent
3081 _windows_
.FindDialogEvent_swigregister(FindDialogEventPtr
)
3083 class FindReplaceData(_core
.Object
):
3085 wx.FindReplaceData holds the data for wx.FindReplaceDialog. It is used
3086 to initialize the dialog with the default values and will keep the
3087 last values from the dialog when it is closed. It is also updated each
3088 time a `wx.FindDialogEvent` is generated so instead of using the
3089 `wx.FindDialogEvent` methods you can also directly query this object.
3091 Note that all SetXXX() methods may only be called before showing the
3092 dialog and calling them has no effect later.
3095 return "<%s.%s; proxy of C++ wxFindReplaceData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3096 def __init__(self
, *args
, **kwargs
):
3098 __init__(self, int flags=0) -> FindReplaceData
3100 Constuctor initializes the flags to default value (0).
3102 newobj
= _windows_
.new_FindReplaceData(*args
, **kwargs
)
3103 self
.this
= newobj
.this
3106 def __del__(self
, destroy
=_windows_
.delete_FindReplaceData
):
3109 if self
.thisown
: destroy(self
)
3112 def GetFindString(*args
, **kwargs
):
3114 GetFindString(self) -> String
3116 Get the string to find.
3118 return _windows_
.FindReplaceData_GetFindString(*args
, **kwargs
)
3120 def GetReplaceString(*args
, **kwargs
):
3122 GetReplaceString(self) -> String
3124 Get the replacement string.
3126 return _windows_
.FindReplaceData_GetReplaceString(*args
, **kwargs
)
3128 def GetFlags(*args
, **kwargs
):
3130 GetFlags(self) -> int
3132 Get the combination of flag values.
3134 return _windows_
.FindReplaceData_GetFlags(*args
, **kwargs
)
3136 def SetFlags(*args
, **kwargs
):
3138 SetFlags(self, int flags)
3140 Set the flags to use to initialize the controls of the dialog.
3142 return _windows_
.FindReplaceData_SetFlags(*args
, **kwargs
)
3144 def SetFindString(*args
, **kwargs
):
3146 SetFindString(self, String str)
3148 Set the string to find (used as initial value by the dialog).
3150 return _windows_
.FindReplaceData_SetFindString(*args
, **kwargs
)
3152 def SetReplaceString(*args
, **kwargs
):
3154 SetReplaceString(self, String str)
3156 Set the replacement string (used as initial value by the dialog).
3158 return _windows_
.FindReplaceData_SetReplaceString(*args
, **kwargs
)
3161 class FindReplaceDataPtr(FindReplaceData
):
3162 def __init__(self
, this
):
3164 if not hasattr(self
,"thisown"): self
.thisown
= 0
3165 self
.__class
__ = FindReplaceData
3166 _windows_
.FindReplaceData_swigregister(FindReplaceDataPtr
)
3168 class FindReplaceDialog(Dialog
):
3170 wx.FindReplaceDialog is a standard modeless dialog which is used to
3171 allow the user to search for some text (and possibly replace it with
3172 something else). The actual searching is supposed to be done in the
3173 owner window which is the parent of this dialog. Note that it means
3174 that unlike for the other standard dialogs this one must have a parent
3175 window. Also note that there is no way to use this dialog in a modal
3176 way; it is always, by design and implementation, modeless.
3179 return "<%s.%s; proxy of C++ wxFindReplaceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3180 def __init__(self
, *args
, **kwargs
):
3182 __init__(self, Window parent, FindReplaceData data, String title,
3183 int style=0) -> FindReplaceDialog
3185 Create a FindReplaceDialog. The parent and data parameters must be
3186 non-None. Use Show to display the dialog.
3188 newobj
= _windows_
.new_FindReplaceDialog(*args
, **kwargs
)
3189 self
.this
= newobj
.this
3192 self
._setOORInfo
(self
)
3194 def Create(*args
, **kwargs
):
3196 Create(self, Window parent, FindReplaceData data, String title,
3197 int style=0) -> bool
3199 Create the dialog, for 2-phase create.
3201 return _windows_
.FindReplaceDialog_Create(*args
, **kwargs
)
3203 def GetData(*args
, **kwargs
):
3205 GetData(self) -> FindReplaceData
3207 Get the FindReplaceData object used by this dialog.
3209 return _windows_
.FindReplaceDialog_GetData(*args
, **kwargs
)
3211 def SetData(*args
, **kwargs
):
3213 SetData(self, FindReplaceData data)
3215 Set the FindReplaceData object used by this dialog.
3217 return _windows_
.FindReplaceDialog_SetData(*args
, **kwargs
)
3220 class FindReplaceDialogPtr(FindReplaceDialog
):
3221 def __init__(self
, this
):
3223 if not hasattr(self
,"thisown"): self
.thisown
= 0
3224 self
.__class
__ = FindReplaceDialog
3225 _windows_
.FindReplaceDialog_swigregister(FindReplaceDialogPtr
)
3227 def PreFindReplaceDialog(*args
, **kwargs
):
3229 PreFindReplaceDialog() -> FindReplaceDialog
3231 Precreate a FindReplaceDialog for 2-phase creation
3233 val
= _windows_
.new_PreFindReplaceDialog(*args
, **kwargs
)
3237 #---------------------------------------------------------------------------
3239 IDM_WINDOWTILE
= _windows_
.IDM_WINDOWTILE
3240 IDM_WINDOWTILEHOR
= _windows_
.IDM_WINDOWTILEHOR
3241 IDM_WINDOWCASCADE
= _windows_
.IDM_WINDOWCASCADE
3242 IDM_WINDOWICONS
= _windows_
.IDM_WINDOWICONS
3243 IDM_WINDOWNEXT
= _windows_
.IDM_WINDOWNEXT
3244 IDM_WINDOWTILEVERT
= _windows_
.IDM_WINDOWTILEVERT
3245 FIRST_MDI_CHILD
= _windows_
.FIRST_MDI_CHILD
3246 LAST_MDI_CHILD
= _windows_
.LAST_MDI_CHILD
3247 class MDIParentFrame(Frame
):
3249 return "<%s.%s; proxy of C++ wxMDIParentFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3250 def __init__(self
, *args
, **kwargs
):
3252 __init__(self, Window parent, int id=-1, String title=EmptyString,
3253 Point pos=DefaultPosition, Size size=DefaultSize,
3254 long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
3255 String name=FrameNameStr) -> MDIParentFrame
3257 newobj
= _windows_
.new_MDIParentFrame(*args
, **kwargs
)
3258 self
.this
= newobj
.this
3261 self
._setOORInfo
(self
)
3263 def Create(*args
, **kwargs
):
3265 Create(self, Window parent, int id=-1, String title=EmptyString,
3266 Point pos=DefaultPosition, Size size=DefaultSize,
3267 long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
3268 String name=FrameNameStr) -> bool
3270 return _windows_
.MDIParentFrame_Create(*args
, **kwargs
)
3272 def ActivateNext(*args
, **kwargs
):
3273 """ActivateNext(self)"""
3274 return _windows_
.MDIParentFrame_ActivateNext(*args
, **kwargs
)
3276 def ActivatePrevious(*args
, **kwargs
):
3277 """ActivatePrevious(self)"""
3278 return _windows_
.MDIParentFrame_ActivatePrevious(*args
, **kwargs
)
3280 def ArrangeIcons(*args
, **kwargs
):
3281 """ArrangeIcons(self)"""
3282 return _windows_
.MDIParentFrame_ArrangeIcons(*args
, **kwargs
)
3284 def Cascade(*args
, **kwargs
):
3286 return _windows_
.MDIParentFrame_Cascade(*args
, **kwargs
)
3288 def GetActiveChild(*args
, **kwargs
):
3289 """GetActiveChild(self) -> MDIChildFrame"""
3290 return _windows_
.MDIParentFrame_GetActiveChild(*args
, **kwargs
)
3292 def GetClientWindow(*args
, **kwargs
):
3293 """GetClientWindow(self) -> MDIClientWindow"""
3294 return _windows_
.MDIParentFrame_GetClientWindow(*args
, **kwargs
)
3296 def GetToolBar(*args
, **kwargs
):
3297 """GetToolBar(self) -> Window"""
3298 return _windows_
.MDIParentFrame_GetToolBar(*args
, **kwargs
)
3300 def Tile(*args
, **kwargs
):
3302 return _windows_
.MDIParentFrame_Tile(*args
, **kwargs
)
3305 class MDIParentFramePtr(MDIParentFrame
):
3306 def __init__(self
, this
):
3308 if not hasattr(self
,"thisown"): self
.thisown
= 0
3309 self
.__class
__ = MDIParentFrame
3310 _windows_
.MDIParentFrame_swigregister(MDIParentFramePtr
)
3312 def PreMDIParentFrame(*args
, **kwargs
):
3313 """PreMDIParentFrame() -> MDIParentFrame"""
3314 val
= _windows_
.new_PreMDIParentFrame(*args
, **kwargs
)
3318 class MDIChildFrame(Frame
):
3320 return "<%s.%s; proxy of C++ wxMDIChildFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3321 def __init__(self
, *args
, **kwargs
):
3323 __init__(self, MDIParentFrame parent, int id=-1, String title=EmptyString,
3324 Point pos=DefaultPosition, Size size=DefaultSize,
3325 long style=DEFAULT_FRAME_STYLE,
3326 String name=FrameNameStr) -> MDIChildFrame
3328 newobj
= _windows_
.new_MDIChildFrame(*args
, **kwargs
)
3329 self
.this
= newobj
.this
3332 self
._setOORInfo
(self
)
3334 def Create(*args
, **kwargs
):
3336 Create(self, MDIParentFrame parent, int id=-1, String title=EmptyString,
3337 Point pos=DefaultPosition, Size size=DefaultSize,
3338 long style=DEFAULT_FRAME_STYLE,
3339 String name=FrameNameStr) -> bool
3341 return _windows_
.MDIChildFrame_Create(*args
, **kwargs
)
3343 def Activate(*args
, **kwargs
):
3344 """Activate(self)"""
3345 return _windows_
.MDIChildFrame_Activate(*args
, **kwargs
)
3347 def Maximize(*args
, **kwargs
):
3348 """Maximize(self, bool maximize=True)"""
3349 return _windows_
.MDIChildFrame_Maximize(*args
, **kwargs
)
3351 def Restore(*args
, **kwargs
):
3353 return _windows_
.MDIChildFrame_Restore(*args
, **kwargs
)
3356 class MDIChildFramePtr(MDIChildFrame
):
3357 def __init__(self
, this
):
3359 if not hasattr(self
,"thisown"): self
.thisown
= 0
3360 self
.__class
__ = MDIChildFrame
3361 _windows_
.MDIChildFrame_swigregister(MDIChildFramePtr
)
3363 def PreMDIChildFrame(*args
, **kwargs
):
3364 """PreMDIChildFrame() -> MDIChildFrame"""
3365 val
= _windows_
.new_PreMDIChildFrame(*args
, **kwargs
)
3369 class MDIClientWindow(_core
.Window
):
3371 return "<%s.%s; proxy of C++ wxMDIClientWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3372 def __init__(self
, *args
, **kwargs
):
3373 """__init__(self, MDIParentFrame parent, long style=0) -> MDIClientWindow"""
3374 newobj
= _windows_
.new_MDIClientWindow(*args
, **kwargs
)
3375 self
.this
= newobj
.this
3378 self
._setOORInfo
(self
)
3380 def Create(*args
, **kwargs
):
3381 """Create(self, MDIParentFrame parent, long style=0) -> bool"""
3382 return _windows_
.MDIClientWindow_Create(*args
, **kwargs
)
3385 class MDIClientWindowPtr(MDIClientWindow
):
3386 def __init__(self
, this
):
3388 if not hasattr(self
,"thisown"): self
.thisown
= 0
3389 self
.__class
__ = MDIClientWindow
3390 _windows_
.MDIClientWindow_swigregister(MDIClientWindowPtr
)
3392 def PreMDIClientWindow(*args
, **kwargs
):
3393 """PreMDIClientWindow() -> MDIClientWindow"""
3394 val
= _windows_
.new_PreMDIClientWindow(*args
, **kwargs
)
3398 #---------------------------------------------------------------------------
3400 class PyWindow(_core
.Window
):
3402 return "<%s.%s; proxy of C++ wxPyWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3403 def __init__(self
, *args
, **kwargs
):
3405 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3406 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyWindow
3408 newobj
= _windows_
.new_PyWindow(*args
, **kwargs
)
3409 self
.this
= newobj
.this
3412 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyWindow
)
3414 def _setCallbackInfo(*args
, **kwargs
):
3415 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3416 return _windows_
.PyWindow__setCallbackInfo(*args
, **kwargs
)
3418 def SetBestSize(*args
, **kwargs
):
3419 """SetBestSize(self, Size size)"""
3420 return _windows_
.PyWindow_SetBestSize(*args
, **kwargs
)
3422 def base_DoMoveWindow(*args
, **kwargs
):
3423 """base_DoMoveWindow(self, int x, int y, int width, int height)"""
3424 return _windows_
.PyWindow_base_DoMoveWindow(*args
, **kwargs
)
3426 def base_DoSetSize(*args
, **kwargs
):
3427 """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3428 return _windows_
.PyWindow_base_DoSetSize(*args
, **kwargs
)
3430 def base_DoSetClientSize(*args
, **kwargs
):
3431 """base_DoSetClientSize(self, int width, int height)"""
3432 return _windows_
.PyWindow_base_DoSetClientSize(*args
, **kwargs
)
3434 def base_DoSetVirtualSize(*args
, **kwargs
):
3435 """base_DoSetVirtualSize(self, int x, int y)"""
3436 return _windows_
.PyWindow_base_DoSetVirtualSize(*args
, **kwargs
)
3438 def base_DoGetSize(*args
, **kwargs
):
3439 """base_DoGetSize() -> (width, height)"""
3440 return _windows_
.PyWindow_base_DoGetSize(*args
, **kwargs
)
3442 def base_DoGetClientSize(*args
, **kwargs
):
3443 """base_DoGetClientSize() -> (width, height)"""
3444 return _windows_
.PyWindow_base_DoGetClientSize(*args
, **kwargs
)
3446 def base_DoGetPosition(*args
, **kwargs
):
3447 """base_DoGetPosition() -> (x,y)"""
3448 return _windows_
.PyWindow_base_DoGetPosition(*args
, **kwargs
)
3450 def base_DoGetVirtualSize(*args
, **kwargs
):
3451 """base_DoGetVirtualSize(self) -> Size"""
3452 return _windows_
.PyWindow_base_DoGetVirtualSize(*args
, **kwargs
)
3454 def base_DoGetBestSize(*args
, **kwargs
):
3455 """base_DoGetBestSize(self) -> Size"""
3456 return _windows_
.PyWindow_base_DoGetBestSize(*args
, **kwargs
)
3458 def base_InitDialog(*args
, **kwargs
):
3459 """base_InitDialog(self)"""
3460 return _windows_
.PyWindow_base_InitDialog(*args
, **kwargs
)
3462 def base_TransferDataToWindow(*args
, **kwargs
):
3463 """base_TransferDataToWindow(self) -> bool"""
3464 return _windows_
.PyWindow_base_TransferDataToWindow(*args
, **kwargs
)
3466 def base_TransferDataFromWindow(*args
, **kwargs
):
3467 """base_TransferDataFromWindow(self) -> bool"""
3468 return _windows_
.PyWindow_base_TransferDataFromWindow(*args
, **kwargs
)
3470 def base_Validate(*args
, **kwargs
):
3471 """base_Validate(self) -> bool"""
3472 return _windows_
.PyWindow_base_Validate(*args
, **kwargs
)
3474 def base_AcceptsFocus(*args
, **kwargs
):
3475 """base_AcceptsFocus(self) -> bool"""
3476 return _windows_
.PyWindow_base_AcceptsFocus(*args
, **kwargs
)
3478 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
3479 """base_AcceptsFocusFromKeyboard(self) -> bool"""
3480 return _windows_
.PyWindow_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3482 def base_GetMaxSize(*args
, **kwargs
):
3483 """base_GetMaxSize(self) -> Size"""
3484 return _windows_
.PyWindow_base_GetMaxSize(*args
, **kwargs
)
3486 def base_AddChild(*args
, **kwargs
):
3487 """base_AddChild(self, Window child)"""
3488 return _windows_
.PyWindow_base_AddChild(*args
, **kwargs
)
3490 def base_RemoveChild(*args
, **kwargs
):
3491 """base_RemoveChild(self, Window child)"""
3492 return _windows_
.PyWindow_base_RemoveChild(*args
, **kwargs
)
3494 def base_ShouldInheritColours(*args
, **kwargs
):
3495 """base_ShouldInheritColours(self) -> bool"""
3496 return _windows_
.PyWindow_base_ShouldInheritColours(*args
, **kwargs
)
3498 def base_ApplyParentThemeBackground(*args
, **kwargs
):
3499 """base_ApplyParentThemeBackground(self, Colour c)"""
3500 return _windows_
.PyWindow_base_ApplyParentThemeBackground(*args
, **kwargs
)
3502 def base_GetDefaultAttributes(*args
, **kwargs
):
3503 """base_GetDefaultAttributes(self) -> VisualAttributes"""
3504 return _windows_
.PyWindow_base_GetDefaultAttributes(*args
, **kwargs
)
3507 class PyWindowPtr(PyWindow
):
3508 def __init__(self
, this
):
3510 if not hasattr(self
,"thisown"): self
.thisown
= 0
3511 self
.__class
__ = PyWindow
3512 _windows_
.PyWindow_swigregister(PyWindowPtr
)
3514 def PrePyWindow(*args
, **kwargs
):
3515 """PrePyWindow() -> PyWindow"""
3516 val
= _windows_
.new_PrePyWindow(*args
, **kwargs
)
3520 class PyPanel(Panel
):
3522 return "<%s.%s; proxy of C++ wxPyPanel instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3523 def __init__(self
, *args
, **kwargs
):
3525 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3526 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyPanel
3528 newobj
= _windows_
.new_PyPanel(*args
, **kwargs
)
3529 self
.this
= newobj
.this
3532 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyPanel
)
3534 def _setCallbackInfo(*args
, **kwargs
):
3535 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3536 return _windows_
.PyPanel__setCallbackInfo(*args
, **kwargs
)
3538 def SetBestSize(*args
, **kwargs
):
3539 """SetBestSize(self, Size size)"""
3540 return _windows_
.PyPanel_SetBestSize(*args
, **kwargs
)
3542 def base_DoMoveWindow(*args
, **kwargs
):
3543 """base_DoMoveWindow(self, int x, int y, int width, int height)"""
3544 return _windows_
.PyPanel_base_DoMoveWindow(*args
, **kwargs
)
3546 def base_DoSetSize(*args
, **kwargs
):
3547 """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3548 return _windows_
.PyPanel_base_DoSetSize(*args
, **kwargs
)
3550 def base_DoSetClientSize(*args
, **kwargs
):
3551 """base_DoSetClientSize(self, int width, int height)"""
3552 return _windows_
.PyPanel_base_DoSetClientSize(*args
, **kwargs
)
3554 def base_DoSetVirtualSize(*args
, **kwargs
):
3555 """base_DoSetVirtualSize(self, int x, int y)"""
3556 return _windows_
.PyPanel_base_DoSetVirtualSize(*args
, **kwargs
)
3558 def base_DoGetSize(*args
, **kwargs
):
3559 """base_DoGetSize() -> (width, height)"""
3560 return _windows_
.PyPanel_base_DoGetSize(*args
, **kwargs
)
3562 def base_DoGetClientSize(*args
, **kwargs
):
3563 """base_DoGetClientSize() -> (width, height)"""
3564 return _windows_
.PyPanel_base_DoGetClientSize(*args
, **kwargs
)
3566 def base_DoGetPosition(*args
, **kwargs
):
3567 """base_DoGetPosition() -> (x,y)"""
3568 return _windows_
.PyPanel_base_DoGetPosition(*args
, **kwargs
)
3570 def base_DoGetVirtualSize(*args
, **kwargs
):
3571 """base_DoGetVirtualSize(self) -> Size"""
3572 return _windows_
.PyPanel_base_DoGetVirtualSize(*args
, **kwargs
)
3574 def base_DoGetBestSize(*args
, **kwargs
):
3575 """base_DoGetBestSize(self) -> Size"""
3576 return _windows_
.PyPanel_base_DoGetBestSize(*args
, **kwargs
)
3578 def base_InitDialog(*args
, **kwargs
):
3579 """base_InitDialog(self)"""
3580 return _windows_
.PyPanel_base_InitDialog(*args
, **kwargs
)
3582 def base_TransferDataToWindow(*args
, **kwargs
):
3583 """base_TransferDataToWindow(self) -> bool"""
3584 return _windows_
.PyPanel_base_TransferDataToWindow(*args
, **kwargs
)
3586 def base_TransferDataFromWindow(*args
, **kwargs
):
3587 """base_TransferDataFromWindow(self) -> bool"""
3588 return _windows_
.PyPanel_base_TransferDataFromWindow(*args
, **kwargs
)
3590 def base_Validate(*args
, **kwargs
):
3591 """base_Validate(self) -> bool"""
3592 return _windows_
.PyPanel_base_Validate(*args
, **kwargs
)
3594 def base_AcceptsFocus(*args
, **kwargs
):
3595 """base_AcceptsFocus(self) -> bool"""
3596 return _windows_
.PyPanel_base_AcceptsFocus(*args
, **kwargs
)
3598 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
3599 """base_AcceptsFocusFromKeyboard(self) -> bool"""
3600 return _windows_
.PyPanel_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3602 def base_GetMaxSize(*args
, **kwargs
):
3603 """base_GetMaxSize(self) -> Size"""
3604 return _windows_
.PyPanel_base_GetMaxSize(*args
, **kwargs
)
3606 def base_AddChild(*args
, **kwargs
):
3607 """base_AddChild(self, Window child)"""
3608 return _windows_
.PyPanel_base_AddChild(*args
, **kwargs
)
3610 def base_RemoveChild(*args
, **kwargs
):
3611 """base_RemoveChild(self, Window child)"""
3612 return _windows_
.PyPanel_base_RemoveChild(*args
, **kwargs
)
3614 def base_ShouldInheritColours(*args
, **kwargs
):
3615 """base_ShouldInheritColours(self) -> bool"""
3616 return _windows_
.PyPanel_base_ShouldInheritColours(*args
, **kwargs
)
3618 def base_ApplyParentThemeBackground(*args
, **kwargs
):
3619 """base_ApplyParentThemeBackground(self, Colour c)"""
3620 return _windows_
.PyPanel_base_ApplyParentThemeBackground(*args
, **kwargs
)
3622 def base_GetDefaultAttributes(*args
, **kwargs
):
3623 """base_GetDefaultAttributes(self) -> VisualAttributes"""
3624 return _windows_
.PyPanel_base_GetDefaultAttributes(*args
, **kwargs
)
3627 class PyPanelPtr(PyPanel
):
3628 def __init__(self
, this
):
3630 if not hasattr(self
,"thisown"): self
.thisown
= 0
3631 self
.__class
__ = PyPanel
3632 _windows_
.PyPanel_swigregister(PyPanelPtr
)
3634 def PrePyPanel(*args
, **kwargs
):
3635 """PrePyPanel() -> PyPanel"""
3636 val
= _windows_
.new_PrePyPanel(*args
, **kwargs
)
3640 class PyScrolledWindow(ScrolledWindow
):
3642 return "<%s.%s; proxy of C++ wxPyScrolledWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3643 def __init__(self
, *args
, **kwargs
):
3645 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3646 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyScrolledWindow
3648 newobj
= _windows_
.new_PyScrolledWindow(*args
, **kwargs
)
3649 self
.this
= newobj
.this
3652 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyPanel
)
3654 def _setCallbackInfo(*args
, **kwargs
):
3655 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3656 return _windows_
.PyScrolledWindow__setCallbackInfo(*args
, **kwargs
)
3658 def SetBestSize(*args
, **kwargs
):
3659 """SetBestSize(self, Size size)"""
3660 return _windows_
.PyScrolledWindow_SetBestSize(*args
, **kwargs
)
3662 def base_DoMoveWindow(*args
, **kwargs
):
3663 """base_DoMoveWindow(self, int x, int y, int width, int height)"""
3664 return _windows_
.PyScrolledWindow_base_DoMoveWindow(*args
, **kwargs
)
3666 def base_DoSetSize(*args
, **kwargs
):
3667 """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3668 return _windows_
.PyScrolledWindow_base_DoSetSize(*args
, **kwargs
)
3670 def base_DoSetClientSize(*args
, **kwargs
):
3671 """base_DoSetClientSize(self, int width, int height)"""
3672 return _windows_
.PyScrolledWindow_base_DoSetClientSize(*args
, **kwargs
)
3674 def base_DoSetVirtualSize(*args
, **kwargs
):
3675 """base_DoSetVirtualSize(self, int x, int y)"""
3676 return _windows_
.PyScrolledWindow_base_DoSetVirtualSize(*args
, **kwargs
)
3678 def base_DoGetSize(*args
, **kwargs
):
3679 """base_DoGetSize() -> (width, height)"""
3680 return _windows_
.PyScrolledWindow_base_DoGetSize(*args
, **kwargs
)
3682 def base_DoGetClientSize(*args
, **kwargs
):
3683 """base_DoGetClientSize() -> (width, height)"""
3684 return _windows_
.PyScrolledWindow_base_DoGetClientSize(*args
, **kwargs
)
3686 def base_DoGetPosition(*args
, **kwargs
):
3687 """base_DoGetPosition() -> (x,y)"""
3688 return _windows_
.PyScrolledWindow_base_DoGetPosition(*args
, **kwargs
)
3690 def base_DoGetVirtualSize(*args
, **kwargs
):
3691 """base_DoGetVirtualSize(self) -> Size"""
3692 return _windows_
.PyScrolledWindow_base_DoGetVirtualSize(*args
, **kwargs
)
3694 def base_DoGetBestSize(*args
, **kwargs
):
3695 """base_DoGetBestSize(self) -> Size"""
3696 return _windows_
.PyScrolledWindow_base_DoGetBestSize(*args
, **kwargs
)
3698 def base_InitDialog(*args
, **kwargs
):
3699 """base_InitDialog(self)"""
3700 return _windows_
.PyScrolledWindow_base_InitDialog(*args
, **kwargs
)
3702 def base_TransferDataToWindow(*args
, **kwargs
):
3703 """base_TransferDataToWindow(self) -> bool"""
3704 return _windows_
.PyScrolledWindow_base_TransferDataToWindow(*args
, **kwargs
)
3706 def base_TransferDataFromWindow(*args
, **kwargs
):
3707 """base_TransferDataFromWindow(self) -> bool"""
3708 return _windows_
.PyScrolledWindow_base_TransferDataFromWindow(*args
, **kwargs
)
3710 def base_Validate(*args
, **kwargs
):
3711 """base_Validate(self) -> bool"""
3712 return _windows_
.PyScrolledWindow_base_Validate(*args
, **kwargs
)
3714 def base_AcceptsFocus(*args
, **kwargs
):
3715 """base_AcceptsFocus(self) -> bool"""
3716 return _windows_
.PyScrolledWindow_base_AcceptsFocus(*args
, **kwargs
)
3718 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
3719 """base_AcceptsFocusFromKeyboard(self) -> bool"""
3720 return _windows_
.PyScrolledWindow_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3722 def base_GetMaxSize(*args
, **kwargs
):
3723 """base_GetMaxSize(self) -> Size"""
3724 return _windows_
.PyScrolledWindow_base_GetMaxSize(*args
, **kwargs
)
3726 def base_AddChild(*args
, **kwargs
):
3727 """base_AddChild(self, Window child)"""
3728 return _windows_
.PyScrolledWindow_base_AddChild(*args
, **kwargs
)
3730 def base_RemoveChild(*args
, **kwargs
):
3731 """base_RemoveChild(self, Window child)"""
3732 return _windows_
.PyScrolledWindow_base_RemoveChild(*args
, **kwargs
)
3734 def base_ShouldInheritColours(*args
, **kwargs
):
3735 """base_ShouldInheritColours(self) -> bool"""
3736 return _windows_
.PyScrolledWindow_base_ShouldInheritColours(*args
, **kwargs
)
3738 def base_ApplyParentThemeBackground(*args
, **kwargs
):
3739 """base_ApplyParentThemeBackground(self, Colour c)"""
3740 return _windows_
.PyScrolledWindow_base_ApplyParentThemeBackground(*args
, **kwargs
)
3742 def base_GetDefaultAttributes(*args
, **kwargs
):
3743 """base_GetDefaultAttributes(self) -> VisualAttributes"""
3744 return _windows_
.PyScrolledWindow_base_GetDefaultAttributes(*args
, **kwargs
)
3747 class PyScrolledWindowPtr(PyScrolledWindow
):
3748 def __init__(self
, this
):
3750 if not hasattr(self
,"thisown"): self
.thisown
= 0
3751 self
.__class
__ = PyScrolledWindow
3752 _windows_
.PyScrolledWindow_swigregister(PyScrolledWindowPtr
)
3754 def PrePyScrolledWindow(*args
, **kwargs
):
3755 """PrePyScrolledWindow() -> PyScrolledWindow"""
3756 val
= _windows_
.new_PrePyScrolledWindow(*args
, **kwargs
)
3760 #---------------------------------------------------------------------------
3762 PRINT_MODE_NONE
= _windows_
.PRINT_MODE_NONE
3763 PRINT_MODE_PREVIEW
= _windows_
.PRINT_MODE_PREVIEW
3764 PRINT_MODE_FILE
= _windows_
.PRINT_MODE_FILE
3765 PRINT_MODE_PRINTER
= _windows_
.PRINT_MODE_PRINTER
3766 PRINT_MODE_STREAM
= _windows_
.PRINT_MODE_STREAM
3767 PRINTBIN_DEFAULT
= _windows_
.PRINTBIN_DEFAULT
3768 PRINTBIN_ONLYONE
= _windows_
.PRINTBIN_ONLYONE
3769 PRINTBIN_LOWER
= _windows_
.PRINTBIN_LOWER
3770 PRINTBIN_MIDDLE
= _windows_
.PRINTBIN_MIDDLE
3771 PRINTBIN_MANUAL
= _windows_
.PRINTBIN_MANUAL
3772 PRINTBIN_ENVELOPE
= _windows_
.PRINTBIN_ENVELOPE
3773 PRINTBIN_ENVMANUAL
= _windows_
.PRINTBIN_ENVMANUAL
3774 PRINTBIN_AUTO
= _windows_
.PRINTBIN_AUTO
3775 PRINTBIN_TRACTOR
= _windows_
.PRINTBIN_TRACTOR
3776 PRINTBIN_SMALLFMT
= _windows_
.PRINTBIN_SMALLFMT
3777 PRINTBIN_LARGEFMT
= _windows_
.PRINTBIN_LARGEFMT
3778 PRINTBIN_LARGECAPACITY
= _windows_
.PRINTBIN_LARGECAPACITY
3779 PRINTBIN_CASSETTE
= _windows_
.PRINTBIN_CASSETTE
3780 PRINTBIN_FORMSOURCE
= _windows_
.PRINTBIN_FORMSOURCE
3781 PRINTBIN_USER
= _windows_
.PRINTBIN_USER
3782 class PrintData(_core
.Object
):
3784 return "<%s.%s; proxy of C++ wxPrintData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3785 def __init__(self
, *args
):
3787 __init__(self) -> PrintData
3788 __init__(self, PrintData data) -> PrintData
3790 newobj
= _windows_
.new_PrintData(*args
)
3791 self
.this
= newobj
.this
3794 def __del__(self
, destroy
=_windows_
.delete_PrintData
):
3797 if self
.thisown
: destroy(self
)
3800 def GetNoCopies(*args
, **kwargs
):
3801 """GetNoCopies(self) -> int"""
3802 return _windows_
.PrintData_GetNoCopies(*args
, **kwargs
)
3804 def GetCollate(*args
, **kwargs
):
3805 """GetCollate(self) -> bool"""
3806 return _windows_
.PrintData_GetCollate(*args
, **kwargs
)
3808 def GetOrientation(*args
, **kwargs
):
3809 """GetOrientation(self) -> int"""
3810 return _windows_
.PrintData_GetOrientation(*args
, **kwargs
)
3812 def Ok(*args
, **kwargs
):
3813 """Ok(self) -> bool"""
3814 return _windows_
.PrintData_Ok(*args
, **kwargs
)
3816 def GetPrinterName(*args
, **kwargs
):
3817 """GetPrinterName(self) -> String"""
3818 return _windows_
.PrintData_GetPrinterName(*args
, **kwargs
)
3820 def GetColour(*args
, **kwargs
):
3821 """GetColour(self) -> bool"""
3822 return _windows_
.PrintData_GetColour(*args
, **kwargs
)
3824 def GetDuplex(*args
, **kwargs
):
3825 """GetDuplex(self) -> int"""
3826 return _windows_
.PrintData_GetDuplex(*args
, **kwargs
)
3828 def GetPaperId(*args
, **kwargs
):
3829 """GetPaperId(self) -> int"""
3830 return _windows_
.PrintData_GetPaperId(*args
, **kwargs
)
3832 def GetPaperSize(*args
, **kwargs
):
3833 """GetPaperSize(self) -> Size"""
3834 return _windows_
.PrintData_GetPaperSize(*args
, **kwargs
)
3836 def GetQuality(*args
, **kwargs
):
3837 """GetQuality(self) -> int"""
3838 return _windows_
.PrintData_GetQuality(*args
, **kwargs
)
3840 def GetBin(*args
, **kwargs
):
3841 """GetBin(self) -> int"""
3842 return _windows_
.PrintData_GetBin(*args
, **kwargs
)
3844 def GetPrintMode(*args
, **kwargs
):
3845 """GetPrintMode(self) -> int"""
3846 return _windows_
.PrintData_GetPrintMode(*args
, **kwargs
)
3848 def SetNoCopies(*args
, **kwargs
):
3849 """SetNoCopies(self, int v)"""
3850 return _windows_
.PrintData_SetNoCopies(*args
, **kwargs
)
3852 def SetCollate(*args
, **kwargs
):
3853 """SetCollate(self, bool flag)"""
3854 return _windows_
.PrintData_SetCollate(*args
, **kwargs
)
3856 def SetOrientation(*args
, **kwargs
):
3857 """SetOrientation(self, int orient)"""
3858 return _windows_
.PrintData_SetOrientation(*args
, **kwargs
)
3860 def SetPrinterName(*args
, **kwargs
):
3861 """SetPrinterName(self, String name)"""
3862 return _windows_
.PrintData_SetPrinterName(*args
, **kwargs
)
3864 def SetColour(*args
, **kwargs
):
3865 """SetColour(self, bool colour)"""
3866 return _windows_
.PrintData_SetColour(*args
, **kwargs
)
3868 def SetDuplex(*args
, **kwargs
):
3869 """SetDuplex(self, int duplex)"""
3870 return _windows_
.PrintData_SetDuplex(*args
, **kwargs
)
3872 def SetPaperId(*args
, **kwargs
):
3873 """SetPaperId(self, int sizeId)"""
3874 return _windows_
.PrintData_SetPaperId(*args
, **kwargs
)
3876 def SetPaperSize(*args
, **kwargs
):
3877 """SetPaperSize(self, Size sz)"""
3878 return _windows_
.PrintData_SetPaperSize(*args
, **kwargs
)
3880 def SetQuality(*args
, **kwargs
):
3881 """SetQuality(self, int quality)"""
3882 return _windows_
.PrintData_SetQuality(*args
, **kwargs
)
3884 def SetBin(*args
, **kwargs
):
3885 """SetBin(self, int bin)"""
3886 return _windows_
.PrintData_SetBin(*args
, **kwargs
)
3888 def SetPrintMode(*args
, **kwargs
):
3889 """SetPrintMode(self, int printMode)"""
3890 return _windows_
.PrintData_SetPrintMode(*args
, **kwargs
)
3892 def GetFilename(*args
, **kwargs
):
3893 """GetFilename(self) -> String"""
3894 return _windows_
.PrintData_GetFilename(*args
, **kwargs
)
3896 def SetFilename(*args
, **kwargs
):
3897 """SetFilename(self, String filename)"""
3898 return _windows_
.PrintData_SetFilename(*args
, **kwargs
)
3900 def __nonzero__(self
): return self
.Ok()
3901 def GetPrinterCommand(*args
, **kwargs
):
3902 """GetPrinterCommand(self) -> String"""
3903 return _windows_
.PrintData_GetPrinterCommand(*args
, **kwargs
)
3905 def GetPrinterOptions(*args
, **kwargs
):
3906 """GetPrinterOptions(self) -> String"""
3907 return _windows_
.PrintData_GetPrinterOptions(*args
, **kwargs
)
3909 def GetPreviewCommand(*args
, **kwargs
):
3910 """GetPreviewCommand(self) -> String"""
3911 return _windows_
.PrintData_GetPreviewCommand(*args
, **kwargs
)
3913 def GetFontMetricPath(*args
, **kwargs
):
3914 """GetFontMetricPath(self) -> String"""
3915 return _windows_
.PrintData_GetFontMetricPath(*args
, **kwargs
)
3917 def GetPrinterScaleX(*args
, **kwargs
):
3918 """GetPrinterScaleX(self) -> double"""
3919 return _windows_
.PrintData_GetPrinterScaleX(*args
, **kwargs
)
3921 def GetPrinterScaleY(*args
, **kwargs
):
3922 """GetPrinterScaleY(self) -> double"""
3923 return _windows_
.PrintData_GetPrinterScaleY(*args
, **kwargs
)
3925 def GetPrinterTranslateX(*args
, **kwargs
):
3926 """GetPrinterTranslateX(self) -> long"""
3927 return _windows_
.PrintData_GetPrinterTranslateX(*args
, **kwargs
)
3929 def GetPrinterTranslateY(*args
, **kwargs
):
3930 """GetPrinterTranslateY(self) -> long"""
3931 return _windows_
.PrintData_GetPrinterTranslateY(*args
, **kwargs
)
3933 def SetPrinterCommand(*args
, **kwargs
):
3934 """SetPrinterCommand(self, String command)"""
3935 return _windows_
.PrintData_SetPrinterCommand(*args
, **kwargs
)
3937 def SetPrinterOptions(*args
, **kwargs
):
3938 """SetPrinterOptions(self, String options)"""
3939 return _windows_
.PrintData_SetPrinterOptions(*args
, **kwargs
)
3941 def SetPreviewCommand(*args
, **kwargs
):
3942 """SetPreviewCommand(self, String command)"""
3943 return _windows_
.PrintData_SetPreviewCommand(*args
, **kwargs
)
3945 def SetFontMetricPath(*args
, **kwargs
):
3946 """SetFontMetricPath(self, String path)"""
3947 return _windows_
.PrintData_SetFontMetricPath(*args
, **kwargs
)
3949 def SetPrinterScaleX(*args
, **kwargs
):
3950 """SetPrinterScaleX(self, double x)"""
3951 return _windows_
.PrintData_SetPrinterScaleX(*args
, **kwargs
)
3953 def SetPrinterScaleY(*args
, **kwargs
):
3954 """SetPrinterScaleY(self, double y)"""
3955 return _windows_
.PrintData_SetPrinterScaleY(*args
, **kwargs
)
3957 def SetPrinterScaling(*args
, **kwargs
):
3958 """SetPrinterScaling(self, double x, double y)"""
3959 return _windows_
.PrintData_SetPrinterScaling(*args
, **kwargs
)
3961 def SetPrinterTranslateX(*args
, **kwargs
):
3962 """SetPrinterTranslateX(self, long x)"""
3963 return _windows_
.PrintData_SetPrinterTranslateX(*args
, **kwargs
)
3965 def SetPrinterTranslateY(*args
, **kwargs
):
3966 """SetPrinterTranslateY(self, long y)"""
3967 return _windows_
.PrintData_SetPrinterTranslateY(*args
, **kwargs
)
3969 def SetPrinterTranslation(*args
, **kwargs
):
3970 """SetPrinterTranslation(self, long x, long y)"""
3971 return _windows_
.PrintData_SetPrinterTranslation(*args
, **kwargs
)
3974 class PrintDataPtr(PrintData
):
3975 def __init__(self
, this
):
3977 if not hasattr(self
,"thisown"): self
.thisown
= 0
3978 self
.__class
__ = PrintData
3979 _windows_
.PrintData_swigregister(PrintDataPtr
)
3980 PrintoutTitleStr
= cvar
.PrintoutTitleStr
3981 PreviewCanvasNameStr
= cvar
.PreviewCanvasNameStr
3983 class PageSetupDialogData(_core
.Object
):
3985 return "<%s.%s; proxy of C++ wxPageSetupDialogData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3986 def __init__(self
, *args
):
3988 __init__(self) -> PageSetupDialogData
3989 __init__(self, PageSetupDialogData data) -> PageSetupDialogData
3991 newobj
= _windows_
.new_PageSetupDialogData(*args
)
3992 self
.this
= newobj
.this
3995 def __del__(self
, destroy
=_windows_
.delete_PageSetupDialogData
):
3998 if self
.thisown
: destroy(self
)
4001 def EnableHelp(*args
, **kwargs
):
4002 """EnableHelp(self, bool flag)"""
4003 return _windows_
.PageSetupDialogData_EnableHelp(*args
, **kwargs
)
4005 def EnableMargins(*args
, **kwargs
):
4006 """EnableMargins(self, bool flag)"""
4007 return _windows_
.PageSetupDialogData_EnableMargins(*args
, **kwargs
)
4009 def EnableOrientation(*args
, **kwargs
):
4010 """EnableOrientation(self, bool flag)"""
4011 return _windows_
.PageSetupDialogData_EnableOrientation(*args
, **kwargs
)
4013 def EnablePaper(*args
, **kwargs
):
4014 """EnablePaper(self, bool flag)"""
4015 return _windows_
.PageSetupDialogData_EnablePaper(*args
, **kwargs
)
4017 def EnablePrinter(*args
, **kwargs
):
4018 """EnablePrinter(self, bool flag)"""
4019 return _windows_
.PageSetupDialogData_EnablePrinter(*args
, **kwargs
)
4021 def GetDefaultMinMargins(*args
, **kwargs
):
4022 """GetDefaultMinMargins(self) -> bool"""
4023 return _windows_
.PageSetupDialogData_GetDefaultMinMargins(*args
, **kwargs
)
4025 def GetEnableMargins(*args
, **kwargs
):
4026 """GetEnableMargins(self) -> bool"""
4027 return _windows_
.PageSetupDialogData_GetEnableMargins(*args
, **kwargs
)
4029 def GetEnableOrientation(*args
, **kwargs
):
4030 """GetEnableOrientation(self) -> bool"""
4031 return _windows_
.PageSetupDialogData_GetEnableOrientation(*args
, **kwargs
)
4033 def GetEnablePaper(*args
, **kwargs
):
4034 """GetEnablePaper(self) -> bool"""
4035 return _windows_
.PageSetupDialogData_GetEnablePaper(*args
, **kwargs
)
4037 def GetEnablePrinter(*args
, **kwargs
):
4038 """GetEnablePrinter(self) -> bool"""
4039 return _windows_
.PageSetupDialogData_GetEnablePrinter(*args
, **kwargs
)
4041 def GetEnableHelp(*args
, **kwargs
):
4042 """GetEnableHelp(self) -> bool"""
4043 return _windows_
.PageSetupDialogData_GetEnableHelp(*args
, **kwargs
)
4045 def GetDefaultInfo(*args
, **kwargs
):
4046 """GetDefaultInfo(self) -> bool"""
4047 return _windows_
.PageSetupDialogData_GetDefaultInfo(*args
, **kwargs
)
4049 def GetMarginTopLeft(*args
, **kwargs
):
4050 """GetMarginTopLeft(self) -> Point"""
4051 return _windows_
.PageSetupDialogData_GetMarginTopLeft(*args
, **kwargs
)
4053 def GetMarginBottomRight(*args
, **kwargs
):
4054 """GetMarginBottomRight(self) -> Point"""
4055 return _windows_
.PageSetupDialogData_GetMarginBottomRight(*args
, **kwargs
)
4057 def GetMinMarginTopLeft(*args
, **kwargs
):
4058 """GetMinMarginTopLeft(self) -> Point"""
4059 return _windows_
.PageSetupDialogData_GetMinMarginTopLeft(*args
, **kwargs
)
4061 def GetMinMarginBottomRight(*args
, **kwargs
):
4062 """GetMinMarginBottomRight(self) -> Point"""
4063 return _windows_
.PageSetupDialogData_GetMinMarginBottomRight(*args
, **kwargs
)
4065 def GetPaperId(*args
, **kwargs
):
4066 """GetPaperId(self) -> int"""
4067 return _windows_
.PageSetupDialogData_GetPaperId(*args
, **kwargs
)
4069 def GetPaperSize(*args
, **kwargs
):
4070 """GetPaperSize(self) -> Size"""
4071 return _windows_
.PageSetupDialogData_GetPaperSize(*args
, **kwargs
)
4073 def GetPrintData(*args
, **kwargs
):
4074 """GetPrintData(self) -> PrintData"""
4075 return _windows_
.PageSetupDialogData_GetPrintData(*args
, **kwargs
)
4077 def Ok(*args
, **kwargs
):
4078 """Ok(self) -> bool"""
4079 return _windows_
.PageSetupDialogData_Ok(*args
, **kwargs
)
4081 def SetDefaultInfo(*args
, **kwargs
):
4082 """SetDefaultInfo(self, bool flag)"""
4083 return _windows_
.PageSetupDialogData_SetDefaultInfo(*args
, **kwargs
)
4085 def SetDefaultMinMargins(*args
, **kwargs
):
4086 """SetDefaultMinMargins(self, bool flag)"""
4087 return _windows_
.PageSetupDialogData_SetDefaultMinMargins(*args
, **kwargs
)
4089 def SetMarginTopLeft(*args
, **kwargs
):
4090 """SetMarginTopLeft(self, Point pt)"""
4091 return _windows_
.PageSetupDialogData_SetMarginTopLeft(*args
, **kwargs
)
4093 def SetMarginBottomRight(*args
, **kwargs
):
4094 """SetMarginBottomRight(self, Point pt)"""
4095 return _windows_
.PageSetupDialogData_SetMarginBottomRight(*args
, **kwargs
)
4097 def SetMinMarginTopLeft(*args
, **kwargs
):
4098 """SetMinMarginTopLeft(self, Point pt)"""
4099 return _windows_
.PageSetupDialogData_SetMinMarginTopLeft(*args
, **kwargs
)
4101 def SetMinMarginBottomRight(*args
, **kwargs
):
4102 """SetMinMarginBottomRight(self, Point pt)"""
4103 return _windows_
.PageSetupDialogData_SetMinMarginBottomRight(*args
, **kwargs
)
4105 def SetPaperId(*args
, **kwargs
):
4106 """SetPaperId(self, int id)"""
4107 return _windows_
.PageSetupDialogData_SetPaperId(*args
, **kwargs
)
4109 def SetPaperSize(*args
, **kwargs
):
4110 """SetPaperSize(self, Size size)"""
4111 return _windows_
.PageSetupDialogData_SetPaperSize(*args
, **kwargs
)
4113 def SetPrintData(*args
, **kwargs
):
4114 """SetPrintData(self, PrintData printData)"""
4115 return _windows_
.PageSetupDialogData_SetPrintData(*args
, **kwargs
)
4117 def __nonzero__(self
): return self
.Ok()
4119 class PageSetupDialogDataPtr(PageSetupDialogData
):
4120 def __init__(self
, this
):
4122 if not hasattr(self
,"thisown"): self
.thisown
= 0
4123 self
.__class
__ = PageSetupDialogData
4124 _windows_
.PageSetupDialogData_swigregister(PageSetupDialogDataPtr
)
4126 class PageSetupDialog(_core
.Object
):
4128 return "<%s.%s; proxy of C++ wxPageSetupDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4129 def __init__(self
, *args
, **kwargs
):
4130 """__init__(self, Window parent, PageSetupDialogData data=None) -> PageSetupDialog"""
4131 newobj
= _windows_
.new_PageSetupDialog(*args
, **kwargs
)
4132 self
.this
= newobj
.this
4135 def GetPageSetupData(*args
, **kwargs
):
4136 """GetPageSetupData(self) -> PageSetupDialogData"""
4137 return _windows_
.PageSetupDialog_GetPageSetupData(*args
, **kwargs
)
4139 def GetPageSetupDialogData(*args
, **kwargs
):
4140 """GetPageSetupDialogData(self) -> PageSetupDialogData"""
4141 return _windows_
.PageSetupDialog_GetPageSetupDialogData(*args
, **kwargs
)
4143 def ShowModal(*args
, **kwargs
):
4144 """ShowModal(self) -> int"""
4145 return _windows_
.PageSetupDialog_ShowModal(*args
, **kwargs
)
4148 class PageSetupDialogPtr(PageSetupDialog
):
4149 def __init__(self
, this
):
4151 if not hasattr(self
,"thisown"): self
.thisown
= 0
4152 self
.__class
__ = PageSetupDialog
4153 _windows_
.PageSetupDialog_swigregister(PageSetupDialogPtr
)
4155 class PrintDialogData(_core
.Object
):
4157 return "<%s.%s; proxy of C++ wxPrintDialogData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4158 def __init__(self
, *args
):
4160 __init__(self) -> PrintDialogData
4161 __init__(self, PrintData printData) -> PrintDialogData
4163 newobj
= _windows_
.new_PrintDialogData(*args
)
4164 self
.this
= newobj
.this
4167 def __del__(self
, destroy
=_windows_
.delete_PrintDialogData
):
4170 if self
.thisown
: destroy(self
)
4173 def GetFromPage(*args
, **kwargs
):
4174 """GetFromPage(self) -> int"""
4175 return _windows_
.PrintDialogData_GetFromPage(*args
, **kwargs
)
4177 def GetToPage(*args
, **kwargs
):
4178 """GetToPage(self) -> int"""
4179 return _windows_
.PrintDialogData_GetToPage(*args
, **kwargs
)
4181 def GetMinPage(*args
, **kwargs
):
4182 """GetMinPage(self) -> int"""
4183 return _windows_
.PrintDialogData_GetMinPage(*args
, **kwargs
)
4185 def GetMaxPage(*args
, **kwargs
):
4186 """GetMaxPage(self) -> int"""
4187 return _windows_
.PrintDialogData_GetMaxPage(*args
, **kwargs
)
4189 def GetNoCopies(*args
, **kwargs
):
4190 """GetNoCopies(self) -> int"""
4191 return _windows_
.PrintDialogData_GetNoCopies(*args
, **kwargs
)
4193 def GetAllPages(*args
, **kwargs
):
4194 """GetAllPages(self) -> bool"""
4195 return _windows_
.PrintDialogData_GetAllPages(*args
, **kwargs
)
4197 def GetSelection(*args
, **kwargs
):
4198 """GetSelection(self) -> bool"""
4199 return _windows_
.PrintDialogData_GetSelection(*args
, **kwargs
)
4201 def GetCollate(*args
, **kwargs
):
4202 """GetCollate(self) -> bool"""
4203 return _windows_
.PrintDialogData_GetCollate(*args
, **kwargs
)
4205 def GetPrintToFile(*args
, **kwargs
):
4206 """GetPrintToFile(self) -> bool"""
4207 return _windows_
.PrintDialogData_GetPrintToFile(*args
, **kwargs
)
4209 def GetSetupDialog(*args
, **kwargs
):
4210 """GetSetupDialog(self) -> bool"""
4211 return _windows_
.PrintDialogData_GetSetupDialog(*args
, **kwargs
)
4213 def SetSetupDialog(*args
, **kwargs
):
4214 """SetSetupDialog(self, bool flag)"""
4215 return _windows_
.PrintDialogData_SetSetupDialog(*args
, **kwargs
)
4217 def SetFromPage(*args
, **kwargs
):
4218 """SetFromPage(self, int v)"""
4219 return _windows_
.PrintDialogData_SetFromPage(*args
, **kwargs
)
4221 def SetToPage(*args
, **kwargs
):
4222 """SetToPage(self, int v)"""
4223 return _windows_
.PrintDialogData_SetToPage(*args
, **kwargs
)
4225 def SetMinPage(*args
, **kwargs
):
4226 """SetMinPage(self, int v)"""
4227 return _windows_
.PrintDialogData_SetMinPage(*args
, **kwargs
)
4229 def SetMaxPage(*args
, **kwargs
):
4230 """SetMaxPage(self, int v)"""
4231 return _windows_
.PrintDialogData_SetMaxPage(*args
, **kwargs
)
4233 def SetNoCopies(*args
, **kwargs
):
4234 """SetNoCopies(self, int v)"""
4235 return _windows_
.PrintDialogData_SetNoCopies(*args
, **kwargs
)
4237 def SetAllPages(*args
, **kwargs
):
4238 """SetAllPages(self, bool flag)"""
4239 return _windows_
.PrintDialogData_SetAllPages(*args
, **kwargs
)
4241 def SetSelection(*args
, **kwargs
):
4242 """SetSelection(self, bool flag)"""
4243 return _windows_
.PrintDialogData_SetSelection(*args
, **kwargs
)
4245 def SetCollate(*args
, **kwargs
):
4246 """SetCollate(self, bool flag)"""
4247 return _windows_
.PrintDialogData_SetCollate(*args
, **kwargs
)
4249 def SetPrintToFile(*args
, **kwargs
):
4250 """SetPrintToFile(self, bool flag)"""
4251 return _windows_
.PrintDialogData_SetPrintToFile(*args
, **kwargs
)
4253 def EnablePrintToFile(*args
, **kwargs
):
4254 """EnablePrintToFile(self, bool flag)"""
4255 return _windows_
.PrintDialogData_EnablePrintToFile(*args
, **kwargs
)
4257 def EnableSelection(*args
, **kwargs
):
4258 """EnableSelection(self, bool flag)"""
4259 return _windows_
.PrintDialogData_EnableSelection(*args
, **kwargs
)
4261 def EnablePageNumbers(*args
, **kwargs
):
4262 """EnablePageNumbers(self, bool flag)"""
4263 return _windows_
.PrintDialogData_EnablePageNumbers(*args
, **kwargs
)
4265 def EnableHelp(*args
, **kwargs
):
4266 """EnableHelp(self, bool flag)"""
4267 return _windows_
.PrintDialogData_EnableHelp(*args
, **kwargs
)
4269 def GetEnablePrintToFile(*args
, **kwargs
):
4270 """GetEnablePrintToFile(self) -> bool"""
4271 return _windows_
.PrintDialogData_GetEnablePrintToFile(*args
, **kwargs
)
4273 def GetEnableSelection(*args
, **kwargs
):
4274 """GetEnableSelection(self) -> bool"""
4275 return _windows_
.PrintDialogData_GetEnableSelection(*args
, **kwargs
)
4277 def GetEnablePageNumbers(*args
, **kwargs
):
4278 """GetEnablePageNumbers(self) -> bool"""
4279 return _windows_
.PrintDialogData_GetEnablePageNumbers(*args
, **kwargs
)
4281 def GetEnableHelp(*args
, **kwargs
):
4282 """GetEnableHelp(self) -> bool"""
4283 return _windows_
.PrintDialogData_GetEnableHelp(*args
, **kwargs
)
4285 def Ok(*args
, **kwargs
):
4286 """Ok(self) -> bool"""
4287 return _windows_
.PrintDialogData_Ok(*args
, **kwargs
)
4289 def GetPrintData(*args
, **kwargs
):
4290 """GetPrintData(self) -> PrintData"""
4291 return _windows_
.PrintDialogData_GetPrintData(*args
, **kwargs
)
4293 def SetPrintData(*args
, **kwargs
):
4294 """SetPrintData(self, PrintData printData)"""
4295 return _windows_
.PrintDialogData_SetPrintData(*args
, **kwargs
)
4297 def __nonzero__(self
): return self
.Ok()
4299 class PrintDialogDataPtr(PrintDialogData
):
4300 def __init__(self
, this
):
4302 if not hasattr(self
,"thisown"): self
.thisown
= 0
4303 self
.__class
__ = PrintDialogData
4304 _windows_
.PrintDialogData_swigregister(PrintDialogDataPtr
)
4306 class PrintDialog(_core
.Object
):
4308 return "<%s.%s; proxy of C++ wxPrintDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4309 def __init__(self
, *args
, **kwargs
):
4310 """__init__(self, Window parent, PrintDialogData data=None) -> PrintDialog"""
4311 newobj
= _windows_
.new_PrintDialog(*args
, **kwargs
)
4312 self
.this
= newobj
.this
4315 def ShowModal(*args
, **kwargs
):
4316 """ShowModal(self) -> int"""
4317 return _windows_
.PrintDialog_ShowModal(*args
, **kwargs
)
4319 def GetPrintDialogData(*args
, **kwargs
):
4320 """GetPrintDialogData(self) -> PrintDialogData"""
4321 return _windows_
.PrintDialog_GetPrintDialogData(*args
, **kwargs
)
4323 def GetPrintData(*args
, **kwargs
):
4324 """GetPrintData(self) -> PrintData"""
4325 return _windows_
.PrintDialog_GetPrintData(*args
, **kwargs
)
4327 def GetPrintDC(*args
, **kwargs
):
4328 """GetPrintDC(self) -> DC"""
4329 return _windows_
.PrintDialog_GetPrintDC(*args
, **kwargs
)
4332 class PrintDialogPtr(PrintDialog
):
4333 def __init__(self
, this
):
4335 if not hasattr(self
,"thisown"): self
.thisown
= 0
4336 self
.__class
__ = PrintDialog
4337 _windows_
.PrintDialog_swigregister(PrintDialogPtr
)
4339 PRINTER_NO_ERROR
= _windows_
.PRINTER_NO_ERROR
4340 PRINTER_CANCELLED
= _windows_
.PRINTER_CANCELLED
4341 PRINTER_ERROR
= _windows_
.PRINTER_ERROR
4342 class Printer(_core
.Object
):
4344 return "<%s.%s; proxy of C++ wxPrinter instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4345 def __init__(self
, *args
, **kwargs
):
4346 """__init__(self, PrintDialogData data=None) -> Printer"""
4347 newobj
= _windows_
.new_Printer(*args
, **kwargs
)
4348 self
.this
= newobj
.this
4351 def __del__(self
, destroy
=_windows_
.delete_Printer
):
4354 if self
.thisown
: destroy(self
)
4357 def CreateAbortWindow(*args
, **kwargs
):
4358 """CreateAbortWindow(self, Window parent, Printout printout) -> Window"""
4359 return _windows_
.Printer_CreateAbortWindow(*args
, **kwargs
)
4361 def ReportError(*args
, **kwargs
):
4362 """ReportError(self, Window parent, Printout printout, String message)"""
4363 return _windows_
.Printer_ReportError(*args
, **kwargs
)
4365 def Setup(*args
, **kwargs
):
4366 """Setup(self, Window parent) -> bool"""
4367 return _windows_
.Printer_Setup(*args
, **kwargs
)
4369 def Print(*args
, **kwargs
):
4370 """Print(self, Window parent, Printout printout, bool prompt=True) -> bool"""
4371 return _windows_
.Printer_Print(*args
, **kwargs
)
4373 def PrintDialog(*args
, **kwargs
):
4374 """PrintDialog(self, Window parent) -> DC"""
4375 return _windows_
.Printer_PrintDialog(*args
, **kwargs
)
4377 def GetPrintDialogData(*args
, **kwargs
):
4378 """GetPrintDialogData(self) -> PrintDialogData"""
4379 return _windows_
.Printer_GetPrintDialogData(*args
, **kwargs
)
4381 def GetAbort(*args
, **kwargs
):
4382 """GetAbort(self) -> bool"""
4383 return _windows_
.Printer_GetAbort(*args
, **kwargs
)
4385 def GetLastError(*args
, **kwargs
):
4386 """GetLastError() -> int"""
4387 return _windows_
.Printer_GetLastError(*args
, **kwargs
)
4389 GetLastError
= staticmethod(GetLastError
)
4391 class PrinterPtr(Printer
):
4392 def __init__(self
, this
):
4394 if not hasattr(self
,"thisown"): self
.thisown
= 0
4395 self
.__class
__ = Printer
4396 _windows_
.Printer_swigregister(PrinterPtr
)
4398 def Printer_GetLastError(*args
, **kwargs
):
4399 """Printer_GetLastError() -> int"""
4400 return _windows_
.Printer_GetLastError(*args
, **kwargs
)
4402 class Printout(_core
.Object
):
4404 return "<%s.%s; proxy of C++ wxPyPrintout instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4405 def __init__(self
, *args
, **kwargs
):
4406 """__init__(self, String title=PrintoutTitleStr) -> Printout"""
4407 newobj
= _windows_
.new_Printout(*args
, **kwargs
)
4408 self
.this
= newobj
.this
4411 self
._setCallbackInfo
(self
, Printout
)
4413 def _setCallbackInfo(*args
, **kwargs
):
4414 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4415 return _windows_
.Printout__setCallbackInfo(*args
, **kwargs
)
4417 def GetTitle(*args
, **kwargs
):
4418 """GetTitle(self) -> String"""
4419 return _windows_
.Printout_GetTitle(*args
, **kwargs
)
4421 def GetDC(*args
, **kwargs
):
4422 """GetDC(self) -> DC"""
4423 return _windows_
.Printout_GetDC(*args
, **kwargs
)
4425 def SetDC(*args
, **kwargs
):
4426 """SetDC(self, DC dc)"""
4427 return _windows_
.Printout_SetDC(*args
, **kwargs
)
4429 def SetPageSizePixels(*args
, **kwargs
):
4430 """SetPageSizePixels(self, int w, int h)"""
4431 return _windows_
.Printout_SetPageSizePixels(*args
, **kwargs
)
4433 def GetPageSizePixels(*args
, **kwargs
):
4434 """GetPageSizePixels() -> (w, h)"""
4435 return _windows_
.Printout_GetPageSizePixels(*args
, **kwargs
)
4437 def SetPageSizeMM(*args
, **kwargs
):
4438 """SetPageSizeMM(self, int w, int h)"""
4439 return _windows_
.Printout_SetPageSizeMM(*args
, **kwargs
)
4441 def GetPageSizeMM(*args
, **kwargs
):
4442 """GetPageSizeMM() -> (w, h)"""
4443 return _windows_
.Printout_GetPageSizeMM(*args
, **kwargs
)
4445 def SetPPIScreen(*args
, **kwargs
):
4446 """SetPPIScreen(self, int x, int y)"""
4447 return _windows_
.Printout_SetPPIScreen(*args
, **kwargs
)
4449 def GetPPIScreen(*args
, **kwargs
):
4450 """GetPPIScreen() -> (x,y)"""
4451 return _windows_
.Printout_GetPPIScreen(*args
, **kwargs
)
4453 def SetPPIPrinter(*args
, **kwargs
):
4454 """SetPPIPrinter(self, int x, int y)"""
4455 return _windows_
.Printout_SetPPIPrinter(*args
, **kwargs
)
4457 def GetPPIPrinter(*args
, **kwargs
):
4458 """GetPPIPrinter() -> (x,y)"""
4459 return _windows_
.Printout_GetPPIPrinter(*args
, **kwargs
)
4461 def IsPreview(*args
, **kwargs
):
4462 """IsPreview(self) -> bool"""
4463 return _windows_
.Printout_IsPreview(*args
, **kwargs
)
4465 def SetIsPreview(*args
, **kwargs
):
4466 """SetIsPreview(self, bool p)"""
4467 return _windows_
.Printout_SetIsPreview(*args
, **kwargs
)
4469 def base_OnBeginDocument(*args
, **kwargs
):
4470 """base_OnBeginDocument(self, int startPage, int endPage) -> bool"""
4471 return _windows_
.Printout_base_OnBeginDocument(*args
, **kwargs
)
4473 def base_OnEndDocument(*args
, **kwargs
):
4474 """base_OnEndDocument(self)"""
4475 return _windows_
.Printout_base_OnEndDocument(*args
, **kwargs
)
4477 def base_OnBeginPrinting(*args
, **kwargs
):
4478 """base_OnBeginPrinting(self)"""
4479 return _windows_
.Printout_base_OnBeginPrinting(*args
, **kwargs
)
4481 def base_OnEndPrinting(*args
, **kwargs
):
4482 """base_OnEndPrinting(self)"""
4483 return _windows_
.Printout_base_OnEndPrinting(*args
, **kwargs
)
4485 def base_OnPreparePrinting(*args
, **kwargs
):
4486 """base_OnPreparePrinting(self)"""
4487 return _windows_
.Printout_base_OnPreparePrinting(*args
, **kwargs
)
4489 def base_HasPage(*args
, **kwargs
):
4490 """base_HasPage(self, int page) -> bool"""
4491 return _windows_
.Printout_base_HasPage(*args
, **kwargs
)
4493 def base_GetPageInfo(*args
, **kwargs
):
4494 """base_GetPageInfo() -> (minPage, maxPage, pageFrom, pageTo)"""
4495 return _windows_
.Printout_base_GetPageInfo(*args
, **kwargs
)
4498 class PrintoutPtr(Printout
):
4499 def __init__(self
, this
):
4501 if not hasattr(self
,"thisown"): self
.thisown
= 0
4502 self
.__class
__ = Printout
4503 _windows_
.Printout_swigregister(PrintoutPtr
)
4505 class PreviewCanvas(ScrolledWindow
):
4507 return "<%s.%s; proxy of C++ wxPreviewCanvas instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4508 def __init__(self
, *args
, **kwargs
):
4510 __init__(self, PrintPreview preview, Window parent, Point pos=DefaultPosition,
4511 Size size=DefaultSize, long style=0,
4512 String name=PreviewCanvasNameStr) -> PreviewCanvas
4514 newobj
= _windows_
.new_PreviewCanvas(*args
, **kwargs
)
4515 self
.this
= newobj
.this
4518 self
._setOORInfo
(self
)
4521 class PreviewCanvasPtr(PreviewCanvas
):
4522 def __init__(self
, this
):
4524 if not hasattr(self
,"thisown"): self
.thisown
= 0
4525 self
.__class
__ = PreviewCanvas
4526 _windows_
.PreviewCanvas_swigregister(PreviewCanvasPtr
)
4528 class PreviewFrame(Frame
):
4530 return "<%s.%s; proxy of C++ wxPreviewFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4531 def __init__(self
, *args
, **kwargs
):
4533 __init__(self, PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4534 Size size=DefaultSize,
4535 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PreviewFrame
4537 newobj
= _windows_
.new_PreviewFrame(*args
, **kwargs
)
4538 self
.this
= newobj
.this
4541 self
._setOORInfo
(self
)
4543 def Initialize(*args
, **kwargs
):
4544 """Initialize(self)"""
4545 return _windows_
.PreviewFrame_Initialize(*args
, **kwargs
)
4547 def CreateControlBar(*args
, **kwargs
):
4548 """CreateControlBar(self)"""
4549 return _windows_
.PreviewFrame_CreateControlBar(*args
, **kwargs
)
4551 def CreateCanvas(*args
, **kwargs
):
4552 """CreateCanvas(self)"""
4553 return _windows_
.PreviewFrame_CreateCanvas(*args
, **kwargs
)
4555 def GetControlBar(*args
, **kwargs
):
4556 """GetControlBar(self) -> PreviewControlBar"""
4557 return _windows_
.PreviewFrame_GetControlBar(*args
, **kwargs
)
4560 class PreviewFramePtr(PreviewFrame
):
4561 def __init__(self
, this
):
4563 if not hasattr(self
,"thisown"): self
.thisown
= 0
4564 self
.__class
__ = PreviewFrame
4565 _windows_
.PreviewFrame_swigregister(PreviewFramePtr
)
4567 PREVIEW_PRINT
= _windows_
.PREVIEW_PRINT
4568 PREVIEW_PREVIOUS
= _windows_
.PREVIEW_PREVIOUS
4569 PREVIEW_NEXT
= _windows_
.PREVIEW_NEXT
4570 PREVIEW_ZOOM
= _windows_
.PREVIEW_ZOOM
4571 PREVIEW_FIRST
= _windows_
.PREVIEW_FIRST
4572 PREVIEW_LAST
= _windows_
.PREVIEW_LAST
4573 PREVIEW_GOTO
= _windows_
.PREVIEW_GOTO
4574 PREVIEW_DEFAULT
= _windows_
.PREVIEW_DEFAULT
4575 ID_PREVIEW_CLOSE
= _windows_
.ID_PREVIEW_CLOSE
4576 ID_PREVIEW_NEXT
= _windows_
.ID_PREVIEW_NEXT
4577 ID_PREVIEW_PREVIOUS
= _windows_
.ID_PREVIEW_PREVIOUS
4578 ID_PREVIEW_PRINT
= _windows_
.ID_PREVIEW_PRINT
4579 ID_PREVIEW_ZOOM
= _windows_
.ID_PREVIEW_ZOOM
4580 ID_PREVIEW_FIRST
= _windows_
.ID_PREVIEW_FIRST
4581 ID_PREVIEW_LAST
= _windows_
.ID_PREVIEW_LAST
4582 ID_PREVIEW_GOTO
= _windows_
.ID_PREVIEW_GOTO
4583 class PreviewControlBar(Panel
):
4585 return "<%s.%s; proxy of C++ wxPreviewControlBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4586 def __init__(self
, *args
, **kwargs
):
4588 __init__(self, PrintPreview preview, long buttons, Window parent,
4589 Point pos=DefaultPosition, Size size=DefaultSize,
4590 long style=TAB_TRAVERSAL, String name=PanelNameStr) -> PreviewControlBar
4592 newobj
= _windows_
.new_PreviewControlBar(*args
, **kwargs
)
4593 self
.this
= newobj
.this
4596 self
._setOORInfo
(self
)
4598 def GetZoomControl(*args
, **kwargs
):
4599 """GetZoomControl(self) -> int"""
4600 return _windows_
.PreviewControlBar_GetZoomControl(*args
, **kwargs
)
4602 def SetZoomControl(*args
, **kwargs
):
4603 """SetZoomControl(self, int zoom)"""
4604 return _windows_
.PreviewControlBar_SetZoomControl(*args
, **kwargs
)
4606 def GetPrintPreview(*args
, **kwargs
):
4607 """GetPrintPreview(self) -> PrintPreview"""
4608 return _windows_
.PreviewControlBar_GetPrintPreview(*args
, **kwargs
)
4610 def OnNext(*args
, **kwargs
):
4612 return _windows_
.PreviewControlBar_OnNext(*args
, **kwargs
)
4614 def OnPrevious(*args
, **kwargs
):
4615 """OnPrevious(self)"""
4616 return _windows_
.PreviewControlBar_OnPrevious(*args
, **kwargs
)
4618 def OnFirst(*args
, **kwargs
):
4620 return _windows_
.PreviewControlBar_OnFirst(*args
, **kwargs
)
4622 def OnLast(*args
, **kwargs
):
4624 return _windows_
.PreviewControlBar_OnLast(*args
, **kwargs
)
4626 def OnGoto(*args
, **kwargs
):
4628 return _windows_
.PreviewControlBar_OnGoto(*args
, **kwargs
)
4631 class PreviewControlBarPtr(PreviewControlBar
):
4632 def __init__(self
, this
):
4634 if not hasattr(self
,"thisown"): self
.thisown
= 0
4635 self
.__class
__ = PreviewControlBar
4636 _windows_
.PreviewControlBar_swigregister(PreviewControlBarPtr
)
4638 class PrintPreview(_core
.Object
):
4640 return "<%s.%s; proxy of C++ wxPrintPreview instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4641 def __init__(self
, *args
):
4643 __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PrintPreview
4644 __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PrintPreview
4646 newobj
= _windows_
.new_PrintPreview(*args
)
4647 self
.this
= newobj
.this
4650 def SetCurrentPage(*args
, **kwargs
):
4651 """SetCurrentPage(self, int pageNum) -> bool"""
4652 return _windows_
.PrintPreview_SetCurrentPage(*args
, **kwargs
)
4654 def GetCurrentPage(*args
, **kwargs
):
4655 """GetCurrentPage(self) -> int"""
4656 return _windows_
.PrintPreview_GetCurrentPage(*args
, **kwargs
)
4658 def SetPrintout(*args
, **kwargs
):
4659 """SetPrintout(self, Printout printout)"""
4660 return _windows_
.PrintPreview_SetPrintout(*args
, **kwargs
)
4662 def GetPrintout(*args
, **kwargs
):
4663 """GetPrintout(self) -> Printout"""
4664 return _windows_
.PrintPreview_GetPrintout(*args
, **kwargs
)
4666 def GetPrintoutForPrinting(*args
, **kwargs
):
4667 """GetPrintoutForPrinting(self) -> Printout"""
4668 return _windows_
.PrintPreview_GetPrintoutForPrinting(*args
, **kwargs
)
4670 def SetFrame(*args
, **kwargs
):
4671 """SetFrame(self, Frame frame)"""
4672 return _windows_
.PrintPreview_SetFrame(*args
, **kwargs
)
4674 def SetCanvas(*args
, **kwargs
):
4675 """SetCanvas(self, PreviewCanvas canvas)"""
4676 return _windows_
.PrintPreview_SetCanvas(*args
, **kwargs
)
4678 def GetFrame(*args
, **kwargs
):
4679 """GetFrame(self) -> Frame"""
4680 return _windows_
.PrintPreview_GetFrame(*args
, **kwargs
)
4682 def GetCanvas(*args
, **kwargs
):
4683 """GetCanvas(self) -> PreviewCanvas"""
4684 return _windows_
.PrintPreview_GetCanvas(*args
, **kwargs
)
4686 def PaintPage(*args
, **kwargs
):
4687 """PaintPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4688 return _windows_
.PrintPreview_PaintPage(*args
, **kwargs
)
4690 def DrawBlankPage(*args
, **kwargs
):
4691 """DrawBlankPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4692 return _windows_
.PrintPreview_DrawBlankPage(*args
, **kwargs
)
4694 def RenderPage(*args
, **kwargs
):
4695 """RenderPage(self, int pageNum) -> bool"""
4696 return _windows_
.PrintPreview_RenderPage(*args
, **kwargs
)
4698 def AdjustScrollbars(*args
, **kwargs
):
4699 """AdjustScrollbars(self, PreviewCanvas canvas)"""
4700 return _windows_
.PrintPreview_AdjustScrollbars(*args
, **kwargs
)
4702 def GetPrintDialogData(*args
, **kwargs
):
4703 """GetPrintDialogData(self) -> PrintDialogData"""
4704 return _windows_
.PrintPreview_GetPrintDialogData(*args
, **kwargs
)
4706 def SetZoom(*args
, **kwargs
):
4707 """SetZoom(self, int percent)"""
4708 return _windows_
.PrintPreview_SetZoom(*args
, **kwargs
)
4710 def GetZoom(*args
, **kwargs
):
4711 """GetZoom(self) -> int"""
4712 return _windows_
.PrintPreview_GetZoom(*args
, **kwargs
)
4714 def GetMaxPage(*args
, **kwargs
):
4715 """GetMaxPage(self) -> int"""
4716 return _windows_
.PrintPreview_GetMaxPage(*args
, **kwargs
)
4718 def GetMinPage(*args
, **kwargs
):
4719 """GetMinPage(self) -> int"""
4720 return _windows_
.PrintPreview_GetMinPage(*args
, **kwargs
)
4722 def Ok(*args
, **kwargs
):
4723 """Ok(self) -> bool"""
4724 return _windows_
.PrintPreview_Ok(*args
, **kwargs
)
4726 def SetOk(*args
, **kwargs
):
4727 """SetOk(self, bool ok)"""
4728 return _windows_
.PrintPreview_SetOk(*args
, **kwargs
)
4730 def Print(*args
, **kwargs
):
4731 """Print(self, bool interactive) -> bool"""
4732 return _windows_
.PrintPreview_Print(*args
, **kwargs
)
4734 def DetermineScaling(*args
, **kwargs
):
4735 """DetermineScaling(self)"""
4736 return _windows_
.PrintPreview_DetermineScaling(*args
, **kwargs
)
4738 def __nonzero__(self
): return self
.Ok()
4740 class PrintPreviewPtr(PrintPreview
):
4741 def __init__(self
, this
):
4743 if not hasattr(self
,"thisown"): self
.thisown
= 0
4744 self
.__class
__ = PrintPreview
4745 _windows_
.PrintPreview_swigregister(PrintPreviewPtr
)
4747 class PyPrintPreview(PrintPreview
):
4749 return "<%s.%s; proxy of C++ wxPyPrintPreview instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4750 def __init__(self
, *args
):
4752 __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PyPrintPreview
4753 __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PyPrintPreview
4755 newobj
= _windows_
.new_PyPrintPreview(*args
)
4756 self
.this
= newobj
.this
4759 self
._setCallbackInfo
(self
, PyPrintPreview
)
4761 def _setCallbackInfo(*args
, **kwargs
):
4762 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4763 return _windows_
.PyPrintPreview__setCallbackInfo(*args
, **kwargs
)
4765 def base_SetCurrentPage(*args
, **kwargs
):
4766 """base_SetCurrentPage(self, int pageNum) -> bool"""
4767 return _windows_
.PyPrintPreview_base_SetCurrentPage(*args
, **kwargs
)
4769 def base_PaintPage(*args
, **kwargs
):
4770 """base_PaintPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4771 return _windows_
.PyPrintPreview_base_PaintPage(*args
, **kwargs
)
4773 def base_DrawBlankPage(*args
, **kwargs
):
4774 """base_DrawBlankPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4775 return _windows_
.PyPrintPreview_base_DrawBlankPage(*args
, **kwargs
)
4777 def base_RenderPage(*args
, **kwargs
):
4778 """base_RenderPage(self, int pageNum) -> bool"""
4779 return _windows_
.PyPrintPreview_base_RenderPage(*args
, **kwargs
)
4781 def base_SetZoom(*args
, **kwargs
):
4782 """base_SetZoom(self, int percent)"""
4783 return _windows_
.PyPrintPreview_base_SetZoom(*args
, **kwargs
)
4785 def base_Print(*args
, **kwargs
):
4786 """base_Print(self, bool interactive) -> bool"""
4787 return _windows_
.PyPrintPreview_base_Print(*args
, **kwargs
)
4789 def base_DetermineScaling(*args
, **kwargs
):
4790 """base_DetermineScaling(self)"""
4791 return _windows_
.PyPrintPreview_base_DetermineScaling(*args
, **kwargs
)
4794 class PyPrintPreviewPtr(PyPrintPreview
):
4795 def __init__(self
, this
):
4797 if not hasattr(self
,"thisown"): self
.thisown
= 0
4798 self
.__class
__ = PyPrintPreview
4799 _windows_
.PyPrintPreview_swigregister(PyPrintPreviewPtr
)
4801 class PyPreviewFrame(PreviewFrame
):
4803 return "<%s.%s; proxy of C++ wxPyPreviewFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4804 def __init__(self
, *args
, **kwargs
):
4806 __init__(self, PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4807 Size size=DefaultSize,
4808 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PyPreviewFrame
4810 newobj
= _windows_
.new_PyPreviewFrame(*args
, **kwargs
)
4811 self
.this
= newobj
.this
4814 self
._setCallbackInfo
(self
, PyPreviewFrame
); self
._setOORInfo
(self
)
4816 def _setCallbackInfo(*args
, **kwargs
):
4817 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4818 return _windows_
.PyPreviewFrame__setCallbackInfo(*args
, **kwargs
)
4820 def SetPreviewCanvas(*args
, **kwargs
):
4821 """SetPreviewCanvas(self, PreviewCanvas canvas)"""
4822 return _windows_
.PyPreviewFrame_SetPreviewCanvas(*args
, **kwargs
)
4824 def SetControlBar(*args
, **kwargs
):
4825 """SetControlBar(self, PreviewControlBar bar)"""
4826 return _windows_
.PyPreviewFrame_SetControlBar(*args
, **kwargs
)
4828 def base_Initialize(*args
, **kwargs
):
4829 """base_Initialize(self)"""
4830 return _windows_
.PyPreviewFrame_base_Initialize(*args
, **kwargs
)
4832 def base_CreateCanvas(*args
, **kwargs
):
4833 """base_CreateCanvas(self)"""
4834 return _windows_
.PyPreviewFrame_base_CreateCanvas(*args
, **kwargs
)
4836 def base_CreateControlBar(*args
, **kwargs
):
4837 """base_CreateControlBar(self)"""
4838 return _windows_
.PyPreviewFrame_base_CreateControlBar(*args
, **kwargs
)
4841 class PyPreviewFramePtr(PyPreviewFrame
):
4842 def __init__(self
, this
):
4844 if not hasattr(self
,"thisown"): self
.thisown
= 0
4845 self
.__class
__ = PyPreviewFrame
4846 _windows_
.PyPreviewFrame_swigregister(PyPreviewFramePtr
)
4848 class PyPreviewControlBar(PreviewControlBar
):
4850 return "<%s.%s; proxy of C++ wxPyPreviewControlBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4851 def __init__(self
, *args
, **kwargs
):
4853 __init__(self, PrintPreview preview, long buttons, Window parent,
4854 Point pos=DefaultPosition, Size size=DefaultSize,
4855 long style=0, String name=PanelNameStr) -> PyPreviewControlBar
4857 newobj
= _windows_
.new_PyPreviewControlBar(*args
, **kwargs
)
4858 self
.this
= newobj
.this
4861 self
._setCallbackInfo
(self
, PyPreviewControlBar
); self
._setOORInfo
(self
)
4863 def _setCallbackInfo(*args
, **kwargs
):
4864 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4865 return _windows_
.PyPreviewControlBar__setCallbackInfo(*args
, **kwargs
)
4867 def SetPrintPreview(*args
, **kwargs
):
4868 """SetPrintPreview(self, PrintPreview preview)"""
4869 return _windows_
.PyPreviewControlBar_SetPrintPreview(*args
, **kwargs
)
4871 def base_CreateButtons(*args
, **kwargs
):
4872 """base_CreateButtons(self)"""
4873 return _windows_
.PyPreviewControlBar_base_CreateButtons(*args
, **kwargs
)
4875 def base_SetZoomControl(*args
, **kwargs
):
4876 """base_SetZoomControl(self, int zoom)"""
4877 return _windows_
.PyPreviewControlBar_base_SetZoomControl(*args
, **kwargs
)
4880 class PyPreviewControlBarPtr(PyPreviewControlBar
):
4881 def __init__(self
, this
):
4883 if not hasattr(self
,"thisown"): self
.thisown
= 0
4884 self
.__class
__ = PyPreviewControlBar
4885 _windows_
.PyPreviewControlBar_swigregister(PyPreviewControlBarPtr
)