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 SetTargetRect(*args
, **kwargs
):
232 """SetTargetRect(self, Rect rect)"""
233 return _windows_
.ScrolledWindow_SetTargetRect(*args
, **kwargs
)
235 def GetTargetRect(*args
, **kwargs
):
236 """GetTargetRect(self) -> Rect"""
237 return _windows_
.ScrolledWindow_GetTargetRect(*args
, **kwargs
)
239 def DoPrepareDC(*args
, **kwargs
):
241 DoPrepareDC(self, DC dc)
243 Normally what is called by `PrepareDC`.
245 return _windows_
.ScrolledWindow_DoPrepareDC(*args
, **kwargs
)
247 def GetClassDefaultAttributes(*args
, **kwargs
):
249 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
251 Get the default attributes for this class. This is useful if you want
252 to use the same font or colour in your own control as in a standard
253 control -- which is a much better idea than hard coding specific
254 colours or fonts which might look completely out of place on the
255 user's system, especially if it uses themes.
257 The variant parameter is only relevant under Mac currently and is
258 ignore under other platforms. Under Mac, it will change the size of
259 the returned font. See `wx.Window.SetWindowVariant` for more about
262 return _windows_
.ScrolledWindow_GetClassDefaultAttributes(*args
, **kwargs
)
264 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
266 class ScrolledWindowPtr(ScrolledWindow
):
267 def __init__(self
, this
):
269 if not hasattr(self
,"thisown"): self
.thisown
= 0
270 self
.__class
__ = ScrolledWindow
271 _windows_
.ScrolledWindow_swigregister(ScrolledWindowPtr
)
273 def PreScrolledWindow(*args
, **kwargs
):
274 """PreScrolledWindow() -> ScrolledWindow"""
275 val
= _windows_
.new_PreScrolledWindow(*args
, **kwargs
)
279 def ScrolledWindow_GetClassDefaultAttributes(*args
, **kwargs
):
281 ScrolledWindow_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
283 Get the default attributes for this class. This is useful if you want
284 to use the same font or colour in your own control as in a standard
285 control -- which is a much better idea than hard coding specific
286 colours or fonts which might look completely out of place on the
287 user's system, especially if it uses themes.
289 The variant parameter is only relevant under Mac currently and is
290 ignore under other platforms. Under Mac, it will change the size of
291 the returned font. See `wx.Window.SetWindowVariant` for more about
294 return _windows_
.ScrolledWindow_GetClassDefaultAttributes(*args
, **kwargs
)
296 #---------------------------------------------------------------------------
298 STAY_ON_TOP
= _windows_
.STAY_ON_TOP
299 ICONIZE
= _windows_
.ICONIZE
300 MINIMIZE
= _windows_
.MINIMIZE
301 MAXIMIZE
= _windows_
.MAXIMIZE
302 CLOSE_BOX
= _windows_
.CLOSE_BOX
303 THICK_FRAME
= _windows_
.THICK_FRAME
304 SYSTEM_MENU
= _windows_
.SYSTEM_MENU
305 MINIMIZE_BOX
= _windows_
.MINIMIZE_BOX
306 MAXIMIZE_BOX
= _windows_
.MAXIMIZE_BOX
307 TINY_CAPTION_HORIZ
= _windows_
.TINY_CAPTION_HORIZ
308 TINY_CAPTION_VERT
= _windows_
.TINY_CAPTION_VERT
309 RESIZE_BOX
= _windows_
.RESIZE_BOX
310 RESIZE_BORDER
= _windows_
.RESIZE_BORDER
311 DIALOG_NO_PARENT
= _windows_
.DIALOG_NO_PARENT
312 DEFAULT_FRAME_STYLE
= _windows_
.DEFAULT_FRAME_STYLE
313 DEFAULT_DIALOG_STYLE
= _windows_
.DEFAULT_DIALOG_STYLE
314 FRAME_TOOL_WINDOW
= _windows_
.FRAME_TOOL_WINDOW
315 FRAME_FLOAT_ON_PARENT
= _windows_
.FRAME_FLOAT_ON_PARENT
316 FRAME_NO_WINDOW_MENU
= _windows_
.FRAME_NO_WINDOW_MENU
317 FRAME_NO_TASKBAR
= _windows_
.FRAME_NO_TASKBAR
318 FRAME_SHAPED
= _windows_
.FRAME_SHAPED
319 FRAME_DRAWER
= _windows_
.FRAME_DRAWER
320 DIALOG_MODAL
= _windows_
.DIALOG_MODAL
321 DIALOG_MODELESS
= _windows_
.DIALOG_MODELESS
322 USER_COLOURS
= _windows_
.USER_COLOURS
323 NO_3D
= _windows_
.NO_3D
324 FULLSCREEN_NOMENUBAR
= _windows_
.FULLSCREEN_NOMENUBAR
325 FULLSCREEN_NOTOOLBAR
= _windows_
.FULLSCREEN_NOTOOLBAR
326 FULLSCREEN_NOSTATUSBAR
= _windows_
.FULLSCREEN_NOSTATUSBAR
327 FULLSCREEN_NOBORDER
= _windows_
.FULLSCREEN_NOBORDER
328 FULLSCREEN_NOCAPTION
= _windows_
.FULLSCREEN_NOCAPTION
329 FULLSCREEN_ALL
= _windows_
.FULLSCREEN_ALL
330 TOPLEVEL_EX_DIALOG
= _windows_
.TOPLEVEL_EX_DIALOG
331 USER_ATTENTION_INFO
= _windows_
.USER_ATTENTION_INFO
332 USER_ATTENTION_ERROR
= _windows_
.USER_ATTENTION_ERROR
333 class TopLevelWindow(_core
.Window
):
334 def __init__(self
): raise RuntimeError, "No constructor defined"
336 return "<%s.%s; proxy of C++ wxTopLevelWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
337 def Maximize(*args
, **kwargs
):
338 """Maximize(self, bool maximize=True)"""
339 return _windows_
.TopLevelWindow_Maximize(*args
, **kwargs
)
341 def Restore(*args
, **kwargs
):
343 return _windows_
.TopLevelWindow_Restore(*args
, **kwargs
)
345 def Iconize(*args
, **kwargs
):
346 """Iconize(self, bool iconize=True)"""
347 return _windows_
.TopLevelWindow_Iconize(*args
, **kwargs
)
349 def IsMaximized(*args
, **kwargs
):
350 """IsMaximized(self) -> bool"""
351 return _windows_
.TopLevelWindow_IsMaximized(*args
, **kwargs
)
353 def IsIconized(*args
, **kwargs
):
354 """IsIconized(self) -> bool"""
355 return _windows_
.TopLevelWindow_IsIconized(*args
, **kwargs
)
357 def GetIcon(*args
, **kwargs
):
358 """GetIcon(self) -> Icon"""
359 return _windows_
.TopLevelWindow_GetIcon(*args
, **kwargs
)
361 def SetIcon(*args
, **kwargs
):
362 """SetIcon(self, Icon icon)"""
363 return _windows_
.TopLevelWindow_SetIcon(*args
, **kwargs
)
365 def SetIcons(*args
, **kwargs
):
366 """SetIcons(self, wxIconBundle icons)"""
367 return _windows_
.TopLevelWindow_SetIcons(*args
, **kwargs
)
369 def ShowFullScreen(*args
, **kwargs
):
370 """ShowFullScreen(self, bool show, long style=FULLSCREEN_ALL) -> bool"""
371 return _windows_
.TopLevelWindow_ShowFullScreen(*args
, **kwargs
)
373 def IsFullScreen(*args
, **kwargs
):
374 """IsFullScreen(self) -> bool"""
375 return _windows_
.TopLevelWindow_IsFullScreen(*args
, **kwargs
)
377 def SetTitle(*args
, **kwargs
):
379 SetTitle(self, String title)
381 Sets the window's title. Applicable only to frames and dialogs.
383 return _windows_
.TopLevelWindow_SetTitle(*args
, **kwargs
)
385 def GetTitle(*args
, **kwargs
):
387 GetTitle(self) -> String
389 Gets the window's title. Applicable only to frames and dialogs.
391 return _windows_
.TopLevelWindow_GetTitle(*args
, **kwargs
)
393 def SetShape(*args
, **kwargs
):
394 """SetShape(self, Region region) -> bool"""
395 return _windows_
.TopLevelWindow_SetShape(*args
, **kwargs
)
397 def RequestUserAttention(*args
, **kwargs
):
398 """RequestUserAttention(self, int flags=USER_ATTENTION_INFO)"""
399 return _windows_
.TopLevelWindow_RequestUserAttention(*args
, **kwargs
)
401 def IsActive(*args
, **kwargs
):
402 """IsActive(self) -> bool"""
403 return _windows_
.TopLevelWindow_IsActive(*args
, **kwargs
)
405 def MacSetMetalAppearance(*args
, **kwargs
):
406 """MacSetMetalAppearance(self, bool on)"""
407 return _windows_
.TopLevelWindow_MacSetMetalAppearance(*args
, **kwargs
)
409 def MacGetMetalAppearance(*args
, **kwargs
):
410 """MacGetMetalAppearance(self) -> bool"""
411 return _windows_
.TopLevelWindow_MacGetMetalAppearance(*args
, **kwargs
)
414 class TopLevelWindowPtr(TopLevelWindow
):
415 def __init__(self
, this
):
417 if not hasattr(self
,"thisown"): self
.thisown
= 0
418 self
.__class
__ = TopLevelWindow
419 _windows_
.TopLevelWindow_swigregister(TopLevelWindowPtr
)
420 cvar
= _windows_
.cvar
421 FrameNameStr
= cvar
.FrameNameStr
422 DialogNameStr
= cvar
.DialogNameStr
423 StatusLineNameStr
= cvar
.StatusLineNameStr
424 ToolBarNameStr
= cvar
.ToolBarNameStr
426 #---------------------------------------------------------------------------
428 class Frame(TopLevelWindow
):
430 return "<%s.%s; proxy of C++ wxFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
431 def __init__(self
, *args
, **kwargs
):
433 __init__(self, Window parent, int id=-1, String title=EmptyString,
434 Point pos=DefaultPosition, Size size=DefaultSize,
435 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> Frame
437 newobj
= _windows_
.new_Frame(*args
, **kwargs
)
438 self
.this
= newobj
.this
441 self
._setOORInfo
(self
)
443 def Create(*args
, **kwargs
):
445 Create(self, Window parent, int id=-1, String title=EmptyString,
446 Point pos=DefaultPosition, Size size=DefaultSize,
447 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> bool
449 return _windows_
.Frame_Create(*args
, **kwargs
)
451 def GetClientAreaOrigin(*args
, **kwargs
):
453 GetClientAreaOrigin(self) -> Point
455 Get the origin of the client area of the window relative to the
456 window's top left corner (the client area may be shifted because of
457 the borders, scrollbars, other decorations...)
459 return _windows_
.Frame_GetClientAreaOrigin(*args
, **kwargs
)
461 def SendSizeEvent(*args
, **kwargs
):
462 """SendSizeEvent(self)"""
463 return _windows_
.Frame_SendSizeEvent(*args
, **kwargs
)
465 def SetMenuBar(*args
, **kwargs
):
466 """SetMenuBar(self, MenuBar menubar)"""
467 return _windows_
.Frame_SetMenuBar(*args
, **kwargs
)
469 def GetMenuBar(*args
, **kwargs
):
470 """GetMenuBar(self) -> MenuBar"""
471 return _windows_
.Frame_GetMenuBar(*args
, **kwargs
)
473 def ProcessCommand(*args
, **kwargs
):
474 """ProcessCommand(self, int winid) -> bool"""
475 return _windows_
.Frame_ProcessCommand(*args
, **kwargs
)
477 Command
= ProcessCommand
478 def CreateStatusBar(*args
, **kwargs
):
480 CreateStatusBar(self, int number=1, long style=ST_SIZEGRIP, int winid=0,
481 String name=StatusLineNameStr) -> StatusBar
483 return _windows_
.Frame_CreateStatusBar(*args
, **kwargs
)
485 def GetStatusBar(*args
, **kwargs
):
486 """GetStatusBar(self) -> StatusBar"""
487 return _windows_
.Frame_GetStatusBar(*args
, **kwargs
)
489 def SetStatusBar(*args
, **kwargs
):
490 """SetStatusBar(self, StatusBar statBar)"""
491 return _windows_
.Frame_SetStatusBar(*args
, **kwargs
)
493 def SetStatusText(*args
, **kwargs
):
494 """SetStatusText(self, String text, int number=0)"""
495 return _windows_
.Frame_SetStatusText(*args
, **kwargs
)
497 def SetStatusWidths(*args
, **kwargs
):
498 """SetStatusWidths(self, int widths, int widths_field)"""
499 return _windows_
.Frame_SetStatusWidths(*args
, **kwargs
)
501 def PushStatusText(*args
, **kwargs
):
502 """PushStatusText(self, String text, int number=0)"""
503 return _windows_
.Frame_PushStatusText(*args
, **kwargs
)
505 def PopStatusText(*args
, **kwargs
):
506 """PopStatusText(self, int number=0)"""
507 return _windows_
.Frame_PopStatusText(*args
, **kwargs
)
509 def SetStatusBarPane(*args
, **kwargs
):
510 """SetStatusBarPane(self, int n)"""
511 return _windows_
.Frame_SetStatusBarPane(*args
, **kwargs
)
513 def GetStatusBarPane(*args
, **kwargs
):
514 """GetStatusBarPane(self) -> int"""
515 return _windows_
.Frame_GetStatusBarPane(*args
, **kwargs
)
517 def CreateToolBar(*args
, **kwargs
):
518 """CreateToolBar(self, long style=-1, int winid=-1, String name=ToolBarNameStr) -> wxToolBar"""
519 return _windows_
.Frame_CreateToolBar(*args
, **kwargs
)
521 def GetToolBar(*args
, **kwargs
):
522 """GetToolBar(self) -> wxToolBar"""
523 return _windows_
.Frame_GetToolBar(*args
, **kwargs
)
525 def SetToolBar(*args
, **kwargs
):
526 """SetToolBar(self, wxToolBar toolbar)"""
527 return _windows_
.Frame_SetToolBar(*args
, **kwargs
)
529 def DoGiveHelp(*args
, **kwargs
):
530 """DoGiveHelp(self, String text, bool show)"""
531 return _windows_
.Frame_DoGiveHelp(*args
, **kwargs
)
533 def DoMenuUpdates(*args
, **kwargs
):
534 """DoMenuUpdates(self, Menu menu=None)"""
535 return _windows_
.Frame_DoMenuUpdates(*args
, **kwargs
)
537 def GetClassDefaultAttributes(*args
, **kwargs
):
539 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
541 Get the default attributes for this class. This is useful if you want
542 to use the same font or colour in your own control as in a standard
543 control -- which is a much better idea than hard coding specific
544 colours or fonts which might look completely out of place on the
545 user's system, especially if it uses themes.
547 The variant parameter is only relevant under Mac currently and is
548 ignore under other platforms. Under Mac, it will change the size of
549 the returned font. See `wx.Window.SetWindowVariant` for more about
552 return _windows_
.Frame_GetClassDefaultAttributes(*args
, **kwargs
)
554 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
556 class FramePtr(Frame
):
557 def __init__(self
, this
):
559 if not hasattr(self
,"thisown"): self
.thisown
= 0
560 self
.__class
__ = Frame
561 _windows_
.Frame_swigregister(FramePtr
)
563 def PreFrame(*args
, **kwargs
):
564 """PreFrame() -> Frame"""
565 val
= _windows_
.new_PreFrame(*args
, **kwargs
)
569 def Frame_GetClassDefaultAttributes(*args
, **kwargs
):
571 Frame_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
573 Get the default attributes for this class. This is useful if you want
574 to use the same font or colour in your own control as in a standard
575 control -- which is a much better idea than hard coding specific
576 colours or fonts which might look completely out of place on the
577 user's system, especially if it uses themes.
579 The variant parameter is only relevant under Mac currently and is
580 ignore under other platforms. Under Mac, it will change the size of
581 the returned font. See `wx.Window.SetWindowVariant` for more about
584 return _windows_
.Frame_GetClassDefaultAttributes(*args
, **kwargs
)
586 #---------------------------------------------------------------------------
588 class Dialog(TopLevelWindow
):
590 return "<%s.%s; proxy of C++ wxDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
591 def __init__(self
, *args
, **kwargs
):
593 __init__(self, Window parent, int id=-1, String title=EmptyString,
594 Point pos=DefaultPosition, Size size=DefaultSize,
595 long style=DEFAULT_DIALOG_STYLE, String name=DialogNameStr) -> Dialog
597 newobj
= _windows_
.new_Dialog(*args
, **kwargs
)
598 self
.this
= newobj
.this
601 self
._setOORInfo
(self
)
603 def Create(*args
, **kwargs
):
605 Create(self, Window parent, int id=-1, String title=EmptyString,
606 Point pos=DefaultPosition, Size size=DefaultSize,
607 long style=DEFAULT_DIALOG_STYLE, String name=DialogNameStr) -> bool
609 return _windows_
.Dialog_Create(*args
, **kwargs
)
611 def SetReturnCode(*args
, **kwargs
):
612 """SetReturnCode(self, int returnCode)"""
613 return _windows_
.Dialog_SetReturnCode(*args
, **kwargs
)
615 def GetReturnCode(*args
, **kwargs
):
616 """GetReturnCode(self) -> int"""
617 return _windows_
.Dialog_GetReturnCode(*args
, **kwargs
)
619 def CreateTextSizer(*args
, **kwargs
):
620 """CreateTextSizer(self, String message) -> Sizer"""
621 return _windows_
.Dialog_CreateTextSizer(*args
, **kwargs
)
623 def CreateButtonSizer(*args
, **kwargs
):
624 """CreateButtonSizer(self, long flags) -> Sizer"""
625 return _windows_
.Dialog_CreateButtonSizer(*args
, **kwargs
)
627 def IsModal(*args
, **kwargs
):
628 """IsModal(self) -> bool"""
629 return _windows_
.Dialog_IsModal(*args
, **kwargs
)
631 def ShowModal(*args
, **kwargs
):
632 """ShowModal(self) -> int"""
633 return _windows_
.Dialog_ShowModal(*args
, **kwargs
)
635 def EndModal(*args
, **kwargs
):
636 """EndModal(self, int retCode)"""
637 return _windows_
.Dialog_EndModal(*args
, **kwargs
)
639 def GetClassDefaultAttributes(*args
, **kwargs
):
641 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
643 Get the default attributes for this class. This is useful if you want
644 to use the same font or colour in your own control as in a standard
645 control -- which is a much better idea than hard coding specific
646 colours or fonts which might look completely out of place on the
647 user's system, especially if it uses themes.
649 The variant parameter is only relevant under Mac currently and is
650 ignore under other platforms. Under Mac, it will change the size of
651 the returned font. See `wx.Window.SetWindowVariant` for more about
654 return _windows_
.Dialog_GetClassDefaultAttributes(*args
, **kwargs
)
656 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
657 def SendSizeEvent(self
):
658 self
.ProcessEvent(wx
.SizeEvent((-1,-1)))
661 class DialogPtr(Dialog
):
662 def __init__(self
, this
):
664 if not hasattr(self
,"thisown"): self
.thisown
= 0
665 self
.__class
__ = Dialog
666 _windows_
.Dialog_swigregister(DialogPtr
)
668 def PreDialog(*args
, **kwargs
):
669 """PreDialog() -> Dialog"""
670 val
= _windows_
.new_PreDialog(*args
, **kwargs
)
674 def Dialog_GetClassDefaultAttributes(*args
, **kwargs
):
676 Dialog_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
678 Get the default attributes for this class. This is useful if you want
679 to use the same font or colour in your own control as in a standard
680 control -- which is a much better idea than hard coding specific
681 colours or fonts which might look completely out of place on the
682 user's system, especially if it uses themes.
684 The variant parameter is only relevant under Mac currently and is
685 ignore under other platforms. Under Mac, it will change the size of
686 the returned font. See `wx.Window.SetWindowVariant` for more about
689 return _windows_
.Dialog_GetClassDefaultAttributes(*args
, **kwargs
)
691 #---------------------------------------------------------------------------
693 class MiniFrame(Frame
):
695 return "<%s.%s; proxy of C++ wxMiniFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
696 def __init__(self
, *args
, **kwargs
):
698 __init__(self, Window parent, int id=-1, String title=EmptyString,
699 Point pos=DefaultPosition, Size size=DefaultSize,
700 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> MiniFrame
702 newobj
= _windows_
.new_MiniFrame(*args
, **kwargs
)
703 self
.this
= newobj
.this
706 self
._setOORInfo
(self
)
708 def Create(*args
, **kwargs
):
710 Create(self, Window parent, int id=-1, String title=EmptyString,
711 Point pos=DefaultPosition, Size size=DefaultSize,
712 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> bool
714 return _windows_
.MiniFrame_Create(*args
, **kwargs
)
717 class MiniFramePtr(MiniFrame
):
718 def __init__(self
, this
):
720 if not hasattr(self
,"thisown"): self
.thisown
= 0
721 self
.__class
__ = MiniFrame
722 _windows_
.MiniFrame_swigregister(MiniFramePtr
)
724 def PreMiniFrame(*args
, **kwargs
):
725 """PreMiniFrame() -> MiniFrame"""
726 val
= _windows_
.new_PreMiniFrame(*args
, **kwargs
)
730 #---------------------------------------------------------------------------
732 SPLASH_CENTRE_ON_PARENT
= _windows_
.SPLASH_CENTRE_ON_PARENT
733 SPLASH_CENTRE_ON_SCREEN
= _windows_
.SPLASH_CENTRE_ON_SCREEN
734 SPLASH_NO_CENTRE
= _windows_
.SPLASH_NO_CENTRE
735 SPLASH_TIMEOUT
= _windows_
.SPLASH_TIMEOUT
736 SPLASH_NO_TIMEOUT
= _windows_
.SPLASH_NO_TIMEOUT
737 class SplashScreenWindow(_core
.Window
):
739 return "<%s.%s; proxy of C++ wxSplashScreenWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
740 def __init__(self
, *args
, **kwargs
):
742 __init__(self, Bitmap bitmap, Window parent, int id, Point pos=DefaultPosition,
743 Size size=DefaultSize, long style=NO_BORDER) -> SplashScreenWindow
745 newobj
= _windows_
.new_SplashScreenWindow(*args
, **kwargs
)
746 self
.this
= newobj
.this
749 self
._setOORInfo
(self
)
751 def SetBitmap(*args
, **kwargs
):
752 """SetBitmap(self, Bitmap bitmap)"""
753 return _windows_
.SplashScreenWindow_SetBitmap(*args
, **kwargs
)
755 def GetBitmap(*args
, **kwargs
):
756 """GetBitmap(self) -> Bitmap"""
757 return _windows_
.SplashScreenWindow_GetBitmap(*args
, **kwargs
)
760 class SplashScreenWindowPtr(SplashScreenWindow
):
761 def __init__(self
, this
):
763 if not hasattr(self
,"thisown"): self
.thisown
= 0
764 self
.__class
__ = SplashScreenWindow
765 _windows_
.SplashScreenWindow_swigregister(SplashScreenWindowPtr
)
767 class SplashScreen(Frame
):
769 return "<%s.%s; proxy of C++ wxSplashScreen instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
770 def __init__(self
, *args
, **kwargs
):
772 __init__(self, Bitmap bitmap, long splashStyle, int milliseconds,
773 Window parent, int id=-1, Point pos=DefaultPosition,
774 Size size=DefaultSize, long style=wxSIMPLE_BORDER|wxFRAME_NO_TASKBAR|wxSTAY_ON_TOP) -> SplashScreen
776 newobj
= _windows_
.new_SplashScreen(*args
, **kwargs
)
777 self
.this
= newobj
.this
780 self
._setOORInfo
(self
)
782 def GetSplashStyle(*args
, **kwargs
):
783 """GetSplashStyle(self) -> long"""
784 return _windows_
.SplashScreen_GetSplashStyle(*args
, **kwargs
)
786 def GetSplashWindow(*args
, **kwargs
):
787 """GetSplashWindow(self) -> SplashScreenWindow"""
788 return _windows_
.SplashScreen_GetSplashWindow(*args
, **kwargs
)
790 def GetTimeout(*args
, **kwargs
):
791 """GetTimeout(self) -> int"""
792 return _windows_
.SplashScreen_GetTimeout(*args
, **kwargs
)
795 class SplashScreenPtr(SplashScreen
):
796 def __init__(self
, this
):
798 if not hasattr(self
,"thisown"): self
.thisown
= 0
799 self
.__class
__ = SplashScreen
800 _windows_
.SplashScreen_swigregister(SplashScreenPtr
)
802 #---------------------------------------------------------------------------
804 SB_NORMAL
= _windows_
.SB_NORMAL
805 SB_FLAT
= _windows_
.SB_FLAT
806 SB_RAISED
= _windows_
.SB_RAISED
807 class StatusBar(_core
.Window
):
809 return "<%s.%s; proxy of C++ wxStatusBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
810 def __init__(self
, *args
, **kwargs
):
811 """__init__(self, Window parent, int id=-1, long style=ST_SIZEGRIP, String name=StatusLineNameStr) -> StatusBar"""
812 newobj
= _windows_
.new_StatusBar(*args
, **kwargs
)
813 self
.this
= newobj
.this
816 self
._setOORInfo
(self
)
818 def Create(*args
, **kwargs
):
819 """Create(self, Window parent, int id=-1, long style=ST_SIZEGRIP, String name=StatusLineNameStr) -> bool"""
820 return _windows_
.StatusBar_Create(*args
, **kwargs
)
822 def SetFieldsCount(*args
, **kwargs
):
823 """SetFieldsCount(self, int number=1)"""
824 return _windows_
.StatusBar_SetFieldsCount(*args
, **kwargs
)
826 def GetFieldsCount(*args
, **kwargs
):
827 """GetFieldsCount(self) -> int"""
828 return _windows_
.StatusBar_GetFieldsCount(*args
, **kwargs
)
830 def SetStatusText(*args
, **kwargs
):
831 """SetStatusText(self, String text, int number=0)"""
832 return _windows_
.StatusBar_SetStatusText(*args
, **kwargs
)
834 def GetStatusText(*args
, **kwargs
):
835 """GetStatusText(self, int number=0) -> String"""
836 return _windows_
.StatusBar_GetStatusText(*args
, **kwargs
)
838 def PushStatusText(*args
, **kwargs
):
839 """PushStatusText(self, String text, int number=0)"""
840 return _windows_
.StatusBar_PushStatusText(*args
, **kwargs
)
842 def PopStatusText(*args
, **kwargs
):
843 """PopStatusText(self, int number=0)"""
844 return _windows_
.StatusBar_PopStatusText(*args
, **kwargs
)
846 def SetStatusWidths(*args
, **kwargs
):
847 """SetStatusWidths(self, int widths, int widths_field)"""
848 return _windows_
.StatusBar_SetStatusWidths(*args
, **kwargs
)
850 def SetStatusStyles(*args
, **kwargs
):
851 """SetStatusStyles(self, int styles, int styles_field)"""
852 return _windows_
.StatusBar_SetStatusStyles(*args
, **kwargs
)
854 def GetFieldRect(*args
, **kwargs
):
855 """GetFieldRect(self, int i) -> Rect"""
856 return _windows_
.StatusBar_GetFieldRect(*args
, **kwargs
)
858 def SetMinHeight(*args
, **kwargs
):
859 """SetMinHeight(self, int height)"""
860 return _windows_
.StatusBar_SetMinHeight(*args
, **kwargs
)
862 def GetBorderX(*args
, **kwargs
):
863 """GetBorderX(self) -> int"""
864 return _windows_
.StatusBar_GetBorderX(*args
, **kwargs
)
866 def GetBorderY(*args
, **kwargs
):
867 """GetBorderY(self) -> int"""
868 return _windows_
.StatusBar_GetBorderY(*args
, **kwargs
)
870 def GetClassDefaultAttributes(*args
, **kwargs
):
872 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
874 Get the default attributes for this class. This is useful if you want
875 to use the same font or colour in your own control as in a standard
876 control -- which is a much better idea than hard coding specific
877 colours or fonts which might look completely out of place on the
878 user's system, especially if it uses themes.
880 The variant parameter is only relevant under Mac currently and is
881 ignore under other platforms. Under Mac, it will change the size of
882 the returned font. See `wx.Window.SetWindowVariant` for more about
885 return _windows_
.StatusBar_GetClassDefaultAttributes(*args
, **kwargs
)
887 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
889 class StatusBarPtr(StatusBar
):
890 def __init__(self
, this
):
892 if not hasattr(self
,"thisown"): self
.thisown
= 0
893 self
.__class
__ = StatusBar
894 _windows_
.StatusBar_swigregister(StatusBarPtr
)
896 def PreStatusBar(*args
, **kwargs
):
897 """PreStatusBar() -> StatusBar"""
898 val
= _windows_
.new_PreStatusBar(*args
, **kwargs
)
902 def StatusBar_GetClassDefaultAttributes(*args
, **kwargs
):
904 StatusBar_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
906 Get the default attributes for this class. This is useful if you want
907 to use the same font or colour in your own control as in a standard
908 control -- which is a much better idea than hard coding specific
909 colours or fonts which might look completely out of place on the
910 user's system, especially if it uses themes.
912 The variant parameter is only relevant under Mac currently and is
913 ignore under other platforms. Under Mac, it will change the size of
914 the returned font. See `wx.Window.SetWindowVariant` for more about
917 return _windows_
.StatusBar_GetClassDefaultAttributes(*args
, **kwargs
)
919 #---------------------------------------------------------------------------
921 SP_NOBORDER
= _windows_
.SP_NOBORDER
922 SP_NOSASH
= _windows_
.SP_NOSASH
923 SP_PERMIT_UNSPLIT
= _windows_
.SP_PERMIT_UNSPLIT
924 SP_LIVE_UPDATE
= _windows_
.SP_LIVE_UPDATE
925 SP_3DSASH
= _windows_
.SP_3DSASH
926 SP_3DBORDER
= _windows_
.SP_3DBORDER
927 SP_NO_XP_THEME
= _windows_
.SP_NO_XP_THEME
928 SP_BORDER
= _windows_
.SP_BORDER
929 SP_3D
= _windows_
.SP_3D
930 SPLIT_HORIZONTAL
= _windows_
.SPLIT_HORIZONTAL
931 SPLIT_VERTICAL
= _windows_
.SPLIT_VERTICAL
932 SPLIT_DRAG_NONE
= _windows_
.SPLIT_DRAG_NONE
933 SPLIT_DRAG_DRAGGING
= _windows_
.SPLIT_DRAG_DRAGGING
934 SPLIT_DRAG_LEFT_DOWN
= _windows_
.SPLIT_DRAG_LEFT_DOWN
935 class SplitterWindow(_core
.Window
):
937 wx.SplitterWindow manages up to two subwindows or panes, with an
938 optional vertical or horizontal split which can be used with the mouse
942 return "<%s.%s; proxy of C++ wxSplitterWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
943 def __init__(self
, *args
, **kwargs
):
945 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
946 Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> SplitterWindow
948 Constructor. Creates and shows a SplitterWindow.
950 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point'];del kwargs
['point']
951 newobj
= _windows_
.new_SplitterWindow(*args
, **kwargs
)
952 self
.this
= newobj
.this
955 self
._setOORInfo
(self
)
957 def Create(*args
, **kwargs
):
959 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
960 Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> bool
962 Create the GUI part of the SplitterWindow for the 2-phase create.
964 return _windows_
.SplitterWindow_Create(*args
, **kwargs
)
966 def GetWindow1(*args
, **kwargs
):
968 GetWindow1(self) -> Window
970 Gets the only or left/top pane.
972 return _windows_
.SplitterWindow_GetWindow1(*args
, **kwargs
)
974 def GetWindow2(*args
, **kwargs
):
976 GetWindow2(self) -> Window
978 Gets the right/bottom pane.
980 return _windows_
.SplitterWindow_GetWindow2(*args
, **kwargs
)
982 def SetSplitMode(*args
, **kwargs
):
984 SetSplitMode(self, int mode)
986 Sets the split mode. The mode can be wx.SPLIT_VERTICAL or
987 wx.SPLIT_HORIZONTAL. This only sets the internal variable; does not
990 return _windows_
.SplitterWindow_SetSplitMode(*args
, **kwargs
)
992 def GetSplitMode(*args
, **kwargs
):
994 GetSplitMode(self) -> int
998 return _windows_
.SplitterWindow_GetSplitMode(*args
, **kwargs
)
1000 def Initialize(*args
, **kwargs
):
1002 Initialize(self, Window window)
1004 Initializes the splitter window to have one pane. This should be
1005 called if you wish to initially view only a single pane in the
1008 return _windows_
.SplitterWindow_Initialize(*args
, **kwargs
)
1010 def SplitVertically(*args
, **kwargs
):
1012 SplitVertically(self, Window window1, Window window2, int sashPosition=0) -> bool
1014 Initializes the left and right panes of the splitter window.
1016 return _windows_
.SplitterWindow_SplitVertically(*args
, **kwargs
)
1018 def SplitHorizontally(*args
, **kwargs
):
1020 SplitHorizontally(self, Window window1, Window window2, int sashPosition=0) -> bool
1022 Initializes the top and bottom panes of the splitter window.
1024 return _windows_
.SplitterWindow_SplitHorizontally(*args
, **kwargs
)
1026 def Unsplit(*args
, **kwargs
):
1028 Unsplit(self, Window toRemove=None) -> bool
1030 Unsplits the window. Pass the pane to remove, or None to remove the
1031 right or bottom pane. Returns True if successful, False otherwise (the
1032 window was not split).
1034 This function will not actually delete the pane being
1035 removed; it sends EVT_SPLITTER_UNSPLIT which can be handled
1036 for the desired behaviour. By default, the pane being
1037 removed is only hidden.
1039 return _windows_
.SplitterWindow_Unsplit(*args
, **kwargs
)
1041 def ReplaceWindow(*args
, **kwargs
):
1043 ReplaceWindow(self, Window winOld, Window winNew) -> bool
1045 This function replaces one of the windows managed by the
1046 SplitterWindow with another one. It is in general better to use it
1047 instead of calling Unsplit() and then resplitting the window back
1048 because it will provoke much less flicker. It is valid to call this
1049 function whether the splitter has two windows or only one.
1051 Both parameters should be non-None and winOld must specify one of the
1052 windows managed by the splitter. If the parameters are incorrect or
1053 the window couldn't be replaced, False is returned. Otherwise the
1054 function will return True, but please notice that it will not Destroy
1055 the replaced window and you may wish to do it yourself.
1057 return _windows_
.SplitterWindow_ReplaceWindow(*args
, **kwargs
)
1059 def UpdateSize(*args
, **kwargs
):
1063 Causes any pending sizing of the sash and child panes to take place
1066 Such resizing normally takes place in idle time, in order to wait for
1067 layout to be completed. However, this can cause unacceptable flicker
1068 as the panes are resized after the window has been shown. To work
1069 around this, you can perform window layout (for example by sending a
1070 size event to the parent window), and then call this function, before
1071 showing the top-level window.
1073 return _windows_
.SplitterWindow_UpdateSize(*args
, **kwargs
)
1075 def IsSplit(*args
, **kwargs
):
1077 IsSplit(self) -> bool
1079 Is the window split?
1081 return _windows_
.SplitterWindow_IsSplit(*args
, **kwargs
)
1083 def SetSashSize(*args
, **kwargs
):
1085 SetSashSize(self, int width)
1087 Sets the sash size. Currently a NOP.
1089 return _windows_
.SplitterWindow_SetSashSize(*args
, **kwargs
)
1091 def SetBorderSize(*args
, **kwargs
):
1093 SetBorderSize(self, int width)
1095 Sets the border size. Currently a NOP.
1097 return _windows_
.SplitterWindow_SetBorderSize(*args
, **kwargs
)
1099 def GetSashSize(*args
, **kwargs
):
1101 GetSashSize(self) -> int
1105 return _windows_
.SplitterWindow_GetSashSize(*args
, **kwargs
)
1107 def GetBorderSize(*args
, **kwargs
):
1109 GetBorderSize(self) -> int
1111 Gets the border size
1113 return _windows_
.SplitterWindow_GetBorderSize(*args
, **kwargs
)
1115 def SetSashPosition(*args
, **kwargs
):
1117 SetSashPosition(self, int position, bool redraw=True)
1119 Sets the sash position, in pixels. If redraw is Ttrue then the panes
1120 are resized and the sash and border are redrawn.
1122 return _windows_
.SplitterWindow_SetSashPosition(*args
, **kwargs
)
1124 def GetSashPosition(*args
, **kwargs
):
1126 GetSashPosition(self) -> int
1128 Returns the surrent sash position.
1130 return _windows_
.SplitterWindow_GetSashPosition(*args
, **kwargs
)
1132 def SetSashGravity(*args
, **kwargs
):
1134 SetSashGravity(self, double gravity)
1136 Set the sash gravity. Gravity is a floating-point factor between 0.0
1137 and 1.0 which controls position of sash while resizing the
1138 `wx.SplitterWindow`. The gravity specifies how much the left/top
1139 window will grow while resizing.
1141 return _windows_
.SplitterWindow_SetSashGravity(*args
, **kwargs
)
1143 def GetSashGravity(*args
, **kwargs
):
1145 GetSashGravity(self) -> double
1147 Gets the sash gravity.
1149 :see: `SetSashGravity`
1152 return _windows_
.SplitterWindow_GetSashGravity(*args
, **kwargs
)
1154 def SetMinimumPaneSize(*args
, **kwargs
):
1156 SetMinimumPaneSize(self, int min)
1158 Sets the minimum pane size in pixels.
1160 The default minimum pane size is zero, which means that either pane
1161 can be reduced to zero by dragging the sash, thus removing one of the
1162 panes. To prevent this behaviour (and veto out-of-range sash
1163 dragging), set a minimum size, for example 20 pixels. If the
1164 wx.SP_PERMIT_UNSPLIT style is used when a splitter window is created,
1165 the window may be unsplit even if minimum size is non-zero.
1167 return _windows_
.SplitterWindow_SetMinimumPaneSize(*args
, **kwargs
)
1169 def GetMinimumPaneSize(*args
, **kwargs
):
1171 GetMinimumPaneSize(self) -> int
1173 Gets the minimum pane size in pixels.
1175 return _windows_
.SplitterWindow_GetMinimumPaneSize(*args
, **kwargs
)
1177 def SashHitTest(*args
, **kwargs
):
1179 SashHitTest(self, int x, int y, int tolerance=5) -> bool
1181 Tests for x, y over the sash
1183 return _windows_
.SplitterWindow_SashHitTest(*args
, **kwargs
)
1185 def SizeWindows(*args
, **kwargs
):
1191 return _windows_
.SplitterWindow_SizeWindows(*args
, **kwargs
)
1193 def SetNeedUpdating(*args
, **kwargs
):
1194 """SetNeedUpdating(self, bool needUpdating)"""
1195 return _windows_
.SplitterWindow_SetNeedUpdating(*args
, **kwargs
)
1197 def GetNeedUpdating(*args
, **kwargs
):
1198 """GetNeedUpdating(self) -> bool"""
1199 return _windows_
.SplitterWindow_GetNeedUpdating(*args
, **kwargs
)
1201 def GetClassDefaultAttributes(*args
, **kwargs
):
1203 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1205 Get the default attributes for this class. This is useful if you want
1206 to use the same font or colour in your own control as in a standard
1207 control -- which is a much better idea than hard coding specific
1208 colours or fonts which might look completely out of place on the
1209 user's system, especially if it uses themes.
1211 The variant parameter is only relevant under Mac currently and is
1212 ignore under other platforms. Under Mac, it will change the size of
1213 the returned font. See `wx.Window.SetWindowVariant` for more about
1216 return _windows_
.SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
)
1218 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1220 class SplitterWindowPtr(SplitterWindow
):
1221 def __init__(self
, this
):
1223 if not hasattr(self
,"thisown"): self
.thisown
= 0
1224 self
.__class
__ = SplitterWindow
1225 _windows_
.SplitterWindow_swigregister(SplitterWindowPtr
)
1226 SplitterNameStr
= cvar
.SplitterNameStr
1228 def PreSplitterWindow(*args
, **kwargs
):
1230 PreSplitterWindow() -> SplitterWindow
1232 Precreate a SplitterWindow for 2-phase creation.
1234 val
= _windows_
.new_PreSplitterWindow(*args
, **kwargs
)
1238 def SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
):
1240 SplitterWindow_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1242 Get the default attributes for this class. This is useful if you want
1243 to use the same font or colour in your own control as in a standard
1244 control -- which is a much better idea than hard coding specific
1245 colours or fonts which might look completely out of place on the
1246 user's system, especially if it uses themes.
1248 The variant parameter is only relevant under Mac currently and is
1249 ignore under other platforms. Under Mac, it will change the size of
1250 the returned font. See `wx.Window.SetWindowVariant` for more about
1253 return _windows_
.SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
)
1255 class SplitterEvent(_core
.NotifyEvent
):
1256 """This class represents the events generated by a splitter control."""
1258 return "<%s.%s; proxy of C++ wxSplitterEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1259 def __init__(self
, *args
, **kwargs
):
1261 __init__(self, wxEventType type=wxEVT_NULL, SplitterWindow splitter=(wxSplitterWindow *) NULL) -> SplitterEvent
1263 This class represents the events generated by a splitter control.
1265 newobj
= _windows_
.new_SplitterEvent(*args
, **kwargs
)
1266 self
.this
= newobj
.this
1269 def SetSashPosition(*args
, **kwargs
):
1271 SetSashPosition(self, int pos)
1273 This funciton is only meaningful during EVT_SPLITTER_SASH_POS_CHANGING
1274 and EVT_SPLITTER_SASH_POS_CHANGED events. In the case of _CHANGED
1275 events, sets the the new sash position. In the case of _CHANGING
1276 events, sets the new tracking bar position so visual feedback during
1277 dragging will represent that change that will actually take place. Set
1278 to -1 from the event handler code to prevent repositioning.
1280 return _windows_
.SplitterEvent_SetSashPosition(*args
, **kwargs
)
1282 def GetSashPosition(*args
, **kwargs
):
1284 GetSashPosition(self) -> int
1286 Returns the new sash position while in EVT_SPLITTER_SASH_POS_CHANGING
1287 and EVT_SPLITTER_SASH_POS_CHANGED events.
1289 return _windows_
.SplitterEvent_GetSashPosition(*args
, **kwargs
)
1291 def GetWindowBeingRemoved(*args
, **kwargs
):
1293 GetWindowBeingRemoved(self) -> Window
1295 Returns a pointer to the window being removed when a splitter window
1298 return _windows_
.SplitterEvent_GetWindowBeingRemoved(*args
, **kwargs
)
1300 def GetX(*args
, **kwargs
):
1304 Returns the x coordinate of the double-click point in a
1305 EVT_SPLITTER_DCLICK event.
1307 return _windows_
.SplitterEvent_GetX(*args
, **kwargs
)
1309 def GetY(*args
, **kwargs
):
1313 Returns the y coordinate of the double-click point in a
1314 EVT_SPLITTER_DCLICK event.
1316 return _windows_
.SplitterEvent_GetY(*args
, **kwargs
)
1319 class SplitterEventPtr(SplitterEvent
):
1320 def __init__(self
, this
):
1322 if not hasattr(self
,"thisown"): self
.thisown
= 0
1323 self
.__class
__ = SplitterEvent
1324 _windows_
.SplitterEvent_swigregister(SplitterEventPtr
)
1326 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
= _windows_
.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
1327 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
= _windows_
.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
1328 wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
= _windows_
.wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
1329 wxEVT_COMMAND_SPLITTER_UNSPLIT
= _windows_
.wxEVT_COMMAND_SPLITTER_UNSPLIT
1330 EVT_SPLITTER_SASH_POS_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
, 1 )
1331 EVT_SPLITTER_SASH_POS_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
, 1 )
1332 EVT_SPLITTER_DOUBLECLICKED
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
, 1 )
1333 EVT_SPLITTER_UNSPLIT
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_UNSPLIT
, 1 )
1334 EVT_SPLITTER_DCLICK
= EVT_SPLITTER_DOUBLECLICKED
1336 #---------------------------------------------------------------------------
1338 SASH_DRAG_NONE
= _windows_
.SASH_DRAG_NONE
1339 SASH_DRAG_DRAGGING
= _windows_
.SASH_DRAG_DRAGGING
1340 SASH_DRAG_LEFT_DOWN
= _windows_
.SASH_DRAG_LEFT_DOWN
1341 SW_NOBORDER
= _windows_
.SW_NOBORDER
1342 SW_BORDER
= _windows_
.SW_BORDER
1343 SW_3DSASH
= _windows_
.SW_3DSASH
1344 SW_3DBORDER
= _windows_
.SW_3DBORDER
1345 SW_3D
= _windows_
.SW_3D
1346 SASH_TOP
= _windows_
.SASH_TOP
1347 SASH_RIGHT
= _windows_
.SASH_RIGHT
1348 SASH_BOTTOM
= _windows_
.SASH_BOTTOM
1349 SASH_LEFT
= _windows_
.SASH_LEFT
1350 SASH_NONE
= _windows_
.SASH_NONE
1351 class SashWindow(_core
.Window
):
1353 return "<%s.%s; proxy of C++ wxSashWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1354 def __init__(self
, *args
, **kwargs
):
1356 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1357 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1358 String name=SashNameStr) -> SashWindow
1360 newobj
= _windows_
.new_SashWindow(*args
, **kwargs
)
1361 self
.this
= newobj
.this
1364 self
._setOORInfo
(self
)
1366 def Create(*args
, **kwargs
):
1368 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1369 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1370 String name=SashNameStr) -> bool
1372 return _windows_
.SashWindow_Create(*args
, **kwargs
)
1374 def SetSashVisible(*args
, **kwargs
):
1375 """SetSashVisible(self, int edge, bool sash)"""
1376 return _windows_
.SashWindow_SetSashVisible(*args
, **kwargs
)
1378 def GetSashVisible(*args
, **kwargs
):
1379 """GetSashVisible(self, int edge) -> bool"""
1380 return _windows_
.SashWindow_GetSashVisible(*args
, **kwargs
)
1382 def SetSashBorder(*args
, **kwargs
):
1383 """SetSashBorder(self, int edge, bool border)"""
1384 return _windows_
.SashWindow_SetSashBorder(*args
, **kwargs
)
1386 def HasBorder(*args
, **kwargs
):
1387 """HasBorder(self, int edge) -> bool"""
1388 return _windows_
.SashWindow_HasBorder(*args
, **kwargs
)
1390 def GetEdgeMargin(*args
, **kwargs
):
1391 """GetEdgeMargin(self, int edge) -> int"""
1392 return _windows_
.SashWindow_GetEdgeMargin(*args
, **kwargs
)
1394 def SetDefaultBorderSize(*args
, **kwargs
):
1395 """SetDefaultBorderSize(self, int width)"""
1396 return _windows_
.SashWindow_SetDefaultBorderSize(*args
, **kwargs
)
1398 def GetDefaultBorderSize(*args
, **kwargs
):
1399 """GetDefaultBorderSize(self) -> int"""
1400 return _windows_
.SashWindow_GetDefaultBorderSize(*args
, **kwargs
)
1402 def SetExtraBorderSize(*args
, **kwargs
):
1403 """SetExtraBorderSize(self, int width)"""
1404 return _windows_
.SashWindow_SetExtraBorderSize(*args
, **kwargs
)
1406 def GetExtraBorderSize(*args
, **kwargs
):
1407 """GetExtraBorderSize(self) -> int"""
1408 return _windows_
.SashWindow_GetExtraBorderSize(*args
, **kwargs
)
1410 def SetMinimumSizeX(*args
, **kwargs
):
1411 """SetMinimumSizeX(self, int min)"""
1412 return _windows_
.SashWindow_SetMinimumSizeX(*args
, **kwargs
)
1414 def SetMinimumSizeY(*args
, **kwargs
):
1415 """SetMinimumSizeY(self, int min)"""
1416 return _windows_
.SashWindow_SetMinimumSizeY(*args
, **kwargs
)
1418 def GetMinimumSizeX(*args
, **kwargs
):
1419 """GetMinimumSizeX(self) -> int"""
1420 return _windows_
.SashWindow_GetMinimumSizeX(*args
, **kwargs
)
1422 def GetMinimumSizeY(*args
, **kwargs
):
1423 """GetMinimumSizeY(self) -> int"""
1424 return _windows_
.SashWindow_GetMinimumSizeY(*args
, **kwargs
)
1426 def SetMaximumSizeX(*args
, **kwargs
):
1427 """SetMaximumSizeX(self, int max)"""
1428 return _windows_
.SashWindow_SetMaximumSizeX(*args
, **kwargs
)
1430 def SetMaximumSizeY(*args
, **kwargs
):
1431 """SetMaximumSizeY(self, int max)"""
1432 return _windows_
.SashWindow_SetMaximumSizeY(*args
, **kwargs
)
1434 def GetMaximumSizeX(*args
, **kwargs
):
1435 """GetMaximumSizeX(self) -> int"""
1436 return _windows_
.SashWindow_GetMaximumSizeX(*args
, **kwargs
)
1438 def GetMaximumSizeY(*args
, **kwargs
):
1439 """GetMaximumSizeY(self) -> int"""
1440 return _windows_
.SashWindow_GetMaximumSizeY(*args
, **kwargs
)
1442 def SashHitTest(*args
, **kwargs
):
1443 """SashHitTest(self, int x, int y, int tolerance=2) -> int"""
1444 return _windows_
.SashWindow_SashHitTest(*args
, **kwargs
)
1446 def SizeWindows(*args
, **kwargs
):
1447 """SizeWindows(self)"""
1448 return _windows_
.SashWindow_SizeWindows(*args
, **kwargs
)
1451 class SashWindowPtr(SashWindow
):
1452 def __init__(self
, this
):
1454 if not hasattr(self
,"thisown"): self
.thisown
= 0
1455 self
.__class
__ = SashWindow
1456 _windows_
.SashWindow_swigregister(SashWindowPtr
)
1457 SashNameStr
= cvar
.SashNameStr
1458 SashLayoutNameStr
= cvar
.SashLayoutNameStr
1460 def PreSashWindow(*args
, **kwargs
):
1461 """PreSashWindow() -> SashWindow"""
1462 val
= _windows_
.new_PreSashWindow(*args
, **kwargs
)
1466 SASH_STATUS_OK
= _windows_
.SASH_STATUS_OK
1467 SASH_STATUS_OUT_OF_RANGE
= _windows_
.SASH_STATUS_OUT_OF_RANGE
1468 class SashEvent(_core
.CommandEvent
):
1470 return "<%s.%s; proxy of C++ wxSashEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1471 def __init__(self
, *args
, **kwargs
):
1472 """__init__(self, int id=0, int edge=SASH_NONE) -> SashEvent"""
1473 newobj
= _windows_
.new_SashEvent(*args
, **kwargs
)
1474 self
.this
= newobj
.this
1477 def SetEdge(*args
, **kwargs
):
1478 """SetEdge(self, int edge)"""
1479 return _windows_
.SashEvent_SetEdge(*args
, **kwargs
)
1481 def GetEdge(*args
, **kwargs
):
1482 """GetEdge(self) -> int"""
1483 return _windows_
.SashEvent_GetEdge(*args
, **kwargs
)
1485 def SetDragRect(*args
, **kwargs
):
1486 """SetDragRect(self, Rect rect)"""
1487 return _windows_
.SashEvent_SetDragRect(*args
, **kwargs
)
1489 def GetDragRect(*args
, **kwargs
):
1490 """GetDragRect(self) -> Rect"""
1491 return _windows_
.SashEvent_GetDragRect(*args
, **kwargs
)
1493 def SetDragStatus(*args
, **kwargs
):
1494 """SetDragStatus(self, int status)"""
1495 return _windows_
.SashEvent_SetDragStatus(*args
, **kwargs
)
1497 def GetDragStatus(*args
, **kwargs
):
1498 """GetDragStatus(self) -> int"""
1499 return _windows_
.SashEvent_GetDragStatus(*args
, **kwargs
)
1502 class SashEventPtr(SashEvent
):
1503 def __init__(self
, this
):
1505 if not hasattr(self
,"thisown"): self
.thisown
= 0
1506 self
.__class
__ = SashEvent
1507 _windows_
.SashEvent_swigregister(SashEventPtr
)
1509 wxEVT_SASH_DRAGGED
= _windows_
.wxEVT_SASH_DRAGGED
1510 EVT_SASH_DRAGGED
= wx
.PyEventBinder( wxEVT_SASH_DRAGGED
, 1 )
1511 EVT_SASH_DRAGGED_RANGE
= wx
.PyEventBinder( wxEVT_SASH_DRAGGED
, 2 )
1513 #---------------------------------------------------------------------------
1515 LAYOUT_HORIZONTAL
= _windows_
.LAYOUT_HORIZONTAL
1516 LAYOUT_VERTICAL
= _windows_
.LAYOUT_VERTICAL
1517 LAYOUT_NONE
= _windows_
.LAYOUT_NONE
1518 LAYOUT_TOP
= _windows_
.LAYOUT_TOP
1519 LAYOUT_LEFT
= _windows_
.LAYOUT_LEFT
1520 LAYOUT_RIGHT
= _windows_
.LAYOUT_RIGHT
1521 LAYOUT_BOTTOM
= _windows_
.LAYOUT_BOTTOM
1522 LAYOUT_LENGTH_Y
= _windows_
.LAYOUT_LENGTH_Y
1523 LAYOUT_LENGTH_X
= _windows_
.LAYOUT_LENGTH_X
1524 LAYOUT_MRU_LENGTH
= _windows_
.LAYOUT_MRU_LENGTH
1525 LAYOUT_QUERY
= _windows_
.LAYOUT_QUERY
1526 wxEVT_QUERY_LAYOUT_INFO
= _windows_
.wxEVT_QUERY_LAYOUT_INFO
1527 wxEVT_CALCULATE_LAYOUT
= _windows_
.wxEVT_CALCULATE_LAYOUT
1528 class QueryLayoutInfoEvent(_core
.Event
):
1530 return "<%s.%s; proxy of C++ wxQueryLayoutInfoEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1531 def __init__(self
, *args
, **kwargs
):
1532 """__init__(self, int id=0) -> QueryLayoutInfoEvent"""
1533 newobj
= _windows_
.new_QueryLayoutInfoEvent(*args
, **kwargs
)
1534 self
.this
= newobj
.this
1537 def SetRequestedLength(*args
, **kwargs
):
1538 """SetRequestedLength(self, int length)"""
1539 return _windows_
.QueryLayoutInfoEvent_SetRequestedLength(*args
, **kwargs
)
1541 def GetRequestedLength(*args
, **kwargs
):
1542 """GetRequestedLength(self) -> int"""
1543 return _windows_
.QueryLayoutInfoEvent_GetRequestedLength(*args
, **kwargs
)
1545 def SetFlags(*args
, **kwargs
):
1546 """SetFlags(self, int flags)"""
1547 return _windows_
.QueryLayoutInfoEvent_SetFlags(*args
, **kwargs
)
1549 def GetFlags(*args
, **kwargs
):
1550 """GetFlags(self) -> int"""
1551 return _windows_
.QueryLayoutInfoEvent_GetFlags(*args
, **kwargs
)
1553 def SetSize(*args
, **kwargs
):
1554 """SetSize(self, Size size)"""
1555 return _windows_
.QueryLayoutInfoEvent_SetSize(*args
, **kwargs
)
1557 def GetSize(*args
, **kwargs
):
1558 """GetSize(self) -> Size"""
1559 return _windows_
.QueryLayoutInfoEvent_GetSize(*args
, **kwargs
)
1561 def SetOrientation(*args
, **kwargs
):
1562 """SetOrientation(self, int orient)"""
1563 return _windows_
.QueryLayoutInfoEvent_SetOrientation(*args
, **kwargs
)
1565 def GetOrientation(*args
, **kwargs
):
1566 """GetOrientation(self) -> int"""
1567 return _windows_
.QueryLayoutInfoEvent_GetOrientation(*args
, **kwargs
)
1569 def SetAlignment(*args
, **kwargs
):
1570 """SetAlignment(self, int align)"""
1571 return _windows_
.QueryLayoutInfoEvent_SetAlignment(*args
, **kwargs
)
1573 def GetAlignment(*args
, **kwargs
):
1574 """GetAlignment(self) -> int"""
1575 return _windows_
.QueryLayoutInfoEvent_GetAlignment(*args
, **kwargs
)
1578 class QueryLayoutInfoEventPtr(QueryLayoutInfoEvent
):
1579 def __init__(self
, this
):
1581 if not hasattr(self
,"thisown"): self
.thisown
= 0
1582 self
.__class
__ = QueryLayoutInfoEvent
1583 _windows_
.QueryLayoutInfoEvent_swigregister(QueryLayoutInfoEventPtr
)
1585 class CalculateLayoutEvent(_core
.Event
):
1587 return "<%s.%s; proxy of C++ wxCalculateLayoutEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1588 def __init__(self
, *args
, **kwargs
):
1589 """__init__(self, int id=0) -> CalculateLayoutEvent"""
1590 newobj
= _windows_
.new_CalculateLayoutEvent(*args
, **kwargs
)
1591 self
.this
= newobj
.this
1594 def SetFlags(*args
, **kwargs
):
1595 """SetFlags(self, int flags)"""
1596 return _windows_
.CalculateLayoutEvent_SetFlags(*args
, **kwargs
)
1598 def GetFlags(*args
, **kwargs
):
1599 """GetFlags(self) -> int"""
1600 return _windows_
.CalculateLayoutEvent_GetFlags(*args
, **kwargs
)
1602 def SetRect(*args
, **kwargs
):
1603 """SetRect(self, Rect rect)"""
1604 return _windows_
.CalculateLayoutEvent_SetRect(*args
, **kwargs
)
1606 def GetRect(*args
, **kwargs
):
1607 """GetRect(self) -> Rect"""
1608 return _windows_
.CalculateLayoutEvent_GetRect(*args
, **kwargs
)
1611 class CalculateLayoutEventPtr(CalculateLayoutEvent
):
1612 def __init__(self
, this
):
1614 if not hasattr(self
,"thisown"): self
.thisown
= 0
1615 self
.__class
__ = CalculateLayoutEvent
1616 _windows_
.CalculateLayoutEvent_swigregister(CalculateLayoutEventPtr
)
1618 EVT_QUERY_LAYOUT_INFO
= wx
.PyEventBinder( wxEVT_QUERY_LAYOUT_INFO
)
1619 EVT_CALCULATE_LAYOUT
= wx
.PyEventBinder( wxEVT_CALCULATE_LAYOUT
)
1621 class SashLayoutWindow(SashWindow
):
1623 return "<%s.%s; proxy of C++ wxSashLayoutWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1624 def __init__(self
, *args
, **kwargs
):
1626 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1627 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1628 String name=SashLayoutNameStr) -> SashLayoutWindow
1630 newobj
= _windows_
.new_SashLayoutWindow(*args
, **kwargs
)
1631 self
.this
= newobj
.this
1634 self
._setOORInfo
(self
)
1636 def Create(*args
, **kwargs
):
1638 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1639 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1640 String name=SashLayoutNameStr) -> bool
1642 return _windows_
.SashLayoutWindow_Create(*args
, **kwargs
)
1644 def GetAlignment(*args
, **kwargs
):
1645 """GetAlignment(self) -> int"""
1646 return _windows_
.SashLayoutWindow_GetAlignment(*args
, **kwargs
)
1648 def GetOrientation(*args
, **kwargs
):
1649 """GetOrientation(self) -> int"""
1650 return _windows_
.SashLayoutWindow_GetOrientation(*args
, **kwargs
)
1652 def SetAlignment(*args
, **kwargs
):
1653 """SetAlignment(self, int alignment)"""
1654 return _windows_
.SashLayoutWindow_SetAlignment(*args
, **kwargs
)
1656 def SetDefaultSize(*args
, **kwargs
):
1657 """SetDefaultSize(self, Size size)"""
1658 return _windows_
.SashLayoutWindow_SetDefaultSize(*args
, **kwargs
)
1660 def SetOrientation(*args
, **kwargs
):
1661 """SetOrientation(self, int orientation)"""
1662 return _windows_
.SashLayoutWindow_SetOrientation(*args
, **kwargs
)
1665 class SashLayoutWindowPtr(SashLayoutWindow
):
1666 def __init__(self
, this
):
1668 if not hasattr(self
,"thisown"): self
.thisown
= 0
1669 self
.__class
__ = SashLayoutWindow
1670 _windows_
.SashLayoutWindow_swigregister(SashLayoutWindowPtr
)
1672 def PreSashLayoutWindow(*args
, **kwargs
):
1673 """PreSashLayoutWindow() -> SashLayoutWindow"""
1674 val
= _windows_
.new_PreSashLayoutWindow(*args
, **kwargs
)
1678 class LayoutAlgorithm(_core
.Object
):
1680 return "<%s.%s; proxy of C++ wxLayoutAlgorithm instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1681 def __init__(self
, *args
, **kwargs
):
1682 """__init__(self) -> LayoutAlgorithm"""
1683 newobj
= _windows_
.new_LayoutAlgorithm(*args
, **kwargs
)
1684 self
.this
= newobj
.this
1687 def __del__(self
, destroy
=_windows_
.delete_LayoutAlgorithm
):
1690 if self
.thisown
: destroy(self
)
1693 def LayoutMDIFrame(*args
, **kwargs
):
1694 """LayoutMDIFrame(self, MDIParentFrame frame, Rect rect=None) -> bool"""
1695 return _windows_
.LayoutAlgorithm_LayoutMDIFrame(*args
, **kwargs
)
1697 def LayoutFrame(*args
, **kwargs
):
1698 """LayoutFrame(self, Frame frame, Window mainWindow=None) -> bool"""
1699 return _windows_
.LayoutAlgorithm_LayoutFrame(*args
, **kwargs
)
1701 def LayoutWindow(*args
, **kwargs
):
1702 """LayoutWindow(self, Window parent, Window mainWindow=None) -> bool"""
1703 return _windows_
.LayoutAlgorithm_LayoutWindow(*args
, **kwargs
)
1706 class LayoutAlgorithmPtr(LayoutAlgorithm
):
1707 def __init__(self
, this
):
1709 if not hasattr(self
,"thisown"): self
.thisown
= 0
1710 self
.__class
__ = LayoutAlgorithm
1711 _windows_
.LayoutAlgorithm_swigregister(LayoutAlgorithmPtr
)
1713 class PopupWindow(_core
.Window
):
1715 return "<%s.%s; proxy of C++ wxPopupWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1716 def __init__(self
, *args
, **kwargs
):
1717 """__init__(self, Window parent, int flags=BORDER_NONE) -> PopupWindow"""
1718 newobj
= _windows_
.new_PopupWindow(*args
, **kwargs
)
1719 self
.this
= newobj
.this
1723 class PopupWindowPtr(PopupWindow
):
1724 def __init__(self
, this
):
1726 if not hasattr(self
,"thisown"): self
.thisown
= 0
1727 self
.__class
__ = PopupWindow
1728 _windows_
.PopupWindow_swigregister(PopupWindowPtr
)
1730 def PrePopupWindow(*args
, **kwargs
):
1731 """PrePopupWindow() -> PopupWindow"""
1732 val
= _windows_
.new_PrePopupWindow(*args
, **kwargs
)
1736 class PopupTransientWindow(PopupWindow
):
1738 return "<%s.%s; proxy of C++ wxPyPopupTransientWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1739 def __init__(self
, *args
, **kwargs
):
1740 """__init__(self, Window parent, int style=BORDER_NONE) -> PopupTransientWindow"""
1741 newobj
= _windows_
.new_PopupTransientWindow(*args
, **kwargs
)
1742 self
.this
= newobj
.this
1746 class PopupTransientWindowPtr(PopupTransientWindow
):
1747 def __init__(self
, this
):
1749 if not hasattr(self
,"thisown"): self
.thisown
= 0
1750 self
.__class
__ = PopupTransientWindow
1751 _windows_
.PopupTransientWindow_swigregister(PopupTransientWindowPtr
)
1753 def PrePopupTransientWindow(*args
, **kwargs
):
1754 """PrePopupTransientWindow() -> PopupTransientWindow"""
1755 val
= _windows_
.new_PrePopupTransientWindow(*args
, **kwargs
)
1759 #---------------------------------------------------------------------------
1761 class TipWindow(Frame
):
1763 return "<%s.%s; proxy of C++ wxTipWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1764 def __init__(self
, *args
, **kwargs
):
1765 """__init__(self, Window parent, String text, int maxLength=100, Rect rectBound=None) -> TipWindow"""
1766 newobj
= _windows_
.new_TipWindow(*args
, **kwargs
)
1767 self
.this
= newobj
.this
1770 self
._setOORInfo
(self
)
1772 def SetBoundingRect(*args
, **kwargs
):
1773 """SetBoundingRect(self, Rect rectBound)"""
1774 return _windows_
.TipWindow_SetBoundingRect(*args
, **kwargs
)
1776 def Close(*args
, **kwargs
):
1778 return _windows_
.TipWindow_Close(*args
, **kwargs
)
1781 class TipWindowPtr(TipWindow
):
1782 def __init__(self
, this
):
1784 if not hasattr(self
,"thisown"): self
.thisown
= 0
1785 self
.__class
__ = TipWindow
1786 _windows_
.TipWindow_swigregister(TipWindowPtr
)
1788 #---------------------------------------------------------------------------
1790 class VScrolledWindow(Panel
):
1792 return "<%s.%s; proxy of C++ wxPyVScrolledWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1793 def __init__(self
, *args
, **kwargs
):
1795 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1796 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> VScrolledWindow
1798 newobj
= _windows_
.new_VScrolledWindow(*args
, **kwargs
)
1799 self
.this
= newobj
.this
1802 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, VScrolledWindow
)
1804 def _setCallbackInfo(*args
, **kwargs
):
1805 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1806 return _windows_
.VScrolledWindow__setCallbackInfo(*args
, **kwargs
)
1808 def Create(*args
, **kwargs
):
1810 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1811 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> bool
1813 return _windows_
.VScrolledWindow_Create(*args
, **kwargs
)
1815 def SetLineCount(*args
, **kwargs
):
1816 """SetLineCount(self, size_t count)"""
1817 return _windows_
.VScrolledWindow_SetLineCount(*args
, **kwargs
)
1819 def ScrollToLine(*args
, **kwargs
):
1820 """ScrollToLine(self, size_t line) -> bool"""
1821 return _windows_
.VScrolledWindow_ScrollToLine(*args
, **kwargs
)
1823 def ScrollLines(*args
, **kwargs
):
1825 ScrollLines(self, int lines) -> bool
1827 If the platform and window class supports it, scrolls the window by
1828 the given number of lines down, if lines is positive, or up if lines
1829 is negative. Returns True if the window was scrolled, False if it was
1830 already on top/bottom and nothing was done.
1832 return _windows_
.VScrolledWindow_ScrollLines(*args
, **kwargs
)
1834 def ScrollPages(*args
, **kwargs
):
1836 ScrollPages(self, int pages) -> bool
1838 If the platform and window class supports it, scrolls the window by
1839 the given number of pages down, if pages is positive, or up if pages
1840 is negative. Returns True if the window was scrolled, False if it was
1841 already on top/bottom and nothing was done.
1843 return _windows_
.VScrolledWindow_ScrollPages(*args
, **kwargs
)
1845 def RefreshLine(*args
, **kwargs
):
1846 """RefreshLine(self, size_t line)"""
1847 return _windows_
.VScrolledWindow_RefreshLine(*args
, **kwargs
)
1849 def RefreshLines(*args
, **kwargs
):
1850 """RefreshLines(self, size_t from, size_t to)"""
1851 return _windows_
.VScrolledWindow_RefreshLines(*args
, **kwargs
)
1853 def HitTestXY(*args
, **kwargs
):
1855 HitTestXY(self, int x, int y) -> int
1857 Test where the given (in client coords) point lies
1859 return _windows_
.VScrolledWindow_HitTestXY(*args
, **kwargs
)
1861 def HitTest(*args
, **kwargs
):
1863 HitTest(self, Point pt) -> int
1865 Test where the given (in client coords) point lies
1867 return _windows_
.VScrolledWindow_HitTest(*args
, **kwargs
)
1869 def RefreshAll(*args
, **kwargs
):
1870 """RefreshAll(self)"""
1871 return _windows_
.VScrolledWindow_RefreshAll(*args
, **kwargs
)
1873 def GetLineCount(*args
, **kwargs
):
1874 """GetLineCount(self) -> size_t"""
1875 return _windows_
.VScrolledWindow_GetLineCount(*args
, **kwargs
)
1877 def GetFirstVisibleLine(*args
, **kwargs
):
1878 """GetFirstVisibleLine(self) -> size_t"""
1879 return _windows_
.VScrolledWindow_GetFirstVisibleLine(*args
, **kwargs
)
1881 def GetLastVisibleLine(*args
, **kwargs
):
1882 """GetLastVisibleLine(self) -> size_t"""
1883 return _windows_
.VScrolledWindow_GetLastVisibleLine(*args
, **kwargs
)
1885 def IsVisible(*args
, **kwargs
):
1886 """IsVisible(self, size_t line) -> bool"""
1887 return _windows_
.VScrolledWindow_IsVisible(*args
, **kwargs
)
1890 class VScrolledWindowPtr(VScrolledWindow
):
1891 def __init__(self
, this
):
1893 if not hasattr(self
,"thisown"): self
.thisown
= 0
1894 self
.__class
__ = VScrolledWindow
1895 _windows_
.VScrolledWindow_swigregister(VScrolledWindowPtr
)
1897 def PreVScrolledWindow(*args
, **kwargs
):
1898 """PreVScrolledWindow() -> VScrolledWindow"""
1899 val
= _windows_
.new_PreVScrolledWindow(*args
, **kwargs
)
1903 class VListBox(VScrolledWindow
):
1905 return "<%s.%s; proxy of C++ wxPyVListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1906 def __init__(self
, *args
, **kwargs
):
1908 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1909 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> VListBox
1911 newobj
= _windows_
.new_VListBox(*args
, **kwargs
)
1912 self
.this
= newobj
.this
1915 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, VListBox
)
1917 def _setCallbackInfo(*args
, **kwargs
):
1918 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1919 return _windows_
.VListBox__setCallbackInfo(*args
, **kwargs
)
1921 def Create(*args
, **kwargs
):
1923 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1924 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
1926 return _windows_
.VListBox_Create(*args
, **kwargs
)
1928 def GetItemCount(*args
, **kwargs
):
1929 """GetItemCount(self) -> size_t"""
1930 return _windows_
.VListBox_GetItemCount(*args
, **kwargs
)
1932 def HasMultipleSelection(*args
, **kwargs
):
1933 """HasMultipleSelection(self) -> bool"""
1934 return _windows_
.VListBox_HasMultipleSelection(*args
, **kwargs
)
1936 def GetSelection(*args
, **kwargs
):
1937 """GetSelection(self) -> int"""
1938 return _windows_
.VListBox_GetSelection(*args
, **kwargs
)
1940 def IsCurrent(*args
, **kwargs
):
1941 """IsCurrent(self, size_t item) -> bool"""
1942 return _windows_
.VListBox_IsCurrent(*args
, **kwargs
)
1944 def IsSelected(*args
, **kwargs
):
1945 """IsSelected(self, size_t item) -> bool"""
1946 return _windows_
.VListBox_IsSelected(*args
, **kwargs
)
1948 def GetSelectedCount(*args
, **kwargs
):
1949 """GetSelectedCount(self) -> size_t"""
1950 return _windows_
.VListBox_GetSelectedCount(*args
, **kwargs
)
1952 def GetFirstSelected(*args
, **kwargs
):
1953 """GetFirstSelected(self) -> PyObject"""
1954 return _windows_
.VListBox_GetFirstSelected(*args
, **kwargs
)
1956 def GetNextSelected(*args
, **kwargs
):
1957 """GetNextSelected(self, unsigned long cookie) -> PyObject"""
1958 return _windows_
.VListBox_GetNextSelected(*args
, **kwargs
)
1960 def GetMargins(*args
, **kwargs
):
1961 """GetMargins(self) -> Point"""
1962 return _windows_
.VListBox_GetMargins(*args
, **kwargs
)
1964 def GetSelectionBackground(*args
, **kwargs
):
1965 """GetSelectionBackground(self) -> Colour"""
1966 return _windows_
.VListBox_GetSelectionBackground(*args
, **kwargs
)
1968 def SetItemCount(*args
, **kwargs
):
1969 """SetItemCount(self, size_t count)"""
1970 return _windows_
.VListBox_SetItemCount(*args
, **kwargs
)
1972 def Clear(*args
, **kwargs
):
1974 return _windows_
.VListBox_Clear(*args
, **kwargs
)
1976 def SetSelection(*args
, **kwargs
):
1977 """SetSelection(self, int selection)"""
1978 return _windows_
.VListBox_SetSelection(*args
, **kwargs
)
1980 def Select(*args
, **kwargs
):
1981 """Select(self, size_t item, bool select=True) -> bool"""
1982 return _windows_
.VListBox_Select(*args
, **kwargs
)
1984 def SelectRange(*args
, **kwargs
):
1985 """SelectRange(self, size_t from, size_t to) -> bool"""
1986 return _windows_
.VListBox_SelectRange(*args
, **kwargs
)
1988 def Toggle(*args
, **kwargs
):
1989 """Toggle(self, size_t item)"""
1990 return _windows_
.VListBox_Toggle(*args
, **kwargs
)
1992 def SelectAll(*args
, **kwargs
):
1993 """SelectAll(self) -> bool"""
1994 return _windows_
.VListBox_SelectAll(*args
, **kwargs
)
1996 def DeselectAll(*args
, **kwargs
):
1997 """DeselectAll(self) -> bool"""
1998 return _windows_
.VListBox_DeselectAll(*args
, **kwargs
)
2000 def SetMargins(*args
, **kwargs
):
2001 """SetMargins(self, Point pt)"""
2002 return _windows_
.VListBox_SetMargins(*args
, **kwargs
)
2004 def SetMarginsXY(*args
, **kwargs
):
2005 """SetMarginsXY(self, int x, int y)"""
2006 return _windows_
.VListBox_SetMarginsXY(*args
, **kwargs
)
2008 def SetSelectionBackground(*args
, **kwargs
):
2009 """SetSelectionBackground(self, Colour col)"""
2010 return _windows_
.VListBox_SetSelectionBackground(*args
, **kwargs
)
2013 class VListBoxPtr(VListBox
):
2014 def __init__(self
, this
):
2016 if not hasattr(self
,"thisown"): self
.thisown
= 0
2017 self
.__class
__ = VListBox
2018 _windows_
.VListBox_swigregister(VListBoxPtr
)
2019 VListBoxNameStr
= cvar
.VListBoxNameStr
2021 def PreVListBox(*args
, **kwargs
):
2022 """PreVListBox() -> VListBox"""
2023 val
= _windows_
.new_PreVListBox(*args
, **kwargs
)
2027 class HtmlListBox(VListBox
):
2029 return "<%s.%s; proxy of C++ wxPyHtmlListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2030 def __init__(self
, *args
, **kwargs
):
2032 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
2033 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> HtmlListBox
2035 newobj
= _windows_
.new_HtmlListBox(*args
, **kwargs
)
2036 self
.this
= newobj
.this
2039 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, HtmlListBox
)
2041 def _setCallbackInfo(*args
, **kwargs
):
2042 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
2043 return _windows_
.HtmlListBox__setCallbackInfo(*args
, **kwargs
)
2045 def Create(*args
, **kwargs
):
2047 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
2048 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
2050 return _windows_
.HtmlListBox_Create(*args
, **kwargs
)
2052 def RefreshAll(*args
, **kwargs
):
2053 """RefreshAll(self)"""
2054 return _windows_
.HtmlListBox_RefreshAll(*args
, **kwargs
)
2056 def SetItemCount(*args
, **kwargs
):
2057 """SetItemCount(self, size_t count)"""
2058 return _windows_
.HtmlListBox_SetItemCount(*args
, **kwargs
)
2060 def GetFileSystem(*args
, **kwargs
):
2061 """GetFileSystem(self) -> FileSystem"""
2062 return _windows_
.HtmlListBox_GetFileSystem(*args
, **kwargs
)
2065 class HtmlListBoxPtr(HtmlListBox
):
2066 def __init__(self
, this
):
2068 if not hasattr(self
,"thisown"): self
.thisown
= 0
2069 self
.__class
__ = HtmlListBox
2070 _windows_
.HtmlListBox_swigregister(HtmlListBoxPtr
)
2072 def PreHtmlListBox(*args
, **kwargs
):
2073 """PreHtmlListBox() -> HtmlListBox"""
2074 val
= _windows_
.new_PreHtmlListBox(*args
, **kwargs
)
2078 #---------------------------------------------------------------------------
2080 class TaskBarIcon(_core
.EvtHandler
):
2082 return "<%s.%s; proxy of C++ wxPyTaskBarIcon instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2083 def __init__(self
, *args
, **kwargs
):
2084 """__init__(self) -> TaskBarIcon"""
2085 newobj
= _windows_
.new_TaskBarIcon(*args
, **kwargs
)
2086 self
.this
= newobj
.this
2089 self
._setCallbackInfo
(self
, TaskBarIcon
, 0)
2091 def _setCallbackInfo(*args
, **kwargs
):
2092 """_setCallbackInfo(self, PyObject self, PyObject _class, int incref)"""
2093 return _windows_
.TaskBarIcon__setCallbackInfo(*args
, **kwargs
)
2095 def Destroy(*args
, **kwargs
):
2099 Deletes the C++ object this Python object is a proxy for.
2101 return _windows_
.TaskBarIcon_Destroy(*args
, **kwargs
)
2103 def IsOk(*args
, **kwargs
):
2104 """IsOk(self) -> bool"""
2105 return _windows_
.TaskBarIcon_IsOk(*args
, **kwargs
)
2107 def __nonzero__(self
): return self
.IsOk()
2108 def IsIconInstalled(*args
, **kwargs
):
2109 """IsIconInstalled(self) -> bool"""
2110 return _windows_
.TaskBarIcon_IsIconInstalled(*args
, **kwargs
)
2112 def SetIcon(*args
, **kwargs
):
2113 """SetIcon(self, Icon icon, String tooltip=EmptyString) -> bool"""
2114 return _windows_
.TaskBarIcon_SetIcon(*args
, **kwargs
)
2116 def RemoveIcon(*args
, **kwargs
):
2117 """RemoveIcon(self) -> bool"""
2118 return _windows_
.TaskBarIcon_RemoveIcon(*args
, **kwargs
)
2120 def PopupMenu(*args
, **kwargs
):
2121 """PopupMenu(self, Menu menu) -> bool"""
2122 return _windows_
.TaskBarIcon_PopupMenu(*args
, **kwargs
)
2125 class TaskBarIconPtr(TaskBarIcon
):
2126 def __init__(self
, this
):
2128 if not hasattr(self
,"thisown"): self
.thisown
= 0
2129 self
.__class
__ = TaskBarIcon
2130 _windows_
.TaskBarIcon_swigregister(TaskBarIconPtr
)
2132 class TaskBarIconEvent(_core
.Event
):
2134 return "<%s.%s; proxy of C++ wxTaskBarIconEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2135 def __init__(self
, *args
, **kwargs
):
2136 """__init__(self, wxEventType evtType, wxTaskBarIcon tbIcon) -> TaskBarIconEvent"""
2137 newobj
= _windows_
.new_TaskBarIconEvent(*args
, **kwargs
)
2138 self
.this
= newobj
.this
2142 class TaskBarIconEventPtr(TaskBarIconEvent
):
2143 def __init__(self
, this
):
2145 if not hasattr(self
,"thisown"): self
.thisown
= 0
2146 self
.__class
__ = TaskBarIconEvent
2147 _windows_
.TaskBarIconEvent_swigregister(TaskBarIconEventPtr
)
2149 wxEVT_TASKBAR_MOVE
= _windows_
.wxEVT_TASKBAR_MOVE
2150 wxEVT_TASKBAR_LEFT_DOWN
= _windows_
.wxEVT_TASKBAR_LEFT_DOWN
2151 wxEVT_TASKBAR_LEFT_UP
= _windows_
.wxEVT_TASKBAR_LEFT_UP
2152 wxEVT_TASKBAR_RIGHT_DOWN
= _windows_
.wxEVT_TASKBAR_RIGHT_DOWN
2153 wxEVT_TASKBAR_RIGHT_UP
= _windows_
.wxEVT_TASKBAR_RIGHT_UP
2154 wxEVT_TASKBAR_LEFT_DCLICK
= _windows_
.wxEVT_TASKBAR_LEFT_DCLICK
2155 wxEVT_TASKBAR_RIGHT_DCLICK
= _windows_
.wxEVT_TASKBAR_RIGHT_DCLICK
2156 EVT_TASKBAR_MOVE
= wx
.PyEventBinder ( wxEVT_TASKBAR_MOVE
)
2157 EVT_TASKBAR_LEFT_DOWN
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_DOWN
)
2158 EVT_TASKBAR_LEFT_UP
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_UP
)
2159 EVT_TASKBAR_RIGHT_DOWN
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DOWN
)
2160 EVT_TASKBAR_RIGHT_UP
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_UP
)
2161 EVT_TASKBAR_LEFT_DCLICK
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_DCLICK
)
2162 EVT_TASKBAR_RIGHT_DCLICK
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DCLICK
)
2164 #---------------------------------------------------------------------------
2166 class ColourData(_core
.Object
):
2168 This class holds a variety of information related to the colour
2169 chooser dialog, used to transfer settings and results to and from the
2173 return "<%s.%s; proxy of C++ wxColourData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2174 def __init__(self
, *args
, **kwargs
):
2176 __init__(self) -> ColourData
2178 Constructor, sets default values.
2180 newobj
= _windows_
.new_ColourData(*args
, **kwargs
)
2181 self
.this
= newobj
.this
2184 def __del__(self
, destroy
=_windows_
.delete_ColourData
):
2187 if self
.thisown
: destroy(self
)
2190 def GetChooseFull(*args
, **kwargs
):
2192 GetChooseFull(self) -> bool
2194 Under Windows, determines whether the Windows colour dialog will
2195 display the full dialog with custom colour selection controls. Has no
2196 meaning under other platforms. The default value is true.
2198 return _windows_
.ColourData_GetChooseFull(*args
, **kwargs
)
2200 def GetColour(*args
, **kwargs
):
2202 GetColour(self) -> Colour
2204 Gets the colour (pre)selected by the dialog.
2206 return _windows_
.ColourData_GetColour(*args
, **kwargs
)
2208 def GetCustomColour(*args
, **kwargs
):
2210 GetCustomColour(self, int i) -> Colour
2212 Gets the i'th custom colour associated with the colour dialog. i
2213 should be an integer between 0 and 15. The default custom colours are
2214 all invalid colours.
2216 return _windows_
.ColourData_GetCustomColour(*args
, **kwargs
)
2218 def SetChooseFull(*args
, **kwargs
):
2220 SetChooseFull(self, int flag)
2222 Under Windows, tells the Windows colour dialog to display the full
2223 dialog with custom colour selection controls. Under other platforms,
2224 has no effect. The default value is true.
2226 return _windows_
.ColourData_SetChooseFull(*args
, **kwargs
)
2228 def SetColour(*args
, **kwargs
):
2230 SetColour(self, Colour colour)
2232 Sets the default colour for the colour dialog. The default colour is
2235 return _windows_
.ColourData_SetColour(*args
, **kwargs
)
2237 def SetCustomColour(*args
, **kwargs
):
2239 SetCustomColour(self, int i, Colour colour)
2241 Sets the i'th custom colour for the colour dialog. i should be an
2242 integer between 0 and 15. The default custom colours are all invalid colours.
2244 return _windows_
.ColourData_SetCustomColour(*args
, **kwargs
)
2247 class ColourDataPtr(ColourData
):
2248 def __init__(self
, this
):
2250 if not hasattr(self
,"thisown"): self
.thisown
= 0
2251 self
.__class
__ = ColourData
2252 _windows_
.ColourData_swigregister(ColourDataPtr
)
2253 FileSelectorPromptStr
= cvar
.FileSelectorPromptStr
2254 DirSelectorPromptStr
= cvar
.DirSelectorPromptStr
2255 DirDialogNameStr
= cvar
.DirDialogNameStr
2256 FileSelectorDefaultWildcardStr
= cvar
.FileSelectorDefaultWildcardStr
2257 GetTextFromUserPromptStr
= cvar
.GetTextFromUserPromptStr
2258 MessageBoxCaptionStr
= cvar
.MessageBoxCaptionStr
2260 class ColourDialog(Dialog
):
2261 """This class represents the colour chooser dialog."""
2263 return "<%s.%s; proxy of C++ wxColourDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2264 def __init__(self
, *args
, **kwargs
):
2266 __init__(self, Window parent, ColourData data=None) -> ColourDialog
2268 Constructor. Pass a parent window, and optionally a `wx.ColourData`,
2269 which will be copied to the colour dialog's internal ColourData
2272 newobj
= _windows_
.new_ColourDialog(*args
, **kwargs
)
2273 self
.this
= newobj
.this
2276 self
._setOORInfo
(self
)
2278 def GetColourData(*args
, **kwargs
):
2280 GetColourData(self) -> ColourData
2282 Returns a reference to the `wx.ColourData` used by the dialog.
2284 return _windows_
.ColourDialog_GetColourData(*args
, **kwargs
)
2287 class ColourDialogPtr(ColourDialog
):
2288 def __init__(self
, this
):
2290 if not hasattr(self
,"thisown"): self
.thisown
= 0
2291 self
.__class
__ = ColourDialog
2292 _windows_
.ColourDialog_swigregister(ColourDialogPtr
)
2294 class DirDialog(Dialog
):
2296 wx.DirDialog allows the user to select a directory by browising the
2300 return "<%s.%s; proxy of C++ wxDirDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2301 def __init__(self
, *args
, **kwargs
):
2303 __init__(self, Window parent, String message=DirSelectorPromptStr,
2304 String defaultPath=EmptyString, long style=0,
2305 Point pos=DefaultPosition, Size size=DefaultSize,
2306 String name=DirDialogNameStr) -> DirDialog
2308 Constructor. Use ShowModal method to show the dialog.
2310 newobj
= _windows_
.new_DirDialog(*args
, **kwargs
)
2311 self
.this
= newobj
.this
2314 self
._setOORInfo
(self
)
2316 def GetPath(*args
, **kwargs
):
2318 GetPath(self) -> String
2320 Returns the default or user-selected path.
2322 return _windows_
.DirDialog_GetPath(*args
, **kwargs
)
2324 def GetMessage(*args
, **kwargs
):
2326 GetMessage(self) -> String
2328 Returns the message that will be displayed on the dialog.
2330 return _windows_
.DirDialog_GetMessage(*args
, **kwargs
)
2332 def GetStyle(*args
, **kwargs
):
2334 GetStyle(self) -> long
2336 Returns the dialog style.
2338 return _windows_
.DirDialog_GetStyle(*args
, **kwargs
)
2340 def SetMessage(*args
, **kwargs
):
2342 SetMessage(self, String message)
2344 Sets the message that will be displayed on the dialog.
2346 return _windows_
.DirDialog_SetMessage(*args
, **kwargs
)
2348 def SetPath(*args
, **kwargs
):
2350 SetPath(self, String path)
2352 Sets the default path.
2354 return _windows_
.DirDialog_SetPath(*args
, **kwargs
)
2357 class DirDialogPtr(DirDialog
):
2358 def __init__(self
, this
):
2360 if not hasattr(self
,"thisown"): self
.thisown
= 0
2361 self
.__class
__ = DirDialog
2362 _windows_
.DirDialog_swigregister(DirDialogPtr
)
2364 class FileDialog(Dialog
):
2366 wx.FileDialog allows the user to select one or more files from the
2370 return "<%s.%s; proxy of C++ wxFileDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2371 def __init__(self
, *args
, **kwargs
):
2373 __init__(self, Window parent, String message=FileSelectorPromptStr,
2374 String defaultDir=EmptyString, String defaultFile=EmptyString,
2375 String wildcard=FileSelectorDefaultWildcardStr,
2376 long style=0, Point pos=DefaultPosition) -> FileDialog
2378 Constructor. Use ShowModal method to show the dialog.
2380 newobj
= _windows_
.new_FileDialog(*args
, **kwargs
)
2381 self
.this
= newobj
.this
2384 self
._setOORInfo
(self
)
2386 def SetMessage(*args
, **kwargs
):
2388 SetMessage(self, String message)
2390 Sets the message that will be displayed on the dialog.
2392 return _windows_
.FileDialog_SetMessage(*args
, **kwargs
)
2394 def SetPath(*args
, **kwargs
):
2396 SetPath(self, String path)
2398 Sets the path (the combined directory and filename that will be
2399 returned when the dialog is dismissed).
2401 return _windows_
.FileDialog_SetPath(*args
, **kwargs
)
2403 def SetDirectory(*args
, **kwargs
):
2405 SetDirectory(self, String dir)
2407 Sets the default directory.
2409 return _windows_
.FileDialog_SetDirectory(*args
, **kwargs
)
2411 def SetFilename(*args
, **kwargs
):
2413 SetFilename(self, String name)
2415 Sets the default filename.
2417 return _windows_
.FileDialog_SetFilename(*args
, **kwargs
)
2419 def SetWildcard(*args
, **kwargs
):
2421 SetWildcard(self, String wildCard)
2423 Sets the wildcard, which can contain multiple file types, for
2426 "BMP files (*.bmp)|*.bmp|GIF files (*.gif)|*.gif"
2429 return _windows_
.FileDialog_SetWildcard(*args
, **kwargs
)
2431 def SetStyle(*args
, **kwargs
):
2433 SetStyle(self, long style)
2435 Sets the dialog style.
2437 return _windows_
.FileDialog_SetStyle(*args
, **kwargs
)
2439 def SetFilterIndex(*args
, **kwargs
):
2441 SetFilterIndex(self, int filterIndex)
2443 Sets the default filter index, starting from zero.
2445 return _windows_
.FileDialog_SetFilterIndex(*args
, **kwargs
)
2447 def GetMessage(*args
, **kwargs
):
2449 GetMessage(self) -> String
2451 Returns the message that will be displayed on the dialog.
2453 return _windows_
.FileDialog_GetMessage(*args
, **kwargs
)
2455 def GetPath(*args
, **kwargs
):
2457 GetPath(self) -> String
2459 Returns the full path (directory and filename) of the selected file.
2461 return _windows_
.FileDialog_GetPath(*args
, **kwargs
)
2463 def GetDirectory(*args
, **kwargs
):
2465 GetDirectory(self) -> String
2467 Returns the default directory.
2469 return _windows_
.FileDialog_GetDirectory(*args
, **kwargs
)
2471 def GetFilename(*args
, **kwargs
):
2473 GetFilename(self) -> String
2475 Returns the default filename.
2477 return _windows_
.FileDialog_GetFilename(*args
, **kwargs
)
2479 def GetWildcard(*args
, **kwargs
):
2481 GetWildcard(self) -> String
2483 Returns the file dialog wildcard.
2485 return _windows_
.FileDialog_GetWildcard(*args
, **kwargs
)
2487 def GetStyle(*args
, **kwargs
):
2489 GetStyle(self) -> long
2491 Returns the dialog style.
2493 return _windows_
.FileDialog_GetStyle(*args
, **kwargs
)
2495 def GetFilterIndex(*args
, **kwargs
):
2497 GetFilterIndex(self) -> int
2499 Returns the index into the list of filters supplied, optionally, in
2500 the wildcard parameter. Before the dialog is shown, this is the index
2501 which will be used when the dialog is first displayed. After the
2502 dialog is shown, this is the index selected by the user.
2504 return _windows_
.FileDialog_GetFilterIndex(*args
, **kwargs
)
2506 def GetFilenames(*args
, **kwargs
):
2508 GetFilenames(self) -> PyObject
2510 Returns a list of filenames chosen in the dialog. This function
2511 should only be used with the dialogs which have wx.MULTIPLE style, use
2512 GetFilename for the others.
2514 return _windows_
.FileDialog_GetFilenames(*args
, **kwargs
)
2516 def GetPaths(*args
, **kwargs
):
2518 GetPaths(self) -> PyObject
2520 Fills the array paths with the full paths of the files chosen. This
2521 function should only be used with the dialogs which have wx.MULTIPLE
2522 style, use GetPath for the others.
2524 return _windows_
.FileDialog_GetPaths(*args
, **kwargs
)
2527 class FileDialogPtr(FileDialog
):
2528 def __init__(self
, this
):
2530 if not hasattr(self
,"thisown"): self
.thisown
= 0
2531 self
.__class
__ = FileDialog
2532 _windows_
.FileDialog_swigregister(FileDialogPtr
)
2534 CHOICEDLG_STYLE
= _windows_
.CHOICEDLG_STYLE
2535 class MultiChoiceDialog(Dialog
):
2536 """A simple dialog with a multi selection listbox."""
2538 return "<%s.%s; proxy of C++ wxMultiChoiceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2539 def __init__(self
, *args
, **kwargs
):
2541 __init__(Window parent, String message, String caption,
2542 List choices=[], long style=CHOICEDLG_STYLE,
2543 Point pos=DefaultPosition) -> MultiChoiceDialog
2545 Constructor. Use ShowModal method to show the dialog.
2547 newobj
= _windows_
.new_MultiChoiceDialog(*args
, **kwargs
)
2548 self
.this
= newobj
.this
2551 self
._setOORInfo
(self
)
2553 def SetSelections(*args
, **kwargs
):
2555 SetSelections(List selections)
2557 Specify the items in the list that should be selected, using a list of
2560 return _windows_
.MultiChoiceDialog_SetSelections(*args
, **kwargs
)
2562 def GetSelections(*args
, **kwargs
):
2564 GetSelections() -> [selections]
2566 Returns a list of integers representing the items that are selected.
2568 return _windows_
.MultiChoiceDialog_GetSelections(*args
, **kwargs
)
2571 class MultiChoiceDialogPtr(MultiChoiceDialog
):
2572 def __init__(self
, this
):
2574 if not hasattr(self
,"thisown"): self
.thisown
= 0
2575 self
.__class
__ = MultiChoiceDialog
2576 _windows_
.MultiChoiceDialog_swigregister(MultiChoiceDialogPtr
)
2578 class SingleChoiceDialog(Dialog
):
2579 """A simple dialog with a single selection listbox."""
2581 return "<%s.%s; proxy of C++ wxSingleChoiceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2582 def __init__(self
, *args
, **kwargs
):
2584 __init__(Window parent, String message, String caption,
2585 List choices=[], long style=CHOICEDLG_STYLE,
2586 Point pos=DefaultPosition) -> SingleChoiceDialog
2588 Constructor. Use ShowModal method to show the dialog.
2590 newobj
= _windows_
.new_SingleChoiceDialog(*args
, **kwargs
)
2591 self
.this
= newobj
.this
2594 self
._setOORInfo
(self
)
2596 def GetSelection(*args
, **kwargs
):
2598 GetSelection(self) -> int
2600 Get the index of teh currently selected item.
2602 return _windows_
.SingleChoiceDialog_GetSelection(*args
, **kwargs
)
2604 def GetStringSelection(*args
, **kwargs
):
2606 GetStringSelection(self) -> String
2608 Returns the string value of the currently selected item
2610 return _windows_
.SingleChoiceDialog_GetStringSelection(*args
, **kwargs
)
2612 def SetSelection(*args
, **kwargs
):
2614 SetSelection(self, int sel)
2616 Set the current selected item to sel
2618 return _windows_
.SingleChoiceDialog_SetSelection(*args
, **kwargs
)
2621 class SingleChoiceDialogPtr(SingleChoiceDialog
):
2622 def __init__(self
, this
):
2624 if not hasattr(self
,"thisown"): self
.thisown
= 0
2625 self
.__class
__ = SingleChoiceDialog
2626 _windows_
.SingleChoiceDialog_swigregister(SingleChoiceDialogPtr
)
2628 TextEntryDialogStyle
= _windows_
.TextEntryDialogStyle
2629 class TextEntryDialog(Dialog
):
2630 """A dialog with text control, [ok] and [cancel] buttons"""
2632 return "<%s.%s; proxy of C++ wxTextEntryDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2633 def __init__(self
, *args
, **kwargs
):
2635 __init__(self, Window parent, String message, String caption=GetTextFromUserPromptStr,
2636 String defaultValue=EmptyString,
2637 long style=TextEntryDialogStyle, Point pos=DefaultPosition) -> TextEntryDialog
2639 Constructor. Use ShowModal method to show the dialog.
2641 newobj
= _windows_
.new_TextEntryDialog(*args
, **kwargs
)
2642 self
.this
= newobj
.this
2645 self
._setOORInfo
(self
)
2647 def GetValue(*args
, **kwargs
):
2649 GetValue(self) -> String
2651 Returns the text that the user has entered if the user has pressed OK,
2652 or the original value if the user has pressed Cancel.
2654 return _windows_
.TextEntryDialog_GetValue(*args
, **kwargs
)
2656 def SetValue(*args
, **kwargs
):
2658 SetValue(self, String value)
2660 Sets the default text value.
2662 return _windows_
.TextEntryDialog_SetValue(*args
, **kwargs
)
2665 class TextEntryDialogPtr(TextEntryDialog
):
2666 def __init__(self
, this
):
2668 if not hasattr(self
,"thisown"): self
.thisown
= 0
2669 self
.__class
__ = TextEntryDialog
2670 _windows_
.TextEntryDialog_swigregister(TextEntryDialogPtr
)
2672 class PasswordEntryDialog(TextEntryDialog
):
2674 return "<%s.%s; proxy of C++ wxPasswordEntryDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2675 def __init__(self
, *args
, **kwargs
):
2677 __init__(self, Window parent, String message, String caption=GetPasswordFromUserPromptStr,
2678 String value=EmptyString,
2679 long style=TextEntryDialogStyle, Point pos=DefaultPosition) -> PasswordEntryDialog
2681 newobj
= _windows_
.new_PasswordEntryDialog(*args
, **kwargs
)
2682 self
.this
= newobj
.this
2686 class PasswordEntryDialogPtr(PasswordEntryDialog
):
2687 def __init__(self
, this
):
2689 if not hasattr(self
,"thisown"): self
.thisown
= 0
2690 self
.__class
__ = PasswordEntryDialog
2691 _windows_
.PasswordEntryDialog_swigregister(PasswordEntryDialogPtr
)
2692 GetPasswordFromUserPromptStr
= cvar
.GetPasswordFromUserPromptStr
2694 class FontData(_core
.Object
):
2696 This class holds a variety of information related to font dialogs and
2697 is used to transfer settings to and results from a `wx.FontDialog`.
2700 return "<%s.%s; proxy of C++ wxFontData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2701 def __init__(self
, *args
, **kwargs
):
2703 __init__(self) -> FontData
2705 This class holds a variety of information related to font dialogs and
2706 is used to transfer settings to and results from a `wx.FontDialog`.
2708 newobj
= _windows_
.new_FontData(*args
, **kwargs
)
2709 self
.this
= newobj
.this
2712 def __del__(self
, destroy
=_windows_
.delete_FontData
):
2715 if self
.thisown
: destroy(self
)
2718 def EnableEffects(*args
, **kwargs
):
2720 EnableEffects(self, bool enable)
2722 Enables or disables 'effects' under MS Windows only. This refers to
2723 the controls for manipulating colour, strikeout and underline
2724 properties. The default value is true.
2726 return _windows_
.FontData_EnableEffects(*args
, **kwargs
)
2728 def GetAllowSymbols(*args
, **kwargs
):
2730 GetAllowSymbols(self) -> bool
2732 Under MS Windows, returns a flag determining whether symbol fonts can
2733 be selected. Has no effect on other platforms. The default value is
2736 return _windows_
.FontData_GetAllowSymbols(*args
, **kwargs
)
2738 def GetColour(*args
, **kwargs
):
2740 GetColour(self) -> Colour
2742 Gets the colour associated with the font dialog. The default value is
2745 return _windows_
.FontData_GetColour(*args
, **kwargs
)
2747 def GetChosenFont(*args
, **kwargs
):
2749 GetChosenFont(self) -> Font
2751 Gets the font chosen by the user.
2753 return _windows_
.FontData_GetChosenFont(*args
, **kwargs
)
2755 def GetEnableEffects(*args
, **kwargs
):
2757 GetEnableEffects(self) -> bool
2759 Determines whether 'effects' are enabled under Windows.
2761 return _windows_
.FontData_GetEnableEffects(*args
, **kwargs
)
2763 def GetInitialFont(*args
, **kwargs
):
2765 GetInitialFont(self) -> Font
2767 Gets the font that will be initially used by the font dialog. This
2768 should have previously been set by the application.
2770 return _windows_
.FontData_GetInitialFont(*args
, **kwargs
)
2772 def GetShowHelp(*args
, **kwargs
):
2774 GetShowHelp(self) -> bool
2776 Returns true if the Help button will be shown (Windows only). The
2777 default value is false.
2779 return _windows_
.FontData_GetShowHelp(*args
, **kwargs
)
2781 def SetAllowSymbols(*args
, **kwargs
):
2783 SetAllowSymbols(self, bool allowSymbols)
2785 Under MS Windows, determines whether symbol fonts can be selected. Has
2786 no effect on other platforms. The default value is true.
2788 return _windows_
.FontData_SetAllowSymbols(*args
, **kwargs
)
2790 def SetChosenFont(*args
, **kwargs
):
2792 SetChosenFont(self, Font font)
2794 Sets the font that will be returned to the user (normally for internal
2797 return _windows_
.FontData_SetChosenFont(*args
, **kwargs
)
2799 def SetColour(*args
, **kwargs
):
2801 SetColour(self, Colour colour)
2803 Sets the colour that will be used for the font foreground colour. The
2804 default colour is black.
2806 return _windows_
.FontData_SetColour(*args
, **kwargs
)
2808 def SetInitialFont(*args
, **kwargs
):
2810 SetInitialFont(self, Font font)
2812 Sets the font that will be initially used by the font dialog.
2814 return _windows_
.FontData_SetInitialFont(*args
, **kwargs
)
2816 def SetRange(*args
, **kwargs
):
2818 SetRange(self, int min, int max)
2820 Sets the valid range for the font point size (Windows only). The
2821 default is 0, 0 (unrestricted range).
2823 return _windows_
.FontData_SetRange(*args
, **kwargs
)
2825 def SetShowHelp(*args
, **kwargs
):
2827 SetShowHelp(self, bool showHelp)
2829 Determines whether the Help button will be displayed in the font
2830 dialog (Windows only). The default value is false.
2832 return _windows_
.FontData_SetShowHelp(*args
, **kwargs
)
2835 class FontDataPtr(FontData
):
2836 def __init__(self
, this
):
2838 if not hasattr(self
,"thisown"): self
.thisown
= 0
2839 self
.__class
__ = FontData
2840 _windows_
.FontData_swigregister(FontDataPtr
)
2842 class FontDialog(Dialog
):
2844 wx.FontDialog allows the user to select a system font and its attributes.
2850 return "<%s.%s; proxy of C++ wxFontDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2851 def __init__(self
, *args
, **kwargs
):
2853 __init__(self, Window parent, FontData data) -> FontDialog
2855 Constructor. Pass a parent window and the `wx.FontData` object to be
2856 used to initialize the dialog controls. Call `ShowModal` to display
2857 the dialog. If ShowModal returns ``wx.ID_OK`` then you can fetch the
2858 results with via the `wx.FontData` returned by `GetFontData`.
2860 newobj
= _windows_
.new_FontDialog(*args
, **kwargs
)
2861 self
.this
= newobj
.this
2864 self
._setOORInfo
(self
)
2866 def GetFontData(*args
, **kwargs
):
2868 GetFontData(self) -> FontData
2870 Returns a reference to the internal `wx.FontData` used by the
2873 return _windows_
.FontDialog_GetFontData(*args
, **kwargs
)
2876 class FontDialogPtr(FontDialog
):
2877 def __init__(self
, this
):
2879 if not hasattr(self
,"thisown"): self
.thisown
= 0
2880 self
.__class
__ = FontDialog
2881 _windows_
.FontDialog_swigregister(FontDialogPtr
)
2883 class MessageDialog(Dialog
):
2885 This class provides a simple dialog that shows a single or multi-line
2886 message, with a choice of OK, Yes, No and/or Cancel buttons.
2889 return "<%s.%s; proxy of C++ wxMessageDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2890 def __init__(self
, *args
, **kwargs
):
2892 __init__(self, Window parent, String message, String caption=MessageBoxCaptionStr,
2893 long style=wxOK|wxCANCEL|wxCENTRE,
2894 Point pos=DefaultPosition) -> MessageDialog
2896 Constructor, use `ShowModal` to display the dialog.
2898 newobj
= _windows_
.new_MessageDialog(*args
, **kwargs
)
2899 self
.this
= newobj
.this
2902 self
._setOORInfo
(self
)
2905 class MessageDialogPtr(MessageDialog
):
2906 def __init__(self
, this
):
2908 if not hasattr(self
,"thisown"): self
.thisown
= 0
2909 self
.__class
__ = MessageDialog
2910 _windows_
.MessageDialog_swigregister(MessageDialogPtr
)
2912 class ProgressDialog(Frame
):
2914 A dialog that shows a short message and a progress bar. Optionally, it
2915 can display an ABORT button.
2918 return "<%s.%s; proxy of C++ wxProgressDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2919 def __init__(self
, *args
, **kwargs
):
2921 __init__(self, String title, String message, int maximum=100, Window parent=None,
2922 int style=wxPD_AUTO_HIDE|wxPD_APP_MODAL) -> ProgressDialog
2924 Constructor. Creates the dialog, displays it and disables user input
2925 for other windows, or, if wx.PD_APP_MODAL flag is not given, for its
2928 newobj
= _windows_
.new_ProgressDialog(*args
, **kwargs
)
2929 self
.this
= newobj
.this
2932 self
._setOORInfo
(self
)
2934 def Update(*args
, **kwargs
):
2936 Update(self, int value, String newmsg=EmptyString) -> bool
2938 Updates the dialog, setting the progress bar to the new value and, if
2939 given changes the message above it. The value given should be less
2940 than or equal to the maximum value given to the constructor and the
2941 dialog is closed if it is equal to the maximum. Returns true unless
2942 the Cancel button has been pressed.
2944 If false is returned, the application can either immediately destroy
2945 the dialog or ask the user for the confirmation and if the abort is
2946 not confirmed the dialog may be resumed with Resume function.
2948 return _windows_
.ProgressDialog_Update(*args
, **kwargs
)
2950 def Resume(*args
, **kwargs
):
2954 Can be used to continue with the dialog, after the user had chosen to
2957 return _windows_
.ProgressDialog_Resume(*args
, **kwargs
)
2960 class ProgressDialogPtr(ProgressDialog
):
2961 def __init__(self
, this
):
2963 if not hasattr(self
,"thisown"): self
.thisown
= 0
2964 self
.__class
__ = ProgressDialog
2965 _windows_
.ProgressDialog_swigregister(ProgressDialogPtr
)
2967 FR_DOWN
= _windows_
.FR_DOWN
2968 FR_WHOLEWORD
= _windows_
.FR_WHOLEWORD
2969 FR_MATCHCASE
= _windows_
.FR_MATCHCASE
2970 FR_REPLACEDIALOG
= _windows_
.FR_REPLACEDIALOG
2971 FR_NOUPDOWN
= _windows_
.FR_NOUPDOWN
2972 FR_NOMATCHCASE
= _windows_
.FR_NOMATCHCASE
2973 FR_NOWHOLEWORD
= _windows_
.FR_NOWHOLEWORD
2974 wxEVT_COMMAND_FIND
= _windows_
.wxEVT_COMMAND_FIND
2975 wxEVT_COMMAND_FIND_NEXT
= _windows_
.wxEVT_COMMAND_FIND_NEXT
2976 wxEVT_COMMAND_FIND_REPLACE
= _windows_
.wxEVT_COMMAND_FIND_REPLACE
2977 wxEVT_COMMAND_FIND_REPLACE_ALL
= _windows_
.wxEVT_COMMAND_FIND_REPLACE_ALL
2978 wxEVT_COMMAND_FIND_CLOSE
= _windows_
.wxEVT_COMMAND_FIND_CLOSE
2979 EVT_FIND
= wx
.PyEventBinder( wxEVT_COMMAND_FIND
, 1 )
2980 EVT_FIND_NEXT
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_NEXT
, 1 )
2981 EVT_FIND_REPLACE
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE
, 1 )
2982 EVT_FIND_REPLACE_ALL
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE_ALL
, 1 )
2983 EVT_FIND_CLOSE
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_CLOSE
, 1 )
2985 # For backwards compatibility. Should they be removed?
2986 EVT_COMMAND_FIND
= EVT_FIND
2987 EVT_COMMAND_FIND_NEXT
= EVT_FIND_NEXT
2988 EVT_COMMAND_FIND_REPLACE
= EVT_FIND_REPLACE
2989 EVT_COMMAND_FIND_REPLACE_ALL
= EVT_FIND_REPLACE_ALL
2990 EVT_COMMAND_FIND_CLOSE
= EVT_FIND_CLOSE
2992 class FindDialogEvent(_core
.CommandEvent
):
2993 """Events for the FindReplaceDialog"""
2995 return "<%s.%s; proxy of C++ wxFindDialogEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2996 def __init__(self
, *args
, **kwargs
):
2998 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0) -> FindDialogEvent
3000 Events for the FindReplaceDialog
3002 newobj
= _windows_
.new_FindDialogEvent(*args
, **kwargs
)
3003 self
.this
= newobj
.this
3006 def GetFlags(*args
, **kwargs
):
3008 GetFlags(self) -> int
3010 Get the currently selected flags: this is the combination of
3011 wx.FR_DOWN, wx.FR_WHOLEWORD and wx.FR_MATCHCASE flags.
3013 return _windows_
.FindDialogEvent_GetFlags(*args
, **kwargs
)
3015 def GetFindString(*args
, **kwargs
):
3017 GetFindString(self) -> String
3019 Return the string to find (never empty).
3021 return _windows_
.FindDialogEvent_GetFindString(*args
, **kwargs
)
3023 def GetReplaceString(*args
, **kwargs
):
3025 GetReplaceString(self) -> String
3027 Return the string to replace the search string with (only for replace
3028 and replace all events).
3030 return _windows_
.FindDialogEvent_GetReplaceString(*args
, **kwargs
)
3032 def GetDialog(*args
, **kwargs
):
3034 GetDialog(self) -> FindReplaceDialog
3036 Return the pointer to the dialog which generated this event.
3038 return _windows_
.FindDialogEvent_GetDialog(*args
, **kwargs
)
3040 def SetFlags(*args
, **kwargs
):
3041 """SetFlags(self, int flags)"""
3042 return _windows_
.FindDialogEvent_SetFlags(*args
, **kwargs
)
3044 def SetFindString(*args
, **kwargs
):
3045 """SetFindString(self, String str)"""
3046 return _windows_
.FindDialogEvent_SetFindString(*args
, **kwargs
)
3048 def SetReplaceString(*args
, **kwargs
):
3049 """SetReplaceString(self, String str)"""
3050 return _windows_
.FindDialogEvent_SetReplaceString(*args
, **kwargs
)
3053 class FindDialogEventPtr(FindDialogEvent
):
3054 def __init__(self
, this
):
3056 if not hasattr(self
,"thisown"): self
.thisown
= 0
3057 self
.__class
__ = FindDialogEvent
3058 _windows_
.FindDialogEvent_swigregister(FindDialogEventPtr
)
3060 class FindReplaceData(_core
.Object
):
3062 wx.FindReplaceData holds the data for wx.FindReplaceDialog. It is used
3063 to initialize the dialog with the default values and will keep the
3064 last values from the dialog when it is closed. It is also updated each
3065 time a `wx.FindDialogEvent` is generated so instead of using the
3066 `wx.FindDialogEvent` methods you can also directly query this object.
3068 Note that all SetXXX() methods may only be called before showing the
3069 dialog and calling them has no effect later.
3072 return "<%s.%s; proxy of C++ wxFindReplaceData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3073 def __init__(self
, *args
, **kwargs
):
3075 __init__(self, int flags=0) -> FindReplaceData
3077 Constuctor initializes the flags to default value (0).
3079 newobj
= _windows_
.new_FindReplaceData(*args
, **kwargs
)
3080 self
.this
= newobj
.this
3083 def __del__(self
, destroy
=_windows_
.delete_FindReplaceData
):
3086 if self
.thisown
: destroy(self
)
3089 def GetFindString(*args
, **kwargs
):
3091 GetFindString(self) -> String
3093 Get the string to find.
3095 return _windows_
.FindReplaceData_GetFindString(*args
, **kwargs
)
3097 def GetReplaceString(*args
, **kwargs
):
3099 GetReplaceString(self) -> String
3101 Get the replacement string.
3103 return _windows_
.FindReplaceData_GetReplaceString(*args
, **kwargs
)
3105 def GetFlags(*args
, **kwargs
):
3107 GetFlags(self) -> int
3109 Get the combination of flag values.
3111 return _windows_
.FindReplaceData_GetFlags(*args
, **kwargs
)
3113 def SetFlags(*args
, **kwargs
):
3115 SetFlags(self, int flags)
3117 Set the flags to use to initialize the controls of the dialog.
3119 return _windows_
.FindReplaceData_SetFlags(*args
, **kwargs
)
3121 def SetFindString(*args
, **kwargs
):
3123 SetFindString(self, String str)
3125 Set the string to find (used as initial value by the dialog).
3127 return _windows_
.FindReplaceData_SetFindString(*args
, **kwargs
)
3129 def SetReplaceString(*args
, **kwargs
):
3131 SetReplaceString(self, String str)
3133 Set the replacement string (used as initial value by the dialog).
3135 return _windows_
.FindReplaceData_SetReplaceString(*args
, **kwargs
)
3138 class FindReplaceDataPtr(FindReplaceData
):
3139 def __init__(self
, this
):
3141 if not hasattr(self
,"thisown"): self
.thisown
= 0
3142 self
.__class
__ = FindReplaceData
3143 _windows_
.FindReplaceData_swigregister(FindReplaceDataPtr
)
3145 class FindReplaceDialog(Dialog
):
3147 wx.FindReplaceDialog is a standard modeless dialog which is used to
3148 allow the user to search for some text (and possibly replace it with
3149 something else). The actual searching is supposed to be done in the
3150 owner window which is the parent of this dialog. Note that it means
3151 that unlike for the other standard dialogs this one must have a parent
3152 window. Also note that there is no way to use this dialog in a modal
3153 way; it is always, by design and implementation, modeless.
3156 return "<%s.%s; proxy of C++ wxFindReplaceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3157 def __init__(self
, *args
, **kwargs
):
3159 __init__(self, Window parent, FindReplaceData data, String title,
3160 int style=0) -> FindReplaceDialog
3162 Create a FindReplaceDialog. The parent and data parameters must be
3163 non-None. Use Show to display the dialog.
3165 newobj
= _windows_
.new_FindReplaceDialog(*args
, **kwargs
)
3166 self
.this
= newobj
.this
3169 self
._setOORInfo
(self
)
3171 def Create(*args
, **kwargs
):
3173 Create(self, Window parent, FindReplaceData data, String title,
3174 int style=0) -> bool
3176 Create the dialog, for 2-phase create.
3178 return _windows_
.FindReplaceDialog_Create(*args
, **kwargs
)
3180 def GetData(*args
, **kwargs
):
3182 GetData(self) -> FindReplaceData
3184 Get the FindReplaceData object used by this dialog.
3186 return _windows_
.FindReplaceDialog_GetData(*args
, **kwargs
)
3188 def SetData(*args
, **kwargs
):
3190 SetData(self, FindReplaceData data)
3192 Set the FindReplaceData object used by this dialog.
3194 return _windows_
.FindReplaceDialog_SetData(*args
, **kwargs
)
3197 class FindReplaceDialogPtr(FindReplaceDialog
):
3198 def __init__(self
, this
):
3200 if not hasattr(self
,"thisown"): self
.thisown
= 0
3201 self
.__class
__ = FindReplaceDialog
3202 _windows_
.FindReplaceDialog_swigregister(FindReplaceDialogPtr
)
3204 def PreFindReplaceDialog(*args
, **kwargs
):
3206 PreFindReplaceDialog() -> FindReplaceDialog
3208 Precreate a FindReplaceDialog for 2-phase creation
3210 val
= _windows_
.new_PreFindReplaceDialog(*args
, **kwargs
)
3214 #---------------------------------------------------------------------------
3216 IDM_WINDOWTILE
= _windows_
.IDM_WINDOWTILE
3217 IDM_WINDOWTILEHOR
= _windows_
.IDM_WINDOWTILEHOR
3218 IDM_WINDOWCASCADE
= _windows_
.IDM_WINDOWCASCADE
3219 IDM_WINDOWICONS
= _windows_
.IDM_WINDOWICONS
3220 IDM_WINDOWNEXT
= _windows_
.IDM_WINDOWNEXT
3221 IDM_WINDOWTILEVERT
= _windows_
.IDM_WINDOWTILEVERT
3222 FIRST_MDI_CHILD
= _windows_
.FIRST_MDI_CHILD
3223 LAST_MDI_CHILD
= _windows_
.LAST_MDI_CHILD
3224 class MDIParentFrame(Frame
):
3226 return "<%s.%s; proxy of C++ wxMDIParentFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3227 def __init__(self
, *args
, **kwargs
):
3229 __init__(self, Window parent, int id=-1, String title=EmptyString,
3230 Point pos=DefaultPosition, Size size=DefaultSize,
3231 long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
3232 String name=FrameNameStr) -> MDIParentFrame
3234 newobj
= _windows_
.new_MDIParentFrame(*args
, **kwargs
)
3235 self
.this
= newobj
.this
3238 self
._setOORInfo
(self
)
3240 def Create(*args
, **kwargs
):
3242 Create(self, Window parent, int id=-1, String title=EmptyString,
3243 Point pos=DefaultPosition, Size size=DefaultSize,
3244 long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
3245 String name=FrameNameStr) -> bool
3247 return _windows_
.MDIParentFrame_Create(*args
, **kwargs
)
3249 def ActivateNext(*args
, **kwargs
):
3250 """ActivateNext(self)"""
3251 return _windows_
.MDIParentFrame_ActivateNext(*args
, **kwargs
)
3253 def ActivatePrevious(*args
, **kwargs
):
3254 """ActivatePrevious(self)"""
3255 return _windows_
.MDIParentFrame_ActivatePrevious(*args
, **kwargs
)
3257 def ArrangeIcons(*args
, **kwargs
):
3258 """ArrangeIcons(self)"""
3259 return _windows_
.MDIParentFrame_ArrangeIcons(*args
, **kwargs
)
3261 def Cascade(*args
, **kwargs
):
3263 return _windows_
.MDIParentFrame_Cascade(*args
, **kwargs
)
3265 def GetActiveChild(*args
, **kwargs
):
3266 """GetActiveChild(self) -> MDIChildFrame"""
3267 return _windows_
.MDIParentFrame_GetActiveChild(*args
, **kwargs
)
3269 def GetClientWindow(*args
, **kwargs
):
3270 """GetClientWindow(self) -> MDIClientWindow"""
3271 return _windows_
.MDIParentFrame_GetClientWindow(*args
, **kwargs
)
3273 def GetToolBar(*args
, **kwargs
):
3274 """GetToolBar(self) -> Window"""
3275 return _windows_
.MDIParentFrame_GetToolBar(*args
, **kwargs
)
3277 def Tile(*args
, **kwargs
):
3279 return _windows_
.MDIParentFrame_Tile(*args
, **kwargs
)
3282 class MDIParentFramePtr(MDIParentFrame
):
3283 def __init__(self
, this
):
3285 if not hasattr(self
,"thisown"): self
.thisown
= 0
3286 self
.__class
__ = MDIParentFrame
3287 _windows_
.MDIParentFrame_swigregister(MDIParentFramePtr
)
3289 def PreMDIParentFrame(*args
, **kwargs
):
3290 """PreMDIParentFrame() -> MDIParentFrame"""
3291 val
= _windows_
.new_PreMDIParentFrame(*args
, **kwargs
)
3295 class MDIChildFrame(Frame
):
3297 return "<%s.%s; proxy of C++ wxMDIChildFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3298 def __init__(self
, *args
, **kwargs
):
3300 __init__(self, MDIParentFrame parent, int id=-1, String title=EmptyString,
3301 Point pos=DefaultPosition, Size size=DefaultSize,
3302 long style=DEFAULT_FRAME_STYLE,
3303 String name=FrameNameStr) -> MDIChildFrame
3305 newobj
= _windows_
.new_MDIChildFrame(*args
, **kwargs
)
3306 self
.this
= newobj
.this
3309 self
._setOORInfo
(self
)
3311 def Create(*args
, **kwargs
):
3313 Create(self, MDIParentFrame parent, int id=-1, String title=EmptyString,
3314 Point pos=DefaultPosition, Size size=DefaultSize,
3315 long style=DEFAULT_FRAME_STYLE,
3316 String name=FrameNameStr) -> bool
3318 return _windows_
.MDIChildFrame_Create(*args
, **kwargs
)
3320 def Activate(*args
, **kwargs
):
3321 """Activate(self)"""
3322 return _windows_
.MDIChildFrame_Activate(*args
, **kwargs
)
3324 def Maximize(*args
, **kwargs
):
3325 """Maximize(self, bool maximize=True)"""
3326 return _windows_
.MDIChildFrame_Maximize(*args
, **kwargs
)
3328 def Restore(*args
, **kwargs
):
3330 return _windows_
.MDIChildFrame_Restore(*args
, **kwargs
)
3333 class MDIChildFramePtr(MDIChildFrame
):
3334 def __init__(self
, this
):
3336 if not hasattr(self
,"thisown"): self
.thisown
= 0
3337 self
.__class
__ = MDIChildFrame
3338 _windows_
.MDIChildFrame_swigregister(MDIChildFramePtr
)
3340 def PreMDIChildFrame(*args
, **kwargs
):
3341 """PreMDIChildFrame() -> MDIChildFrame"""
3342 val
= _windows_
.new_PreMDIChildFrame(*args
, **kwargs
)
3346 class MDIClientWindow(_core
.Window
):
3348 return "<%s.%s; proxy of C++ wxMDIClientWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3349 def __init__(self
, *args
, **kwargs
):
3350 """__init__(self, MDIParentFrame parent, long style=0) -> MDIClientWindow"""
3351 newobj
= _windows_
.new_MDIClientWindow(*args
, **kwargs
)
3352 self
.this
= newobj
.this
3355 self
._setOORInfo
(self
)
3357 def Create(*args
, **kwargs
):
3358 """Create(self, MDIParentFrame parent, long style=0) -> bool"""
3359 return _windows_
.MDIClientWindow_Create(*args
, **kwargs
)
3362 class MDIClientWindowPtr(MDIClientWindow
):
3363 def __init__(self
, this
):
3365 if not hasattr(self
,"thisown"): self
.thisown
= 0
3366 self
.__class
__ = MDIClientWindow
3367 _windows_
.MDIClientWindow_swigregister(MDIClientWindowPtr
)
3369 def PreMDIClientWindow(*args
, **kwargs
):
3370 """PreMDIClientWindow() -> MDIClientWindow"""
3371 val
= _windows_
.new_PreMDIClientWindow(*args
, **kwargs
)
3375 #---------------------------------------------------------------------------
3377 class PyWindow(_core
.Window
):
3379 return "<%s.%s; proxy of C++ wxPyWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3380 def __init__(self
, *args
, **kwargs
):
3382 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3383 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyWindow
3385 newobj
= _windows_
.new_PyWindow(*args
, **kwargs
)
3386 self
.this
= newobj
.this
3389 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyWindow
)
3391 def _setCallbackInfo(*args
, **kwargs
):
3392 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3393 return _windows_
.PyWindow__setCallbackInfo(*args
, **kwargs
)
3395 def SetBestSize(*args
, **kwargs
):
3396 """SetBestSize(self, Size size)"""
3397 return _windows_
.PyWindow_SetBestSize(*args
, **kwargs
)
3399 def base_DoMoveWindow(*args
, **kwargs
):
3400 """base_DoMoveWindow(self, int x, int y, int width, int height)"""
3401 return _windows_
.PyWindow_base_DoMoveWindow(*args
, **kwargs
)
3403 def base_DoSetSize(*args
, **kwargs
):
3404 """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3405 return _windows_
.PyWindow_base_DoSetSize(*args
, **kwargs
)
3407 def base_DoSetClientSize(*args
, **kwargs
):
3408 """base_DoSetClientSize(self, int width, int height)"""
3409 return _windows_
.PyWindow_base_DoSetClientSize(*args
, **kwargs
)
3411 def base_DoSetVirtualSize(*args
, **kwargs
):
3412 """base_DoSetVirtualSize(self, int x, int y)"""
3413 return _windows_
.PyWindow_base_DoSetVirtualSize(*args
, **kwargs
)
3415 def base_DoGetSize(*args
, **kwargs
):
3416 """base_DoGetSize() -> (width, height)"""
3417 return _windows_
.PyWindow_base_DoGetSize(*args
, **kwargs
)
3419 def base_DoGetClientSize(*args
, **kwargs
):
3420 """base_DoGetClientSize() -> (width, height)"""
3421 return _windows_
.PyWindow_base_DoGetClientSize(*args
, **kwargs
)
3423 def base_DoGetPosition(*args
, **kwargs
):
3424 """base_DoGetPosition() -> (x,y)"""
3425 return _windows_
.PyWindow_base_DoGetPosition(*args
, **kwargs
)
3427 def base_DoGetVirtualSize(*args
, **kwargs
):
3428 """base_DoGetVirtualSize(self) -> Size"""
3429 return _windows_
.PyWindow_base_DoGetVirtualSize(*args
, **kwargs
)
3431 def base_DoGetBestSize(*args
, **kwargs
):
3432 """base_DoGetBestSize(self) -> Size"""
3433 return _windows_
.PyWindow_base_DoGetBestSize(*args
, **kwargs
)
3435 def base_InitDialog(*args
, **kwargs
):
3436 """base_InitDialog(self)"""
3437 return _windows_
.PyWindow_base_InitDialog(*args
, **kwargs
)
3439 def base_TransferDataToWindow(*args
, **kwargs
):
3440 """base_TransferDataToWindow(self) -> bool"""
3441 return _windows_
.PyWindow_base_TransferDataToWindow(*args
, **kwargs
)
3443 def base_TransferDataFromWindow(*args
, **kwargs
):
3444 """base_TransferDataFromWindow(self) -> bool"""
3445 return _windows_
.PyWindow_base_TransferDataFromWindow(*args
, **kwargs
)
3447 def base_Validate(*args
, **kwargs
):
3448 """base_Validate(self) -> bool"""
3449 return _windows_
.PyWindow_base_Validate(*args
, **kwargs
)
3451 def base_AcceptsFocus(*args
, **kwargs
):
3452 """base_AcceptsFocus(self) -> bool"""
3453 return _windows_
.PyWindow_base_AcceptsFocus(*args
, **kwargs
)
3455 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
3456 """base_AcceptsFocusFromKeyboard(self) -> bool"""
3457 return _windows_
.PyWindow_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3459 def base_GetMaxSize(*args
, **kwargs
):
3460 """base_GetMaxSize(self) -> Size"""
3461 return _windows_
.PyWindow_base_GetMaxSize(*args
, **kwargs
)
3463 def base_AddChild(*args
, **kwargs
):
3464 """base_AddChild(self, Window child)"""
3465 return _windows_
.PyWindow_base_AddChild(*args
, **kwargs
)
3467 def base_RemoveChild(*args
, **kwargs
):
3468 """base_RemoveChild(self, Window child)"""
3469 return _windows_
.PyWindow_base_RemoveChild(*args
, **kwargs
)
3471 def base_ShouldInheritColours(*args
, **kwargs
):
3472 """base_ShouldInheritColours(self) -> bool"""
3473 return _windows_
.PyWindow_base_ShouldInheritColours(*args
, **kwargs
)
3475 def base_ApplyParentThemeBackground(*args
, **kwargs
):
3476 """base_ApplyParentThemeBackground(self, Colour c)"""
3477 return _windows_
.PyWindow_base_ApplyParentThemeBackground(*args
, **kwargs
)
3479 def base_GetDefaultAttributes(*args
, **kwargs
):
3480 """base_GetDefaultAttributes(self) -> VisualAttributes"""
3481 return _windows_
.PyWindow_base_GetDefaultAttributes(*args
, **kwargs
)
3484 class PyWindowPtr(PyWindow
):
3485 def __init__(self
, this
):
3487 if not hasattr(self
,"thisown"): self
.thisown
= 0
3488 self
.__class
__ = PyWindow
3489 _windows_
.PyWindow_swigregister(PyWindowPtr
)
3491 def PrePyWindow(*args
, **kwargs
):
3492 """PrePyWindow() -> PyWindow"""
3493 val
= _windows_
.new_PrePyWindow(*args
, **kwargs
)
3497 class PyPanel(Panel
):
3499 return "<%s.%s; proxy of C++ wxPyPanel instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3500 def __init__(self
, *args
, **kwargs
):
3502 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3503 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyPanel
3505 newobj
= _windows_
.new_PyPanel(*args
, **kwargs
)
3506 self
.this
= newobj
.this
3509 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyPanel
)
3511 def _setCallbackInfo(*args
, **kwargs
):
3512 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3513 return _windows_
.PyPanel__setCallbackInfo(*args
, **kwargs
)
3515 def SetBestSize(*args
, **kwargs
):
3516 """SetBestSize(self, Size size)"""
3517 return _windows_
.PyPanel_SetBestSize(*args
, **kwargs
)
3519 def base_DoMoveWindow(*args
, **kwargs
):
3520 """base_DoMoveWindow(self, int x, int y, int width, int height)"""
3521 return _windows_
.PyPanel_base_DoMoveWindow(*args
, **kwargs
)
3523 def base_DoSetSize(*args
, **kwargs
):
3524 """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3525 return _windows_
.PyPanel_base_DoSetSize(*args
, **kwargs
)
3527 def base_DoSetClientSize(*args
, **kwargs
):
3528 """base_DoSetClientSize(self, int width, int height)"""
3529 return _windows_
.PyPanel_base_DoSetClientSize(*args
, **kwargs
)
3531 def base_DoSetVirtualSize(*args
, **kwargs
):
3532 """base_DoSetVirtualSize(self, int x, int y)"""
3533 return _windows_
.PyPanel_base_DoSetVirtualSize(*args
, **kwargs
)
3535 def base_DoGetSize(*args
, **kwargs
):
3536 """base_DoGetSize() -> (width, height)"""
3537 return _windows_
.PyPanel_base_DoGetSize(*args
, **kwargs
)
3539 def base_DoGetClientSize(*args
, **kwargs
):
3540 """base_DoGetClientSize() -> (width, height)"""
3541 return _windows_
.PyPanel_base_DoGetClientSize(*args
, **kwargs
)
3543 def base_DoGetPosition(*args
, **kwargs
):
3544 """base_DoGetPosition() -> (x,y)"""
3545 return _windows_
.PyPanel_base_DoGetPosition(*args
, **kwargs
)
3547 def base_DoGetVirtualSize(*args
, **kwargs
):
3548 """base_DoGetVirtualSize(self) -> Size"""
3549 return _windows_
.PyPanel_base_DoGetVirtualSize(*args
, **kwargs
)
3551 def base_DoGetBestSize(*args
, **kwargs
):
3552 """base_DoGetBestSize(self) -> Size"""
3553 return _windows_
.PyPanel_base_DoGetBestSize(*args
, **kwargs
)
3555 def base_InitDialog(*args
, **kwargs
):
3556 """base_InitDialog(self)"""
3557 return _windows_
.PyPanel_base_InitDialog(*args
, **kwargs
)
3559 def base_TransferDataToWindow(*args
, **kwargs
):
3560 """base_TransferDataToWindow(self) -> bool"""
3561 return _windows_
.PyPanel_base_TransferDataToWindow(*args
, **kwargs
)
3563 def base_TransferDataFromWindow(*args
, **kwargs
):
3564 """base_TransferDataFromWindow(self) -> bool"""
3565 return _windows_
.PyPanel_base_TransferDataFromWindow(*args
, **kwargs
)
3567 def base_Validate(*args
, **kwargs
):
3568 """base_Validate(self) -> bool"""
3569 return _windows_
.PyPanel_base_Validate(*args
, **kwargs
)
3571 def base_AcceptsFocus(*args
, **kwargs
):
3572 """base_AcceptsFocus(self) -> bool"""
3573 return _windows_
.PyPanel_base_AcceptsFocus(*args
, **kwargs
)
3575 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
3576 """base_AcceptsFocusFromKeyboard(self) -> bool"""
3577 return _windows_
.PyPanel_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3579 def base_GetMaxSize(*args
, **kwargs
):
3580 """base_GetMaxSize(self) -> Size"""
3581 return _windows_
.PyPanel_base_GetMaxSize(*args
, **kwargs
)
3583 def base_AddChild(*args
, **kwargs
):
3584 """base_AddChild(self, Window child)"""
3585 return _windows_
.PyPanel_base_AddChild(*args
, **kwargs
)
3587 def base_RemoveChild(*args
, **kwargs
):
3588 """base_RemoveChild(self, Window child)"""
3589 return _windows_
.PyPanel_base_RemoveChild(*args
, **kwargs
)
3591 def base_ShouldInheritColours(*args
, **kwargs
):
3592 """base_ShouldInheritColours(self) -> bool"""
3593 return _windows_
.PyPanel_base_ShouldInheritColours(*args
, **kwargs
)
3595 def base_ApplyParentThemeBackground(*args
, **kwargs
):
3596 """base_ApplyParentThemeBackground(self, Colour c)"""
3597 return _windows_
.PyPanel_base_ApplyParentThemeBackground(*args
, **kwargs
)
3599 def base_GetDefaultAttributes(*args
, **kwargs
):
3600 """base_GetDefaultAttributes(self) -> VisualAttributes"""
3601 return _windows_
.PyPanel_base_GetDefaultAttributes(*args
, **kwargs
)
3604 class PyPanelPtr(PyPanel
):
3605 def __init__(self
, this
):
3607 if not hasattr(self
,"thisown"): self
.thisown
= 0
3608 self
.__class
__ = PyPanel
3609 _windows_
.PyPanel_swigregister(PyPanelPtr
)
3611 def PrePyPanel(*args
, **kwargs
):
3612 """PrePyPanel() -> PyPanel"""
3613 val
= _windows_
.new_PrePyPanel(*args
, **kwargs
)
3617 class PyScrolledWindow(ScrolledWindow
):
3619 return "<%s.%s; proxy of C++ wxPyScrolledWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3620 def __init__(self
, *args
, **kwargs
):
3622 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3623 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyScrolledWindow
3625 newobj
= _windows_
.new_PyScrolledWindow(*args
, **kwargs
)
3626 self
.this
= newobj
.this
3629 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyPanel
)
3631 def _setCallbackInfo(*args
, **kwargs
):
3632 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3633 return _windows_
.PyScrolledWindow__setCallbackInfo(*args
, **kwargs
)
3635 def SetBestSize(*args
, **kwargs
):
3636 """SetBestSize(self, Size size)"""
3637 return _windows_
.PyScrolledWindow_SetBestSize(*args
, **kwargs
)
3639 def base_DoMoveWindow(*args
, **kwargs
):
3640 """base_DoMoveWindow(self, int x, int y, int width, int height)"""
3641 return _windows_
.PyScrolledWindow_base_DoMoveWindow(*args
, **kwargs
)
3643 def base_DoSetSize(*args
, **kwargs
):
3644 """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3645 return _windows_
.PyScrolledWindow_base_DoSetSize(*args
, **kwargs
)
3647 def base_DoSetClientSize(*args
, **kwargs
):
3648 """base_DoSetClientSize(self, int width, int height)"""
3649 return _windows_
.PyScrolledWindow_base_DoSetClientSize(*args
, **kwargs
)
3651 def base_DoSetVirtualSize(*args
, **kwargs
):
3652 """base_DoSetVirtualSize(self, int x, int y)"""
3653 return _windows_
.PyScrolledWindow_base_DoSetVirtualSize(*args
, **kwargs
)
3655 def base_DoGetSize(*args
, **kwargs
):
3656 """base_DoGetSize() -> (width, height)"""
3657 return _windows_
.PyScrolledWindow_base_DoGetSize(*args
, **kwargs
)
3659 def base_DoGetClientSize(*args
, **kwargs
):
3660 """base_DoGetClientSize() -> (width, height)"""
3661 return _windows_
.PyScrolledWindow_base_DoGetClientSize(*args
, **kwargs
)
3663 def base_DoGetPosition(*args
, **kwargs
):
3664 """base_DoGetPosition() -> (x,y)"""
3665 return _windows_
.PyScrolledWindow_base_DoGetPosition(*args
, **kwargs
)
3667 def base_DoGetVirtualSize(*args
, **kwargs
):
3668 """base_DoGetVirtualSize(self) -> Size"""
3669 return _windows_
.PyScrolledWindow_base_DoGetVirtualSize(*args
, **kwargs
)
3671 def base_DoGetBestSize(*args
, **kwargs
):
3672 """base_DoGetBestSize(self) -> Size"""
3673 return _windows_
.PyScrolledWindow_base_DoGetBestSize(*args
, **kwargs
)
3675 def base_InitDialog(*args
, **kwargs
):
3676 """base_InitDialog(self)"""
3677 return _windows_
.PyScrolledWindow_base_InitDialog(*args
, **kwargs
)
3679 def base_TransferDataToWindow(*args
, **kwargs
):
3680 """base_TransferDataToWindow(self) -> bool"""
3681 return _windows_
.PyScrolledWindow_base_TransferDataToWindow(*args
, **kwargs
)
3683 def base_TransferDataFromWindow(*args
, **kwargs
):
3684 """base_TransferDataFromWindow(self) -> bool"""
3685 return _windows_
.PyScrolledWindow_base_TransferDataFromWindow(*args
, **kwargs
)
3687 def base_Validate(*args
, **kwargs
):
3688 """base_Validate(self) -> bool"""
3689 return _windows_
.PyScrolledWindow_base_Validate(*args
, **kwargs
)
3691 def base_AcceptsFocus(*args
, **kwargs
):
3692 """base_AcceptsFocus(self) -> bool"""
3693 return _windows_
.PyScrolledWindow_base_AcceptsFocus(*args
, **kwargs
)
3695 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
3696 """base_AcceptsFocusFromKeyboard(self) -> bool"""
3697 return _windows_
.PyScrolledWindow_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3699 def base_GetMaxSize(*args
, **kwargs
):
3700 """base_GetMaxSize(self) -> Size"""
3701 return _windows_
.PyScrolledWindow_base_GetMaxSize(*args
, **kwargs
)
3703 def base_AddChild(*args
, **kwargs
):
3704 """base_AddChild(self, Window child)"""
3705 return _windows_
.PyScrolledWindow_base_AddChild(*args
, **kwargs
)
3707 def base_RemoveChild(*args
, **kwargs
):
3708 """base_RemoveChild(self, Window child)"""
3709 return _windows_
.PyScrolledWindow_base_RemoveChild(*args
, **kwargs
)
3711 def base_ShouldInheritColours(*args
, **kwargs
):
3712 """base_ShouldInheritColours(self) -> bool"""
3713 return _windows_
.PyScrolledWindow_base_ShouldInheritColours(*args
, **kwargs
)
3715 def base_ApplyParentThemeBackground(*args
, **kwargs
):
3716 """base_ApplyParentThemeBackground(self, Colour c)"""
3717 return _windows_
.PyScrolledWindow_base_ApplyParentThemeBackground(*args
, **kwargs
)
3719 def base_GetDefaultAttributes(*args
, **kwargs
):
3720 """base_GetDefaultAttributes(self) -> VisualAttributes"""
3721 return _windows_
.PyScrolledWindow_base_GetDefaultAttributes(*args
, **kwargs
)
3724 class PyScrolledWindowPtr(PyScrolledWindow
):
3725 def __init__(self
, this
):
3727 if not hasattr(self
,"thisown"): self
.thisown
= 0
3728 self
.__class
__ = PyScrolledWindow
3729 _windows_
.PyScrolledWindow_swigregister(PyScrolledWindowPtr
)
3731 def PrePyScrolledWindow(*args
, **kwargs
):
3732 """PrePyScrolledWindow() -> PyScrolledWindow"""
3733 val
= _windows_
.new_PrePyScrolledWindow(*args
, **kwargs
)
3737 #---------------------------------------------------------------------------
3739 PRINT_MODE_NONE
= _windows_
.PRINT_MODE_NONE
3740 PRINT_MODE_PREVIEW
= _windows_
.PRINT_MODE_PREVIEW
3741 PRINT_MODE_FILE
= _windows_
.PRINT_MODE_FILE
3742 PRINT_MODE_PRINTER
= _windows_
.PRINT_MODE_PRINTER
3743 PRINT_MODE_STREAM
= _windows_
.PRINT_MODE_STREAM
3744 PRINTBIN_DEFAULT
= _windows_
.PRINTBIN_DEFAULT
3745 PRINTBIN_ONLYONE
= _windows_
.PRINTBIN_ONLYONE
3746 PRINTBIN_LOWER
= _windows_
.PRINTBIN_LOWER
3747 PRINTBIN_MIDDLE
= _windows_
.PRINTBIN_MIDDLE
3748 PRINTBIN_MANUAL
= _windows_
.PRINTBIN_MANUAL
3749 PRINTBIN_ENVELOPE
= _windows_
.PRINTBIN_ENVELOPE
3750 PRINTBIN_ENVMANUAL
= _windows_
.PRINTBIN_ENVMANUAL
3751 PRINTBIN_AUTO
= _windows_
.PRINTBIN_AUTO
3752 PRINTBIN_TRACTOR
= _windows_
.PRINTBIN_TRACTOR
3753 PRINTBIN_SMALLFMT
= _windows_
.PRINTBIN_SMALLFMT
3754 PRINTBIN_LARGEFMT
= _windows_
.PRINTBIN_LARGEFMT
3755 PRINTBIN_LARGECAPACITY
= _windows_
.PRINTBIN_LARGECAPACITY
3756 PRINTBIN_CASSETTE
= _windows_
.PRINTBIN_CASSETTE
3757 PRINTBIN_FORMSOURCE
= _windows_
.PRINTBIN_FORMSOURCE
3758 PRINTBIN_USER
= _windows_
.PRINTBIN_USER
3759 class PrintData(_core
.Object
):
3761 return "<%s.%s; proxy of C++ wxPrintData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3762 def __init__(self
, *args
):
3764 __init__(self) -> PrintData
3765 __init__(self, PrintData data) -> PrintData
3767 newobj
= _windows_
.new_PrintData(*args
)
3768 self
.this
= newobj
.this
3771 def __del__(self
, destroy
=_windows_
.delete_PrintData
):
3774 if self
.thisown
: destroy(self
)
3777 def GetNoCopies(*args
, **kwargs
):
3778 """GetNoCopies(self) -> int"""
3779 return _windows_
.PrintData_GetNoCopies(*args
, **kwargs
)
3781 def GetCollate(*args
, **kwargs
):
3782 """GetCollate(self) -> bool"""
3783 return _windows_
.PrintData_GetCollate(*args
, **kwargs
)
3785 def GetOrientation(*args
, **kwargs
):
3786 """GetOrientation(self) -> int"""
3787 return _windows_
.PrintData_GetOrientation(*args
, **kwargs
)
3789 def Ok(*args
, **kwargs
):
3790 """Ok(self) -> bool"""
3791 return _windows_
.PrintData_Ok(*args
, **kwargs
)
3793 def GetPrinterName(*args
, **kwargs
):
3794 """GetPrinterName(self) -> String"""
3795 return _windows_
.PrintData_GetPrinterName(*args
, **kwargs
)
3797 def GetColour(*args
, **kwargs
):
3798 """GetColour(self) -> bool"""
3799 return _windows_
.PrintData_GetColour(*args
, **kwargs
)
3801 def GetDuplex(*args
, **kwargs
):
3802 """GetDuplex(self) -> int"""
3803 return _windows_
.PrintData_GetDuplex(*args
, **kwargs
)
3805 def GetPaperId(*args
, **kwargs
):
3806 """GetPaperId(self) -> int"""
3807 return _windows_
.PrintData_GetPaperId(*args
, **kwargs
)
3809 def GetPaperSize(*args
, **kwargs
):
3810 """GetPaperSize(self) -> Size"""
3811 return _windows_
.PrintData_GetPaperSize(*args
, **kwargs
)
3813 def GetQuality(*args
, **kwargs
):
3814 """GetQuality(self) -> int"""
3815 return _windows_
.PrintData_GetQuality(*args
, **kwargs
)
3817 def GetBin(*args
, **kwargs
):
3818 """GetBin(self) -> int"""
3819 return _windows_
.PrintData_GetBin(*args
, **kwargs
)
3821 def GetPrintMode(*args
, **kwargs
):
3822 """GetPrintMode(self) -> int"""
3823 return _windows_
.PrintData_GetPrintMode(*args
, **kwargs
)
3825 def SetNoCopies(*args
, **kwargs
):
3826 """SetNoCopies(self, int v)"""
3827 return _windows_
.PrintData_SetNoCopies(*args
, **kwargs
)
3829 def SetCollate(*args
, **kwargs
):
3830 """SetCollate(self, bool flag)"""
3831 return _windows_
.PrintData_SetCollate(*args
, **kwargs
)
3833 def SetOrientation(*args
, **kwargs
):
3834 """SetOrientation(self, int orient)"""
3835 return _windows_
.PrintData_SetOrientation(*args
, **kwargs
)
3837 def SetPrinterName(*args
, **kwargs
):
3838 """SetPrinterName(self, String name)"""
3839 return _windows_
.PrintData_SetPrinterName(*args
, **kwargs
)
3841 def SetColour(*args
, **kwargs
):
3842 """SetColour(self, bool colour)"""
3843 return _windows_
.PrintData_SetColour(*args
, **kwargs
)
3845 def SetDuplex(*args
, **kwargs
):
3846 """SetDuplex(self, int duplex)"""
3847 return _windows_
.PrintData_SetDuplex(*args
, **kwargs
)
3849 def SetPaperId(*args
, **kwargs
):
3850 """SetPaperId(self, int sizeId)"""
3851 return _windows_
.PrintData_SetPaperId(*args
, **kwargs
)
3853 def SetPaperSize(*args
, **kwargs
):
3854 """SetPaperSize(self, Size sz)"""
3855 return _windows_
.PrintData_SetPaperSize(*args
, **kwargs
)
3857 def SetQuality(*args
, **kwargs
):
3858 """SetQuality(self, int quality)"""
3859 return _windows_
.PrintData_SetQuality(*args
, **kwargs
)
3861 def SetBin(*args
, **kwargs
):
3862 """SetBin(self, int bin)"""
3863 return _windows_
.PrintData_SetBin(*args
, **kwargs
)
3865 def SetPrintMode(*args
, **kwargs
):
3866 """SetPrintMode(self, int printMode)"""
3867 return _windows_
.PrintData_SetPrintMode(*args
, **kwargs
)
3869 def GetFilename(*args
, **kwargs
):
3870 """GetFilename(self) -> String"""
3871 return _windows_
.PrintData_GetFilename(*args
, **kwargs
)
3873 def SetFilename(*args
, **kwargs
):
3874 """SetFilename(self, String filename)"""
3875 return _windows_
.PrintData_SetFilename(*args
, **kwargs
)
3877 def __nonzero__(self
): return self
.Ok()
3878 def GetPrinterCommand(*args
, **kwargs
):
3879 """GetPrinterCommand(self) -> String"""
3880 return _windows_
.PrintData_GetPrinterCommand(*args
, **kwargs
)
3882 def GetPrinterOptions(*args
, **kwargs
):
3883 """GetPrinterOptions(self) -> String"""
3884 return _windows_
.PrintData_GetPrinterOptions(*args
, **kwargs
)
3886 def GetPreviewCommand(*args
, **kwargs
):
3887 """GetPreviewCommand(self) -> String"""
3888 return _windows_
.PrintData_GetPreviewCommand(*args
, **kwargs
)
3890 def GetFontMetricPath(*args
, **kwargs
):
3891 """GetFontMetricPath(self) -> String"""
3892 return _windows_
.PrintData_GetFontMetricPath(*args
, **kwargs
)
3894 def GetPrinterScaleX(*args
, **kwargs
):
3895 """GetPrinterScaleX(self) -> double"""
3896 return _windows_
.PrintData_GetPrinterScaleX(*args
, **kwargs
)
3898 def GetPrinterScaleY(*args
, **kwargs
):
3899 """GetPrinterScaleY(self) -> double"""
3900 return _windows_
.PrintData_GetPrinterScaleY(*args
, **kwargs
)
3902 def GetPrinterTranslateX(*args
, **kwargs
):
3903 """GetPrinterTranslateX(self) -> long"""
3904 return _windows_
.PrintData_GetPrinterTranslateX(*args
, **kwargs
)
3906 def GetPrinterTranslateY(*args
, **kwargs
):
3907 """GetPrinterTranslateY(self) -> long"""
3908 return _windows_
.PrintData_GetPrinterTranslateY(*args
, **kwargs
)
3910 def SetPrinterCommand(*args
, **kwargs
):
3911 """SetPrinterCommand(self, String command)"""
3912 return _windows_
.PrintData_SetPrinterCommand(*args
, **kwargs
)
3914 def SetPrinterOptions(*args
, **kwargs
):
3915 """SetPrinterOptions(self, String options)"""
3916 return _windows_
.PrintData_SetPrinterOptions(*args
, **kwargs
)
3918 def SetPreviewCommand(*args
, **kwargs
):
3919 """SetPreviewCommand(self, String command)"""
3920 return _windows_
.PrintData_SetPreviewCommand(*args
, **kwargs
)
3922 def SetFontMetricPath(*args
, **kwargs
):
3923 """SetFontMetricPath(self, String path)"""
3924 return _windows_
.PrintData_SetFontMetricPath(*args
, **kwargs
)
3926 def SetPrinterScaleX(*args
, **kwargs
):
3927 """SetPrinterScaleX(self, double x)"""
3928 return _windows_
.PrintData_SetPrinterScaleX(*args
, **kwargs
)
3930 def SetPrinterScaleY(*args
, **kwargs
):
3931 """SetPrinterScaleY(self, double y)"""
3932 return _windows_
.PrintData_SetPrinterScaleY(*args
, **kwargs
)
3934 def SetPrinterScaling(*args
, **kwargs
):
3935 """SetPrinterScaling(self, double x, double y)"""
3936 return _windows_
.PrintData_SetPrinterScaling(*args
, **kwargs
)
3938 def SetPrinterTranslateX(*args
, **kwargs
):
3939 """SetPrinterTranslateX(self, long x)"""
3940 return _windows_
.PrintData_SetPrinterTranslateX(*args
, **kwargs
)
3942 def SetPrinterTranslateY(*args
, **kwargs
):
3943 """SetPrinterTranslateY(self, long y)"""
3944 return _windows_
.PrintData_SetPrinterTranslateY(*args
, **kwargs
)
3946 def SetPrinterTranslation(*args
, **kwargs
):
3947 """SetPrinterTranslation(self, long x, long y)"""
3948 return _windows_
.PrintData_SetPrinterTranslation(*args
, **kwargs
)
3951 class PrintDataPtr(PrintData
):
3952 def __init__(self
, this
):
3954 if not hasattr(self
,"thisown"): self
.thisown
= 0
3955 self
.__class
__ = PrintData
3956 _windows_
.PrintData_swigregister(PrintDataPtr
)
3957 PrintoutTitleStr
= cvar
.PrintoutTitleStr
3958 PreviewCanvasNameStr
= cvar
.PreviewCanvasNameStr
3960 class PageSetupDialogData(_core
.Object
):
3962 return "<%s.%s; proxy of C++ wxPageSetupDialogData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3963 def __init__(self
, *args
):
3965 __init__(self) -> PageSetupDialogData
3966 __init__(self, PageSetupDialogData data) -> PageSetupDialogData
3968 newobj
= _windows_
.new_PageSetupDialogData(*args
)
3969 self
.this
= newobj
.this
3972 def __del__(self
, destroy
=_windows_
.delete_PageSetupDialogData
):
3975 if self
.thisown
: destroy(self
)
3978 def EnableHelp(*args
, **kwargs
):
3979 """EnableHelp(self, bool flag)"""
3980 return _windows_
.PageSetupDialogData_EnableHelp(*args
, **kwargs
)
3982 def EnableMargins(*args
, **kwargs
):
3983 """EnableMargins(self, bool flag)"""
3984 return _windows_
.PageSetupDialogData_EnableMargins(*args
, **kwargs
)
3986 def EnableOrientation(*args
, **kwargs
):
3987 """EnableOrientation(self, bool flag)"""
3988 return _windows_
.PageSetupDialogData_EnableOrientation(*args
, **kwargs
)
3990 def EnablePaper(*args
, **kwargs
):
3991 """EnablePaper(self, bool flag)"""
3992 return _windows_
.PageSetupDialogData_EnablePaper(*args
, **kwargs
)
3994 def EnablePrinter(*args
, **kwargs
):
3995 """EnablePrinter(self, bool flag)"""
3996 return _windows_
.PageSetupDialogData_EnablePrinter(*args
, **kwargs
)
3998 def GetDefaultMinMargins(*args
, **kwargs
):
3999 """GetDefaultMinMargins(self) -> bool"""
4000 return _windows_
.PageSetupDialogData_GetDefaultMinMargins(*args
, **kwargs
)
4002 def GetEnableMargins(*args
, **kwargs
):
4003 """GetEnableMargins(self) -> bool"""
4004 return _windows_
.PageSetupDialogData_GetEnableMargins(*args
, **kwargs
)
4006 def GetEnableOrientation(*args
, **kwargs
):
4007 """GetEnableOrientation(self) -> bool"""
4008 return _windows_
.PageSetupDialogData_GetEnableOrientation(*args
, **kwargs
)
4010 def GetEnablePaper(*args
, **kwargs
):
4011 """GetEnablePaper(self) -> bool"""
4012 return _windows_
.PageSetupDialogData_GetEnablePaper(*args
, **kwargs
)
4014 def GetEnablePrinter(*args
, **kwargs
):
4015 """GetEnablePrinter(self) -> bool"""
4016 return _windows_
.PageSetupDialogData_GetEnablePrinter(*args
, **kwargs
)
4018 def GetEnableHelp(*args
, **kwargs
):
4019 """GetEnableHelp(self) -> bool"""
4020 return _windows_
.PageSetupDialogData_GetEnableHelp(*args
, **kwargs
)
4022 def GetDefaultInfo(*args
, **kwargs
):
4023 """GetDefaultInfo(self) -> bool"""
4024 return _windows_
.PageSetupDialogData_GetDefaultInfo(*args
, **kwargs
)
4026 def GetMarginTopLeft(*args
, **kwargs
):
4027 """GetMarginTopLeft(self) -> Point"""
4028 return _windows_
.PageSetupDialogData_GetMarginTopLeft(*args
, **kwargs
)
4030 def GetMarginBottomRight(*args
, **kwargs
):
4031 """GetMarginBottomRight(self) -> Point"""
4032 return _windows_
.PageSetupDialogData_GetMarginBottomRight(*args
, **kwargs
)
4034 def GetMinMarginTopLeft(*args
, **kwargs
):
4035 """GetMinMarginTopLeft(self) -> Point"""
4036 return _windows_
.PageSetupDialogData_GetMinMarginTopLeft(*args
, **kwargs
)
4038 def GetMinMarginBottomRight(*args
, **kwargs
):
4039 """GetMinMarginBottomRight(self) -> Point"""
4040 return _windows_
.PageSetupDialogData_GetMinMarginBottomRight(*args
, **kwargs
)
4042 def GetPaperId(*args
, **kwargs
):
4043 """GetPaperId(self) -> int"""
4044 return _windows_
.PageSetupDialogData_GetPaperId(*args
, **kwargs
)
4046 def GetPaperSize(*args
, **kwargs
):
4047 """GetPaperSize(self) -> Size"""
4048 return _windows_
.PageSetupDialogData_GetPaperSize(*args
, **kwargs
)
4050 def GetPrintData(*args
, **kwargs
):
4051 """GetPrintData(self) -> PrintData"""
4052 return _windows_
.PageSetupDialogData_GetPrintData(*args
, **kwargs
)
4054 def Ok(*args
, **kwargs
):
4055 """Ok(self) -> bool"""
4056 return _windows_
.PageSetupDialogData_Ok(*args
, **kwargs
)
4058 def SetDefaultInfo(*args
, **kwargs
):
4059 """SetDefaultInfo(self, bool flag)"""
4060 return _windows_
.PageSetupDialogData_SetDefaultInfo(*args
, **kwargs
)
4062 def SetDefaultMinMargins(*args
, **kwargs
):
4063 """SetDefaultMinMargins(self, bool flag)"""
4064 return _windows_
.PageSetupDialogData_SetDefaultMinMargins(*args
, **kwargs
)
4066 def SetMarginTopLeft(*args
, **kwargs
):
4067 """SetMarginTopLeft(self, Point pt)"""
4068 return _windows_
.PageSetupDialogData_SetMarginTopLeft(*args
, **kwargs
)
4070 def SetMarginBottomRight(*args
, **kwargs
):
4071 """SetMarginBottomRight(self, Point pt)"""
4072 return _windows_
.PageSetupDialogData_SetMarginBottomRight(*args
, **kwargs
)
4074 def SetMinMarginTopLeft(*args
, **kwargs
):
4075 """SetMinMarginTopLeft(self, Point pt)"""
4076 return _windows_
.PageSetupDialogData_SetMinMarginTopLeft(*args
, **kwargs
)
4078 def SetMinMarginBottomRight(*args
, **kwargs
):
4079 """SetMinMarginBottomRight(self, Point pt)"""
4080 return _windows_
.PageSetupDialogData_SetMinMarginBottomRight(*args
, **kwargs
)
4082 def SetPaperId(*args
, **kwargs
):
4083 """SetPaperId(self, int id)"""
4084 return _windows_
.PageSetupDialogData_SetPaperId(*args
, **kwargs
)
4086 def SetPaperSize(*args
, **kwargs
):
4087 """SetPaperSize(self, Size size)"""
4088 return _windows_
.PageSetupDialogData_SetPaperSize(*args
, **kwargs
)
4090 def SetPrintData(*args
, **kwargs
):
4091 """SetPrintData(self, PrintData printData)"""
4092 return _windows_
.PageSetupDialogData_SetPrintData(*args
, **kwargs
)
4094 def __nonzero__(self
): return self
.Ok()
4096 class PageSetupDialogDataPtr(PageSetupDialogData
):
4097 def __init__(self
, this
):
4099 if not hasattr(self
,"thisown"): self
.thisown
= 0
4100 self
.__class
__ = PageSetupDialogData
4101 _windows_
.PageSetupDialogData_swigregister(PageSetupDialogDataPtr
)
4103 class PageSetupDialog(_core
.Object
):
4105 return "<%s.%s; proxy of C++ wxPageSetupDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4106 def __init__(self
, *args
, **kwargs
):
4107 """__init__(self, Window parent, PageSetupDialogData data=None) -> PageSetupDialog"""
4108 newobj
= _windows_
.new_PageSetupDialog(*args
, **kwargs
)
4109 self
.this
= newobj
.this
4112 def GetPageSetupData(*args
, **kwargs
):
4113 """GetPageSetupData(self) -> PageSetupDialogData"""
4114 return _windows_
.PageSetupDialog_GetPageSetupData(*args
, **kwargs
)
4116 def GetPageSetupDialogData(*args
, **kwargs
):
4117 """GetPageSetupDialogData(self) -> PageSetupDialogData"""
4118 return _windows_
.PageSetupDialog_GetPageSetupDialogData(*args
, **kwargs
)
4120 def ShowModal(*args
, **kwargs
):
4121 """ShowModal(self) -> int"""
4122 return _windows_
.PageSetupDialog_ShowModal(*args
, **kwargs
)
4125 class PageSetupDialogPtr(PageSetupDialog
):
4126 def __init__(self
, this
):
4128 if not hasattr(self
,"thisown"): self
.thisown
= 0
4129 self
.__class
__ = PageSetupDialog
4130 _windows_
.PageSetupDialog_swigregister(PageSetupDialogPtr
)
4132 class PrintDialogData(_core
.Object
):
4134 return "<%s.%s; proxy of C++ wxPrintDialogData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4135 def __init__(self
, *args
):
4137 __init__(self) -> PrintDialogData
4138 __init__(self, PrintData printData) -> PrintDialogData
4140 newobj
= _windows_
.new_PrintDialogData(*args
)
4141 self
.this
= newobj
.this
4144 def __del__(self
, destroy
=_windows_
.delete_PrintDialogData
):
4147 if self
.thisown
: destroy(self
)
4150 def GetFromPage(*args
, **kwargs
):
4151 """GetFromPage(self) -> int"""
4152 return _windows_
.PrintDialogData_GetFromPage(*args
, **kwargs
)
4154 def GetToPage(*args
, **kwargs
):
4155 """GetToPage(self) -> int"""
4156 return _windows_
.PrintDialogData_GetToPage(*args
, **kwargs
)
4158 def GetMinPage(*args
, **kwargs
):
4159 """GetMinPage(self) -> int"""
4160 return _windows_
.PrintDialogData_GetMinPage(*args
, **kwargs
)
4162 def GetMaxPage(*args
, **kwargs
):
4163 """GetMaxPage(self) -> int"""
4164 return _windows_
.PrintDialogData_GetMaxPage(*args
, **kwargs
)
4166 def GetNoCopies(*args
, **kwargs
):
4167 """GetNoCopies(self) -> int"""
4168 return _windows_
.PrintDialogData_GetNoCopies(*args
, **kwargs
)
4170 def GetAllPages(*args
, **kwargs
):
4171 """GetAllPages(self) -> bool"""
4172 return _windows_
.PrintDialogData_GetAllPages(*args
, **kwargs
)
4174 def GetSelection(*args
, **kwargs
):
4175 """GetSelection(self) -> bool"""
4176 return _windows_
.PrintDialogData_GetSelection(*args
, **kwargs
)
4178 def GetCollate(*args
, **kwargs
):
4179 """GetCollate(self) -> bool"""
4180 return _windows_
.PrintDialogData_GetCollate(*args
, **kwargs
)
4182 def GetPrintToFile(*args
, **kwargs
):
4183 """GetPrintToFile(self) -> bool"""
4184 return _windows_
.PrintDialogData_GetPrintToFile(*args
, **kwargs
)
4186 def GetSetupDialog(*args
, **kwargs
):
4187 """GetSetupDialog(self) -> bool"""
4188 return _windows_
.PrintDialogData_GetSetupDialog(*args
, **kwargs
)
4190 def SetSetupDialog(*args
, **kwargs
):
4191 """SetSetupDialog(self, bool flag)"""
4192 return _windows_
.PrintDialogData_SetSetupDialog(*args
, **kwargs
)
4194 def SetFromPage(*args
, **kwargs
):
4195 """SetFromPage(self, int v)"""
4196 return _windows_
.PrintDialogData_SetFromPage(*args
, **kwargs
)
4198 def SetToPage(*args
, **kwargs
):
4199 """SetToPage(self, int v)"""
4200 return _windows_
.PrintDialogData_SetToPage(*args
, **kwargs
)
4202 def SetMinPage(*args
, **kwargs
):
4203 """SetMinPage(self, int v)"""
4204 return _windows_
.PrintDialogData_SetMinPage(*args
, **kwargs
)
4206 def SetMaxPage(*args
, **kwargs
):
4207 """SetMaxPage(self, int v)"""
4208 return _windows_
.PrintDialogData_SetMaxPage(*args
, **kwargs
)
4210 def SetNoCopies(*args
, **kwargs
):
4211 """SetNoCopies(self, int v)"""
4212 return _windows_
.PrintDialogData_SetNoCopies(*args
, **kwargs
)
4214 def SetAllPages(*args
, **kwargs
):
4215 """SetAllPages(self, bool flag)"""
4216 return _windows_
.PrintDialogData_SetAllPages(*args
, **kwargs
)
4218 def SetSelection(*args
, **kwargs
):
4219 """SetSelection(self, bool flag)"""
4220 return _windows_
.PrintDialogData_SetSelection(*args
, **kwargs
)
4222 def SetCollate(*args
, **kwargs
):
4223 """SetCollate(self, bool flag)"""
4224 return _windows_
.PrintDialogData_SetCollate(*args
, **kwargs
)
4226 def SetPrintToFile(*args
, **kwargs
):
4227 """SetPrintToFile(self, bool flag)"""
4228 return _windows_
.PrintDialogData_SetPrintToFile(*args
, **kwargs
)
4230 def EnablePrintToFile(*args
, **kwargs
):
4231 """EnablePrintToFile(self, bool flag)"""
4232 return _windows_
.PrintDialogData_EnablePrintToFile(*args
, **kwargs
)
4234 def EnableSelection(*args
, **kwargs
):
4235 """EnableSelection(self, bool flag)"""
4236 return _windows_
.PrintDialogData_EnableSelection(*args
, **kwargs
)
4238 def EnablePageNumbers(*args
, **kwargs
):
4239 """EnablePageNumbers(self, bool flag)"""
4240 return _windows_
.PrintDialogData_EnablePageNumbers(*args
, **kwargs
)
4242 def EnableHelp(*args
, **kwargs
):
4243 """EnableHelp(self, bool flag)"""
4244 return _windows_
.PrintDialogData_EnableHelp(*args
, **kwargs
)
4246 def GetEnablePrintToFile(*args
, **kwargs
):
4247 """GetEnablePrintToFile(self) -> bool"""
4248 return _windows_
.PrintDialogData_GetEnablePrintToFile(*args
, **kwargs
)
4250 def GetEnableSelection(*args
, **kwargs
):
4251 """GetEnableSelection(self) -> bool"""
4252 return _windows_
.PrintDialogData_GetEnableSelection(*args
, **kwargs
)
4254 def GetEnablePageNumbers(*args
, **kwargs
):
4255 """GetEnablePageNumbers(self) -> bool"""
4256 return _windows_
.PrintDialogData_GetEnablePageNumbers(*args
, **kwargs
)
4258 def GetEnableHelp(*args
, **kwargs
):
4259 """GetEnableHelp(self) -> bool"""
4260 return _windows_
.PrintDialogData_GetEnableHelp(*args
, **kwargs
)
4262 def Ok(*args
, **kwargs
):
4263 """Ok(self) -> bool"""
4264 return _windows_
.PrintDialogData_Ok(*args
, **kwargs
)
4266 def GetPrintData(*args
, **kwargs
):
4267 """GetPrintData(self) -> PrintData"""
4268 return _windows_
.PrintDialogData_GetPrintData(*args
, **kwargs
)
4270 def SetPrintData(*args
, **kwargs
):
4271 """SetPrintData(self, PrintData printData)"""
4272 return _windows_
.PrintDialogData_SetPrintData(*args
, **kwargs
)
4274 def __nonzero__(self
): return self
.Ok()
4276 class PrintDialogDataPtr(PrintDialogData
):
4277 def __init__(self
, this
):
4279 if not hasattr(self
,"thisown"): self
.thisown
= 0
4280 self
.__class
__ = PrintDialogData
4281 _windows_
.PrintDialogData_swigregister(PrintDialogDataPtr
)
4283 class PrintDialog(_core
.Object
):
4285 return "<%s.%s; proxy of C++ wxPrintDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4286 def __init__(self
, *args
, **kwargs
):
4287 """__init__(self, Window parent, PrintDialogData data=None) -> PrintDialog"""
4288 newobj
= _windows_
.new_PrintDialog(*args
, **kwargs
)
4289 self
.this
= newobj
.this
4292 def ShowModal(*args
, **kwargs
):
4293 """ShowModal(self) -> int"""
4294 return _windows_
.PrintDialog_ShowModal(*args
, **kwargs
)
4296 def GetPrintDialogData(*args
, **kwargs
):
4297 """GetPrintDialogData(self) -> PrintDialogData"""
4298 return _windows_
.PrintDialog_GetPrintDialogData(*args
, **kwargs
)
4300 def GetPrintData(*args
, **kwargs
):
4301 """GetPrintData(self) -> PrintData"""
4302 return _windows_
.PrintDialog_GetPrintData(*args
, **kwargs
)
4304 def GetPrintDC(*args
, **kwargs
):
4305 """GetPrintDC(self) -> DC"""
4306 return _windows_
.PrintDialog_GetPrintDC(*args
, **kwargs
)
4309 class PrintDialogPtr(PrintDialog
):
4310 def __init__(self
, this
):
4312 if not hasattr(self
,"thisown"): self
.thisown
= 0
4313 self
.__class
__ = PrintDialog
4314 _windows_
.PrintDialog_swigregister(PrintDialogPtr
)
4316 PRINTER_NO_ERROR
= _windows_
.PRINTER_NO_ERROR
4317 PRINTER_CANCELLED
= _windows_
.PRINTER_CANCELLED
4318 PRINTER_ERROR
= _windows_
.PRINTER_ERROR
4319 class Printer(_core
.Object
):
4321 return "<%s.%s; proxy of C++ wxPrinter instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4322 def __init__(self
, *args
, **kwargs
):
4323 """__init__(self, PrintDialogData data=None) -> Printer"""
4324 newobj
= _windows_
.new_Printer(*args
, **kwargs
)
4325 self
.this
= newobj
.this
4328 def __del__(self
, destroy
=_windows_
.delete_Printer
):
4331 if self
.thisown
: destroy(self
)
4334 def CreateAbortWindow(*args
, **kwargs
):
4335 """CreateAbortWindow(self, Window parent, Printout printout) -> Window"""
4336 return _windows_
.Printer_CreateAbortWindow(*args
, **kwargs
)
4338 def ReportError(*args
, **kwargs
):
4339 """ReportError(self, Window parent, Printout printout, String message)"""
4340 return _windows_
.Printer_ReportError(*args
, **kwargs
)
4342 def Setup(*args
, **kwargs
):
4343 """Setup(self, Window parent) -> bool"""
4344 return _windows_
.Printer_Setup(*args
, **kwargs
)
4346 def Print(*args
, **kwargs
):
4347 """Print(self, Window parent, Printout printout, bool prompt=True) -> bool"""
4348 return _windows_
.Printer_Print(*args
, **kwargs
)
4350 def PrintDialog(*args
, **kwargs
):
4351 """PrintDialog(self, Window parent) -> DC"""
4352 return _windows_
.Printer_PrintDialog(*args
, **kwargs
)
4354 def GetPrintDialogData(*args
, **kwargs
):
4355 """GetPrintDialogData(self) -> PrintDialogData"""
4356 return _windows_
.Printer_GetPrintDialogData(*args
, **kwargs
)
4358 def GetAbort(*args
, **kwargs
):
4359 """GetAbort(self) -> bool"""
4360 return _windows_
.Printer_GetAbort(*args
, **kwargs
)
4362 def GetLastError(*args
, **kwargs
):
4363 """GetLastError() -> int"""
4364 return _windows_
.Printer_GetLastError(*args
, **kwargs
)
4366 GetLastError
= staticmethod(GetLastError
)
4368 class PrinterPtr(Printer
):
4369 def __init__(self
, this
):
4371 if not hasattr(self
,"thisown"): self
.thisown
= 0
4372 self
.__class
__ = Printer
4373 _windows_
.Printer_swigregister(PrinterPtr
)
4375 def Printer_GetLastError(*args
, **kwargs
):
4376 """Printer_GetLastError() -> int"""
4377 return _windows_
.Printer_GetLastError(*args
, **kwargs
)
4379 class Printout(_core
.Object
):
4381 return "<%s.%s; proxy of C++ wxPyPrintout instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4382 def __init__(self
, *args
, **kwargs
):
4383 """__init__(self, String title=PrintoutTitleStr) -> Printout"""
4384 newobj
= _windows_
.new_Printout(*args
, **kwargs
)
4385 self
.this
= newobj
.this
4388 self
._setCallbackInfo
(self
, Printout
)
4390 def _setCallbackInfo(*args
, **kwargs
):
4391 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4392 return _windows_
.Printout__setCallbackInfo(*args
, **kwargs
)
4394 def GetTitle(*args
, **kwargs
):
4395 """GetTitle(self) -> String"""
4396 return _windows_
.Printout_GetTitle(*args
, **kwargs
)
4398 def GetDC(*args
, **kwargs
):
4399 """GetDC(self) -> DC"""
4400 return _windows_
.Printout_GetDC(*args
, **kwargs
)
4402 def SetDC(*args
, **kwargs
):
4403 """SetDC(self, DC dc)"""
4404 return _windows_
.Printout_SetDC(*args
, **kwargs
)
4406 def SetPageSizePixels(*args
, **kwargs
):
4407 """SetPageSizePixels(self, int w, int h)"""
4408 return _windows_
.Printout_SetPageSizePixels(*args
, **kwargs
)
4410 def GetPageSizePixels(*args
, **kwargs
):
4411 """GetPageSizePixels() -> (w, h)"""
4412 return _windows_
.Printout_GetPageSizePixels(*args
, **kwargs
)
4414 def SetPageSizeMM(*args
, **kwargs
):
4415 """SetPageSizeMM(self, int w, int h)"""
4416 return _windows_
.Printout_SetPageSizeMM(*args
, **kwargs
)
4418 def GetPageSizeMM(*args
, **kwargs
):
4419 """GetPageSizeMM() -> (w, h)"""
4420 return _windows_
.Printout_GetPageSizeMM(*args
, **kwargs
)
4422 def SetPPIScreen(*args
, **kwargs
):
4423 """SetPPIScreen(self, int x, int y)"""
4424 return _windows_
.Printout_SetPPIScreen(*args
, **kwargs
)
4426 def GetPPIScreen(*args
, **kwargs
):
4427 """GetPPIScreen() -> (x,y)"""
4428 return _windows_
.Printout_GetPPIScreen(*args
, **kwargs
)
4430 def SetPPIPrinter(*args
, **kwargs
):
4431 """SetPPIPrinter(self, int x, int y)"""
4432 return _windows_
.Printout_SetPPIPrinter(*args
, **kwargs
)
4434 def GetPPIPrinter(*args
, **kwargs
):
4435 """GetPPIPrinter() -> (x,y)"""
4436 return _windows_
.Printout_GetPPIPrinter(*args
, **kwargs
)
4438 def IsPreview(*args
, **kwargs
):
4439 """IsPreview(self) -> bool"""
4440 return _windows_
.Printout_IsPreview(*args
, **kwargs
)
4442 def SetIsPreview(*args
, **kwargs
):
4443 """SetIsPreview(self, bool p)"""
4444 return _windows_
.Printout_SetIsPreview(*args
, **kwargs
)
4446 def base_OnBeginDocument(*args
, **kwargs
):
4447 """base_OnBeginDocument(self, int startPage, int endPage) -> bool"""
4448 return _windows_
.Printout_base_OnBeginDocument(*args
, **kwargs
)
4450 def base_OnEndDocument(*args
, **kwargs
):
4451 """base_OnEndDocument(self)"""
4452 return _windows_
.Printout_base_OnEndDocument(*args
, **kwargs
)
4454 def base_OnBeginPrinting(*args
, **kwargs
):
4455 """base_OnBeginPrinting(self)"""
4456 return _windows_
.Printout_base_OnBeginPrinting(*args
, **kwargs
)
4458 def base_OnEndPrinting(*args
, **kwargs
):
4459 """base_OnEndPrinting(self)"""
4460 return _windows_
.Printout_base_OnEndPrinting(*args
, **kwargs
)
4462 def base_OnPreparePrinting(*args
, **kwargs
):
4463 """base_OnPreparePrinting(self)"""
4464 return _windows_
.Printout_base_OnPreparePrinting(*args
, **kwargs
)
4466 def base_HasPage(*args
, **kwargs
):
4467 """base_HasPage(self, int page) -> bool"""
4468 return _windows_
.Printout_base_HasPage(*args
, **kwargs
)
4470 def base_GetPageInfo(*args
, **kwargs
):
4471 """base_GetPageInfo() -> (minPage, maxPage, pageFrom, pageTo)"""
4472 return _windows_
.Printout_base_GetPageInfo(*args
, **kwargs
)
4475 class PrintoutPtr(Printout
):
4476 def __init__(self
, this
):
4478 if not hasattr(self
,"thisown"): self
.thisown
= 0
4479 self
.__class
__ = Printout
4480 _windows_
.Printout_swigregister(PrintoutPtr
)
4482 class PreviewCanvas(ScrolledWindow
):
4484 return "<%s.%s; proxy of C++ wxPreviewCanvas instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4485 def __init__(self
, *args
, **kwargs
):
4487 __init__(self, PrintPreview preview, Window parent, Point pos=DefaultPosition,
4488 Size size=DefaultSize, long style=0,
4489 String name=PreviewCanvasNameStr) -> PreviewCanvas
4491 newobj
= _windows_
.new_PreviewCanvas(*args
, **kwargs
)
4492 self
.this
= newobj
.this
4495 self
._setOORInfo
(self
)
4498 class PreviewCanvasPtr(PreviewCanvas
):
4499 def __init__(self
, this
):
4501 if not hasattr(self
,"thisown"): self
.thisown
= 0
4502 self
.__class
__ = PreviewCanvas
4503 _windows_
.PreviewCanvas_swigregister(PreviewCanvasPtr
)
4505 class PreviewFrame(Frame
):
4507 return "<%s.%s; proxy of C++ wxPreviewFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4508 def __init__(self
, *args
, **kwargs
):
4510 __init__(self, PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4511 Size size=DefaultSize,
4512 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PreviewFrame
4514 newobj
= _windows_
.new_PreviewFrame(*args
, **kwargs
)
4515 self
.this
= newobj
.this
4518 self
._setOORInfo
(self
)
4520 def Initialize(*args
, **kwargs
):
4521 """Initialize(self)"""
4522 return _windows_
.PreviewFrame_Initialize(*args
, **kwargs
)
4524 def CreateControlBar(*args
, **kwargs
):
4525 """CreateControlBar(self)"""
4526 return _windows_
.PreviewFrame_CreateControlBar(*args
, **kwargs
)
4528 def CreateCanvas(*args
, **kwargs
):
4529 """CreateCanvas(self)"""
4530 return _windows_
.PreviewFrame_CreateCanvas(*args
, **kwargs
)
4532 def GetControlBar(*args
, **kwargs
):
4533 """GetControlBar(self) -> PreviewControlBar"""
4534 return _windows_
.PreviewFrame_GetControlBar(*args
, **kwargs
)
4537 class PreviewFramePtr(PreviewFrame
):
4538 def __init__(self
, this
):
4540 if not hasattr(self
,"thisown"): self
.thisown
= 0
4541 self
.__class
__ = PreviewFrame
4542 _windows_
.PreviewFrame_swigregister(PreviewFramePtr
)
4544 PREVIEW_PRINT
= _windows_
.PREVIEW_PRINT
4545 PREVIEW_PREVIOUS
= _windows_
.PREVIEW_PREVIOUS
4546 PREVIEW_NEXT
= _windows_
.PREVIEW_NEXT
4547 PREVIEW_ZOOM
= _windows_
.PREVIEW_ZOOM
4548 PREVIEW_FIRST
= _windows_
.PREVIEW_FIRST
4549 PREVIEW_LAST
= _windows_
.PREVIEW_LAST
4550 PREVIEW_GOTO
= _windows_
.PREVIEW_GOTO
4551 PREVIEW_DEFAULT
= _windows_
.PREVIEW_DEFAULT
4552 ID_PREVIEW_CLOSE
= _windows_
.ID_PREVIEW_CLOSE
4553 ID_PREVIEW_NEXT
= _windows_
.ID_PREVIEW_NEXT
4554 ID_PREVIEW_PREVIOUS
= _windows_
.ID_PREVIEW_PREVIOUS
4555 ID_PREVIEW_PRINT
= _windows_
.ID_PREVIEW_PRINT
4556 ID_PREVIEW_ZOOM
= _windows_
.ID_PREVIEW_ZOOM
4557 ID_PREVIEW_FIRST
= _windows_
.ID_PREVIEW_FIRST
4558 ID_PREVIEW_LAST
= _windows_
.ID_PREVIEW_LAST
4559 ID_PREVIEW_GOTO
= _windows_
.ID_PREVIEW_GOTO
4560 class PreviewControlBar(Panel
):
4562 return "<%s.%s; proxy of C++ wxPreviewControlBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4563 def __init__(self
, *args
, **kwargs
):
4565 __init__(self, PrintPreview preview, long buttons, Window parent,
4566 Point pos=DefaultPosition, Size size=DefaultSize,
4567 long style=TAB_TRAVERSAL, String name=PanelNameStr) -> PreviewControlBar
4569 newobj
= _windows_
.new_PreviewControlBar(*args
, **kwargs
)
4570 self
.this
= newobj
.this
4573 self
._setOORInfo
(self
)
4575 def GetZoomControl(*args
, **kwargs
):
4576 """GetZoomControl(self) -> int"""
4577 return _windows_
.PreviewControlBar_GetZoomControl(*args
, **kwargs
)
4579 def SetZoomControl(*args
, **kwargs
):
4580 """SetZoomControl(self, int zoom)"""
4581 return _windows_
.PreviewControlBar_SetZoomControl(*args
, **kwargs
)
4583 def GetPrintPreview(*args
, **kwargs
):
4584 """GetPrintPreview(self) -> PrintPreview"""
4585 return _windows_
.PreviewControlBar_GetPrintPreview(*args
, **kwargs
)
4587 def OnNext(*args
, **kwargs
):
4589 return _windows_
.PreviewControlBar_OnNext(*args
, **kwargs
)
4591 def OnPrevious(*args
, **kwargs
):
4592 """OnPrevious(self)"""
4593 return _windows_
.PreviewControlBar_OnPrevious(*args
, **kwargs
)
4595 def OnFirst(*args
, **kwargs
):
4597 return _windows_
.PreviewControlBar_OnFirst(*args
, **kwargs
)
4599 def OnLast(*args
, **kwargs
):
4601 return _windows_
.PreviewControlBar_OnLast(*args
, **kwargs
)
4603 def OnGoto(*args
, **kwargs
):
4605 return _windows_
.PreviewControlBar_OnGoto(*args
, **kwargs
)
4608 class PreviewControlBarPtr(PreviewControlBar
):
4609 def __init__(self
, this
):
4611 if not hasattr(self
,"thisown"): self
.thisown
= 0
4612 self
.__class
__ = PreviewControlBar
4613 _windows_
.PreviewControlBar_swigregister(PreviewControlBarPtr
)
4615 class PrintPreview(_core
.Object
):
4617 return "<%s.%s; proxy of C++ wxPrintPreview instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4618 def __init__(self
, *args
):
4620 __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PrintPreview
4621 __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PrintPreview
4623 newobj
= _windows_
.new_PrintPreview(*args
)
4624 self
.this
= newobj
.this
4627 def SetCurrentPage(*args
, **kwargs
):
4628 """SetCurrentPage(self, int pageNum) -> bool"""
4629 return _windows_
.PrintPreview_SetCurrentPage(*args
, **kwargs
)
4631 def GetCurrentPage(*args
, **kwargs
):
4632 """GetCurrentPage(self) -> int"""
4633 return _windows_
.PrintPreview_GetCurrentPage(*args
, **kwargs
)
4635 def SetPrintout(*args
, **kwargs
):
4636 """SetPrintout(self, Printout printout)"""
4637 return _windows_
.PrintPreview_SetPrintout(*args
, **kwargs
)
4639 def GetPrintout(*args
, **kwargs
):
4640 """GetPrintout(self) -> Printout"""
4641 return _windows_
.PrintPreview_GetPrintout(*args
, **kwargs
)
4643 def GetPrintoutForPrinting(*args
, **kwargs
):
4644 """GetPrintoutForPrinting(self) -> Printout"""
4645 return _windows_
.PrintPreview_GetPrintoutForPrinting(*args
, **kwargs
)
4647 def SetFrame(*args
, **kwargs
):
4648 """SetFrame(self, Frame frame)"""
4649 return _windows_
.PrintPreview_SetFrame(*args
, **kwargs
)
4651 def SetCanvas(*args
, **kwargs
):
4652 """SetCanvas(self, PreviewCanvas canvas)"""
4653 return _windows_
.PrintPreview_SetCanvas(*args
, **kwargs
)
4655 def GetFrame(*args
, **kwargs
):
4656 """GetFrame(self) -> Frame"""
4657 return _windows_
.PrintPreview_GetFrame(*args
, **kwargs
)
4659 def GetCanvas(*args
, **kwargs
):
4660 """GetCanvas(self) -> PreviewCanvas"""
4661 return _windows_
.PrintPreview_GetCanvas(*args
, **kwargs
)
4663 def PaintPage(*args
, **kwargs
):
4664 """PaintPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4665 return _windows_
.PrintPreview_PaintPage(*args
, **kwargs
)
4667 def DrawBlankPage(*args
, **kwargs
):
4668 """DrawBlankPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4669 return _windows_
.PrintPreview_DrawBlankPage(*args
, **kwargs
)
4671 def RenderPage(*args
, **kwargs
):
4672 """RenderPage(self, int pageNum) -> bool"""
4673 return _windows_
.PrintPreview_RenderPage(*args
, **kwargs
)
4675 def AdjustScrollbars(*args
, **kwargs
):
4676 """AdjustScrollbars(self, PreviewCanvas canvas)"""
4677 return _windows_
.PrintPreview_AdjustScrollbars(*args
, **kwargs
)
4679 def GetPrintDialogData(*args
, **kwargs
):
4680 """GetPrintDialogData(self) -> PrintDialogData"""
4681 return _windows_
.PrintPreview_GetPrintDialogData(*args
, **kwargs
)
4683 def SetZoom(*args
, **kwargs
):
4684 """SetZoom(self, int percent)"""
4685 return _windows_
.PrintPreview_SetZoom(*args
, **kwargs
)
4687 def GetZoom(*args
, **kwargs
):
4688 """GetZoom(self) -> int"""
4689 return _windows_
.PrintPreview_GetZoom(*args
, **kwargs
)
4691 def GetMaxPage(*args
, **kwargs
):
4692 """GetMaxPage(self) -> int"""
4693 return _windows_
.PrintPreview_GetMaxPage(*args
, **kwargs
)
4695 def GetMinPage(*args
, **kwargs
):
4696 """GetMinPage(self) -> int"""
4697 return _windows_
.PrintPreview_GetMinPage(*args
, **kwargs
)
4699 def Ok(*args
, **kwargs
):
4700 """Ok(self) -> bool"""
4701 return _windows_
.PrintPreview_Ok(*args
, **kwargs
)
4703 def SetOk(*args
, **kwargs
):
4704 """SetOk(self, bool ok)"""
4705 return _windows_
.PrintPreview_SetOk(*args
, **kwargs
)
4707 def Print(*args
, **kwargs
):
4708 """Print(self, bool interactive) -> bool"""
4709 return _windows_
.PrintPreview_Print(*args
, **kwargs
)
4711 def DetermineScaling(*args
, **kwargs
):
4712 """DetermineScaling(self)"""
4713 return _windows_
.PrintPreview_DetermineScaling(*args
, **kwargs
)
4715 def __nonzero__(self
): return self
.Ok()
4717 class PrintPreviewPtr(PrintPreview
):
4718 def __init__(self
, this
):
4720 if not hasattr(self
,"thisown"): self
.thisown
= 0
4721 self
.__class
__ = PrintPreview
4722 _windows_
.PrintPreview_swigregister(PrintPreviewPtr
)
4724 class PyPrintPreview(PrintPreview
):
4726 return "<%s.%s; proxy of C++ wxPyPrintPreview instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4727 def __init__(self
, *args
):
4729 __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PyPrintPreview
4730 __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PyPrintPreview
4732 newobj
= _windows_
.new_PyPrintPreview(*args
)
4733 self
.this
= newobj
.this
4736 self
._setCallbackInfo
(self
, PyPrintPreview
)
4738 def _setCallbackInfo(*args
, **kwargs
):
4739 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4740 return _windows_
.PyPrintPreview__setCallbackInfo(*args
, **kwargs
)
4742 def base_SetCurrentPage(*args
, **kwargs
):
4743 """base_SetCurrentPage(self, int pageNum) -> bool"""
4744 return _windows_
.PyPrintPreview_base_SetCurrentPage(*args
, **kwargs
)
4746 def base_PaintPage(*args
, **kwargs
):
4747 """base_PaintPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4748 return _windows_
.PyPrintPreview_base_PaintPage(*args
, **kwargs
)
4750 def base_DrawBlankPage(*args
, **kwargs
):
4751 """base_DrawBlankPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4752 return _windows_
.PyPrintPreview_base_DrawBlankPage(*args
, **kwargs
)
4754 def base_RenderPage(*args
, **kwargs
):
4755 """base_RenderPage(self, int pageNum) -> bool"""
4756 return _windows_
.PyPrintPreview_base_RenderPage(*args
, **kwargs
)
4758 def base_SetZoom(*args
, **kwargs
):
4759 """base_SetZoom(self, int percent)"""
4760 return _windows_
.PyPrintPreview_base_SetZoom(*args
, **kwargs
)
4762 def base_Print(*args
, **kwargs
):
4763 """base_Print(self, bool interactive) -> bool"""
4764 return _windows_
.PyPrintPreview_base_Print(*args
, **kwargs
)
4766 def base_DetermineScaling(*args
, **kwargs
):
4767 """base_DetermineScaling(self)"""
4768 return _windows_
.PyPrintPreview_base_DetermineScaling(*args
, **kwargs
)
4771 class PyPrintPreviewPtr(PyPrintPreview
):
4772 def __init__(self
, this
):
4774 if not hasattr(self
,"thisown"): self
.thisown
= 0
4775 self
.__class
__ = PyPrintPreview
4776 _windows_
.PyPrintPreview_swigregister(PyPrintPreviewPtr
)
4778 class PyPreviewFrame(PreviewFrame
):
4780 return "<%s.%s; proxy of C++ wxPyPreviewFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4781 def __init__(self
, *args
, **kwargs
):
4783 __init__(self, PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4784 Size size=DefaultSize,
4785 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PyPreviewFrame
4787 newobj
= _windows_
.new_PyPreviewFrame(*args
, **kwargs
)
4788 self
.this
= newobj
.this
4791 self
._setCallbackInfo
(self
, PyPreviewFrame
); self
._setOORInfo
(self
)
4793 def _setCallbackInfo(*args
, **kwargs
):
4794 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4795 return _windows_
.PyPreviewFrame__setCallbackInfo(*args
, **kwargs
)
4797 def SetPreviewCanvas(*args
, **kwargs
):
4798 """SetPreviewCanvas(self, PreviewCanvas canvas)"""
4799 return _windows_
.PyPreviewFrame_SetPreviewCanvas(*args
, **kwargs
)
4801 def SetControlBar(*args
, **kwargs
):
4802 """SetControlBar(self, PreviewControlBar bar)"""
4803 return _windows_
.PyPreviewFrame_SetControlBar(*args
, **kwargs
)
4805 def base_Initialize(*args
, **kwargs
):
4806 """base_Initialize(self)"""
4807 return _windows_
.PyPreviewFrame_base_Initialize(*args
, **kwargs
)
4809 def base_CreateCanvas(*args
, **kwargs
):
4810 """base_CreateCanvas(self)"""
4811 return _windows_
.PyPreviewFrame_base_CreateCanvas(*args
, **kwargs
)
4813 def base_CreateControlBar(*args
, **kwargs
):
4814 """base_CreateControlBar(self)"""
4815 return _windows_
.PyPreviewFrame_base_CreateControlBar(*args
, **kwargs
)
4818 class PyPreviewFramePtr(PyPreviewFrame
):
4819 def __init__(self
, this
):
4821 if not hasattr(self
,"thisown"): self
.thisown
= 0
4822 self
.__class
__ = PyPreviewFrame
4823 _windows_
.PyPreviewFrame_swigregister(PyPreviewFramePtr
)
4825 class PyPreviewControlBar(PreviewControlBar
):
4827 return "<%s.%s; proxy of C++ wxPyPreviewControlBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4828 def __init__(self
, *args
, **kwargs
):
4830 __init__(self, PrintPreview preview, long buttons, Window parent,
4831 Point pos=DefaultPosition, Size size=DefaultSize,
4832 long style=0, String name=PanelNameStr) -> PyPreviewControlBar
4834 newobj
= _windows_
.new_PyPreviewControlBar(*args
, **kwargs
)
4835 self
.this
= newobj
.this
4838 self
._setCallbackInfo
(self
, PyPreviewControlBar
); self
._setOORInfo
(self
)
4840 def _setCallbackInfo(*args
, **kwargs
):
4841 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4842 return _windows_
.PyPreviewControlBar__setCallbackInfo(*args
, **kwargs
)
4844 def SetPrintPreview(*args
, **kwargs
):
4845 """SetPrintPreview(self, PrintPreview preview)"""
4846 return _windows_
.PyPreviewControlBar_SetPrintPreview(*args
, **kwargs
)
4848 def base_CreateButtons(*args
, **kwargs
):
4849 """base_CreateButtons(self)"""
4850 return _windows_
.PyPreviewControlBar_base_CreateButtons(*args
, **kwargs
)
4852 def base_SetZoomControl(*args
, **kwargs
):
4853 """base_SetZoomControl(self, int zoom)"""
4854 return _windows_
.PyPreviewControlBar_base_SetZoomControl(*args
, **kwargs
)
4857 class PyPreviewControlBarPtr(PyPreviewControlBar
):
4858 def __init__(self
, this
):
4860 if not hasattr(self
,"thisown"): self
.thisown
= 0
4861 self
.__class
__ = PyPreviewControlBar
4862 _windows_
.PyPreviewControlBar_swigregister(PyPreviewControlBarPtr
)