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
49 uses the (undocumented) mix-in class wxControlContainer which manages
50 the focus and TAB logic for controls which usually have child controls.
51 In practice, if you call this method and the panel has at least
52 one child window, then the focus will be given to the child window.
55 return _windows_
.Panel_SetFocus(*args
, **kwargs
)
57 def SetFocusIgnoringChildren(*args
, **kwargs
):
59 SetFocusIgnoringChildren(self)
61 In contrast to `SetFocus` (see above) this will set the focus to the
62 panel even of there are child windows in the panel. This is only
65 return _windows_
.Panel_SetFocusIgnoringChildren(*args
, **kwargs
)
67 def GetClassDefaultAttributes(*args
, **kwargs
):
69 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
71 Get the default attributes for this class. This is useful if you want
72 to use the same font or colour in your own control as in a standard
73 control -- which is a much better idea than hard coding specific
74 colours or fonts which might look completely out of place on the
75 user's system, especially if it uses themes.
77 The variant parameter is only relevant under Mac currently and is
78 ignore under other platforms. Under Mac, it will change the size of
79 the returned font. See `wx.Window.SetWindowVariant` for more about
82 return _windows_
.Panel_GetClassDefaultAttributes(*args
, **kwargs
)
84 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
86 class PanelPtr(Panel
):
87 def __init__(self
, this
):
89 if not hasattr(self
,"thisown"): self
.thisown
= 0
90 self
.__class
__ = Panel
91 _windows_
.Panel_swigregister(PanelPtr
)
93 def PrePanel(*args
, **kwargs
):
94 """PrePanel() -> Panel"""
95 val
= _windows_
.new_PrePanel(*args
, **kwargs
)
99 def Panel_GetClassDefaultAttributes(*args
, **kwargs
):
101 Panel_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
103 Get the default attributes for this class. This is useful if you want
104 to use the same font or colour in your own control as in a standard
105 control -- which is a much better idea than hard coding specific
106 colours or fonts which might look completely out of place on the
107 user's system, especially if it uses themes.
109 The variant parameter is only relevant under Mac currently and is
110 ignore under other platforms. Under Mac, it will change the size of
111 the returned font. See `wx.Window.SetWindowVariant` for more about
114 return _windows_
.Panel_GetClassDefaultAttributes(*args
, **kwargs
)
116 #---------------------------------------------------------------------------
118 class ScrolledWindow(Panel
):
120 return "<%s.%s; proxy of C++ wxScrolledWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
121 def __init__(self
, *args
, **kwargs
):
123 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
124 Size size=DefaultSize, long style=wxHSCROLL|wxVSCROLL,
125 String name=PanelNameStr) -> ScrolledWindow
127 newobj
= _windows_
.new_ScrolledWindow(*args
, **kwargs
)
128 self
.this
= newobj
.this
131 self
._setOORInfo
(self
)
133 def Create(*args
, **kwargs
):
135 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
136 Size size=DefaultSize, long style=wxHSCROLL|wxVSCROLL,
137 String name=PanelNameStr) -> bool
139 Create the GUI part of the Window for 2-phase creation mode.
141 return _windows_
.ScrolledWindow_Create(*args
, **kwargs
)
143 def SetScrollbars(*args
, **kwargs
):
145 SetScrollbars(self, int pixelsPerUnitX, int pixelsPerUnitY, int noUnitsX,
146 int noUnitsY, int xPos=0, int yPos=0, bool noRefresh=False)
148 return _windows_
.ScrolledWindow_SetScrollbars(*args
, **kwargs
)
150 def Scroll(*args
, **kwargs
):
151 """Scroll(self, int x, int y)"""
152 return _windows_
.ScrolledWindow_Scroll(*args
, **kwargs
)
154 def GetScrollPageSize(*args
, **kwargs
):
155 """GetScrollPageSize(self, int orient) -> int"""
156 return _windows_
.ScrolledWindow_GetScrollPageSize(*args
, **kwargs
)
158 def SetScrollPageSize(*args
, **kwargs
):
159 """SetScrollPageSize(self, int orient, int pageSize)"""
160 return _windows_
.ScrolledWindow_SetScrollPageSize(*args
, **kwargs
)
162 def SetScrollRate(*args
, **kwargs
):
163 """SetScrollRate(self, int xstep, int ystep)"""
164 return _windows_
.ScrolledWindow_SetScrollRate(*args
, **kwargs
)
166 def GetScrollPixelsPerUnit(*args
, **kwargs
):
168 GetScrollPixelsPerUnit() -> (xUnit, yUnit)
170 Get the size of one logical unit in physical units.
172 return _windows_
.ScrolledWindow_GetScrollPixelsPerUnit(*args
, **kwargs
)
174 def EnableScrolling(*args
, **kwargs
):
175 """EnableScrolling(self, bool x_scrolling, bool y_scrolling)"""
176 return _windows_
.ScrolledWindow_EnableScrolling(*args
, **kwargs
)
178 def GetViewStart(*args
, **kwargs
):
180 GetViewStart() -> (x,y)
184 return _windows_
.ScrolledWindow_GetViewStart(*args
, **kwargs
)
186 def SetScale(*args
, **kwargs
):
187 """SetScale(self, double xs, double ys)"""
188 return _windows_
.ScrolledWindow_SetScale(*args
, **kwargs
)
190 def GetScaleX(*args
, **kwargs
):
191 """GetScaleX(self) -> double"""
192 return _windows_
.ScrolledWindow_GetScaleX(*args
, **kwargs
)
194 def GetScaleY(*args
, **kwargs
):
195 """GetScaleY(self) -> double"""
196 return _windows_
.ScrolledWindow_GetScaleY(*args
, **kwargs
)
198 def CalcScrolledPosition(*args
):
200 CalcScrolledPosition(self, Point pt) -> Point
201 CalcScrolledPosition(int x, int y) -> (sx, sy)
203 Translate between scrolled and unscrolled coordinates.
205 return _windows_
.ScrolledWindow_CalcScrolledPosition(*args
)
207 def CalcUnscrolledPosition(*args
):
209 CalcUnscrolledPosition(self, Point pt) -> Point
210 CalcUnscrolledPosition(int x, int y) -> (ux, uy)
212 Translate between scrolled and unscrolled coordinates.
214 return _windows_
.ScrolledWindow_CalcUnscrolledPosition(*args
)
216 def AdjustScrollbars(*args
, **kwargs
):
217 """AdjustScrollbars(self)"""
218 return _windows_
.ScrolledWindow_AdjustScrollbars(*args
, **kwargs
)
220 def CalcScrollInc(*args
, **kwargs
):
221 """CalcScrollInc(self, ScrollWinEvent event) -> int"""
222 return _windows_
.ScrolledWindow_CalcScrollInc(*args
, **kwargs
)
224 def SetTargetWindow(*args
, **kwargs
):
225 """SetTargetWindow(self, Window target)"""
226 return _windows_
.ScrolledWindow_SetTargetWindow(*args
, **kwargs
)
228 def GetTargetWindow(*args
, **kwargs
):
229 """GetTargetWindow(self) -> Window"""
230 return _windows_
.ScrolledWindow_GetTargetWindow(*args
, **kwargs
)
232 def SetTargetRect(*args
, **kwargs
):
233 """SetTargetRect(self, Rect rect)"""
234 return _windows_
.ScrolledWindow_SetTargetRect(*args
, **kwargs
)
236 def GetTargetRect(*args
, **kwargs
):
237 """GetTargetRect(self) -> Rect"""
238 return _windows_
.ScrolledWindow_GetTargetRect(*args
, **kwargs
)
240 def DoPrepareDC(*args
, **kwargs
):
242 DoPrepareDC(self, DC dc)
244 Normally what is called by `PrepareDC`.
246 return _windows_
.ScrolledWindow_DoPrepareDC(*args
, **kwargs
)
248 def GetClassDefaultAttributes(*args
, **kwargs
):
250 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
252 Get the default attributes for this class. This is useful if you want
253 to use the same font or colour in your own control as in a standard
254 control -- which is a much better idea than hard coding specific
255 colours or fonts which might look completely out of place on the
256 user's system, especially if it uses themes.
258 The variant parameter is only relevant under Mac currently and is
259 ignore under other platforms. Under Mac, it will change the size of
260 the returned font. See `wx.Window.SetWindowVariant` for more about
263 return _windows_
.ScrolledWindow_GetClassDefaultAttributes(*args
, **kwargs
)
265 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
267 class ScrolledWindowPtr(ScrolledWindow
):
268 def __init__(self
, this
):
270 if not hasattr(self
,"thisown"): self
.thisown
= 0
271 self
.__class
__ = ScrolledWindow
272 _windows_
.ScrolledWindow_swigregister(ScrolledWindowPtr
)
274 def PreScrolledWindow(*args
, **kwargs
):
275 """PreScrolledWindow() -> ScrolledWindow"""
276 val
= _windows_
.new_PreScrolledWindow(*args
, **kwargs
)
280 def ScrolledWindow_GetClassDefaultAttributes(*args
, **kwargs
):
282 ScrolledWindow_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
284 Get the default attributes for this class. This is useful if you want
285 to use the same font or colour in your own control as in a standard
286 control -- which is a much better idea than hard coding specific
287 colours or fonts which might look completely out of place on the
288 user's system, especially if it uses themes.
290 The variant parameter is only relevant under Mac currently and is
291 ignore under other platforms. Under Mac, it will change the size of
292 the returned font. See `wx.Window.SetWindowVariant` for more about
295 return _windows_
.ScrolledWindow_GetClassDefaultAttributes(*args
, **kwargs
)
297 #---------------------------------------------------------------------------
299 STAY_ON_TOP
= _windows_
.STAY_ON_TOP
300 ICONIZE
= _windows_
.ICONIZE
301 MINIMIZE
= _windows_
.MINIMIZE
302 MAXIMIZE
= _windows_
.MAXIMIZE
303 CLOSE_BOX
= _windows_
.CLOSE_BOX
304 THICK_FRAME
= _windows_
.THICK_FRAME
305 SYSTEM_MENU
= _windows_
.SYSTEM_MENU
306 MINIMIZE_BOX
= _windows_
.MINIMIZE_BOX
307 MAXIMIZE_BOX
= _windows_
.MAXIMIZE_BOX
308 TINY_CAPTION_HORIZ
= _windows_
.TINY_CAPTION_HORIZ
309 TINY_CAPTION_VERT
= _windows_
.TINY_CAPTION_VERT
310 RESIZE_BOX
= _windows_
.RESIZE_BOX
311 RESIZE_BORDER
= _windows_
.RESIZE_BORDER
312 DIALOG_NO_PARENT
= _windows_
.DIALOG_NO_PARENT
313 DEFAULT_FRAME_STYLE
= _windows_
.DEFAULT_FRAME_STYLE
314 DEFAULT_DIALOG_STYLE
= _windows_
.DEFAULT_DIALOG_STYLE
315 FRAME_TOOL_WINDOW
= _windows_
.FRAME_TOOL_WINDOW
316 FRAME_FLOAT_ON_PARENT
= _windows_
.FRAME_FLOAT_ON_PARENT
317 FRAME_NO_WINDOW_MENU
= _windows_
.FRAME_NO_WINDOW_MENU
318 FRAME_NO_TASKBAR
= _windows_
.FRAME_NO_TASKBAR
319 FRAME_SHAPED
= _windows_
.FRAME_SHAPED
320 FRAME_DRAWER
= _windows_
.FRAME_DRAWER
321 DIALOG_MODAL
= _windows_
.DIALOG_MODAL
322 DIALOG_MODELESS
= _windows_
.DIALOG_MODELESS
323 USER_COLOURS
= _windows_
.USER_COLOURS
324 NO_3D
= _windows_
.NO_3D
325 FULLSCREEN_NOMENUBAR
= _windows_
.FULLSCREEN_NOMENUBAR
326 FULLSCREEN_NOTOOLBAR
= _windows_
.FULLSCREEN_NOTOOLBAR
327 FULLSCREEN_NOSTATUSBAR
= _windows_
.FULLSCREEN_NOSTATUSBAR
328 FULLSCREEN_NOBORDER
= _windows_
.FULLSCREEN_NOBORDER
329 FULLSCREEN_NOCAPTION
= _windows_
.FULLSCREEN_NOCAPTION
330 FULLSCREEN_ALL
= _windows_
.FULLSCREEN_ALL
331 TOPLEVEL_EX_DIALOG
= _windows_
.TOPLEVEL_EX_DIALOG
332 USER_ATTENTION_INFO
= _windows_
.USER_ATTENTION_INFO
333 USER_ATTENTION_ERROR
= _windows_
.USER_ATTENTION_ERROR
334 class TopLevelWindow(_core
.Window
):
335 def __init__(self
): raise RuntimeError, "No constructor defined"
337 return "<%s.%s; proxy of C++ wxTopLevelWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
338 def Maximize(*args
, **kwargs
):
339 """Maximize(self, bool maximize=True)"""
340 return _windows_
.TopLevelWindow_Maximize(*args
, **kwargs
)
342 def Restore(*args
, **kwargs
):
344 return _windows_
.TopLevelWindow_Restore(*args
, **kwargs
)
346 def Iconize(*args
, **kwargs
):
347 """Iconize(self, bool iconize=True)"""
348 return _windows_
.TopLevelWindow_Iconize(*args
, **kwargs
)
350 def IsMaximized(*args
, **kwargs
):
351 """IsMaximized(self) -> bool"""
352 return _windows_
.TopLevelWindow_IsMaximized(*args
, **kwargs
)
354 def IsIconized(*args
, **kwargs
):
355 """IsIconized(self) -> bool"""
356 return _windows_
.TopLevelWindow_IsIconized(*args
, **kwargs
)
358 def GetIcon(*args
, **kwargs
):
359 """GetIcon(self) -> Icon"""
360 return _windows_
.TopLevelWindow_GetIcon(*args
, **kwargs
)
362 def SetIcon(*args
, **kwargs
):
363 """SetIcon(self, Icon icon)"""
364 return _windows_
.TopLevelWindow_SetIcon(*args
, **kwargs
)
366 def SetIcons(*args
, **kwargs
):
367 """SetIcons(self, wxIconBundle icons)"""
368 return _windows_
.TopLevelWindow_SetIcons(*args
, **kwargs
)
370 def ShowFullScreen(*args
, **kwargs
):
371 """ShowFullScreen(self, bool show, long style=FULLSCREEN_ALL) -> bool"""
372 return _windows_
.TopLevelWindow_ShowFullScreen(*args
, **kwargs
)
374 def IsFullScreen(*args
, **kwargs
):
375 """IsFullScreen(self) -> bool"""
376 return _windows_
.TopLevelWindow_IsFullScreen(*args
, **kwargs
)
378 def SetTitle(*args
, **kwargs
):
380 SetTitle(self, String title)
382 Sets the window's title. Applicable only to frames and dialogs.
384 return _windows_
.TopLevelWindow_SetTitle(*args
, **kwargs
)
386 def GetTitle(*args
, **kwargs
):
388 GetTitle(self) -> String
390 Gets the window's title. Applicable only to frames and dialogs.
392 return _windows_
.TopLevelWindow_GetTitle(*args
, **kwargs
)
394 def SetShape(*args
, **kwargs
):
395 """SetShape(self, Region region) -> bool"""
396 return _windows_
.TopLevelWindow_SetShape(*args
, **kwargs
)
398 def RequestUserAttention(*args
, **kwargs
):
399 """RequestUserAttention(self, int flags=USER_ATTENTION_INFO)"""
400 return _windows_
.TopLevelWindow_RequestUserAttention(*args
, **kwargs
)
402 def IsActive(*args
, **kwargs
):
403 """IsActive(self) -> bool"""
404 return _windows_
.TopLevelWindow_IsActive(*args
, **kwargs
)
406 def MacSetMetalAppearance(*args
, **kwargs
):
407 """MacSetMetalAppearance(self, bool on)"""
408 return _windows_
.TopLevelWindow_MacSetMetalAppearance(*args
, **kwargs
)
410 def MacGetMetalAppearance(*args
, **kwargs
):
411 """MacGetMetalAppearance(self) -> bool"""
412 return _windows_
.TopLevelWindow_MacGetMetalAppearance(*args
, **kwargs
)
415 class TopLevelWindowPtr(TopLevelWindow
):
416 def __init__(self
, this
):
418 if not hasattr(self
,"thisown"): self
.thisown
= 0
419 self
.__class
__ = TopLevelWindow
420 _windows_
.TopLevelWindow_swigregister(TopLevelWindowPtr
)
421 cvar
= _windows_
.cvar
422 FrameNameStr
= cvar
.FrameNameStr
423 DialogNameStr
= cvar
.DialogNameStr
424 StatusLineNameStr
= cvar
.StatusLineNameStr
425 ToolBarNameStr
= cvar
.ToolBarNameStr
427 #---------------------------------------------------------------------------
429 class Frame(TopLevelWindow
):
431 return "<%s.%s; proxy of C++ wxFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
432 def __init__(self
, *args
, **kwargs
):
434 __init__(self, Window parent, int id=-1, String title=EmptyString,
435 Point pos=DefaultPosition, Size size=DefaultSize,
436 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> Frame
438 newobj
= _windows_
.new_Frame(*args
, **kwargs
)
439 self
.this
= newobj
.this
442 self
._setOORInfo
(self
)
444 def Create(*args
, **kwargs
):
446 Create(self, Window parent, int id=-1, String title=EmptyString,
447 Point pos=DefaultPosition, Size size=DefaultSize,
448 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> bool
450 return _windows_
.Frame_Create(*args
, **kwargs
)
452 def GetClientAreaOrigin(*args
, **kwargs
):
454 GetClientAreaOrigin(self) -> Point
456 Get the origin of the client area of the window relative to the
457 window's top left corner (the client area may be shifted because of
458 the borders, scrollbars, other decorations...)
460 return _windows_
.Frame_GetClientAreaOrigin(*args
, **kwargs
)
462 def SendSizeEvent(*args
, **kwargs
):
463 """SendSizeEvent(self)"""
464 return _windows_
.Frame_SendSizeEvent(*args
, **kwargs
)
466 def SetMenuBar(*args
, **kwargs
):
467 """SetMenuBar(self, MenuBar menubar)"""
468 return _windows_
.Frame_SetMenuBar(*args
, **kwargs
)
470 def GetMenuBar(*args
, **kwargs
):
471 """GetMenuBar(self) -> MenuBar"""
472 return _windows_
.Frame_GetMenuBar(*args
, **kwargs
)
474 def ProcessCommand(*args
, **kwargs
):
475 """ProcessCommand(self, int winid) -> bool"""
476 return _windows_
.Frame_ProcessCommand(*args
, **kwargs
)
478 Command
= ProcessCommand
479 def CreateStatusBar(*args
, **kwargs
):
481 CreateStatusBar(self, int number=1, long style=ST_SIZEGRIP, int winid=0,
482 String name=StatusLineNameStr) -> StatusBar
484 return _windows_
.Frame_CreateStatusBar(*args
, **kwargs
)
486 def GetStatusBar(*args
, **kwargs
):
487 """GetStatusBar(self) -> StatusBar"""
488 return _windows_
.Frame_GetStatusBar(*args
, **kwargs
)
490 def SetStatusBar(*args
, **kwargs
):
491 """SetStatusBar(self, StatusBar statBar)"""
492 return _windows_
.Frame_SetStatusBar(*args
, **kwargs
)
494 def SetStatusText(*args
, **kwargs
):
495 """SetStatusText(self, String text, int number=0)"""
496 return _windows_
.Frame_SetStatusText(*args
, **kwargs
)
498 def SetStatusWidths(*args
, **kwargs
):
499 """SetStatusWidths(self, int widths, int widths_field)"""
500 return _windows_
.Frame_SetStatusWidths(*args
, **kwargs
)
502 def PushStatusText(*args
, **kwargs
):
503 """PushStatusText(self, String text, int number=0)"""
504 return _windows_
.Frame_PushStatusText(*args
, **kwargs
)
506 def PopStatusText(*args
, **kwargs
):
507 """PopStatusText(self, int number=0)"""
508 return _windows_
.Frame_PopStatusText(*args
, **kwargs
)
510 def SetStatusBarPane(*args
, **kwargs
):
511 """SetStatusBarPane(self, int n)"""
512 return _windows_
.Frame_SetStatusBarPane(*args
, **kwargs
)
514 def GetStatusBarPane(*args
, **kwargs
):
515 """GetStatusBarPane(self) -> int"""
516 return _windows_
.Frame_GetStatusBarPane(*args
, **kwargs
)
518 def CreateToolBar(*args
, **kwargs
):
519 """CreateToolBar(self, long style=-1, int winid=-1, String name=ToolBarNameStr) -> wxToolBar"""
520 return _windows_
.Frame_CreateToolBar(*args
, **kwargs
)
522 def GetToolBar(*args
, **kwargs
):
523 """GetToolBar(self) -> wxToolBar"""
524 return _windows_
.Frame_GetToolBar(*args
, **kwargs
)
526 def SetToolBar(*args
, **kwargs
):
527 """SetToolBar(self, wxToolBar toolbar)"""
528 return _windows_
.Frame_SetToolBar(*args
, **kwargs
)
530 def DoGiveHelp(*args
, **kwargs
):
531 """DoGiveHelp(self, String text, bool show)"""
532 return _windows_
.Frame_DoGiveHelp(*args
, **kwargs
)
534 def DoMenuUpdates(*args
, **kwargs
):
535 """DoMenuUpdates(self, Menu menu=None)"""
536 return _windows_
.Frame_DoMenuUpdates(*args
, **kwargs
)
538 def GetClassDefaultAttributes(*args
, **kwargs
):
540 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
542 Get the default attributes for this class. This is useful if you want
543 to use the same font or colour in your own control as in a standard
544 control -- which is a much better idea than hard coding specific
545 colours or fonts which might look completely out of place on the
546 user's system, especially if it uses themes.
548 The variant parameter is only relevant under Mac currently and is
549 ignore under other platforms. Under Mac, it will change the size of
550 the returned font. See `wx.Window.SetWindowVariant` for more about
553 return _windows_
.Frame_GetClassDefaultAttributes(*args
, **kwargs
)
555 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
557 class FramePtr(Frame
):
558 def __init__(self
, this
):
560 if not hasattr(self
,"thisown"): self
.thisown
= 0
561 self
.__class
__ = Frame
562 _windows_
.Frame_swigregister(FramePtr
)
564 def PreFrame(*args
, **kwargs
):
565 """PreFrame() -> Frame"""
566 val
= _windows_
.new_PreFrame(*args
, **kwargs
)
570 def Frame_GetClassDefaultAttributes(*args
, **kwargs
):
572 Frame_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
574 Get the default attributes for this class. This is useful if you want
575 to use the same font or colour in your own control as in a standard
576 control -- which is a much better idea than hard coding specific
577 colours or fonts which might look completely out of place on the
578 user's system, especially if it uses themes.
580 The variant parameter is only relevant under Mac currently and is
581 ignore under other platforms. Under Mac, it will change the size of
582 the returned font. See `wx.Window.SetWindowVariant` for more about
585 return _windows_
.Frame_GetClassDefaultAttributes(*args
, **kwargs
)
587 #---------------------------------------------------------------------------
589 class Dialog(TopLevelWindow
):
591 return "<%s.%s; proxy of C++ wxDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
592 def __init__(self
, *args
, **kwargs
):
594 __init__(self, Window parent, int id=-1, String title=EmptyString,
595 Point pos=DefaultPosition, Size size=DefaultSize,
596 long style=DEFAULT_DIALOG_STYLE, String name=DialogNameStr) -> Dialog
598 newobj
= _windows_
.new_Dialog(*args
, **kwargs
)
599 self
.this
= newobj
.this
602 self
._setOORInfo
(self
)
604 def Create(*args
, **kwargs
):
606 Create(self, Window parent, int id=-1, String title=EmptyString,
607 Point pos=DefaultPosition, Size size=DefaultSize,
608 long style=DEFAULT_DIALOG_STYLE, String name=DialogNameStr) -> bool
610 return _windows_
.Dialog_Create(*args
, **kwargs
)
612 def SetReturnCode(*args
, **kwargs
):
613 """SetReturnCode(self, int returnCode)"""
614 return _windows_
.Dialog_SetReturnCode(*args
, **kwargs
)
616 def GetReturnCode(*args
, **kwargs
):
617 """GetReturnCode(self) -> int"""
618 return _windows_
.Dialog_GetReturnCode(*args
, **kwargs
)
620 def CreateTextSizer(*args
, **kwargs
):
621 """CreateTextSizer(self, String message) -> Sizer"""
622 return _windows_
.Dialog_CreateTextSizer(*args
, **kwargs
)
624 def CreateButtonSizer(*args
, **kwargs
):
625 """CreateButtonSizer(self, long flags) -> Sizer"""
626 return _windows_
.Dialog_CreateButtonSizer(*args
, **kwargs
)
628 def IsModal(*args
, **kwargs
):
629 """IsModal(self) -> bool"""
630 return _windows_
.Dialog_IsModal(*args
, **kwargs
)
632 def ShowModal(*args
, **kwargs
):
633 """ShowModal(self) -> int"""
634 return _windows_
.Dialog_ShowModal(*args
, **kwargs
)
636 def EndModal(*args
, **kwargs
):
637 """EndModal(self, int retCode)"""
638 return _windows_
.Dialog_EndModal(*args
, **kwargs
)
640 def GetClassDefaultAttributes(*args
, **kwargs
):
642 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
644 Get the default attributes for this class. This is useful if you want
645 to use the same font or colour in your own control as in a standard
646 control -- which is a much better idea than hard coding specific
647 colours or fonts which might look completely out of place on the
648 user's system, especially if it uses themes.
650 The variant parameter is only relevant under Mac currently and is
651 ignore under other platforms. Under Mac, it will change the size of
652 the returned font. See `wx.Window.SetWindowVariant` for more about
655 return _windows_
.Dialog_GetClassDefaultAttributes(*args
, **kwargs
)
657 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
658 def SendSizeEvent(self
):
659 self
.ProcessEvent(wx
.SizeEvent((-1,-1)))
662 class DialogPtr(Dialog
):
663 def __init__(self
, this
):
665 if not hasattr(self
,"thisown"): self
.thisown
= 0
666 self
.__class
__ = Dialog
667 _windows_
.Dialog_swigregister(DialogPtr
)
669 def PreDialog(*args
, **kwargs
):
670 """PreDialog() -> Dialog"""
671 val
= _windows_
.new_PreDialog(*args
, **kwargs
)
675 def Dialog_GetClassDefaultAttributes(*args
, **kwargs
):
677 Dialog_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
679 Get the default attributes for this class. This is useful if you want
680 to use the same font or colour in your own control as in a standard
681 control -- which is a much better idea than hard coding specific
682 colours or fonts which might look completely out of place on the
683 user's system, especially if it uses themes.
685 The variant parameter is only relevant under Mac currently and is
686 ignore under other platforms. Under Mac, it will change the size of
687 the returned font. See `wx.Window.SetWindowVariant` for more about
690 return _windows_
.Dialog_GetClassDefaultAttributes(*args
, **kwargs
)
692 #---------------------------------------------------------------------------
694 class MiniFrame(Frame
):
696 return "<%s.%s; proxy of C++ wxMiniFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
697 def __init__(self
, *args
, **kwargs
):
699 __init__(self, Window parent, int id=-1, String title=EmptyString,
700 Point pos=DefaultPosition, Size size=DefaultSize,
701 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> MiniFrame
703 newobj
= _windows_
.new_MiniFrame(*args
, **kwargs
)
704 self
.this
= newobj
.this
707 self
._setOORInfo
(self
)
709 def Create(*args
, **kwargs
):
711 Create(self, Window parent, int id=-1, String title=EmptyString,
712 Point pos=DefaultPosition, Size size=DefaultSize,
713 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> bool
715 return _windows_
.MiniFrame_Create(*args
, **kwargs
)
718 class MiniFramePtr(MiniFrame
):
719 def __init__(self
, this
):
721 if not hasattr(self
,"thisown"): self
.thisown
= 0
722 self
.__class
__ = MiniFrame
723 _windows_
.MiniFrame_swigregister(MiniFramePtr
)
725 def PreMiniFrame(*args
, **kwargs
):
726 """PreMiniFrame() -> MiniFrame"""
727 val
= _windows_
.new_PreMiniFrame(*args
, **kwargs
)
731 #---------------------------------------------------------------------------
733 SPLASH_CENTRE_ON_PARENT
= _windows_
.SPLASH_CENTRE_ON_PARENT
734 SPLASH_CENTRE_ON_SCREEN
= _windows_
.SPLASH_CENTRE_ON_SCREEN
735 SPLASH_NO_CENTRE
= _windows_
.SPLASH_NO_CENTRE
736 SPLASH_TIMEOUT
= _windows_
.SPLASH_TIMEOUT
737 SPLASH_NO_TIMEOUT
= _windows_
.SPLASH_NO_TIMEOUT
738 class SplashScreenWindow(_core
.Window
):
740 return "<%s.%s; proxy of C++ wxSplashScreenWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
741 def __init__(self
, *args
, **kwargs
):
743 __init__(self, Bitmap bitmap, Window parent, int id, Point pos=DefaultPosition,
744 Size size=DefaultSize, long style=NO_BORDER) -> SplashScreenWindow
746 newobj
= _windows_
.new_SplashScreenWindow(*args
, **kwargs
)
747 self
.this
= newobj
.this
750 self
._setOORInfo
(self
)
752 def SetBitmap(*args
, **kwargs
):
753 """SetBitmap(self, Bitmap bitmap)"""
754 return _windows_
.SplashScreenWindow_SetBitmap(*args
, **kwargs
)
756 def GetBitmap(*args
, **kwargs
):
757 """GetBitmap(self) -> Bitmap"""
758 return _windows_
.SplashScreenWindow_GetBitmap(*args
, **kwargs
)
761 class SplashScreenWindowPtr(SplashScreenWindow
):
762 def __init__(self
, this
):
764 if not hasattr(self
,"thisown"): self
.thisown
= 0
765 self
.__class
__ = SplashScreenWindow
766 _windows_
.SplashScreenWindow_swigregister(SplashScreenWindowPtr
)
768 class SplashScreen(Frame
):
770 return "<%s.%s; proxy of C++ wxSplashScreen instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
771 def __init__(self
, *args
, **kwargs
):
773 __init__(self, Bitmap bitmap, long splashStyle, int milliseconds,
774 Window parent, int id=-1, Point pos=DefaultPosition,
775 Size size=DefaultSize, long style=wxSIMPLE_BORDER|wxFRAME_NO_TASKBAR|wxSTAY_ON_TOP) -> SplashScreen
777 newobj
= _windows_
.new_SplashScreen(*args
, **kwargs
)
778 self
.this
= newobj
.this
781 self
._setOORInfo
(self
)
783 def GetSplashStyle(*args
, **kwargs
):
784 """GetSplashStyle(self) -> long"""
785 return _windows_
.SplashScreen_GetSplashStyle(*args
, **kwargs
)
787 def GetSplashWindow(*args
, **kwargs
):
788 """GetSplashWindow(self) -> SplashScreenWindow"""
789 return _windows_
.SplashScreen_GetSplashWindow(*args
, **kwargs
)
791 def GetTimeout(*args
, **kwargs
):
792 """GetTimeout(self) -> int"""
793 return _windows_
.SplashScreen_GetTimeout(*args
, **kwargs
)
796 class SplashScreenPtr(SplashScreen
):
797 def __init__(self
, this
):
799 if not hasattr(self
,"thisown"): self
.thisown
= 0
800 self
.__class
__ = SplashScreen
801 _windows_
.SplashScreen_swigregister(SplashScreenPtr
)
803 #---------------------------------------------------------------------------
805 SB_NORMAL
= _windows_
.SB_NORMAL
806 SB_FLAT
= _windows_
.SB_FLAT
807 SB_RAISED
= _windows_
.SB_RAISED
808 class StatusBar(_core
.Window
):
810 return "<%s.%s; proxy of C++ wxStatusBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
811 def __init__(self
, *args
, **kwargs
):
812 """__init__(self, Window parent, int id=-1, long style=ST_SIZEGRIP, String name=StatusLineNameStr) -> StatusBar"""
813 newobj
= _windows_
.new_StatusBar(*args
, **kwargs
)
814 self
.this
= newobj
.this
817 self
._setOORInfo
(self
)
819 def Create(*args
, **kwargs
):
820 """Create(self, Window parent, int id=-1, long style=ST_SIZEGRIP, String name=StatusLineNameStr) -> bool"""
821 return _windows_
.StatusBar_Create(*args
, **kwargs
)
823 def SetFieldsCount(*args
, **kwargs
):
824 """SetFieldsCount(self, int number=1)"""
825 return _windows_
.StatusBar_SetFieldsCount(*args
, **kwargs
)
827 def GetFieldsCount(*args
, **kwargs
):
828 """GetFieldsCount(self) -> int"""
829 return _windows_
.StatusBar_GetFieldsCount(*args
, **kwargs
)
831 def SetStatusText(*args
, **kwargs
):
832 """SetStatusText(self, String text, int number=0)"""
833 return _windows_
.StatusBar_SetStatusText(*args
, **kwargs
)
835 def GetStatusText(*args
, **kwargs
):
836 """GetStatusText(self, int number=0) -> String"""
837 return _windows_
.StatusBar_GetStatusText(*args
, **kwargs
)
839 def PushStatusText(*args
, **kwargs
):
840 """PushStatusText(self, String text, int number=0)"""
841 return _windows_
.StatusBar_PushStatusText(*args
, **kwargs
)
843 def PopStatusText(*args
, **kwargs
):
844 """PopStatusText(self, int number=0)"""
845 return _windows_
.StatusBar_PopStatusText(*args
, **kwargs
)
847 def SetStatusWidths(*args
, **kwargs
):
848 """SetStatusWidths(self, int widths, int widths_field)"""
849 return _windows_
.StatusBar_SetStatusWidths(*args
, **kwargs
)
851 def SetStatusStyles(*args
, **kwargs
):
852 """SetStatusStyles(self, int styles, int styles_field)"""
853 return _windows_
.StatusBar_SetStatusStyles(*args
, **kwargs
)
855 def GetFieldRect(*args
, **kwargs
):
856 """GetFieldRect(self, int i) -> Rect"""
857 return _windows_
.StatusBar_GetFieldRect(*args
, **kwargs
)
859 def SetMinHeight(*args
, **kwargs
):
860 """SetMinHeight(self, int height)"""
861 return _windows_
.StatusBar_SetMinHeight(*args
, **kwargs
)
863 def GetBorderX(*args
, **kwargs
):
864 """GetBorderX(self) -> int"""
865 return _windows_
.StatusBar_GetBorderX(*args
, **kwargs
)
867 def GetBorderY(*args
, **kwargs
):
868 """GetBorderY(self) -> int"""
869 return _windows_
.StatusBar_GetBorderY(*args
, **kwargs
)
871 def GetClassDefaultAttributes(*args
, **kwargs
):
873 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
875 Get the default attributes for this class. This is useful if you want
876 to use the same font or colour in your own control as in a standard
877 control -- which is a much better idea than hard coding specific
878 colours or fonts which might look completely out of place on the
879 user's system, especially if it uses themes.
881 The variant parameter is only relevant under Mac currently and is
882 ignore under other platforms. Under Mac, it will change the size of
883 the returned font. See `wx.Window.SetWindowVariant` for more about
886 return _windows_
.StatusBar_GetClassDefaultAttributes(*args
, **kwargs
)
888 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
890 class StatusBarPtr(StatusBar
):
891 def __init__(self
, this
):
893 if not hasattr(self
,"thisown"): self
.thisown
= 0
894 self
.__class
__ = StatusBar
895 _windows_
.StatusBar_swigregister(StatusBarPtr
)
897 def PreStatusBar(*args
, **kwargs
):
898 """PreStatusBar() -> StatusBar"""
899 val
= _windows_
.new_PreStatusBar(*args
, **kwargs
)
903 def StatusBar_GetClassDefaultAttributes(*args
, **kwargs
):
905 StatusBar_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
907 Get the default attributes for this class. This is useful if you want
908 to use the same font or colour in your own control as in a standard
909 control -- which is a much better idea than hard coding specific
910 colours or fonts which might look completely out of place on the
911 user's system, especially if it uses themes.
913 The variant parameter is only relevant under Mac currently and is
914 ignore under other platforms. Under Mac, it will change the size of
915 the returned font. See `wx.Window.SetWindowVariant` for more about
918 return _windows_
.StatusBar_GetClassDefaultAttributes(*args
, **kwargs
)
920 #---------------------------------------------------------------------------
922 SP_NOBORDER
= _windows_
.SP_NOBORDER
923 SP_NOSASH
= _windows_
.SP_NOSASH
924 SP_PERMIT_UNSPLIT
= _windows_
.SP_PERMIT_UNSPLIT
925 SP_LIVE_UPDATE
= _windows_
.SP_LIVE_UPDATE
926 SP_3DSASH
= _windows_
.SP_3DSASH
927 SP_3DBORDER
= _windows_
.SP_3DBORDER
928 SP_NO_XP_THEME
= _windows_
.SP_NO_XP_THEME
929 SP_BORDER
= _windows_
.SP_BORDER
930 SP_3D
= _windows_
.SP_3D
931 SPLIT_HORIZONTAL
= _windows_
.SPLIT_HORIZONTAL
932 SPLIT_VERTICAL
= _windows_
.SPLIT_VERTICAL
933 SPLIT_DRAG_NONE
= _windows_
.SPLIT_DRAG_NONE
934 SPLIT_DRAG_DRAGGING
= _windows_
.SPLIT_DRAG_DRAGGING
935 SPLIT_DRAG_LEFT_DOWN
= _windows_
.SPLIT_DRAG_LEFT_DOWN
936 class SplitterWindow(_core
.Window
):
938 wx.SplitterWindow manages up to two subwindows or panes, with an
939 optional vertical or horizontal split which can be used with the mouse
943 return "<%s.%s; proxy of C++ wxSplitterWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
944 def __init__(self
, *args
, **kwargs
):
946 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
947 Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> SplitterWindow
949 Constructor. Creates and shows a SplitterWindow.
951 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point'];del kwargs
['point']
952 newobj
= _windows_
.new_SplitterWindow(*args
, **kwargs
)
953 self
.this
= newobj
.this
956 self
._setOORInfo
(self
)
958 def Create(*args
, **kwargs
):
960 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
961 Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> bool
963 Create the GUI part of the SplitterWindow for the 2-phase create.
965 return _windows_
.SplitterWindow_Create(*args
, **kwargs
)
967 def GetWindow1(*args
, **kwargs
):
969 GetWindow1(self) -> Window
971 Gets the only or left/top pane.
973 return _windows_
.SplitterWindow_GetWindow1(*args
, **kwargs
)
975 def GetWindow2(*args
, **kwargs
):
977 GetWindow2(self) -> Window
979 Gets the right/bottom pane.
981 return _windows_
.SplitterWindow_GetWindow2(*args
, **kwargs
)
983 def SetSplitMode(*args
, **kwargs
):
985 SetSplitMode(self, int mode)
987 Sets the split mode. The mode can be wx.SPLIT_VERTICAL or
988 wx.SPLIT_HORIZONTAL. This only sets the internal variable; does not
991 return _windows_
.SplitterWindow_SetSplitMode(*args
, **kwargs
)
993 def GetSplitMode(*args
, **kwargs
):
995 GetSplitMode(self) -> int
999 return _windows_
.SplitterWindow_GetSplitMode(*args
, **kwargs
)
1001 def Initialize(*args
, **kwargs
):
1003 Initialize(self, Window window)
1005 Initializes the splitter window to have one pane. This should be
1006 called if you wish to initially view only a single pane in the
1009 return _windows_
.SplitterWindow_Initialize(*args
, **kwargs
)
1011 def SplitVertically(*args
, **kwargs
):
1013 SplitVertically(self, Window window1, Window window2, int sashPosition=0) -> bool
1015 Initializes the left and right panes of the splitter window.
1017 return _windows_
.SplitterWindow_SplitVertically(*args
, **kwargs
)
1019 def SplitHorizontally(*args
, **kwargs
):
1021 SplitHorizontally(self, Window window1, Window window2, int sashPosition=0) -> bool
1023 Initializes the top and bottom panes of the splitter window.
1025 return _windows_
.SplitterWindow_SplitHorizontally(*args
, **kwargs
)
1027 def Unsplit(*args
, **kwargs
):
1029 Unsplit(self, Window toRemove=None) -> bool
1031 Unsplits the window. Pass the pane to remove, or None to remove the
1032 right or bottom pane. Returns True if successful, False otherwise (the
1033 window was not split).
1035 This function will not actually delete the pane being
1036 removed; it sends EVT_SPLITTER_UNSPLIT which can be handled
1037 for the desired behaviour. By default, the pane being
1038 removed is only hidden.
1040 return _windows_
.SplitterWindow_Unsplit(*args
, **kwargs
)
1042 def ReplaceWindow(*args
, **kwargs
):
1044 ReplaceWindow(self, Window winOld, Window winNew) -> bool
1046 This function replaces one of the windows managed by the
1047 SplitterWindow with another one. It is in general better to use it
1048 instead of calling Unsplit() and then resplitting the window back
1049 because it will provoke much less flicker. It is valid to call this
1050 function whether the splitter has two windows or only one.
1052 Both parameters should be non-None and winOld must specify one of the
1053 windows managed by the splitter. If the parameters are incorrect or
1054 the window couldn't be replaced, False is returned. Otherwise the
1055 function will return True, but please notice that it will not Destroy
1056 the replaced window and you may wish to do it yourself.
1058 return _windows_
.SplitterWindow_ReplaceWindow(*args
, **kwargs
)
1060 def UpdateSize(*args
, **kwargs
):
1064 Causes any pending sizing of the sash and child panes to take place
1067 Such resizing normally takes place in idle time, in order to wait for
1068 layout to be completed. However, this can cause unacceptable flicker
1069 as the panes are resized after the window has been shown. To work
1070 around this, you can perform window layout (for example by sending a
1071 size event to the parent window), and then call this function, before
1072 showing the top-level window.
1074 return _windows_
.SplitterWindow_UpdateSize(*args
, **kwargs
)
1076 def IsSplit(*args
, **kwargs
):
1078 IsSplit(self) -> bool
1080 Is the window split?
1082 return _windows_
.SplitterWindow_IsSplit(*args
, **kwargs
)
1084 def SetSashSize(*args
, **kwargs
):
1086 SetSashSize(self, int width)
1088 Sets the sash size. Currently a NOP.
1090 return _windows_
.SplitterWindow_SetSashSize(*args
, **kwargs
)
1092 def SetBorderSize(*args
, **kwargs
):
1094 SetBorderSize(self, int width)
1096 Sets the border size. Currently a NOP.
1098 return _windows_
.SplitterWindow_SetBorderSize(*args
, **kwargs
)
1100 def GetSashSize(*args
, **kwargs
):
1102 GetSashSize(self) -> int
1106 return _windows_
.SplitterWindow_GetSashSize(*args
, **kwargs
)
1108 def GetBorderSize(*args
, **kwargs
):
1110 GetBorderSize(self) -> int
1112 Gets the border size
1114 return _windows_
.SplitterWindow_GetBorderSize(*args
, **kwargs
)
1116 def SetSashPosition(*args
, **kwargs
):
1118 SetSashPosition(self, int position, bool redraw=True)
1120 Sets the sash position, in pixels. If redraw is Ttrue then the panes
1121 are resized and the sash and border are redrawn.
1123 return _windows_
.SplitterWindow_SetSashPosition(*args
, **kwargs
)
1125 def GetSashPosition(*args
, **kwargs
):
1127 GetSashPosition(self) -> int
1129 Returns the surrent sash position.
1131 return _windows_
.SplitterWindow_GetSashPosition(*args
, **kwargs
)
1133 def SetSashGravity(*args
, **kwargs
):
1135 SetSashGravity(self, double gravity)
1137 Set the sash gravity. Gravity is a floating-point factor between 0.0
1138 and 1.0 which controls position of sash while resizing the
1139 `wx.SplitterWindow`. The gravity specifies how much the left/top
1140 window will grow while resizing.
1142 return _windows_
.SplitterWindow_SetSashGravity(*args
, **kwargs
)
1144 def GetSashGravity(*args
, **kwargs
):
1146 GetSashGravity(self) -> double
1148 Gets the sash gravity.
1150 :see: `SetSashGravity`
1153 return _windows_
.SplitterWindow_GetSashGravity(*args
, **kwargs
)
1155 def SetMinimumPaneSize(*args
, **kwargs
):
1157 SetMinimumPaneSize(self, int min)
1159 Sets the minimum pane size in pixels.
1161 The default minimum pane size is zero, which means that either pane
1162 can be reduced to zero by dragging the sash, thus removing one of the
1163 panes. To prevent this behaviour (and veto out-of-range sash
1164 dragging), set a minimum size, for example 20 pixels. If the
1165 wx.SP_PERMIT_UNSPLIT style is used when a splitter window is created,
1166 the window may be unsplit even if minimum size is non-zero.
1168 return _windows_
.SplitterWindow_SetMinimumPaneSize(*args
, **kwargs
)
1170 def GetMinimumPaneSize(*args
, **kwargs
):
1172 GetMinimumPaneSize(self) -> int
1174 Gets the minimum pane size in pixels.
1176 return _windows_
.SplitterWindow_GetMinimumPaneSize(*args
, **kwargs
)
1178 def SashHitTest(*args
, **kwargs
):
1180 SashHitTest(self, int x, int y, int tolerance=5) -> bool
1182 Tests for x, y over the sash
1184 return _windows_
.SplitterWindow_SashHitTest(*args
, **kwargs
)
1186 def SizeWindows(*args
, **kwargs
):
1192 return _windows_
.SplitterWindow_SizeWindows(*args
, **kwargs
)
1194 def SetNeedUpdating(*args
, **kwargs
):
1195 """SetNeedUpdating(self, bool needUpdating)"""
1196 return _windows_
.SplitterWindow_SetNeedUpdating(*args
, **kwargs
)
1198 def GetNeedUpdating(*args
, **kwargs
):
1199 """GetNeedUpdating(self) -> bool"""
1200 return _windows_
.SplitterWindow_GetNeedUpdating(*args
, **kwargs
)
1202 def GetClassDefaultAttributes(*args
, **kwargs
):
1204 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1206 Get the default attributes for this class. This is useful if you want
1207 to use the same font or colour in your own control as in a standard
1208 control -- which is a much better idea than hard coding specific
1209 colours or fonts which might look completely out of place on the
1210 user's system, especially if it uses themes.
1212 The variant parameter is only relevant under Mac currently and is
1213 ignore under other platforms. Under Mac, it will change the size of
1214 the returned font. See `wx.Window.SetWindowVariant` for more about
1217 return _windows_
.SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
)
1219 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1221 class SplitterWindowPtr(SplitterWindow
):
1222 def __init__(self
, this
):
1224 if not hasattr(self
,"thisown"): self
.thisown
= 0
1225 self
.__class
__ = SplitterWindow
1226 _windows_
.SplitterWindow_swigregister(SplitterWindowPtr
)
1227 SplitterNameStr
= cvar
.SplitterNameStr
1229 def PreSplitterWindow(*args
, **kwargs
):
1231 PreSplitterWindow() -> SplitterWindow
1233 Precreate a SplitterWindow for 2-phase creation.
1235 val
= _windows_
.new_PreSplitterWindow(*args
, **kwargs
)
1239 def SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
):
1241 SplitterWindow_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1243 Get the default attributes for this class. This is useful if you want
1244 to use the same font or colour in your own control as in a standard
1245 control -- which is a much better idea than hard coding specific
1246 colours or fonts which might look completely out of place on the
1247 user's system, especially if it uses themes.
1249 The variant parameter is only relevant under Mac currently and is
1250 ignore under other platforms. Under Mac, it will change the size of
1251 the returned font. See `wx.Window.SetWindowVariant` for more about
1254 return _windows_
.SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
)
1256 class SplitterEvent(_core
.NotifyEvent
):
1257 """This class represents the events generated by a splitter control."""
1259 return "<%s.%s; proxy of C++ wxSplitterEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1260 def __init__(self
, *args
, **kwargs
):
1262 __init__(self, wxEventType type=wxEVT_NULL, SplitterWindow splitter=(wxSplitterWindow *) NULL) -> SplitterEvent
1264 This class represents the events generated by a splitter control.
1266 newobj
= _windows_
.new_SplitterEvent(*args
, **kwargs
)
1267 self
.this
= newobj
.this
1270 def SetSashPosition(*args
, **kwargs
):
1272 SetSashPosition(self, int pos)
1274 This funciton is only meaningful during EVT_SPLITTER_SASH_POS_CHANGING
1275 and EVT_SPLITTER_SASH_POS_CHANGED events. In the case of _CHANGED
1276 events, sets the the new sash position. In the case of _CHANGING
1277 events, sets the new tracking bar position so visual feedback during
1278 dragging will represent that change that will actually take place. Set
1279 to -1 from the event handler code to prevent repositioning.
1281 return _windows_
.SplitterEvent_SetSashPosition(*args
, **kwargs
)
1283 def GetSashPosition(*args
, **kwargs
):
1285 GetSashPosition(self) -> int
1287 Returns the new sash position while in EVT_SPLITTER_SASH_POS_CHANGING
1288 and EVT_SPLITTER_SASH_POS_CHANGED events.
1290 return _windows_
.SplitterEvent_GetSashPosition(*args
, **kwargs
)
1292 def GetWindowBeingRemoved(*args
, **kwargs
):
1294 GetWindowBeingRemoved(self) -> Window
1296 Returns a pointer to the window being removed when a splitter window
1299 return _windows_
.SplitterEvent_GetWindowBeingRemoved(*args
, **kwargs
)
1301 def GetX(*args
, **kwargs
):
1305 Returns the x coordinate of the double-click point in a
1306 EVT_SPLITTER_DCLICK event.
1308 return _windows_
.SplitterEvent_GetX(*args
, **kwargs
)
1310 def GetY(*args
, **kwargs
):
1314 Returns the y coordinate of the double-click point in a
1315 EVT_SPLITTER_DCLICK event.
1317 return _windows_
.SplitterEvent_GetY(*args
, **kwargs
)
1320 class SplitterEventPtr(SplitterEvent
):
1321 def __init__(self
, this
):
1323 if not hasattr(self
,"thisown"): self
.thisown
= 0
1324 self
.__class
__ = SplitterEvent
1325 _windows_
.SplitterEvent_swigregister(SplitterEventPtr
)
1327 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
= _windows_
.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
1328 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
= _windows_
.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
1329 wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
= _windows_
.wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
1330 wxEVT_COMMAND_SPLITTER_UNSPLIT
= _windows_
.wxEVT_COMMAND_SPLITTER_UNSPLIT
1331 EVT_SPLITTER_SASH_POS_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
, 1 )
1332 EVT_SPLITTER_SASH_POS_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
, 1 )
1333 EVT_SPLITTER_DOUBLECLICKED
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
, 1 )
1334 EVT_SPLITTER_UNSPLIT
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_UNSPLIT
, 1 )
1335 EVT_SPLITTER_DCLICK
= EVT_SPLITTER_DOUBLECLICKED
1337 #---------------------------------------------------------------------------
1339 SASH_DRAG_NONE
= _windows_
.SASH_DRAG_NONE
1340 SASH_DRAG_DRAGGING
= _windows_
.SASH_DRAG_DRAGGING
1341 SASH_DRAG_LEFT_DOWN
= _windows_
.SASH_DRAG_LEFT_DOWN
1342 SW_NOBORDER
= _windows_
.SW_NOBORDER
1343 SW_BORDER
= _windows_
.SW_BORDER
1344 SW_3DSASH
= _windows_
.SW_3DSASH
1345 SW_3DBORDER
= _windows_
.SW_3DBORDER
1346 SW_3D
= _windows_
.SW_3D
1347 SASH_TOP
= _windows_
.SASH_TOP
1348 SASH_RIGHT
= _windows_
.SASH_RIGHT
1349 SASH_BOTTOM
= _windows_
.SASH_BOTTOM
1350 SASH_LEFT
= _windows_
.SASH_LEFT
1351 SASH_NONE
= _windows_
.SASH_NONE
1352 class SashWindow(_core
.Window
):
1354 return "<%s.%s; proxy of C++ wxSashWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1355 def __init__(self
, *args
, **kwargs
):
1357 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1358 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1359 String name=SashNameStr) -> SashWindow
1361 newobj
= _windows_
.new_SashWindow(*args
, **kwargs
)
1362 self
.this
= newobj
.this
1365 self
._setOORInfo
(self
)
1367 def Create(*args
, **kwargs
):
1369 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1370 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1371 String name=SashNameStr) -> bool
1373 return _windows_
.SashWindow_Create(*args
, **kwargs
)
1375 def SetSashVisible(*args
, **kwargs
):
1376 """SetSashVisible(self, int edge, bool sash)"""
1377 return _windows_
.SashWindow_SetSashVisible(*args
, **kwargs
)
1379 def GetSashVisible(*args
, **kwargs
):
1380 """GetSashVisible(self, int edge) -> bool"""
1381 return _windows_
.SashWindow_GetSashVisible(*args
, **kwargs
)
1383 def SetSashBorder(*args
, **kwargs
):
1384 """SetSashBorder(self, int edge, bool border)"""
1385 return _windows_
.SashWindow_SetSashBorder(*args
, **kwargs
)
1387 def HasBorder(*args
, **kwargs
):
1388 """HasBorder(self, int edge) -> bool"""
1389 return _windows_
.SashWindow_HasBorder(*args
, **kwargs
)
1391 def GetEdgeMargin(*args
, **kwargs
):
1392 """GetEdgeMargin(self, int edge) -> int"""
1393 return _windows_
.SashWindow_GetEdgeMargin(*args
, **kwargs
)
1395 def SetDefaultBorderSize(*args
, **kwargs
):
1396 """SetDefaultBorderSize(self, int width)"""
1397 return _windows_
.SashWindow_SetDefaultBorderSize(*args
, **kwargs
)
1399 def GetDefaultBorderSize(*args
, **kwargs
):
1400 """GetDefaultBorderSize(self) -> int"""
1401 return _windows_
.SashWindow_GetDefaultBorderSize(*args
, **kwargs
)
1403 def SetExtraBorderSize(*args
, **kwargs
):
1404 """SetExtraBorderSize(self, int width)"""
1405 return _windows_
.SashWindow_SetExtraBorderSize(*args
, **kwargs
)
1407 def GetExtraBorderSize(*args
, **kwargs
):
1408 """GetExtraBorderSize(self) -> int"""
1409 return _windows_
.SashWindow_GetExtraBorderSize(*args
, **kwargs
)
1411 def SetMinimumSizeX(*args
, **kwargs
):
1412 """SetMinimumSizeX(self, int min)"""
1413 return _windows_
.SashWindow_SetMinimumSizeX(*args
, **kwargs
)
1415 def SetMinimumSizeY(*args
, **kwargs
):
1416 """SetMinimumSizeY(self, int min)"""
1417 return _windows_
.SashWindow_SetMinimumSizeY(*args
, **kwargs
)
1419 def GetMinimumSizeX(*args
, **kwargs
):
1420 """GetMinimumSizeX(self) -> int"""
1421 return _windows_
.SashWindow_GetMinimumSizeX(*args
, **kwargs
)
1423 def GetMinimumSizeY(*args
, **kwargs
):
1424 """GetMinimumSizeY(self) -> int"""
1425 return _windows_
.SashWindow_GetMinimumSizeY(*args
, **kwargs
)
1427 def SetMaximumSizeX(*args
, **kwargs
):
1428 """SetMaximumSizeX(self, int max)"""
1429 return _windows_
.SashWindow_SetMaximumSizeX(*args
, **kwargs
)
1431 def SetMaximumSizeY(*args
, **kwargs
):
1432 """SetMaximumSizeY(self, int max)"""
1433 return _windows_
.SashWindow_SetMaximumSizeY(*args
, **kwargs
)
1435 def GetMaximumSizeX(*args
, **kwargs
):
1436 """GetMaximumSizeX(self) -> int"""
1437 return _windows_
.SashWindow_GetMaximumSizeX(*args
, **kwargs
)
1439 def GetMaximumSizeY(*args
, **kwargs
):
1440 """GetMaximumSizeY(self) -> int"""
1441 return _windows_
.SashWindow_GetMaximumSizeY(*args
, **kwargs
)
1443 def SashHitTest(*args
, **kwargs
):
1444 """SashHitTest(self, int x, int y, int tolerance=2) -> int"""
1445 return _windows_
.SashWindow_SashHitTest(*args
, **kwargs
)
1447 def SizeWindows(*args
, **kwargs
):
1448 """SizeWindows(self)"""
1449 return _windows_
.SashWindow_SizeWindows(*args
, **kwargs
)
1452 class SashWindowPtr(SashWindow
):
1453 def __init__(self
, this
):
1455 if not hasattr(self
,"thisown"): self
.thisown
= 0
1456 self
.__class
__ = SashWindow
1457 _windows_
.SashWindow_swigregister(SashWindowPtr
)
1458 SashNameStr
= cvar
.SashNameStr
1459 SashLayoutNameStr
= cvar
.SashLayoutNameStr
1461 def PreSashWindow(*args
, **kwargs
):
1462 """PreSashWindow() -> SashWindow"""
1463 val
= _windows_
.new_PreSashWindow(*args
, **kwargs
)
1467 SASH_STATUS_OK
= _windows_
.SASH_STATUS_OK
1468 SASH_STATUS_OUT_OF_RANGE
= _windows_
.SASH_STATUS_OUT_OF_RANGE
1469 class SashEvent(_core
.CommandEvent
):
1471 return "<%s.%s; proxy of C++ wxSashEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1472 def __init__(self
, *args
, **kwargs
):
1473 """__init__(self, int id=0, int edge=SASH_NONE) -> SashEvent"""
1474 newobj
= _windows_
.new_SashEvent(*args
, **kwargs
)
1475 self
.this
= newobj
.this
1478 def SetEdge(*args
, **kwargs
):
1479 """SetEdge(self, int edge)"""
1480 return _windows_
.SashEvent_SetEdge(*args
, **kwargs
)
1482 def GetEdge(*args
, **kwargs
):
1483 """GetEdge(self) -> int"""
1484 return _windows_
.SashEvent_GetEdge(*args
, **kwargs
)
1486 def SetDragRect(*args
, **kwargs
):
1487 """SetDragRect(self, Rect rect)"""
1488 return _windows_
.SashEvent_SetDragRect(*args
, **kwargs
)
1490 def GetDragRect(*args
, **kwargs
):
1491 """GetDragRect(self) -> Rect"""
1492 return _windows_
.SashEvent_GetDragRect(*args
, **kwargs
)
1494 def SetDragStatus(*args
, **kwargs
):
1495 """SetDragStatus(self, int status)"""
1496 return _windows_
.SashEvent_SetDragStatus(*args
, **kwargs
)
1498 def GetDragStatus(*args
, **kwargs
):
1499 """GetDragStatus(self) -> int"""
1500 return _windows_
.SashEvent_GetDragStatus(*args
, **kwargs
)
1503 class SashEventPtr(SashEvent
):
1504 def __init__(self
, this
):
1506 if not hasattr(self
,"thisown"): self
.thisown
= 0
1507 self
.__class
__ = SashEvent
1508 _windows_
.SashEvent_swigregister(SashEventPtr
)
1510 wxEVT_SASH_DRAGGED
= _windows_
.wxEVT_SASH_DRAGGED
1511 EVT_SASH_DRAGGED
= wx
.PyEventBinder( wxEVT_SASH_DRAGGED
, 1 )
1512 EVT_SASH_DRAGGED_RANGE
= wx
.PyEventBinder( wxEVT_SASH_DRAGGED
, 2 )
1514 #---------------------------------------------------------------------------
1516 LAYOUT_HORIZONTAL
= _windows_
.LAYOUT_HORIZONTAL
1517 LAYOUT_VERTICAL
= _windows_
.LAYOUT_VERTICAL
1518 LAYOUT_NONE
= _windows_
.LAYOUT_NONE
1519 LAYOUT_TOP
= _windows_
.LAYOUT_TOP
1520 LAYOUT_LEFT
= _windows_
.LAYOUT_LEFT
1521 LAYOUT_RIGHT
= _windows_
.LAYOUT_RIGHT
1522 LAYOUT_BOTTOM
= _windows_
.LAYOUT_BOTTOM
1523 LAYOUT_LENGTH_Y
= _windows_
.LAYOUT_LENGTH_Y
1524 LAYOUT_LENGTH_X
= _windows_
.LAYOUT_LENGTH_X
1525 LAYOUT_MRU_LENGTH
= _windows_
.LAYOUT_MRU_LENGTH
1526 LAYOUT_QUERY
= _windows_
.LAYOUT_QUERY
1527 wxEVT_QUERY_LAYOUT_INFO
= _windows_
.wxEVT_QUERY_LAYOUT_INFO
1528 wxEVT_CALCULATE_LAYOUT
= _windows_
.wxEVT_CALCULATE_LAYOUT
1529 class QueryLayoutInfoEvent(_core
.Event
):
1531 return "<%s.%s; proxy of C++ wxQueryLayoutInfoEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1532 def __init__(self
, *args
, **kwargs
):
1533 """__init__(self, int id=0) -> QueryLayoutInfoEvent"""
1534 newobj
= _windows_
.new_QueryLayoutInfoEvent(*args
, **kwargs
)
1535 self
.this
= newobj
.this
1538 def SetRequestedLength(*args
, **kwargs
):
1539 """SetRequestedLength(self, int length)"""
1540 return _windows_
.QueryLayoutInfoEvent_SetRequestedLength(*args
, **kwargs
)
1542 def GetRequestedLength(*args
, **kwargs
):
1543 """GetRequestedLength(self) -> int"""
1544 return _windows_
.QueryLayoutInfoEvent_GetRequestedLength(*args
, **kwargs
)
1546 def SetFlags(*args
, **kwargs
):
1547 """SetFlags(self, int flags)"""
1548 return _windows_
.QueryLayoutInfoEvent_SetFlags(*args
, **kwargs
)
1550 def GetFlags(*args
, **kwargs
):
1551 """GetFlags(self) -> int"""
1552 return _windows_
.QueryLayoutInfoEvent_GetFlags(*args
, **kwargs
)
1554 def SetSize(*args
, **kwargs
):
1555 """SetSize(self, Size size)"""
1556 return _windows_
.QueryLayoutInfoEvent_SetSize(*args
, **kwargs
)
1558 def GetSize(*args
, **kwargs
):
1559 """GetSize(self) -> Size"""
1560 return _windows_
.QueryLayoutInfoEvent_GetSize(*args
, **kwargs
)
1562 def SetOrientation(*args
, **kwargs
):
1563 """SetOrientation(self, int orient)"""
1564 return _windows_
.QueryLayoutInfoEvent_SetOrientation(*args
, **kwargs
)
1566 def GetOrientation(*args
, **kwargs
):
1567 """GetOrientation(self) -> int"""
1568 return _windows_
.QueryLayoutInfoEvent_GetOrientation(*args
, **kwargs
)
1570 def SetAlignment(*args
, **kwargs
):
1571 """SetAlignment(self, int align)"""
1572 return _windows_
.QueryLayoutInfoEvent_SetAlignment(*args
, **kwargs
)
1574 def GetAlignment(*args
, **kwargs
):
1575 """GetAlignment(self) -> int"""
1576 return _windows_
.QueryLayoutInfoEvent_GetAlignment(*args
, **kwargs
)
1579 class QueryLayoutInfoEventPtr(QueryLayoutInfoEvent
):
1580 def __init__(self
, this
):
1582 if not hasattr(self
,"thisown"): self
.thisown
= 0
1583 self
.__class
__ = QueryLayoutInfoEvent
1584 _windows_
.QueryLayoutInfoEvent_swigregister(QueryLayoutInfoEventPtr
)
1586 class CalculateLayoutEvent(_core
.Event
):
1588 return "<%s.%s; proxy of C++ wxCalculateLayoutEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1589 def __init__(self
, *args
, **kwargs
):
1590 """__init__(self, int id=0) -> CalculateLayoutEvent"""
1591 newobj
= _windows_
.new_CalculateLayoutEvent(*args
, **kwargs
)
1592 self
.this
= newobj
.this
1595 def SetFlags(*args
, **kwargs
):
1596 """SetFlags(self, int flags)"""
1597 return _windows_
.CalculateLayoutEvent_SetFlags(*args
, **kwargs
)
1599 def GetFlags(*args
, **kwargs
):
1600 """GetFlags(self) -> int"""
1601 return _windows_
.CalculateLayoutEvent_GetFlags(*args
, **kwargs
)
1603 def SetRect(*args
, **kwargs
):
1604 """SetRect(self, Rect rect)"""
1605 return _windows_
.CalculateLayoutEvent_SetRect(*args
, **kwargs
)
1607 def GetRect(*args
, **kwargs
):
1608 """GetRect(self) -> Rect"""
1609 return _windows_
.CalculateLayoutEvent_GetRect(*args
, **kwargs
)
1612 class CalculateLayoutEventPtr(CalculateLayoutEvent
):
1613 def __init__(self
, this
):
1615 if not hasattr(self
,"thisown"): self
.thisown
= 0
1616 self
.__class
__ = CalculateLayoutEvent
1617 _windows_
.CalculateLayoutEvent_swigregister(CalculateLayoutEventPtr
)
1619 EVT_QUERY_LAYOUT_INFO
= wx
.PyEventBinder( wxEVT_QUERY_LAYOUT_INFO
)
1620 EVT_CALCULATE_LAYOUT
= wx
.PyEventBinder( wxEVT_CALCULATE_LAYOUT
)
1622 class SashLayoutWindow(SashWindow
):
1624 return "<%s.%s; proxy of C++ wxSashLayoutWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1625 def __init__(self
, *args
, **kwargs
):
1627 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1628 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1629 String name=SashLayoutNameStr) -> SashLayoutWindow
1631 newobj
= _windows_
.new_SashLayoutWindow(*args
, **kwargs
)
1632 self
.this
= newobj
.this
1635 self
._setOORInfo
(self
)
1637 def Create(*args
, **kwargs
):
1639 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1640 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1641 String name=SashLayoutNameStr) -> bool
1643 return _windows_
.SashLayoutWindow_Create(*args
, **kwargs
)
1645 def GetAlignment(*args
, **kwargs
):
1646 """GetAlignment(self) -> int"""
1647 return _windows_
.SashLayoutWindow_GetAlignment(*args
, **kwargs
)
1649 def GetOrientation(*args
, **kwargs
):
1650 """GetOrientation(self) -> int"""
1651 return _windows_
.SashLayoutWindow_GetOrientation(*args
, **kwargs
)
1653 def SetAlignment(*args
, **kwargs
):
1654 """SetAlignment(self, int alignment)"""
1655 return _windows_
.SashLayoutWindow_SetAlignment(*args
, **kwargs
)
1657 def SetDefaultSize(*args
, **kwargs
):
1658 """SetDefaultSize(self, Size size)"""
1659 return _windows_
.SashLayoutWindow_SetDefaultSize(*args
, **kwargs
)
1661 def SetOrientation(*args
, **kwargs
):
1662 """SetOrientation(self, int orientation)"""
1663 return _windows_
.SashLayoutWindow_SetOrientation(*args
, **kwargs
)
1666 class SashLayoutWindowPtr(SashLayoutWindow
):
1667 def __init__(self
, this
):
1669 if not hasattr(self
,"thisown"): self
.thisown
= 0
1670 self
.__class
__ = SashLayoutWindow
1671 _windows_
.SashLayoutWindow_swigregister(SashLayoutWindowPtr
)
1673 def PreSashLayoutWindow(*args
, **kwargs
):
1674 """PreSashLayoutWindow() -> SashLayoutWindow"""
1675 val
= _windows_
.new_PreSashLayoutWindow(*args
, **kwargs
)
1679 class LayoutAlgorithm(_core
.Object
):
1681 return "<%s.%s; proxy of C++ wxLayoutAlgorithm instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1682 def __init__(self
, *args
, **kwargs
):
1683 """__init__(self) -> LayoutAlgorithm"""
1684 newobj
= _windows_
.new_LayoutAlgorithm(*args
, **kwargs
)
1685 self
.this
= newobj
.this
1688 def __del__(self
, destroy
=_windows_
.delete_LayoutAlgorithm
):
1691 if self
.thisown
: destroy(self
)
1694 def LayoutMDIFrame(*args
, **kwargs
):
1695 """LayoutMDIFrame(self, MDIParentFrame frame, Rect rect=None) -> bool"""
1696 return _windows_
.LayoutAlgorithm_LayoutMDIFrame(*args
, **kwargs
)
1698 def LayoutFrame(*args
, **kwargs
):
1699 """LayoutFrame(self, Frame frame, Window mainWindow=None) -> bool"""
1700 return _windows_
.LayoutAlgorithm_LayoutFrame(*args
, **kwargs
)
1702 def LayoutWindow(*args
, **kwargs
):
1703 """LayoutWindow(self, Window parent, Window mainWindow=None) -> bool"""
1704 return _windows_
.LayoutAlgorithm_LayoutWindow(*args
, **kwargs
)
1707 class LayoutAlgorithmPtr(LayoutAlgorithm
):
1708 def __init__(self
, this
):
1710 if not hasattr(self
,"thisown"): self
.thisown
= 0
1711 self
.__class
__ = LayoutAlgorithm
1712 _windows_
.LayoutAlgorithm_swigregister(LayoutAlgorithmPtr
)
1714 #---------------------------------------------------------------------------
1716 class PopupWindow(_core
.Window
):
1718 return "<%s.%s; proxy of C++ wxPopupWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1719 def __init__(self
, *args
, **kwargs
):
1720 """__init__(self, Window parent, int flags=BORDER_NONE) -> PopupWindow"""
1721 newobj
= _windows_
.new_PopupWindow(*args
, **kwargs
)
1722 self
.this
= newobj
.this
1725 self
._setOORInfo
(self
)
1727 def Create(*args
, **kwargs
):
1728 """Create(self, Window parent, int flags=BORDER_NONE) -> bool"""
1729 return _windows_
.PopupWindow_Create(*args
, **kwargs
)
1731 def Position(*args
, **kwargs
):
1732 """Position(self, Point ptOrigin, Size size)"""
1733 return _windows_
.PopupWindow_Position(*args
, **kwargs
)
1736 class PopupWindowPtr(PopupWindow
):
1737 def __init__(self
, this
):
1739 if not hasattr(self
,"thisown"): self
.thisown
= 0
1740 self
.__class
__ = PopupWindow
1741 _windows_
.PopupWindow_swigregister(PopupWindowPtr
)
1743 def PrePopupWindow(*args
, **kwargs
):
1744 """PrePopupWindow() -> PopupWindow"""
1745 val
= _windows_
.new_PrePopupWindow(*args
, **kwargs
)
1749 #---------------------------------------------------------------------------
1751 class PopupTransientWindow(PopupWindow
):
1753 return "<%s.%s; proxy of C++ wxPyPopupTransientWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1754 def __init__(self
, *args
, **kwargs
):
1755 """__init__(self, Window parent, int style=BORDER_NONE) -> PopupTransientWindow"""
1756 newobj
= _windows_
.new_PopupTransientWindow(*args
, **kwargs
)
1757 self
.this
= newobj
.this
1760 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, PopupTransientWindow
)
1762 def _setCallbackInfo(*args
, **kwargs
):
1763 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1764 return _windows_
.PopupTransientWindow__setCallbackInfo(*args
, **kwargs
)
1766 def Popup(*args
, **kwargs
):
1767 """Popup(self, Window focus=None)"""
1768 return _windows_
.PopupTransientWindow_Popup(*args
, **kwargs
)
1770 def Dismiss(*args
, **kwargs
):
1772 return _windows_
.PopupTransientWindow_Dismiss(*args
, **kwargs
)
1775 class PopupTransientWindowPtr(PopupTransientWindow
):
1776 def __init__(self
, this
):
1778 if not hasattr(self
,"thisown"): self
.thisown
= 0
1779 self
.__class
__ = PopupTransientWindow
1780 _windows_
.PopupTransientWindow_swigregister(PopupTransientWindowPtr
)
1782 def PrePopupTransientWindow(*args
, **kwargs
):
1783 """PrePopupTransientWindow() -> PopupTransientWindow"""
1784 val
= _windows_
.new_PrePopupTransientWindow(*args
, **kwargs
)
1788 #---------------------------------------------------------------------------
1790 class TipWindow(PopupTransientWindow
):
1792 return "<%s.%s; proxy of C++ wxTipWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1793 def __init__(self
, *args
, **kwargs
):
1794 """__init__(self, Window parent, String text, int maxLength=100, Rect rectBound=None) -> TipWindow"""
1795 newobj
= _windows_
.new_TipWindow(*args
, **kwargs
)
1796 self
.this
= newobj
.this
1799 self
._setOORInfo
(self
)
1801 def SetBoundingRect(*args
, **kwargs
):
1802 """SetBoundingRect(self, Rect rectBound)"""
1803 return _windows_
.TipWindow_SetBoundingRect(*args
, **kwargs
)
1805 def Close(*args
, **kwargs
):
1807 return _windows_
.TipWindow_Close(*args
, **kwargs
)
1810 class TipWindowPtr(TipWindow
):
1811 def __init__(self
, this
):
1813 if not hasattr(self
,"thisown"): self
.thisown
= 0
1814 self
.__class
__ = TipWindow
1815 _windows_
.TipWindow_swigregister(TipWindowPtr
)
1817 #---------------------------------------------------------------------------
1819 class VScrolledWindow(Panel
):
1821 return "<%s.%s; proxy of C++ wxPyVScrolledWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1822 def __init__(self
, *args
, **kwargs
):
1824 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1825 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> VScrolledWindow
1827 newobj
= _windows_
.new_VScrolledWindow(*args
, **kwargs
)
1828 self
.this
= newobj
.this
1831 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, VScrolledWindow
)
1833 def _setCallbackInfo(*args
, **kwargs
):
1834 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1835 return _windows_
.VScrolledWindow__setCallbackInfo(*args
, **kwargs
)
1837 def Create(*args
, **kwargs
):
1839 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1840 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> bool
1842 return _windows_
.VScrolledWindow_Create(*args
, **kwargs
)
1844 def SetLineCount(*args
, **kwargs
):
1845 """SetLineCount(self, size_t count)"""
1846 return _windows_
.VScrolledWindow_SetLineCount(*args
, **kwargs
)
1848 def ScrollToLine(*args
, **kwargs
):
1849 """ScrollToLine(self, size_t line) -> bool"""
1850 return _windows_
.VScrolledWindow_ScrollToLine(*args
, **kwargs
)
1852 def ScrollLines(*args
, **kwargs
):
1854 ScrollLines(self, int lines) -> bool
1856 If the platform and window class supports it, scrolls the window by
1857 the given number of lines down, if lines is positive, or up if lines
1858 is negative. Returns True if the window was scrolled, False if it was
1859 already on top/bottom and nothing was done.
1861 return _windows_
.VScrolledWindow_ScrollLines(*args
, **kwargs
)
1863 def ScrollPages(*args
, **kwargs
):
1865 ScrollPages(self, int pages) -> bool
1867 If the platform and window class supports it, scrolls the window by
1868 the given number of pages down, if pages is positive, or up if pages
1869 is negative. Returns True if the window was scrolled, False if it was
1870 already on top/bottom and nothing was done.
1872 return _windows_
.VScrolledWindow_ScrollPages(*args
, **kwargs
)
1874 def RefreshLine(*args
, **kwargs
):
1875 """RefreshLine(self, size_t line)"""
1876 return _windows_
.VScrolledWindow_RefreshLine(*args
, **kwargs
)
1878 def RefreshLines(*args
, **kwargs
):
1879 """RefreshLines(self, size_t from, size_t to)"""
1880 return _windows_
.VScrolledWindow_RefreshLines(*args
, **kwargs
)
1882 def HitTestXY(*args
, **kwargs
):
1884 HitTestXY(self, int x, int y) -> int
1886 Test where the given (in client coords) point lies
1888 return _windows_
.VScrolledWindow_HitTestXY(*args
, **kwargs
)
1890 def HitTest(*args
, **kwargs
):
1892 HitTest(self, Point pt) -> int
1894 Test where the given (in client coords) point lies
1896 return _windows_
.VScrolledWindow_HitTest(*args
, **kwargs
)
1898 def RefreshAll(*args
, **kwargs
):
1899 """RefreshAll(self)"""
1900 return _windows_
.VScrolledWindow_RefreshAll(*args
, **kwargs
)
1902 def GetLineCount(*args
, **kwargs
):
1903 """GetLineCount(self) -> size_t"""
1904 return _windows_
.VScrolledWindow_GetLineCount(*args
, **kwargs
)
1906 def GetFirstVisibleLine(*args
, **kwargs
):
1907 """GetFirstVisibleLine(self) -> size_t"""
1908 return _windows_
.VScrolledWindow_GetFirstVisibleLine(*args
, **kwargs
)
1910 def GetLastVisibleLine(*args
, **kwargs
):
1911 """GetLastVisibleLine(self) -> size_t"""
1912 return _windows_
.VScrolledWindow_GetLastVisibleLine(*args
, **kwargs
)
1914 def IsVisible(*args
, **kwargs
):
1915 """IsVisible(self, size_t line) -> bool"""
1916 return _windows_
.VScrolledWindow_IsVisible(*args
, **kwargs
)
1919 class VScrolledWindowPtr(VScrolledWindow
):
1920 def __init__(self
, this
):
1922 if not hasattr(self
,"thisown"): self
.thisown
= 0
1923 self
.__class
__ = VScrolledWindow
1924 _windows_
.VScrolledWindow_swigregister(VScrolledWindowPtr
)
1926 def PreVScrolledWindow(*args
, **kwargs
):
1927 """PreVScrolledWindow() -> VScrolledWindow"""
1928 val
= _windows_
.new_PreVScrolledWindow(*args
, **kwargs
)
1932 class VListBox(VScrolledWindow
):
1934 return "<%s.%s; proxy of C++ wxPyVListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1935 def __init__(self
, *args
, **kwargs
):
1937 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1938 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> VListBox
1940 newobj
= _windows_
.new_VListBox(*args
, **kwargs
)
1941 self
.this
= newobj
.this
1944 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, VListBox
)
1946 def _setCallbackInfo(*args
, **kwargs
):
1947 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1948 return _windows_
.VListBox__setCallbackInfo(*args
, **kwargs
)
1950 def Create(*args
, **kwargs
):
1952 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1953 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
1955 return _windows_
.VListBox_Create(*args
, **kwargs
)
1957 def GetItemCount(*args
, **kwargs
):
1958 """GetItemCount(self) -> size_t"""
1959 return _windows_
.VListBox_GetItemCount(*args
, **kwargs
)
1961 def HasMultipleSelection(*args
, **kwargs
):
1962 """HasMultipleSelection(self) -> bool"""
1963 return _windows_
.VListBox_HasMultipleSelection(*args
, **kwargs
)
1965 def GetSelection(*args
, **kwargs
):
1966 """GetSelection(self) -> int"""
1967 return _windows_
.VListBox_GetSelection(*args
, **kwargs
)
1969 def IsCurrent(*args
, **kwargs
):
1970 """IsCurrent(self, size_t item) -> bool"""
1971 return _windows_
.VListBox_IsCurrent(*args
, **kwargs
)
1973 def IsSelected(*args
, **kwargs
):
1974 """IsSelected(self, size_t item) -> bool"""
1975 return _windows_
.VListBox_IsSelected(*args
, **kwargs
)
1977 def GetSelectedCount(*args
, **kwargs
):
1978 """GetSelectedCount(self) -> size_t"""
1979 return _windows_
.VListBox_GetSelectedCount(*args
, **kwargs
)
1981 def GetFirstSelected(*args
, **kwargs
):
1982 """GetFirstSelected(self) -> PyObject"""
1983 return _windows_
.VListBox_GetFirstSelected(*args
, **kwargs
)
1985 def GetNextSelected(*args
, **kwargs
):
1986 """GetNextSelected(self, unsigned long cookie) -> PyObject"""
1987 return _windows_
.VListBox_GetNextSelected(*args
, **kwargs
)
1989 def GetMargins(*args
, **kwargs
):
1990 """GetMargins(self) -> Point"""
1991 return _windows_
.VListBox_GetMargins(*args
, **kwargs
)
1993 def GetSelectionBackground(*args
, **kwargs
):
1994 """GetSelectionBackground(self) -> Colour"""
1995 return _windows_
.VListBox_GetSelectionBackground(*args
, **kwargs
)
1997 def SetItemCount(*args
, **kwargs
):
1998 """SetItemCount(self, size_t count)"""
1999 return _windows_
.VListBox_SetItemCount(*args
, **kwargs
)
2001 def Clear(*args
, **kwargs
):
2003 return _windows_
.VListBox_Clear(*args
, **kwargs
)
2005 def SetSelection(*args
, **kwargs
):
2006 """SetSelection(self, int selection)"""
2007 return _windows_
.VListBox_SetSelection(*args
, **kwargs
)
2009 def Select(*args
, **kwargs
):
2010 """Select(self, size_t item, bool select=True) -> bool"""
2011 return _windows_
.VListBox_Select(*args
, **kwargs
)
2013 def SelectRange(*args
, **kwargs
):
2014 """SelectRange(self, size_t from, size_t to) -> bool"""
2015 return _windows_
.VListBox_SelectRange(*args
, **kwargs
)
2017 def Toggle(*args
, **kwargs
):
2018 """Toggle(self, size_t item)"""
2019 return _windows_
.VListBox_Toggle(*args
, **kwargs
)
2021 def SelectAll(*args
, **kwargs
):
2022 """SelectAll(self) -> bool"""
2023 return _windows_
.VListBox_SelectAll(*args
, **kwargs
)
2025 def DeselectAll(*args
, **kwargs
):
2026 """DeselectAll(self) -> bool"""
2027 return _windows_
.VListBox_DeselectAll(*args
, **kwargs
)
2029 def SetMargins(*args
, **kwargs
):
2030 """SetMargins(self, Point pt)"""
2031 return _windows_
.VListBox_SetMargins(*args
, **kwargs
)
2033 def SetMarginsXY(*args
, **kwargs
):
2034 """SetMarginsXY(self, int x, int y)"""
2035 return _windows_
.VListBox_SetMarginsXY(*args
, **kwargs
)
2037 def SetSelectionBackground(*args
, **kwargs
):
2038 """SetSelectionBackground(self, Colour col)"""
2039 return _windows_
.VListBox_SetSelectionBackground(*args
, **kwargs
)
2042 class VListBoxPtr(VListBox
):
2043 def __init__(self
, this
):
2045 if not hasattr(self
,"thisown"): self
.thisown
= 0
2046 self
.__class
__ = VListBox
2047 _windows_
.VListBox_swigregister(VListBoxPtr
)
2048 VListBoxNameStr
= cvar
.VListBoxNameStr
2050 def PreVListBox(*args
, **kwargs
):
2051 """PreVListBox() -> VListBox"""
2052 val
= _windows_
.new_PreVListBox(*args
, **kwargs
)
2056 class HtmlListBox(VListBox
):
2058 return "<%s.%s; proxy of C++ wxPyHtmlListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2059 def __init__(self
, *args
, **kwargs
):
2061 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
2062 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> HtmlListBox
2064 newobj
= _windows_
.new_HtmlListBox(*args
, **kwargs
)
2065 self
.this
= newobj
.this
2068 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, HtmlListBox
)
2070 def _setCallbackInfo(*args
, **kwargs
):
2071 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
2072 return _windows_
.HtmlListBox__setCallbackInfo(*args
, **kwargs
)
2074 def Create(*args
, **kwargs
):
2076 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
2077 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
2079 return _windows_
.HtmlListBox_Create(*args
, **kwargs
)
2081 def RefreshAll(*args
, **kwargs
):
2082 """RefreshAll(self)"""
2083 return _windows_
.HtmlListBox_RefreshAll(*args
, **kwargs
)
2085 def SetItemCount(*args
, **kwargs
):
2086 """SetItemCount(self, size_t count)"""
2087 return _windows_
.HtmlListBox_SetItemCount(*args
, **kwargs
)
2089 def GetFileSystem(*args
, **kwargs
):
2090 """GetFileSystem(self) -> FileSystem"""
2091 return _windows_
.HtmlListBox_GetFileSystem(*args
, **kwargs
)
2094 class HtmlListBoxPtr(HtmlListBox
):
2095 def __init__(self
, this
):
2097 if not hasattr(self
,"thisown"): self
.thisown
= 0
2098 self
.__class
__ = HtmlListBox
2099 _windows_
.HtmlListBox_swigregister(HtmlListBoxPtr
)
2101 def PreHtmlListBox(*args
, **kwargs
):
2102 """PreHtmlListBox() -> HtmlListBox"""
2103 val
= _windows_
.new_PreHtmlListBox(*args
, **kwargs
)
2107 #---------------------------------------------------------------------------
2109 class TaskBarIcon(_core
.EvtHandler
):
2111 return "<%s.%s; proxy of C++ wxPyTaskBarIcon instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2112 def __init__(self
, *args
, **kwargs
):
2113 """__init__(self) -> TaskBarIcon"""
2114 newobj
= _windows_
.new_TaskBarIcon(*args
, **kwargs
)
2115 self
.this
= newobj
.this
2118 self
._setCallbackInfo
(self
, TaskBarIcon
, 0)
2120 def _setCallbackInfo(*args
, **kwargs
):
2121 """_setCallbackInfo(self, PyObject self, PyObject _class, int incref)"""
2122 return _windows_
.TaskBarIcon__setCallbackInfo(*args
, **kwargs
)
2124 def Destroy(*args
, **kwargs
):
2128 Deletes the C++ object this Python object is a proxy for.
2130 return _windows_
.TaskBarIcon_Destroy(*args
, **kwargs
)
2132 def IsOk(*args
, **kwargs
):
2133 """IsOk(self) -> bool"""
2134 return _windows_
.TaskBarIcon_IsOk(*args
, **kwargs
)
2136 def __nonzero__(self
): return self
.IsOk()
2137 def IsIconInstalled(*args
, **kwargs
):
2138 """IsIconInstalled(self) -> bool"""
2139 return _windows_
.TaskBarIcon_IsIconInstalled(*args
, **kwargs
)
2141 def SetIcon(*args
, **kwargs
):
2142 """SetIcon(self, Icon icon, String tooltip=EmptyString) -> bool"""
2143 return _windows_
.TaskBarIcon_SetIcon(*args
, **kwargs
)
2145 def RemoveIcon(*args
, **kwargs
):
2146 """RemoveIcon(self) -> bool"""
2147 return _windows_
.TaskBarIcon_RemoveIcon(*args
, **kwargs
)
2149 def PopupMenu(*args
, **kwargs
):
2150 """PopupMenu(self, Menu menu) -> bool"""
2151 return _windows_
.TaskBarIcon_PopupMenu(*args
, **kwargs
)
2154 class TaskBarIconPtr(TaskBarIcon
):
2155 def __init__(self
, this
):
2157 if not hasattr(self
,"thisown"): self
.thisown
= 0
2158 self
.__class
__ = TaskBarIcon
2159 _windows_
.TaskBarIcon_swigregister(TaskBarIconPtr
)
2161 class TaskBarIconEvent(_core
.Event
):
2163 return "<%s.%s; proxy of C++ wxTaskBarIconEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2164 def __init__(self
, *args
, **kwargs
):
2165 """__init__(self, wxEventType evtType, wxTaskBarIcon tbIcon) -> TaskBarIconEvent"""
2166 newobj
= _windows_
.new_TaskBarIconEvent(*args
, **kwargs
)
2167 self
.this
= newobj
.this
2171 class TaskBarIconEventPtr(TaskBarIconEvent
):
2172 def __init__(self
, this
):
2174 if not hasattr(self
,"thisown"): self
.thisown
= 0
2175 self
.__class
__ = TaskBarIconEvent
2176 _windows_
.TaskBarIconEvent_swigregister(TaskBarIconEventPtr
)
2178 wxEVT_TASKBAR_MOVE
= _windows_
.wxEVT_TASKBAR_MOVE
2179 wxEVT_TASKBAR_LEFT_DOWN
= _windows_
.wxEVT_TASKBAR_LEFT_DOWN
2180 wxEVT_TASKBAR_LEFT_UP
= _windows_
.wxEVT_TASKBAR_LEFT_UP
2181 wxEVT_TASKBAR_RIGHT_DOWN
= _windows_
.wxEVT_TASKBAR_RIGHT_DOWN
2182 wxEVT_TASKBAR_RIGHT_UP
= _windows_
.wxEVT_TASKBAR_RIGHT_UP
2183 wxEVT_TASKBAR_LEFT_DCLICK
= _windows_
.wxEVT_TASKBAR_LEFT_DCLICK
2184 wxEVT_TASKBAR_RIGHT_DCLICK
= _windows_
.wxEVT_TASKBAR_RIGHT_DCLICK
2185 EVT_TASKBAR_MOVE
= wx
.PyEventBinder ( wxEVT_TASKBAR_MOVE
)
2186 EVT_TASKBAR_LEFT_DOWN
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_DOWN
)
2187 EVT_TASKBAR_LEFT_UP
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_UP
)
2188 EVT_TASKBAR_RIGHT_DOWN
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DOWN
)
2189 EVT_TASKBAR_RIGHT_UP
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_UP
)
2190 EVT_TASKBAR_LEFT_DCLICK
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_DCLICK
)
2191 EVT_TASKBAR_RIGHT_DCLICK
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DCLICK
)
2193 #---------------------------------------------------------------------------
2195 class ColourData(_core
.Object
):
2197 This class holds a variety of information related to the colour
2198 chooser dialog, used to transfer settings and results to and from the
2202 return "<%s.%s; proxy of C++ wxColourData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2203 def __init__(self
, *args
, **kwargs
):
2205 __init__(self) -> ColourData
2207 Constructor, sets default values.
2209 newobj
= _windows_
.new_ColourData(*args
, **kwargs
)
2210 self
.this
= newobj
.this
2213 def __del__(self
, destroy
=_windows_
.delete_ColourData
):
2216 if self
.thisown
: destroy(self
)
2219 def GetChooseFull(*args
, **kwargs
):
2221 GetChooseFull(self) -> bool
2223 Under Windows, determines whether the Windows colour dialog will
2224 display the full dialog with custom colour selection controls. Has no
2225 meaning under other platforms. The default value is true.
2227 return _windows_
.ColourData_GetChooseFull(*args
, **kwargs
)
2229 def GetColour(*args
, **kwargs
):
2231 GetColour(self) -> Colour
2233 Gets the colour (pre)selected by the dialog.
2235 return _windows_
.ColourData_GetColour(*args
, **kwargs
)
2237 def GetCustomColour(*args
, **kwargs
):
2239 GetCustomColour(self, int i) -> Colour
2241 Gets the i'th custom colour associated with the colour dialog. i
2242 should be an integer between 0 and 15. The default custom colours are
2243 all invalid colours.
2245 return _windows_
.ColourData_GetCustomColour(*args
, **kwargs
)
2247 def SetChooseFull(*args
, **kwargs
):
2249 SetChooseFull(self, int flag)
2251 Under Windows, tells the Windows colour dialog to display the full
2252 dialog with custom colour selection controls. Under other platforms,
2253 has no effect. The default value is true.
2255 return _windows_
.ColourData_SetChooseFull(*args
, **kwargs
)
2257 def SetColour(*args
, **kwargs
):
2259 SetColour(self, Colour colour)
2261 Sets the default colour for the colour dialog. The default colour is
2264 return _windows_
.ColourData_SetColour(*args
, **kwargs
)
2266 def SetCustomColour(*args
, **kwargs
):
2268 SetCustomColour(self, int i, Colour colour)
2270 Sets the i'th custom colour for the colour dialog. i should be an
2271 integer between 0 and 15. The default custom colours are all invalid colours.
2273 return _windows_
.ColourData_SetCustomColour(*args
, **kwargs
)
2276 class ColourDataPtr(ColourData
):
2277 def __init__(self
, this
):
2279 if not hasattr(self
,"thisown"): self
.thisown
= 0
2280 self
.__class
__ = ColourData
2281 _windows_
.ColourData_swigregister(ColourDataPtr
)
2282 FileSelectorPromptStr
= cvar
.FileSelectorPromptStr
2283 DirSelectorPromptStr
= cvar
.DirSelectorPromptStr
2284 DirDialogNameStr
= cvar
.DirDialogNameStr
2285 FileSelectorDefaultWildcardStr
= cvar
.FileSelectorDefaultWildcardStr
2286 GetTextFromUserPromptStr
= cvar
.GetTextFromUserPromptStr
2287 MessageBoxCaptionStr
= cvar
.MessageBoxCaptionStr
2289 class ColourDialog(Dialog
):
2290 """This class represents the colour chooser dialog."""
2292 return "<%s.%s; proxy of C++ wxColourDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2293 def __init__(self
, *args
, **kwargs
):
2295 __init__(self, Window parent, ColourData data=None) -> ColourDialog
2297 Constructor. Pass a parent window, and optionally a `wx.ColourData`,
2298 which will be copied to the colour dialog's internal ColourData
2301 newobj
= _windows_
.new_ColourDialog(*args
, **kwargs
)
2302 self
.this
= newobj
.this
2305 self
._setOORInfo
(self
)
2307 def GetColourData(*args
, **kwargs
):
2309 GetColourData(self) -> ColourData
2311 Returns a reference to the `wx.ColourData` used by the dialog.
2313 return _windows_
.ColourDialog_GetColourData(*args
, **kwargs
)
2316 class ColourDialogPtr(ColourDialog
):
2317 def __init__(self
, this
):
2319 if not hasattr(self
,"thisown"): self
.thisown
= 0
2320 self
.__class
__ = ColourDialog
2321 _windows_
.ColourDialog_swigregister(ColourDialogPtr
)
2323 class DirDialog(Dialog
):
2325 wx.DirDialog allows the user to select a directory by browising the
2329 return "<%s.%s; proxy of C++ wxDirDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2330 def __init__(self
, *args
, **kwargs
):
2332 __init__(self, Window parent, String message=DirSelectorPromptStr,
2333 String defaultPath=EmptyString, long style=0,
2334 Point pos=DefaultPosition, Size size=DefaultSize,
2335 String name=DirDialogNameStr) -> DirDialog
2337 Constructor. Use ShowModal method to show the dialog.
2339 newobj
= _windows_
.new_DirDialog(*args
, **kwargs
)
2340 self
.this
= newobj
.this
2343 self
._setOORInfo
(self
)
2345 def GetPath(*args
, **kwargs
):
2347 GetPath(self) -> String
2349 Returns the default or user-selected path.
2351 return _windows_
.DirDialog_GetPath(*args
, **kwargs
)
2353 def GetMessage(*args
, **kwargs
):
2355 GetMessage(self) -> String
2357 Returns the message that will be displayed on the dialog.
2359 return _windows_
.DirDialog_GetMessage(*args
, **kwargs
)
2361 def GetStyle(*args
, **kwargs
):
2363 GetStyle(self) -> long
2365 Returns the dialog style.
2367 return _windows_
.DirDialog_GetStyle(*args
, **kwargs
)
2369 def SetMessage(*args
, **kwargs
):
2371 SetMessage(self, String message)
2373 Sets the message that will be displayed on the dialog.
2375 return _windows_
.DirDialog_SetMessage(*args
, **kwargs
)
2377 def SetPath(*args
, **kwargs
):
2379 SetPath(self, String path)
2381 Sets the default path.
2383 return _windows_
.DirDialog_SetPath(*args
, **kwargs
)
2386 class DirDialogPtr(DirDialog
):
2387 def __init__(self
, this
):
2389 if not hasattr(self
,"thisown"): self
.thisown
= 0
2390 self
.__class
__ = DirDialog
2391 _windows_
.DirDialog_swigregister(DirDialogPtr
)
2393 class FileDialog(Dialog
):
2395 wx.FileDialog allows the user to select one or more files from the
2399 return "<%s.%s; proxy of C++ wxFileDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2400 def __init__(self
, *args
, **kwargs
):
2402 __init__(self, Window parent, String message=FileSelectorPromptStr,
2403 String defaultDir=EmptyString, String defaultFile=EmptyString,
2404 String wildcard=FileSelectorDefaultWildcardStr,
2405 long style=0, Point pos=DefaultPosition) -> FileDialog
2407 Constructor. Use ShowModal method to show the dialog.
2409 newobj
= _windows_
.new_FileDialog(*args
, **kwargs
)
2410 self
.this
= newobj
.this
2413 self
._setOORInfo
(self
)
2415 def SetMessage(*args
, **kwargs
):
2417 SetMessage(self, String message)
2419 Sets the message that will be displayed on the dialog.
2421 return _windows_
.FileDialog_SetMessage(*args
, **kwargs
)
2423 def SetPath(*args
, **kwargs
):
2425 SetPath(self, String path)
2427 Sets the path (the combined directory and filename that will be
2428 returned when the dialog is dismissed).
2430 return _windows_
.FileDialog_SetPath(*args
, **kwargs
)
2432 def SetDirectory(*args
, **kwargs
):
2434 SetDirectory(self, String dir)
2436 Sets the default directory.
2438 return _windows_
.FileDialog_SetDirectory(*args
, **kwargs
)
2440 def SetFilename(*args
, **kwargs
):
2442 SetFilename(self, String name)
2444 Sets the default filename.
2446 return _windows_
.FileDialog_SetFilename(*args
, **kwargs
)
2448 def SetWildcard(*args
, **kwargs
):
2450 SetWildcard(self, String wildCard)
2452 Sets the wildcard, which can contain multiple file types, for
2455 "BMP files (*.bmp)|*.bmp|GIF files (*.gif)|*.gif"
2458 return _windows_
.FileDialog_SetWildcard(*args
, **kwargs
)
2460 def SetStyle(*args
, **kwargs
):
2462 SetStyle(self, long style)
2464 Sets the dialog style.
2466 return _windows_
.FileDialog_SetStyle(*args
, **kwargs
)
2468 def SetFilterIndex(*args
, **kwargs
):
2470 SetFilterIndex(self, int filterIndex)
2472 Sets the default filter index, starting from zero.
2474 return _windows_
.FileDialog_SetFilterIndex(*args
, **kwargs
)
2476 def GetMessage(*args
, **kwargs
):
2478 GetMessage(self) -> String
2480 Returns the message that will be displayed on the dialog.
2482 return _windows_
.FileDialog_GetMessage(*args
, **kwargs
)
2484 def GetPath(*args
, **kwargs
):
2486 GetPath(self) -> String
2488 Returns the full path (directory and filename) of the selected file.
2490 return _windows_
.FileDialog_GetPath(*args
, **kwargs
)
2492 def GetDirectory(*args
, **kwargs
):
2494 GetDirectory(self) -> String
2496 Returns the default directory.
2498 return _windows_
.FileDialog_GetDirectory(*args
, **kwargs
)
2500 def GetFilename(*args
, **kwargs
):
2502 GetFilename(self) -> String
2504 Returns the default filename.
2506 return _windows_
.FileDialog_GetFilename(*args
, **kwargs
)
2508 def GetWildcard(*args
, **kwargs
):
2510 GetWildcard(self) -> String
2512 Returns the file dialog wildcard.
2514 return _windows_
.FileDialog_GetWildcard(*args
, **kwargs
)
2516 def GetStyle(*args
, **kwargs
):
2518 GetStyle(self) -> long
2520 Returns the dialog style.
2522 return _windows_
.FileDialog_GetStyle(*args
, **kwargs
)
2524 def GetFilterIndex(*args
, **kwargs
):
2526 GetFilterIndex(self) -> int
2528 Returns the index into the list of filters supplied, optionally, in
2529 the wildcard parameter. Before the dialog is shown, this is the index
2530 which will be used when the dialog is first displayed. After the
2531 dialog is shown, this is the index selected by the user.
2533 return _windows_
.FileDialog_GetFilterIndex(*args
, **kwargs
)
2535 def GetFilenames(*args
, **kwargs
):
2537 GetFilenames(self) -> PyObject
2539 Returns a list of filenames chosen in the dialog. This function
2540 should only be used with the dialogs which have wx.MULTIPLE style, use
2541 GetFilename for the others.
2543 return _windows_
.FileDialog_GetFilenames(*args
, **kwargs
)
2545 def GetPaths(*args
, **kwargs
):
2547 GetPaths(self) -> PyObject
2549 Fills the array paths with the full paths of the files chosen. This
2550 function should only be used with the dialogs which have wx.MULTIPLE
2551 style, use GetPath for the others.
2553 return _windows_
.FileDialog_GetPaths(*args
, **kwargs
)
2556 class FileDialogPtr(FileDialog
):
2557 def __init__(self
, this
):
2559 if not hasattr(self
,"thisown"): self
.thisown
= 0
2560 self
.__class
__ = FileDialog
2561 _windows_
.FileDialog_swigregister(FileDialogPtr
)
2563 CHOICEDLG_STYLE
= _windows_
.CHOICEDLG_STYLE
2564 class MultiChoiceDialog(Dialog
):
2565 """A simple dialog with a multi selection listbox."""
2567 return "<%s.%s; proxy of C++ wxMultiChoiceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2568 def __init__(self
, *args
, **kwargs
):
2570 __init__(Window parent, String message, String caption,
2571 List choices=[], long style=CHOICEDLG_STYLE,
2572 Point pos=DefaultPosition) -> MultiChoiceDialog
2574 Constructor. Use ShowModal method to show the dialog.
2576 newobj
= _windows_
.new_MultiChoiceDialog(*args
, **kwargs
)
2577 self
.this
= newobj
.this
2580 self
._setOORInfo
(self
)
2582 def SetSelections(*args
, **kwargs
):
2584 SetSelections(List selections)
2586 Specify the items in the list that should be selected, using a list of
2589 return _windows_
.MultiChoiceDialog_SetSelections(*args
, **kwargs
)
2591 def GetSelections(*args
, **kwargs
):
2593 GetSelections() -> [selections]
2595 Returns a list of integers representing the items that are selected.
2597 return _windows_
.MultiChoiceDialog_GetSelections(*args
, **kwargs
)
2600 class MultiChoiceDialogPtr(MultiChoiceDialog
):
2601 def __init__(self
, this
):
2603 if not hasattr(self
,"thisown"): self
.thisown
= 0
2604 self
.__class
__ = MultiChoiceDialog
2605 _windows_
.MultiChoiceDialog_swigregister(MultiChoiceDialogPtr
)
2607 class SingleChoiceDialog(Dialog
):
2608 """A simple dialog with a single selection listbox."""
2610 return "<%s.%s; proxy of C++ wxSingleChoiceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2611 def __init__(self
, *args
, **kwargs
):
2613 __init__(Window parent, String message, String caption,
2614 List choices=[], long style=CHOICEDLG_STYLE,
2615 Point pos=DefaultPosition) -> SingleChoiceDialog
2617 Constructor. Use ShowModal method to show the dialog.
2619 newobj
= _windows_
.new_SingleChoiceDialog(*args
, **kwargs
)
2620 self
.this
= newobj
.this
2623 self
._setOORInfo
(self
)
2625 def GetSelection(*args
, **kwargs
):
2627 GetSelection(self) -> int
2629 Get the index of teh currently selected item.
2631 return _windows_
.SingleChoiceDialog_GetSelection(*args
, **kwargs
)
2633 def GetStringSelection(*args
, **kwargs
):
2635 GetStringSelection(self) -> String
2637 Returns the string value of the currently selected item
2639 return _windows_
.SingleChoiceDialog_GetStringSelection(*args
, **kwargs
)
2641 def SetSelection(*args
, **kwargs
):
2643 SetSelection(self, int sel)
2645 Set the current selected item to sel
2647 return _windows_
.SingleChoiceDialog_SetSelection(*args
, **kwargs
)
2650 class SingleChoiceDialogPtr(SingleChoiceDialog
):
2651 def __init__(self
, this
):
2653 if not hasattr(self
,"thisown"): self
.thisown
= 0
2654 self
.__class
__ = SingleChoiceDialog
2655 _windows_
.SingleChoiceDialog_swigregister(SingleChoiceDialogPtr
)
2657 TextEntryDialogStyle
= _windows_
.TextEntryDialogStyle
2658 class TextEntryDialog(Dialog
):
2659 """A dialog with text control, [ok] and [cancel] buttons"""
2661 return "<%s.%s; proxy of C++ wxTextEntryDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2662 def __init__(self
, *args
, **kwargs
):
2664 __init__(self, Window parent, String message, String caption=GetTextFromUserPromptStr,
2665 String defaultValue=EmptyString,
2666 long style=TextEntryDialogStyle, Point pos=DefaultPosition) -> TextEntryDialog
2668 Constructor. Use ShowModal method to show the dialog.
2670 newobj
= _windows_
.new_TextEntryDialog(*args
, **kwargs
)
2671 self
.this
= newobj
.this
2674 self
._setOORInfo
(self
)
2676 def GetValue(*args
, **kwargs
):
2678 GetValue(self) -> String
2680 Returns the text that the user has entered if the user has pressed OK,
2681 or the original value if the user has pressed Cancel.
2683 return _windows_
.TextEntryDialog_GetValue(*args
, **kwargs
)
2685 def SetValue(*args
, **kwargs
):
2687 SetValue(self, String value)
2689 Sets the default text value.
2691 return _windows_
.TextEntryDialog_SetValue(*args
, **kwargs
)
2694 class TextEntryDialogPtr(TextEntryDialog
):
2695 def __init__(self
, this
):
2697 if not hasattr(self
,"thisown"): self
.thisown
= 0
2698 self
.__class
__ = TextEntryDialog
2699 _windows_
.TextEntryDialog_swigregister(TextEntryDialogPtr
)
2701 class PasswordEntryDialog(TextEntryDialog
):
2703 return "<%s.%s; proxy of C++ wxPasswordEntryDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2704 def __init__(self
, *args
, **kwargs
):
2706 __init__(self, Window parent, String message, String caption=GetPasswordFromUserPromptStr,
2707 String value=EmptyString,
2708 long style=TextEntryDialogStyle, Point pos=DefaultPosition) -> PasswordEntryDialog
2710 newobj
= _windows_
.new_PasswordEntryDialog(*args
, **kwargs
)
2711 self
.this
= newobj
.this
2715 class PasswordEntryDialogPtr(PasswordEntryDialog
):
2716 def __init__(self
, this
):
2718 if not hasattr(self
,"thisown"): self
.thisown
= 0
2719 self
.__class
__ = PasswordEntryDialog
2720 _windows_
.PasswordEntryDialog_swigregister(PasswordEntryDialogPtr
)
2721 GetPasswordFromUserPromptStr
= cvar
.GetPasswordFromUserPromptStr
2723 class FontData(_core
.Object
):
2725 This class holds a variety of information related to font dialogs and
2726 is used to transfer settings to and results from a `wx.FontDialog`.
2729 return "<%s.%s; proxy of C++ wxFontData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2730 def __init__(self
, *args
, **kwargs
):
2732 __init__(self) -> FontData
2734 This class holds a variety of information related to font dialogs and
2735 is used to transfer settings to and results from a `wx.FontDialog`.
2737 newobj
= _windows_
.new_FontData(*args
, **kwargs
)
2738 self
.this
= newobj
.this
2741 def __del__(self
, destroy
=_windows_
.delete_FontData
):
2744 if self
.thisown
: destroy(self
)
2747 def EnableEffects(*args
, **kwargs
):
2749 EnableEffects(self, bool enable)
2751 Enables or disables 'effects' under MS Windows only. This refers to
2752 the controls for manipulating colour, strikeout and underline
2753 properties. The default value is true.
2755 return _windows_
.FontData_EnableEffects(*args
, **kwargs
)
2757 def GetAllowSymbols(*args
, **kwargs
):
2759 GetAllowSymbols(self) -> bool
2761 Under MS Windows, returns a flag determining whether symbol fonts can
2762 be selected. Has no effect on other platforms. The default value is
2765 return _windows_
.FontData_GetAllowSymbols(*args
, **kwargs
)
2767 def GetColour(*args
, **kwargs
):
2769 GetColour(self) -> Colour
2771 Gets the colour associated with the font dialog. The default value is
2774 return _windows_
.FontData_GetColour(*args
, **kwargs
)
2776 def GetChosenFont(*args
, **kwargs
):
2778 GetChosenFont(self) -> Font
2780 Gets the font chosen by the user.
2782 return _windows_
.FontData_GetChosenFont(*args
, **kwargs
)
2784 def GetEnableEffects(*args
, **kwargs
):
2786 GetEnableEffects(self) -> bool
2788 Determines whether 'effects' are enabled under Windows.
2790 return _windows_
.FontData_GetEnableEffects(*args
, **kwargs
)
2792 def GetInitialFont(*args
, **kwargs
):
2794 GetInitialFont(self) -> Font
2796 Gets the font that will be initially used by the font dialog. This
2797 should have previously been set by the application.
2799 return _windows_
.FontData_GetInitialFont(*args
, **kwargs
)
2801 def GetShowHelp(*args
, **kwargs
):
2803 GetShowHelp(self) -> bool
2805 Returns true if the Help button will be shown (Windows only). The
2806 default value is false.
2808 return _windows_
.FontData_GetShowHelp(*args
, **kwargs
)
2810 def SetAllowSymbols(*args
, **kwargs
):
2812 SetAllowSymbols(self, bool allowSymbols)
2814 Under MS Windows, determines whether symbol fonts can be selected. Has
2815 no effect on other platforms. The default value is true.
2817 return _windows_
.FontData_SetAllowSymbols(*args
, **kwargs
)
2819 def SetChosenFont(*args
, **kwargs
):
2821 SetChosenFont(self, Font font)
2823 Sets the font that will be returned to the user (normally for internal
2826 return _windows_
.FontData_SetChosenFont(*args
, **kwargs
)
2828 def SetColour(*args
, **kwargs
):
2830 SetColour(self, Colour colour)
2832 Sets the colour that will be used for the font foreground colour. The
2833 default colour is black.
2835 return _windows_
.FontData_SetColour(*args
, **kwargs
)
2837 def SetInitialFont(*args
, **kwargs
):
2839 SetInitialFont(self, Font font)
2841 Sets the font that will be initially used by the font dialog.
2843 return _windows_
.FontData_SetInitialFont(*args
, **kwargs
)
2845 def SetRange(*args
, **kwargs
):
2847 SetRange(self, int min, int max)
2849 Sets the valid range for the font point size (Windows only). The
2850 default is 0, 0 (unrestricted range).
2852 return _windows_
.FontData_SetRange(*args
, **kwargs
)
2854 def SetShowHelp(*args
, **kwargs
):
2856 SetShowHelp(self, bool showHelp)
2858 Determines whether the Help button will be displayed in the font
2859 dialog (Windows only). The default value is false.
2861 return _windows_
.FontData_SetShowHelp(*args
, **kwargs
)
2864 class FontDataPtr(FontData
):
2865 def __init__(self
, this
):
2867 if not hasattr(self
,"thisown"): self
.thisown
= 0
2868 self
.__class
__ = FontData
2869 _windows_
.FontData_swigregister(FontDataPtr
)
2871 class FontDialog(Dialog
):
2873 wx.FontDialog allows the user to select a system font and its attributes.
2879 return "<%s.%s; proxy of C++ wxFontDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2880 def __init__(self
, *args
, **kwargs
):
2882 __init__(self, Window parent, FontData data) -> FontDialog
2884 Constructor. Pass a parent window and the `wx.FontData` object to be
2885 used to initialize the dialog controls. Call `ShowModal` to display
2886 the dialog. If ShowModal returns ``wx.ID_OK`` then you can fetch the
2887 results with via the `wx.FontData` returned by `GetFontData`.
2889 newobj
= _windows_
.new_FontDialog(*args
, **kwargs
)
2890 self
.this
= newobj
.this
2893 self
._setOORInfo
(self
)
2895 def GetFontData(*args
, **kwargs
):
2897 GetFontData(self) -> FontData
2899 Returns a reference to the internal `wx.FontData` used by the
2902 return _windows_
.FontDialog_GetFontData(*args
, **kwargs
)
2905 class FontDialogPtr(FontDialog
):
2906 def __init__(self
, this
):
2908 if not hasattr(self
,"thisown"): self
.thisown
= 0
2909 self
.__class
__ = FontDialog
2910 _windows_
.FontDialog_swigregister(FontDialogPtr
)
2912 class MessageDialog(Dialog
):
2914 This class provides a simple dialog that shows a single or multi-line
2915 message, with a choice of OK, Yes, No and/or Cancel buttons.
2918 return "<%s.%s; proxy of C++ wxMessageDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2919 def __init__(self
, *args
, **kwargs
):
2921 __init__(self, Window parent, String message, String caption=MessageBoxCaptionStr,
2922 long style=wxOK|wxCANCEL|wxCENTRE,
2923 Point pos=DefaultPosition) -> MessageDialog
2925 Constructor, use `ShowModal` to display the dialog.
2927 newobj
= _windows_
.new_MessageDialog(*args
, **kwargs
)
2928 self
.this
= newobj
.this
2931 self
._setOORInfo
(self
)
2934 class MessageDialogPtr(MessageDialog
):
2935 def __init__(self
, this
):
2937 if not hasattr(self
,"thisown"): self
.thisown
= 0
2938 self
.__class
__ = MessageDialog
2939 _windows_
.MessageDialog_swigregister(MessageDialogPtr
)
2941 class ProgressDialog(Frame
):
2943 A dialog that shows a short message and a progress bar. Optionally, it
2944 can display an ABORT button.
2947 return "<%s.%s; proxy of C++ wxProgressDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2948 def __init__(self
, *args
, **kwargs
):
2950 __init__(self, String title, String message, int maximum=100, Window parent=None,
2951 int style=wxPD_AUTO_HIDE|wxPD_APP_MODAL) -> ProgressDialog
2953 Constructor. Creates the dialog, displays it and disables user input
2954 for other windows, or, if wx.PD_APP_MODAL flag is not given, for its
2957 newobj
= _windows_
.new_ProgressDialog(*args
, **kwargs
)
2958 self
.this
= newobj
.this
2961 self
._setOORInfo
(self
)
2963 def Update(*args
, **kwargs
):
2965 Update(self, int value, String newmsg=EmptyString) -> bool
2967 Updates the dialog, setting the progress bar to the new value and, if
2968 given changes the message above it. The value given should be less
2969 than or equal to the maximum value given to the constructor and the
2970 dialog is closed if it is equal to the maximum. Returns true unless
2971 the Cancel button has been pressed.
2973 If false is returned, the application can either immediately destroy
2974 the dialog or ask the user for the confirmation and if the abort is
2975 not confirmed the dialog may be resumed with Resume function.
2977 return _windows_
.ProgressDialog_Update(*args
, **kwargs
)
2979 def Resume(*args
, **kwargs
):
2983 Can be used to continue with the dialog, after the user had chosen to
2986 return _windows_
.ProgressDialog_Resume(*args
, **kwargs
)
2989 class ProgressDialogPtr(ProgressDialog
):
2990 def __init__(self
, this
):
2992 if not hasattr(self
,"thisown"): self
.thisown
= 0
2993 self
.__class
__ = ProgressDialog
2994 _windows_
.ProgressDialog_swigregister(ProgressDialogPtr
)
2996 FR_DOWN
= _windows_
.FR_DOWN
2997 FR_WHOLEWORD
= _windows_
.FR_WHOLEWORD
2998 FR_MATCHCASE
= _windows_
.FR_MATCHCASE
2999 FR_REPLACEDIALOG
= _windows_
.FR_REPLACEDIALOG
3000 FR_NOUPDOWN
= _windows_
.FR_NOUPDOWN
3001 FR_NOMATCHCASE
= _windows_
.FR_NOMATCHCASE
3002 FR_NOWHOLEWORD
= _windows_
.FR_NOWHOLEWORD
3003 wxEVT_COMMAND_FIND
= _windows_
.wxEVT_COMMAND_FIND
3004 wxEVT_COMMAND_FIND_NEXT
= _windows_
.wxEVT_COMMAND_FIND_NEXT
3005 wxEVT_COMMAND_FIND_REPLACE
= _windows_
.wxEVT_COMMAND_FIND_REPLACE
3006 wxEVT_COMMAND_FIND_REPLACE_ALL
= _windows_
.wxEVT_COMMAND_FIND_REPLACE_ALL
3007 wxEVT_COMMAND_FIND_CLOSE
= _windows_
.wxEVT_COMMAND_FIND_CLOSE
3008 EVT_FIND
= wx
.PyEventBinder( wxEVT_COMMAND_FIND
, 1 )
3009 EVT_FIND_NEXT
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_NEXT
, 1 )
3010 EVT_FIND_REPLACE
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE
, 1 )
3011 EVT_FIND_REPLACE_ALL
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE_ALL
, 1 )
3012 EVT_FIND_CLOSE
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_CLOSE
, 1 )
3014 # For backwards compatibility. Should they be removed?
3015 EVT_COMMAND_FIND
= EVT_FIND
3016 EVT_COMMAND_FIND_NEXT
= EVT_FIND_NEXT
3017 EVT_COMMAND_FIND_REPLACE
= EVT_FIND_REPLACE
3018 EVT_COMMAND_FIND_REPLACE_ALL
= EVT_FIND_REPLACE_ALL
3019 EVT_COMMAND_FIND_CLOSE
= EVT_FIND_CLOSE
3021 class FindDialogEvent(_core
.CommandEvent
):
3022 """Events for the FindReplaceDialog"""
3024 return "<%s.%s; proxy of C++ wxFindDialogEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3025 def __init__(self
, *args
, **kwargs
):
3027 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0) -> FindDialogEvent
3029 Events for the FindReplaceDialog
3031 newobj
= _windows_
.new_FindDialogEvent(*args
, **kwargs
)
3032 self
.this
= newobj
.this
3035 def GetFlags(*args
, **kwargs
):
3037 GetFlags(self) -> int
3039 Get the currently selected flags: this is the combination of
3040 wx.FR_DOWN, wx.FR_WHOLEWORD and wx.FR_MATCHCASE flags.
3042 return _windows_
.FindDialogEvent_GetFlags(*args
, **kwargs
)
3044 def GetFindString(*args
, **kwargs
):
3046 GetFindString(self) -> String
3048 Return the string to find (never empty).
3050 return _windows_
.FindDialogEvent_GetFindString(*args
, **kwargs
)
3052 def GetReplaceString(*args
, **kwargs
):
3054 GetReplaceString(self) -> String
3056 Return the string to replace the search string with (only for replace
3057 and replace all events).
3059 return _windows_
.FindDialogEvent_GetReplaceString(*args
, **kwargs
)
3061 def GetDialog(*args
, **kwargs
):
3063 GetDialog(self) -> FindReplaceDialog
3065 Return the pointer to the dialog which generated this event.
3067 return _windows_
.FindDialogEvent_GetDialog(*args
, **kwargs
)
3069 def SetFlags(*args
, **kwargs
):
3070 """SetFlags(self, int flags)"""
3071 return _windows_
.FindDialogEvent_SetFlags(*args
, **kwargs
)
3073 def SetFindString(*args
, **kwargs
):
3074 """SetFindString(self, String str)"""
3075 return _windows_
.FindDialogEvent_SetFindString(*args
, **kwargs
)
3077 def SetReplaceString(*args
, **kwargs
):
3078 """SetReplaceString(self, String str)"""
3079 return _windows_
.FindDialogEvent_SetReplaceString(*args
, **kwargs
)
3082 class FindDialogEventPtr(FindDialogEvent
):
3083 def __init__(self
, this
):
3085 if not hasattr(self
,"thisown"): self
.thisown
= 0
3086 self
.__class
__ = FindDialogEvent
3087 _windows_
.FindDialogEvent_swigregister(FindDialogEventPtr
)
3089 class FindReplaceData(_core
.Object
):
3091 wx.FindReplaceData holds the data for wx.FindReplaceDialog. It is used
3092 to initialize the dialog with the default values and will keep the
3093 last values from the dialog when it is closed. It is also updated each
3094 time a `wx.FindDialogEvent` is generated so instead of using the
3095 `wx.FindDialogEvent` methods you can also directly query this object.
3097 Note that all SetXXX() methods may only be called before showing the
3098 dialog and calling them has no effect later.
3101 return "<%s.%s; proxy of C++ wxFindReplaceData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3102 def __init__(self
, *args
, **kwargs
):
3104 __init__(self, int flags=0) -> FindReplaceData
3106 Constuctor initializes the flags to default value (0).
3108 newobj
= _windows_
.new_FindReplaceData(*args
, **kwargs
)
3109 self
.this
= newobj
.this
3112 def __del__(self
, destroy
=_windows_
.delete_FindReplaceData
):
3115 if self
.thisown
: destroy(self
)
3118 def GetFindString(*args
, **kwargs
):
3120 GetFindString(self) -> String
3122 Get the string to find.
3124 return _windows_
.FindReplaceData_GetFindString(*args
, **kwargs
)
3126 def GetReplaceString(*args
, **kwargs
):
3128 GetReplaceString(self) -> String
3130 Get the replacement string.
3132 return _windows_
.FindReplaceData_GetReplaceString(*args
, **kwargs
)
3134 def GetFlags(*args
, **kwargs
):
3136 GetFlags(self) -> int
3138 Get the combination of flag values.
3140 return _windows_
.FindReplaceData_GetFlags(*args
, **kwargs
)
3142 def SetFlags(*args
, **kwargs
):
3144 SetFlags(self, int flags)
3146 Set the flags to use to initialize the controls of the dialog.
3148 return _windows_
.FindReplaceData_SetFlags(*args
, **kwargs
)
3150 def SetFindString(*args
, **kwargs
):
3152 SetFindString(self, String str)
3154 Set the string to find (used as initial value by the dialog).
3156 return _windows_
.FindReplaceData_SetFindString(*args
, **kwargs
)
3158 def SetReplaceString(*args
, **kwargs
):
3160 SetReplaceString(self, String str)
3162 Set the replacement string (used as initial value by the dialog).
3164 return _windows_
.FindReplaceData_SetReplaceString(*args
, **kwargs
)
3167 class FindReplaceDataPtr(FindReplaceData
):
3168 def __init__(self
, this
):
3170 if not hasattr(self
,"thisown"): self
.thisown
= 0
3171 self
.__class
__ = FindReplaceData
3172 _windows_
.FindReplaceData_swigregister(FindReplaceDataPtr
)
3174 class FindReplaceDialog(Dialog
):
3176 wx.FindReplaceDialog is a standard modeless dialog which is used to
3177 allow the user to search for some text (and possibly replace it with
3178 something else). The actual searching is supposed to be done in the
3179 owner window which is the parent of this dialog. Note that it means
3180 that unlike for the other standard dialogs this one must have a parent
3181 window. Also note that there is no way to use this dialog in a modal
3182 way; it is always, by design and implementation, modeless.
3185 return "<%s.%s; proxy of C++ wxFindReplaceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3186 def __init__(self
, *args
, **kwargs
):
3188 __init__(self, Window parent, FindReplaceData data, String title,
3189 int style=0) -> FindReplaceDialog
3191 Create a FindReplaceDialog. The parent and data parameters must be
3192 non-None. Use Show to display the dialog.
3194 newobj
= _windows_
.new_FindReplaceDialog(*args
, **kwargs
)
3195 self
.this
= newobj
.this
3198 self
._setOORInfo
(self
)
3200 def Create(*args
, **kwargs
):
3202 Create(self, Window parent, FindReplaceData data, String title,
3203 int style=0) -> bool
3205 Create the dialog, for 2-phase create.
3207 return _windows_
.FindReplaceDialog_Create(*args
, **kwargs
)
3209 def GetData(*args
, **kwargs
):
3211 GetData(self) -> FindReplaceData
3213 Get the FindReplaceData object used by this dialog.
3215 return _windows_
.FindReplaceDialog_GetData(*args
, **kwargs
)
3217 def SetData(*args
, **kwargs
):
3219 SetData(self, FindReplaceData data)
3221 Set the FindReplaceData object used by this dialog.
3223 return _windows_
.FindReplaceDialog_SetData(*args
, **kwargs
)
3226 class FindReplaceDialogPtr(FindReplaceDialog
):
3227 def __init__(self
, this
):
3229 if not hasattr(self
,"thisown"): self
.thisown
= 0
3230 self
.__class
__ = FindReplaceDialog
3231 _windows_
.FindReplaceDialog_swigregister(FindReplaceDialogPtr
)
3233 def PreFindReplaceDialog(*args
, **kwargs
):
3235 PreFindReplaceDialog() -> FindReplaceDialog
3237 Precreate a FindReplaceDialog for 2-phase creation
3239 val
= _windows_
.new_PreFindReplaceDialog(*args
, **kwargs
)
3243 #---------------------------------------------------------------------------
3245 IDM_WINDOWTILE
= _windows_
.IDM_WINDOWTILE
3246 IDM_WINDOWTILEHOR
= _windows_
.IDM_WINDOWTILEHOR
3247 IDM_WINDOWCASCADE
= _windows_
.IDM_WINDOWCASCADE
3248 IDM_WINDOWICONS
= _windows_
.IDM_WINDOWICONS
3249 IDM_WINDOWNEXT
= _windows_
.IDM_WINDOWNEXT
3250 IDM_WINDOWTILEVERT
= _windows_
.IDM_WINDOWTILEVERT
3251 FIRST_MDI_CHILD
= _windows_
.FIRST_MDI_CHILD
3252 LAST_MDI_CHILD
= _windows_
.LAST_MDI_CHILD
3253 class MDIParentFrame(Frame
):
3255 return "<%s.%s; proxy of C++ wxMDIParentFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3256 def __init__(self
, *args
, **kwargs
):
3258 __init__(self, Window parent, int id=-1, String title=EmptyString,
3259 Point pos=DefaultPosition, Size size=DefaultSize,
3260 long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
3261 String name=FrameNameStr) -> MDIParentFrame
3263 newobj
= _windows_
.new_MDIParentFrame(*args
, **kwargs
)
3264 self
.this
= newobj
.this
3267 self
._setOORInfo
(self
)
3269 def Create(*args
, **kwargs
):
3271 Create(self, Window parent, int id=-1, String title=EmptyString,
3272 Point pos=DefaultPosition, Size size=DefaultSize,
3273 long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
3274 String name=FrameNameStr) -> bool
3276 return _windows_
.MDIParentFrame_Create(*args
, **kwargs
)
3278 def ActivateNext(*args
, **kwargs
):
3279 """ActivateNext(self)"""
3280 return _windows_
.MDIParentFrame_ActivateNext(*args
, **kwargs
)
3282 def ActivatePrevious(*args
, **kwargs
):
3283 """ActivatePrevious(self)"""
3284 return _windows_
.MDIParentFrame_ActivatePrevious(*args
, **kwargs
)
3286 def ArrangeIcons(*args
, **kwargs
):
3287 """ArrangeIcons(self)"""
3288 return _windows_
.MDIParentFrame_ArrangeIcons(*args
, **kwargs
)
3290 def Cascade(*args
, **kwargs
):
3292 return _windows_
.MDIParentFrame_Cascade(*args
, **kwargs
)
3294 def GetActiveChild(*args
, **kwargs
):
3295 """GetActiveChild(self) -> MDIChildFrame"""
3296 return _windows_
.MDIParentFrame_GetActiveChild(*args
, **kwargs
)
3298 def GetClientWindow(*args
, **kwargs
):
3299 """GetClientWindow(self) -> MDIClientWindow"""
3300 return _windows_
.MDIParentFrame_GetClientWindow(*args
, **kwargs
)
3302 def GetToolBar(*args
, **kwargs
):
3303 """GetToolBar(self) -> Window"""
3304 return _windows_
.MDIParentFrame_GetToolBar(*args
, **kwargs
)
3306 def GetWindowMenu(*args
, **kwargs
):
3307 """GetWindowMenu(self) -> Menu"""
3308 return _windows_
.MDIParentFrame_GetWindowMenu(*args
, **kwargs
)
3310 def SetWindowMenu(*args
, **kwargs
):
3311 """SetWindowMenu(self, Menu menu)"""
3312 return _windows_
.MDIParentFrame_SetWindowMenu(*args
, **kwargs
)
3314 def SetToolBar(*args
, **kwargs
):
3315 """SetToolBar(self, wxToolBar toolbar)"""
3316 return _windows_
.MDIParentFrame_SetToolBar(*args
, **kwargs
)
3318 def Tile(*args
, **kwargs
):
3320 return _windows_
.MDIParentFrame_Tile(*args
, **kwargs
)
3323 class MDIParentFramePtr(MDIParentFrame
):
3324 def __init__(self
, this
):
3326 if not hasattr(self
,"thisown"): self
.thisown
= 0
3327 self
.__class
__ = MDIParentFrame
3328 _windows_
.MDIParentFrame_swigregister(MDIParentFramePtr
)
3330 def PreMDIParentFrame(*args
, **kwargs
):
3331 """PreMDIParentFrame() -> MDIParentFrame"""
3332 val
= _windows_
.new_PreMDIParentFrame(*args
, **kwargs
)
3336 class MDIChildFrame(Frame
):
3338 return "<%s.%s; proxy of C++ wxMDIChildFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3339 def __init__(self
, *args
, **kwargs
):
3341 __init__(self, MDIParentFrame parent, int id=-1, String title=EmptyString,
3342 Point pos=DefaultPosition, Size size=DefaultSize,
3343 long style=DEFAULT_FRAME_STYLE,
3344 String name=FrameNameStr) -> MDIChildFrame
3346 newobj
= _windows_
.new_MDIChildFrame(*args
, **kwargs
)
3347 self
.this
= newobj
.this
3350 self
._setOORInfo
(self
)
3352 def Create(*args
, **kwargs
):
3354 Create(self, MDIParentFrame parent, int id=-1, String title=EmptyString,
3355 Point pos=DefaultPosition, Size size=DefaultSize,
3356 long style=DEFAULT_FRAME_STYLE,
3357 String name=FrameNameStr) -> bool
3359 return _windows_
.MDIChildFrame_Create(*args
, **kwargs
)
3361 def Activate(*args
, **kwargs
):
3362 """Activate(self)"""
3363 return _windows_
.MDIChildFrame_Activate(*args
, **kwargs
)
3365 def Maximize(*args
, **kwargs
):
3366 """Maximize(self, bool maximize=True)"""
3367 return _windows_
.MDIChildFrame_Maximize(*args
, **kwargs
)
3369 def Restore(*args
, **kwargs
):
3371 return _windows_
.MDIChildFrame_Restore(*args
, **kwargs
)
3374 class MDIChildFramePtr(MDIChildFrame
):
3375 def __init__(self
, this
):
3377 if not hasattr(self
,"thisown"): self
.thisown
= 0
3378 self
.__class
__ = MDIChildFrame
3379 _windows_
.MDIChildFrame_swigregister(MDIChildFramePtr
)
3381 def PreMDIChildFrame(*args
, **kwargs
):
3382 """PreMDIChildFrame() -> MDIChildFrame"""
3383 val
= _windows_
.new_PreMDIChildFrame(*args
, **kwargs
)
3387 class MDIClientWindow(_core
.Window
):
3389 return "<%s.%s; proxy of C++ wxMDIClientWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3390 def __init__(self
, *args
, **kwargs
):
3391 """__init__(self, MDIParentFrame parent, long style=0) -> MDIClientWindow"""
3392 newobj
= _windows_
.new_MDIClientWindow(*args
, **kwargs
)
3393 self
.this
= newobj
.this
3396 self
._setOORInfo
(self
)
3398 def Create(*args
, **kwargs
):
3399 """Create(self, MDIParentFrame parent, long style=0) -> bool"""
3400 return _windows_
.MDIClientWindow_Create(*args
, **kwargs
)
3403 class MDIClientWindowPtr(MDIClientWindow
):
3404 def __init__(self
, this
):
3406 if not hasattr(self
,"thisown"): self
.thisown
= 0
3407 self
.__class
__ = MDIClientWindow
3408 _windows_
.MDIClientWindow_swigregister(MDIClientWindowPtr
)
3410 def PreMDIClientWindow(*args
, **kwargs
):
3411 """PreMDIClientWindow() -> MDIClientWindow"""
3412 val
= _windows_
.new_PreMDIClientWindow(*args
, **kwargs
)
3416 #---------------------------------------------------------------------------
3418 class PyWindow(_core
.Window
):
3420 return "<%s.%s; proxy of C++ wxPyWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3421 def __init__(self
, *args
, **kwargs
):
3423 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3424 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyWindow
3426 newobj
= _windows_
.new_PyWindow(*args
, **kwargs
)
3427 self
.this
= newobj
.this
3430 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyWindow
)
3432 def _setCallbackInfo(*args
, **kwargs
):
3433 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3434 return _windows_
.PyWindow__setCallbackInfo(*args
, **kwargs
)
3436 def SetBestSize(*args
, **kwargs
):
3437 """SetBestSize(self, Size size)"""
3438 return _windows_
.PyWindow_SetBestSize(*args
, **kwargs
)
3440 def base_DoMoveWindow(*args
, **kwargs
):
3441 """base_DoMoveWindow(self, int x, int y, int width, int height)"""
3442 return _windows_
.PyWindow_base_DoMoveWindow(*args
, **kwargs
)
3444 def base_DoSetSize(*args
, **kwargs
):
3445 """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3446 return _windows_
.PyWindow_base_DoSetSize(*args
, **kwargs
)
3448 def base_DoSetClientSize(*args
, **kwargs
):
3449 """base_DoSetClientSize(self, int width, int height)"""
3450 return _windows_
.PyWindow_base_DoSetClientSize(*args
, **kwargs
)
3452 def base_DoSetVirtualSize(*args
, **kwargs
):
3453 """base_DoSetVirtualSize(self, int x, int y)"""
3454 return _windows_
.PyWindow_base_DoSetVirtualSize(*args
, **kwargs
)
3456 def base_DoGetSize(*args
, **kwargs
):
3457 """base_DoGetSize() -> (width, height)"""
3458 return _windows_
.PyWindow_base_DoGetSize(*args
, **kwargs
)
3460 def base_DoGetClientSize(*args
, **kwargs
):
3461 """base_DoGetClientSize() -> (width, height)"""
3462 return _windows_
.PyWindow_base_DoGetClientSize(*args
, **kwargs
)
3464 def base_DoGetPosition(*args
, **kwargs
):
3465 """base_DoGetPosition() -> (x,y)"""
3466 return _windows_
.PyWindow_base_DoGetPosition(*args
, **kwargs
)
3468 def base_DoGetVirtualSize(*args
, **kwargs
):
3469 """base_DoGetVirtualSize(self) -> Size"""
3470 return _windows_
.PyWindow_base_DoGetVirtualSize(*args
, **kwargs
)
3472 def base_DoGetBestSize(*args
, **kwargs
):
3473 """base_DoGetBestSize(self) -> Size"""
3474 return _windows_
.PyWindow_base_DoGetBestSize(*args
, **kwargs
)
3476 def base_InitDialog(*args
, **kwargs
):
3477 """base_InitDialog(self)"""
3478 return _windows_
.PyWindow_base_InitDialog(*args
, **kwargs
)
3480 def base_TransferDataToWindow(*args
, **kwargs
):
3481 """base_TransferDataToWindow(self) -> bool"""
3482 return _windows_
.PyWindow_base_TransferDataToWindow(*args
, **kwargs
)
3484 def base_TransferDataFromWindow(*args
, **kwargs
):
3485 """base_TransferDataFromWindow(self) -> bool"""
3486 return _windows_
.PyWindow_base_TransferDataFromWindow(*args
, **kwargs
)
3488 def base_Validate(*args
, **kwargs
):
3489 """base_Validate(self) -> bool"""
3490 return _windows_
.PyWindow_base_Validate(*args
, **kwargs
)
3492 def base_AcceptsFocus(*args
, **kwargs
):
3493 """base_AcceptsFocus(self) -> bool"""
3494 return _windows_
.PyWindow_base_AcceptsFocus(*args
, **kwargs
)
3496 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
3497 """base_AcceptsFocusFromKeyboard(self) -> bool"""
3498 return _windows_
.PyWindow_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3500 def base_GetMaxSize(*args
, **kwargs
):
3501 """base_GetMaxSize(self) -> Size"""
3502 return _windows_
.PyWindow_base_GetMaxSize(*args
, **kwargs
)
3504 def base_AddChild(*args
, **kwargs
):
3505 """base_AddChild(self, Window child)"""
3506 return _windows_
.PyWindow_base_AddChild(*args
, **kwargs
)
3508 def base_RemoveChild(*args
, **kwargs
):
3509 """base_RemoveChild(self, Window child)"""
3510 return _windows_
.PyWindow_base_RemoveChild(*args
, **kwargs
)
3512 def base_ShouldInheritColours(*args
, **kwargs
):
3513 """base_ShouldInheritColours(self) -> bool"""
3514 return _windows_
.PyWindow_base_ShouldInheritColours(*args
, **kwargs
)
3516 def base_ApplyParentThemeBackground(*args
, **kwargs
):
3517 """base_ApplyParentThemeBackground(self, Colour c)"""
3518 return _windows_
.PyWindow_base_ApplyParentThemeBackground(*args
, **kwargs
)
3520 def base_GetDefaultAttributes(*args
, **kwargs
):
3521 """base_GetDefaultAttributes(self) -> VisualAttributes"""
3522 return _windows_
.PyWindow_base_GetDefaultAttributes(*args
, **kwargs
)
3525 class PyWindowPtr(PyWindow
):
3526 def __init__(self
, this
):
3528 if not hasattr(self
,"thisown"): self
.thisown
= 0
3529 self
.__class
__ = PyWindow
3530 _windows_
.PyWindow_swigregister(PyWindowPtr
)
3532 def PrePyWindow(*args
, **kwargs
):
3533 """PrePyWindow() -> PyWindow"""
3534 val
= _windows_
.new_PrePyWindow(*args
, **kwargs
)
3538 class PyPanel(Panel
):
3540 return "<%s.%s; proxy of C++ wxPyPanel instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3541 def __init__(self
, *args
, **kwargs
):
3543 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3544 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyPanel
3546 newobj
= _windows_
.new_PyPanel(*args
, **kwargs
)
3547 self
.this
= newobj
.this
3550 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyPanel
)
3552 def _setCallbackInfo(*args
, **kwargs
):
3553 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3554 return _windows_
.PyPanel__setCallbackInfo(*args
, **kwargs
)
3556 def SetBestSize(*args
, **kwargs
):
3557 """SetBestSize(self, Size size)"""
3558 return _windows_
.PyPanel_SetBestSize(*args
, **kwargs
)
3560 def base_DoMoveWindow(*args
, **kwargs
):
3561 """base_DoMoveWindow(self, int x, int y, int width, int height)"""
3562 return _windows_
.PyPanel_base_DoMoveWindow(*args
, **kwargs
)
3564 def base_DoSetSize(*args
, **kwargs
):
3565 """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3566 return _windows_
.PyPanel_base_DoSetSize(*args
, **kwargs
)
3568 def base_DoSetClientSize(*args
, **kwargs
):
3569 """base_DoSetClientSize(self, int width, int height)"""
3570 return _windows_
.PyPanel_base_DoSetClientSize(*args
, **kwargs
)
3572 def base_DoSetVirtualSize(*args
, **kwargs
):
3573 """base_DoSetVirtualSize(self, int x, int y)"""
3574 return _windows_
.PyPanel_base_DoSetVirtualSize(*args
, **kwargs
)
3576 def base_DoGetSize(*args
, **kwargs
):
3577 """base_DoGetSize() -> (width, height)"""
3578 return _windows_
.PyPanel_base_DoGetSize(*args
, **kwargs
)
3580 def base_DoGetClientSize(*args
, **kwargs
):
3581 """base_DoGetClientSize() -> (width, height)"""
3582 return _windows_
.PyPanel_base_DoGetClientSize(*args
, **kwargs
)
3584 def base_DoGetPosition(*args
, **kwargs
):
3585 """base_DoGetPosition() -> (x,y)"""
3586 return _windows_
.PyPanel_base_DoGetPosition(*args
, **kwargs
)
3588 def base_DoGetVirtualSize(*args
, **kwargs
):
3589 """base_DoGetVirtualSize(self) -> Size"""
3590 return _windows_
.PyPanel_base_DoGetVirtualSize(*args
, **kwargs
)
3592 def base_DoGetBestSize(*args
, **kwargs
):
3593 """base_DoGetBestSize(self) -> Size"""
3594 return _windows_
.PyPanel_base_DoGetBestSize(*args
, **kwargs
)
3596 def base_InitDialog(*args
, **kwargs
):
3597 """base_InitDialog(self)"""
3598 return _windows_
.PyPanel_base_InitDialog(*args
, **kwargs
)
3600 def base_TransferDataToWindow(*args
, **kwargs
):
3601 """base_TransferDataToWindow(self) -> bool"""
3602 return _windows_
.PyPanel_base_TransferDataToWindow(*args
, **kwargs
)
3604 def base_TransferDataFromWindow(*args
, **kwargs
):
3605 """base_TransferDataFromWindow(self) -> bool"""
3606 return _windows_
.PyPanel_base_TransferDataFromWindow(*args
, **kwargs
)
3608 def base_Validate(*args
, **kwargs
):
3609 """base_Validate(self) -> bool"""
3610 return _windows_
.PyPanel_base_Validate(*args
, **kwargs
)
3612 def base_AcceptsFocus(*args
, **kwargs
):
3613 """base_AcceptsFocus(self) -> bool"""
3614 return _windows_
.PyPanel_base_AcceptsFocus(*args
, **kwargs
)
3616 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
3617 """base_AcceptsFocusFromKeyboard(self) -> bool"""
3618 return _windows_
.PyPanel_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3620 def base_GetMaxSize(*args
, **kwargs
):
3621 """base_GetMaxSize(self) -> Size"""
3622 return _windows_
.PyPanel_base_GetMaxSize(*args
, **kwargs
)
3624 def base_AddChild(*args
, **kwargs
):
3625 """base_AddChild(self, Window child)"""
3626 return _windows_
.PyPanel_base_AddChild(*args
, **kwargs
)
3628 def base_RemoveChild(*args
, **kwargs
):
3629 """base_RemoveChild(self, Window child)"""
3630 return _windows_
.PyPanel_base_RemoveChild(*args
, **kwargs
)
3632 def base_ShouldInheritColours(*args
, **kwargs
):
3633 """base_ShouldInheritColours(self) -> bool"""
3634 return _windows_
.PyPanel_base_ShouldInheritColours(*args
, **kwargs
)
3636 def base_ApplyParentThemeBackground(*args
, **kwargs
):
3637 """base_ApplyParentThemeBackground(self, Colour c)"""
3638 return _windows_
.PyPanel_base_ApplyParentThemeBackground(*args
, **kwargs
)
3640 def base_GetDefaultAttributes(*args
, **kwargs
):
3641 """base_GetDefaultAttributes(self) -> VisualAttributes"""
3642 return _windows_
.PyPanel_base_GetDefaultAttributes(*args
, **kwargs
)
3645 class PyPanelPtr(PyPanel
):
3646 def __init__(self
, this
):
3648 if not hasattr(self
,"thisown"): self
.thisown
= 0
3649 self
.__class
__ = PyPanel
3650 _windows_
.PyPanel_swigregister(PyPanelPtr
)
3652 def PrePyPanel(*args
, **kwargs
):
3653 """PrePyPanel() -> PyPanel"""
3654 val
= _windows_
.new_PrePyPanel(*args
, **kwargs
)
3658 class PyScrolledWindow(ScrolledWindow
):
3660 return "<%s.%s; proxy of C++ wxPyScrolledWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3661 def __init__(self
, *args
, **kwargs
):
3663 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3664 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyScrolledWindow
3666 newobj
= _windows_
.new_PyScrolledWindow(*args
, **kwargs
)
3667 self
.this
= newobj
.this
3670 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyPanel
)
3672 def _setCallbackInfo(*args
, **kwargs
):
3673 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3674 return _windows_
.PyScrolledWindow__setCallbackInfo(*args
, **kwargs
)
3676 def SetBestSize(*args
, **kwargs
):
3677 """SetBestSize(self, Size size)"""
3678 return _windows_
.PyScrolledWindow_SetBestSize(*args
, **kwargs
)
3680 def base_DoMoveWindow(*args
, **kwargs
):
3681 """base_DoMoveWindow(self, int x, int y, int width, int height)"""
3682 return _windows_
.PyScrolledWindow_base_DoMoveWindow(*args
, **kwargs
)
3684 def base_DoSetSize(*args
, **kwargs
):
3685 """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3686 return _windows_
.PyScrolledWindow_base_DoSetSize(*args
, **kwargs
)
3688 def base_DoSetClientSize(*args
, **kwargs
):
3689 """base_DoSetClientSize(self, int width, int height)"""
3690 return _windows_
.PyScrolledWindow_base_DoSetClientSize(*args
, **kwargs
)
3692 def base_DoSetVirtualSize(*args
, **kwargs
):
3693 """base_DoSetVirtualSize(self, int x, int y)"""
3694 return _windows_
.PyScrolledWindow_base_DoSetVirtualSize(*args
, **kwargs
)
3696 def base_DoGetSize(*args
, **kwargs
):
3697 """base_DoGetSize() -> (width, height)"""
3698 return _windows_
.PyScrolledWindow_base_DoGetSize(*args
, **kwargs
)
3700 def base_DoGetClientSize(*args
, **kwargs
):
3701 """base_DoGetClientSize() -> (width, height)"""
3702 return _windows_
.PyScrolledWindow_base_DoGetClientSize(*args
, **kwargs
)
3704 def base_DoGetPosition(*args
, **kwargs
):
3705 """base_DoGetPosition() -> (x,y)"""
3706 return _windows_
.PyScrolledWindow_base_DoGetPosition(*args
, **kwargs
)
3708 def base_DoGetVirtualSize(*args
, **kwargs
):
3709 """base_DoGetVirtualSize(self) -> Size"""
3710 return _windows_
.PyScrolledWindow_base_DoGetVirtualSize(*args
, **kwargs
)
3712 def base_DoGetBestSize(*args
, **kwargs
):
3713 """base_DoGetBestSize(self) -> Size"""
3714 return _windows_
.PyScrolledWindow_base_DoGetBestSize(*args
, **kwargs
)
3716 def base_InitDialog(*args
, **kwargs
):
3717 """base_InitDialog(self)"""
3718 return _windows_
.PyScrolledWindow_base_InitDialog(*args
, **kwargs
)
3720 def base_TransferDataToWindow(*args
, **kwargs
):
3721 """base_TransferDataToWindow(self) -> bool"""
3722 return _windows_
.PyScrolledWindow_base_TransferDataToWindow(*args
, **kwargs
)
3724 def base_TransferDataFromWindow(*args
, **kwargs
):
3725 """base_TransferDataFromWindow(self) -> bool"""
3726 return _windows_
.PyScrolledWindow_base_TransferDataFromWindow(*args
, **kwargs
)
3728 def base_Validate(*args
, **kwargs
):
3729 """base_Validate(self) -> bool"""
3730 return _windows_
.PyScrolledWindow_base_Validate(*args
, **kwargs
)
3732 def base_AcceptsFocus(*args
, **kwargs
):
3733 """base_AcceptsFocus(self) -> bool"""
3734 return _windows_
.PyScrolledWindow_base_AcceptsFocus(*args
, **kwargs
)
3736 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
3737 """base_AcceptsFocusFromKeyboard(self) -> bool"""
3738 return _windows_
.PyScrolledWindow_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3740 def base_GetMaxSize(*args
, **kwargs
):
3741 """base_GetMaxSize(self) -> Size"""
3742 return _windows_
.PyScrolledWindow_base_GetMaxSize(*args
, **kwargs
)
3744 def base_AddChild(*args
, **kwargs
):
3745 """base_AddChild(self, Window child)"""
3746 return _windows_
.PyScrolledWindow_base_AddChild(*args
, **kwargs
)
3748 def base_RemoveChild(*args
, **kwargs
):
3749 """base_RemoveChild(self, Window child)"""
3750 return _windows_
.PyScrolledWindow_base_RemoveChild(*args
, **kwargs
)
3752 def base_ShouldInheritColours(*args
, **kwargs
):
3753 """base_ShouldInheritColours(self) -> bool"""
3754 return _windows_
.PyScrolledWindow_base_ShouldInheritColours(*args
, **kwargs
)
3756 def base_ApplyParentThemeBackground(*args
, **kwargs
):
3757 """base_ApplyParentThemeBackground(self, Colour c)"""
3758 return _windows_
.PyScrolledWindow_base_ApplyParentThemeBackground(*args
, **kwargs
)
3760 def base_GetDefaultAttributes(*args
, **kwargs
):
3761 """base_GetDefaultAttributes(self) -> VisualAttributes"""
3762 return _windows_
.PyScrolledWindow_base_GetDefaultAttributes(*args
, **kwargs
)
3765 class PyScrolledWindowPtr(PyScrolledWindow
):
3766 def __init__(self
, this
):
3768 if not hasattr(self
,"thisown"): self
.thisown
= 0
3769 self
.__class
__ = PyScrolledWindow
3770 _windows_
.PyScrolledWindow_swigregister(PyScrolledWindowPtr
)
3772 def PrePyScrolledWindow(*args
, **kwargs
):
3773 """PrePyScrolledWindow() -> PyScrolledWindow"""
3774 val
= _windows_
.new_PrePyScrolledWindow(*args
, **kwargs
)
3778 #---------------------------------------------------------------------------
3780 PRINT_MODE_NONE
= _windows_
.PRINT_MODE_NONE
3781 PRINT_MODE_PREVIEW
= _windows_
.PRINT_MODE_PREVIEW
3782 PRINT_MODE_FILE
= _windows_
.PRINT_MODE_FILE
3783 PRINT_MODE_PRINTER
= _windows_
.PRINT_MODE_PRINTER
3784 PRINT_MODE_STREAM
= _windows_
.PRINT_MODE_STREAM
3785 PRINTBIN_DEFAULT
= _windows_
.PRINTBIN_DEFAULT
3786 PRINTBIN_ONLYONE
= _windows_
.PRINTBIN_ONLYONE
3787 PRINTBIN_LOWER
= _windows_
.PRINTBIN_LOWER
3788 PRINTBIN_MIDDLE
= _windows_
.PRINTBIN_MIDDLE
3789 PRINTBIN_MANUAL
= _windows_
.PRINTBIN_MANUAL
3790 PRINTBIN_ENVELOPE
= _windows_
.PRINTBIN_ENVELOPE
3791 PRINTBIN_ENVMANUAL
= _windows_
.PRINTBIN_ENVMANUAL
3792 PRINTBIN_AUTO
= _windows_
.PRINTBIN_AUTO
3793 PRINTBIN_TRACTOR
= _windows_
.PRINTBIN_TRACTOR
3794 PRINTBIN_SMALLFMT
= _windows_
.PRINTBIN_SMALLFMT
3795 PRINTBIN_LARGEFMT
= _windows_
.PRINTBIN_LARGEFMT
3796 PRINTBIN_LARGECAPACITY
= _windows_
.PRINTBIN_LARGECAPACITY
3797 PRINTBIN_CASSETTE
= _windows_
.PRINTBIN_CASSETTE
3798 PRINTBIN_FORMSOURCE
= _windows_
.PRINTBIN_FORMSOURCE
3799 PRINTBIN_USER
= _windows_
.PRINTBIN_USER
3800 class PrintData(_core
.Object
):
3802 return "<%s.%s; proxy of C++ wxPrintData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3803 def __init__(self
, *args
):
3805 __init__(self) -> PrintData
3806 __init__(self, PrintData data) -> PrintData
3808 newobj
= _windows_
.new_PrintData(*args
)
3809 self
.this
= newobj
.this
3812 def __del__(self
, destroy
=_windows_
.delete_PrintData
):
3815 if self
.thisown
: destroy(self
)
3818 def GetNoCopies(*args
, **kwargs
):
3819 """GetNoCopies(self) -> int"""
3820 return _windows_
.PrintData_GetNoCopies(*args
, **kwargs
)
3822 def GetCollate(*args
, **kwargs
):
3823 """GetCollate(self) -> bool"""
3824 return _windows_
.PrintData_GetCollate(*args
, **kwargs
)
3826 def GetOrientation(*args
, **kwargs
):
3827 """GetOrientation(self) -> int"""
3828 return _windows_
.PrintData_GetOrientation(*args
, **kwargs
)
3830 def Ok(*args
, **kwargs
):
3831 """Ok(self) -> bool"""
3832 return _windows_
.PrintData_Ok(*args
, **kwargs
)
3834 def GetPrinterName(*args
, **kwargs
):
3835 """GetPrinterName(self) -> String"""
3836 return _windows_
.PrintData_GetPrinterName(*args
, **kwargs
)
3838 def GetColour(*args
, **kwargs
):
3839 """GetColour(self) -> bool"""
3840 return _windows_
.PrintData_GetColour(*args
, **kwargs
)
3842 def GetDuplex(*args
, **kwargs
):
3843 """GetDuplex(self) -> int"""
3844 return _windows_
.PrintData_GetDuplex(*args
, **kwargs
)
3846 def GetPaperId(*args
, **kwargs
):
3847 """GetPaperId(self) -> int"""
3848 return _windows_
.PrintData_GetPaperId(*args
, **kwargs
)
3850 def GetPaperSize(*args
, **kwargs
):
3851 """GetPaperSize(self) -> Size"""
3852 return _windows_
.PrintData_GetPaperSize(*args
, **kwargs
)
3854 def GetQuality(*args
, **kwargs
):
3855 """GetQuality(self) -> int"""
3856 return _windows_
.PrintData_GetQuality(*args
, **kwargs
)
3858 def GetBin(*args
, **kwargs
):
3859 """GetBin(self) -> int"""
3860 return _windows_
.PrintData_GetBin(*args
, **kwargs
)
3862 def GetPrintMode(*args
, **kwargs
):
3863 """GetPrintMode(self) -> int"""
3864 return _windows_
.PrintData_GetPrintMode(*args
, **kwargs
)
3866 def SetNoCopies(*args
, **kwargs
):
3867 """SetNoCopies(self, int v)"""
3868 return _windows_
.PrintData_SetNoCopies(*args
, **kwargs
)
3870 def SetCollate(*args
, **kwargs
):
3871 """SetCollate(self, bool flag)"""
3872 return _windows_
.PrintData_SetCollate(*args
, **kwargs
)
3874 def SetOrientation(*args
, **kwargs
):
3875 """SetOrientation(self, int orient)"""
3876 return _windows_
.PrintData_SetOrientation(*args
, **kwargs
)
3878 def SetPrinterName(*args
, **kwargs
):
3879 """SetPrinterName(self, String name)"""
3880 return _windows_
.PrintData_SetPrinterName(*args
, **kwargs
)
3882 def SetColour(*args
, **kwargs
):
3883 """SetColour(self, bool colour)"""
3884 return _windows_
.PrintData_SetColour(*args
, **kwargs
)
3886 def SetDuplex(*args
, **kwargs
):
3887 """SetDuplex(self, int duplex)"""
3888 return _windows_
.PrintData_SetDuplex(*args
, **kwargs
)
3890 def SetPaperId(*args
, **kwargs
):
3891 """SetPaperId(self, int sizeId)"""
3892 return _windows_
.PrintData_SetPaperId(*args
, **kwargs
)
3894 def SetPaperSize(*args
, **kwargs
):
3895 """SetPaperSize(self, Size sz)"""
3896 return _windows_
.PrintData_SetPaperSize(*args
, **kwargs
)
3898 def SetQuality(*args
, **kwargs
):
3899 """SetQuality(self, int quality)"""
3900 return _windows_
.PrintData_SetQuality(*args
, **kwargs
)
3902 def SetBin(*args
, **kwargs
):
3903 """SetBin(self, int bin)"""
3904 return _windows_
.PrintData_SetBin(*args
, **kwargs
)
3906 def SetPrintMode(*args
, **kwargs
):
3907 """SetPrintMode(self, int printMode)"""
3908 return _windows_
.PrintData_SetPrintMode(*args
, **kwargs
)
3910 def GetFilename(*args
, **kwargs
):
3911 """GetFilename(self) -> String"""
3912 return _windows_
.PrintData_GetFilename(*args
, **kwargs
)
3914 def SetFilename(*args
, **kwargs
):
3915 """SetFilename(self, String filename)"""
3916 return _windows_
.PrintData_SetFilename(*args
, **kwargs
)
3918 def __nonzero__(self
): return self
.Ok()
3919 def GetPrinterCommand(*args
, **kwargs
):
3920 """GetPrinterCommand(self) -> String"""
3921 return _windows_
.PrintData_GetPrinterCommand(*args
, **kwargs
)
3923 def GetPrinterOptions(*args
, **kwargs
):
3924 """GetPrinterOptions(self) -> String"""
3925 return _windows_
.PrintData_GetPrinterOptions(*args
, **kwargs
)
3927 def GetPreviewCommand(*args
, **kwargs
):
3928 """GetPreviewCommand(self) -> String"""
3929 return _windows_
.PrintData_GetPreviewCommand(*args
, **kwargs
)
3931 def GetFontMetricPath(*args
, **kwargs
):
3932 """GetFontMetricPath(self) -> String"""
3933 return _windows_
.PrintData_GetFontMetricPath(*args
, **kwargs
)
3935 def GetPrinterScaleX(*args
, **kwargs
):
3936 """GetPrinterScaleX(self) -> double"""
3937 return _windows_
.PrintData_GetPrinterScaleX(*args
, **kwargs
)
3939 def GetPrinterScaleY(*args
, **kwargs
):
3940 """GetPrinterScaleY(self) -> double"""
3941 return _windows_
.PrintData_GetPrinterScaleY(*args
, **kwargs
)
3943 def GetPrinterTranslateX(*args
, **kwargs
):
3944 """GetPrinterTranslateX(self) -> long"""
3945 return _windows_
.PrintData_GetPrinterTranslateX(*args
, **kwargs
)
3947 def GetPrinterTranslateY(*args
, **kwargs
):
3948 """GetPrinterTranslateY(self) -> long"""
3949 return _windows_
.PrintData_GetPrinterTranslateY(*args
, **kwargs
)
3951 def SetPrinterCommand(*args
, **kwargs
):
3952 """SetPrinterCommand(self, String command)"""
3953 return _windows_
.PrintData_SetPrinterCommand(*args
, **kwargs
)
3955 def SetPrinterOptions(*args
, **kwargs
):
3956 """SetPrinterOptions(self, String options)"""
3957 return _windows_
.PrintData_SetPrinterOptions(*args
, **kwargs
)
3959 def SetPreviewCommand(*args
, **kwargs
):
3960 """SetPreviewCommand(self, String command)"""
3961 return _windows_
.PrintData_SetPreviewCommand(*args
, **kwargs
)
3963 def SetFontMetricPath(*args
, **kwargs
):
3964 """SetFontMetricPath(self, String path)"""
3965 return _windows_
.PrintData_SetFontMetricPath(*args
, **kwargs
)
3967 def SetPrinterScaleX(*args
, **kwargs
):
3968 """SetPrinterScaleX(self, double x)"""
3969 return _windows_
.PrintData_SetPrinterScaleX(*args
, **kwargs
)
3971 def SetPrinterScaleY(*args
, **kwargs
):
3972 """SetPrinterScaleY(self, double y)"""
3973 return _windows_
.PrintData_SetPrinterScaleY(*args
, **kwargs
)
3975 def SetPrinterScaling(*args
, **kwargs
):
3976 """SetPrinterScaling(self, double x, double y)"""
3977 return _windows_
.PrintData_SetPrinterScaling(*args
, **kwargs
)
3979 def SetPrinterTranslateX(*args
, **kwargs
):
3980 """SetPrinterTranslateX(self, long x)"""
3981 return _windows_
.PrintData_SetPrinterTranslateX(*args
, **kwargs
)
3983 def SetPrinterTranslateY(*args
, **kwargs
):
3984 """SetPrinterTranslateY(self, long y)"""
3985 return _windows_
.PrintData_SetPrinterTranslateY(*args
, **kwargs
)
3987 def SetPrinterTranslation(*args
, **kwargs
):
3988 """SetPrinterTranslation(self, long x, long y)"""
3989 return _windows_
.PrintData_SetPrinterTranslation(*args
, **kwargs
)
3992 class PrintDataPtr(PrintData
):
3993 def __init__(self
, this
):
3995 if not hasattr(self
,"thisown"): self
.thisown
= 0
3996 self
.__class
__ = PrintData
3997 _windows_
.PrintData_swigregister(PrintDataPtr
)
3998 PrintoutTitleStr
= cvar
.PrintoutTitleStr
3999 PreviewCanvasNameStr
= cvar
.PreviewCanvasNameStr
4001 class PageSetupDialogData(_core
.Object
):
4003 return "<%s.%s; proxy of C++ wxPageSetupDialogData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4004 def __init__(self
, *args
):
4006 __init__(self) -> PageSetupDialogData
4007 __init__(self, PageSetupDialogData data) -> PageSetupDialogData
4009 newobj
= _windows_
.new_PageSetupDialogData(*args
)
4010 self
.this
= newobj
.this
4013 def __del__(self
, destroy
=_windows_
.delete_PageSetupDialogData
):
4016 if self
.thisown
: destroy(self
)
4019 def EnableHelp(*args
, **kwargs
):
4020 """EnableHelp(self, bool flag)"""
4021 return _windows_
.PageSetupDialogData_EnableHelp(*args
, **kwargs
)
4023 def EnableMargins(*args
, **kwargs
):
4024 """EnableMargins(self, bool flag)"""
4025 return _windows_
.PageSetupDialogData_EnableMargins(*args
, **kwargs
)
4027 def EnableOrientation(*args
, **kwargs
):
4028 """EnableOrientation(self, bool flag)"""
4029 return _windows_
.PageSetupDialogData_EnableOrientation(*args
, **kwargs
)
4031 def EnablePaper(*args
, **kwargs
):
4032 """EnablePaper(self, bool flag)"""
4033 return _windows_
.PageSetupDialogData_EnablePaper(*args
, **kwargs
)
4035 def EnablePrinter(*args
, **kwargs
):
4036 """EnablePrinter(self, bool flag)"""
4037 return _windows_
.PageSetupDialogData_EnablePrinter(*args
, **kwargs
)
4039 def GetDefaultMinMargins(*args
, **kwargs
):
4040 """GetDefaultMinMargins(self) -> bool"""
4041 return _windows_
.PageSetupDialogData_GetDefaultMinMargins(*args
, **kwargs
)
4043 def GetEnableMargins(*args
, **kwargs
):
4044 """GetEnableMargins(self) -> bool"""
4045 return _windows_
.PageSetupDialogData_GetEnableMargins(*args
, **kwargs
)
4047 def GetEnableOrientation(*args
, **kwargs
):
4048 """GetEnableOrientation(self) -> bool"""
4049 return _windows_
.PageSetupDialogData_GetEnableOrientation(*args
, **kwargs
)
4051 def GetEnablePaper(*args
, **kwargs
):
4052 """GetEnablePaper(self) -> bool"""
4053 return _windows_
.PageSetupDialogData_GetEnablePaper(*args
, **kwargs
)
4055 def GetEnablePrinter(*args
, **kwargs
):
4056 """GetEnablePrinter(self) -> bool"""
4057 return _windows_
.PageSetupDialogData_GetEnablePrinter(*args
, **kwargs
)
4059 def GetEnableHelp(*args
, **kwargs
):
4060 """GetEnableHelp(self) -> bool"""
4061 return _windows_
.PageSetupDialogData_GetEnableHelp(*args
, **kwargs
)
4063 def GetDefaultInfo(*args
, **kwargs
):
4064 """GetDefaultInfo(self) -> bool"""
4065 return _windows_
.PageSetupDialogData_GetDefaultInfo(*args
, **kwargs
)
4067 def GetMarginTopLeft(*args
, **kwargs
):
4068 """GetMarginTopLeft(self) -> Point"""
4069 return _windows_
.PageSetupDialogData_GetMarginTopLeft(*args
, **kwargs
)
4071 def GetMarginBottomRight(*args
, **kwargs
):
4072 """GetMarginBottomRight(self) -> Point"""
4073 return _windows_
.PageSetupDialogData_GetMarginBottomRight(*args
, **kwargs
)
4075 def GetMinMarginTopLeft(*args
, **kwargs
):
4076 """GetMinMarginTopLeft(self) -> Point"""
4077 return _windows_
.PageSetupDialogData_GetMinMarginTopLeft(*args
, **kwargs
)
4079 def GetMinMarginBottomRight(*args
, **kwargs
):
4080 """GetMinMarginBottomRight(self) -> Point"""
4081 return _windows_
.PageSetupDialogData_GetMinMarginBottomRight(*args
, **kwargs
)
4083 def GetPaperId(*args
, **kwargs
):
4084 """GetPaperId(self) -> int"""
4085 return _windows_
.PageSetupDialogData_GetPaperId(*args
, **kwargs
)
4087 def GetPaperSize(*args
, **kwargs
):
4088 """GetPaperSize(self) -> Size"""
4089 return _windows_
.PageSetupDialogData_GetPaperSize(*args
, **kwargs
)
4091 def GetPrintData(*args
, **kwargs
):
4092 """GetPrintData(self) -> PrintData"""
4093 return _windows_
.PageSetupDialogData_GetPrintData(*args
, **kwargs
)
4095 def Ok(*args
, **kwargs
):
4096 """Ok(self) -> bool"""
4097 return _windows_
.PageSetupDialogData_Ok(*args
, **kwargs
)
4099 def SetDefaultInfo(*args
, **kwargs
):
4100 """SetDefaultInfo(self, bool flag)"""
4101 return _windows_
.PageSetupDialogData_SetDefaultInfo(*args
, **kwargs
)
4103 def SetDefaultMinMargins(*args
, **kwargs
):
4104 """SetDefaultMinMargins(self, bool flag)"""
4105 return _windows_
.PageSetupDialogData_SetDefaultMinMargins(*args
, **kwargs
)
4107 def SetMarginTopLeft(*args
, **kwargs
):
4108 """SetMarginTopLeft(self, Point pt)"""
4109 return _windows_
.PageSetupDialogData_SetMarginTopLeft(*args
, **kwargs
)
4111 def SetMarginBottomRight(*args
, **kwargs
):
4112 """SetMarginBottomRight(self, Point pt)"""
4113 return _windows_
.PageSetupDialogData_SetMarginBottomRight(*args
, **kwargs
)
4115 def SetMinMarginTopLeft(*args
, **kwargs
):
4116 """SetMinMarginTopLeft(self, Point pt)"""
4117 return _windows_
.PageSetupDialogData_SetMinMarginTopLeft(*args
, **kwargs
)
4119 def SetMinMarginBottomRight(*args
, **kwargs
):
4120 """SetMinMarginBottomRight(self, Point pt)"""
4121 return _windows_
.PageSetupDialogData_SetMinMarginBottomRight(*args
, **kwargs
)
4123 def SetPaperId(*args
, **kwargs
):
4124 """SetPaperId(self, int id)"""
4125 return _windows_
.PageSetupDialogData_SetPaperId(*args
, **kwargs
)
4127 def SetPaperSize(*args
, **kwargs
):
4128 """SetPaperSize(self, Size size)"""
4129 return _windows_
.PageSetupDialogData_SetPaperSize(*args
, **kwargs
)
4131 def SetPrintData(*args
, **kwargs
):
4132 """SetPrintData(self, PrintData printData)"""
4133 return _windows_
.PageSetupDialogData_SetPrintData(*args
, **kwargs
)
4135 def __nonzero__(self
): return self
.Ok()
4137 class PageSetupDialogDataPtr(PageSetupDialogData
):
4138 def __init__(self
, this
):
4140 if not hasattr(self
,"thisown"): self
.thisown
= 0
4141 self
.__class
__ = PageSetupDialogData
4142 _windows_
.PageSetupDialogData_swigregister(PageSetupDialogDataPtr
)
4144 class PageSetupDialog(_core
.Object
):
4146 return "<%s.%s; proxy of C++ wxPageSetupDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4147 def __init__(self
, *args
, **kwargs
):
4148 """__init__(self, Window parent, PageSetupDialogData data=None) -> PageSetupDialog"""
4149 newobj
= _windows_
.new_PageSetupDialog(*args
, **kwargs
)
4150 self
.this
= newobj
.this
4153 def GetPageSetupData(*args
, **kwargs
):
4154 """GetPageSetupData(self) -> PageSetupDialogData"""
4155 return _windows_
.PageSetupDialog_GetPageSetupData(*args
, **kwargs
)
4157 def GetPageSetupDialogData(*args
, **kwargs
):
4158 """GetPageSetupDialogData(self) -> PageSetupDialogData"""
4159 return _windows_
.PageSetupDialog_GetPageSetupDialogData(*args
, **kwargs
)
4161 def ShowModal(*args
, **kwargs
):
4162 """ShowModal(self) -> int"""
4163 return _windows_
.PageSetupDialog_ShowModal(*args
, **kwargs
)
4166 class PageSetupDialogPtr(PageSetupDialog
):
4167 def __init__(self
, this
):
4169 if not hasattr(self
,"thisown"): self
.thisown
= 0
4170 self
.__class
__ = PageSetupDialog
4171 _windows_
.PageSetupDialog_swigregister(PageSetupDialogPtr
)
4173 class PrintDialogData(_core
.Object
):
4175 return "<%s.%s; proxy of C++ wxPrintDialogData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4176 def __init__(self
, *args
):
4178 __init__(self) -> PrintDialogData
4179 __init__(self, PrintData printData) -> PrintDialogData
4181 newobj
= _windows_
.new_PrintDialogData(*args
)
4182 self
.this
= newobj
.this
4185 def __del__(self
, destroy
=_windows_
.delete_PrintDialogData
):
4188 if self
.thisown
: destroy(self
)
4191 def GetFromPage(*args
, **kwargs
):
4192 """GetFromPage(self) -> int"""
4193 return _windows_
.PrintDialogData_GetFromPage(*args
, **kwargs
)
4195 def GetToPage(*args
, **kwargs
):
4196 """GetToPage(self) -> int"""
4197 return _windows_
.PrintDialogData_GetToPage(*args
, **kwargs
)
4199 def GetMinPage(*args
, **kwargs
):
4200 """GetMinPage(self) -> int"""
4201 return _windows_
.PrintDialogData_GetMinPage(*args
, **kwargs
)
4203 def GetMaxPage(*args
, **kwargs
):
4204 """GetMaxPage(self) -> int"""
4205 return _windows_
.PrintDialogData_GetMaxPage(*args
, **kwargs
)
4207 def GetNoCopies(*args
, **kwargs
):
4208 """GetNoCopies(self) -> int"""
4209 return _windows_
.PrintDialogData_GetNoCopies(*args
, **kwargs
)
4211 def GetAllPages(*args
, **kwargs
):
4212 """GetAllPages(self) -> bool"""
4213 return _windows_
.PrintDialogData_GetAllPages(*args
, **kwargs
)
4215 def GetSelection(*args
, **kwargs
):
4216 """GetSelection(self) -> bool"""
4217 return _windows_
.PrintDialogData_GetSelection(*args
, **kwargs
)
4219 def GetCollate(*args
, **kwargs
):
4220 """GetCollate(self) -> bool"""
4221 return _windows_
.PrintDialogData_GetCollate(*args
, **kwargs
)
4223 def GetPrintToFile(*args
, **kwargs
):
4224 """GetPrintToFile(self) -> bool"""
4225 return _windows_
.PrintDialogData_GetPrintToFile(*args
, **kwargs
)
4227 def GetSetupDialog(*args
, **kwargs
):
4228 """GetSetupDialog(self) -> bool"""
4229 return _windows_
.PrintDialogData_GetSetupDialog(*args
, **kwargs
)
4231 def SetSetupDialog(*args
, **kwargs
):
4232 """SetSetupDialog(self, bool flag)"""
4233 return _windows_
.PrintDialogData_SetSetupDialog(*args
, **kwargs
)
4235 def SetFromPage(*args
, **kwargs
):
4236 """SetFromPage(self, int v)"""
4237 return _windows_
.PrintDialogData_SetFromPage(*args
, **kwargs
)
4239 def SetToPage(*args
, **kwargs
):
4240 """SetToPage(self, int v)"""
4241 return _windows_
.PrintDialogData_SetToPage(*args
, **kwargs
)
4243 def SetMinPage(*args
, **kwargs
):
4244 """SetMinPage(self, int v)"""
4245 return _windows_
.PrintDialogData_SetMinPage(*args
, **kwargs
)
4247 def SetMaxPage(*args
, **kwargs
):
4248 """SetMaxPage(self, int v)"""
4249 return _windows_
.PrintDialogData_SetMaxPage(*args
, **kwargs
)
4251 def SetNoCopies(*args
, **kwargs
):
4252 """SetNoCopies(self, int v)"""
4253 return _windows_
.PrintDialogData_SetNoCopies(*args
, **kwargs
)
4255 def SetAllPages(*args
, **kwargs
):
4256 """SetAllPages(self, bool flag)"""
4257 return _windows_
.PrintDialogData_SetAllPages(*args
, **kwargs
)
4259 def SetSelection(*args
, **kwargs
):
4260 """SetSelection(self, bool flag)"""
4261 return _windows_
.PrintDialogData_SetSelection(*args
, **kwargs
)
4263 def SetCollate(*args
, **kwargs
):
4264 """SetCollate(self, bool flag)"""
4265 return _windows_
.PrintDialogData_SetCollate(*args
, **kwargs
)
4267 def SetPrintToFile(*args
, **kwargs
):
4268 """SetPrintToFile(self, bool flag)"""
4269 return _windows_
.PrintDialogData_SetPrintToFile(*args
, **kwargs
)
4271 def EnablePrintToFile(*args
, **kwargs
):
4272 """EnablePrintToFile(self, bool flag)"""
4273 return _windows_
.PrintDialogData_EnablePrintToFile(*args
, **kwargs
)
4275 def EnableSelection(*args
, **kwargs
):
4276 """EnableSelection(self, bool flag)"""
4277 return _windows_
.PrintDialogData_EnableSelection(*args
, **kwargs
)
4279 def EnablePageNumbers(*args
, **kwargs
):
4280 """EnablePageNumbers(self, bool flag)"""
4281 return _windows_
.PrintDialogData_EnablePageNumbers(*args
, **kwargs
)
4283 def EnableHelp(*args
, **kwargs
):
4284 """EnableHelp(self, bool flag)"""
4285 return _windows_
.PrintDialogData_EnableHelp(*args
, **kwargs
)
4287 def GetEnablePrintToFile(*args
, **kwargs
):
4288 """GetEnablePrintToFile(self) -> bool"""
4289 return _windows_
.PrintDialogData_GetEnablePrintToFile(*args
, **kwargs
)
4291 def GetEnableSelection(*args
, **kwargs
):
4292 """GetEnableSelection(self) -> bool"""
4293 return _windows_
.PrintDialogData_GetEnableSelection(*args
, **kwargs
)
4295 def GetEnablePageNumbers(*args
, **kwargs
):
4296 """GetEnablePageNumbers(self) -> bool"""
4297 return _windows_
.PrintDialogData_GetEnablePageNumbers(*args
, **kwargs
)
4299 def GetEnableHelp(*args
, **kwargs
):
4300 """GetEnableHelp(self) -> bool"""
4301 return _windows_
.PrintDialogData_GetEnableHelp(*args
, **kwargs
)
4303 def Ok(*args
, **kwargs
):
4304 """Ok(self) -> bool"""
4305 return _windows_
.PrintDialogData_Ok(*args
, **kwargs
)
4307 def GetPrintData(*args
, **kwargs
):
4308 """GetPrintData(self) -> PrintData"""
4309 return _windows_
.PrintDialogData_GetPrintData(*args
, **kwargs
)
4311 def SetPrintData(*args
, **kwargs
):
4312 """SetPrintData(self, PrintData printData)"""
4313 return _windows_
.PrintDialogData_SetPrintData(*args
, **kwargs
)
4315 def __nonzero__(self
): return self
.Ok()
4317 class PrintDialogDataPtr(PrintDialogData
):
4318 def __init__(self
, this
):
4320 if not hasattr(self
,"thisown"): self
.thisown
= 0
4321 self
.__class
__ = PrintDialogData
4322 _windows_
.PrintDialogData_swigregister(PrintDialogDataPtr
)
4324 class PrintDialog(_core
.Object
):
4326 return "<%s.%s; proxy of C++ wxPrintDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4327 def __init__(self
, *args
, **kwargs
):
4328 """__init__(self, Window parent, PrintDialogData data=None) -> PrintDialog"""
4329 newobj
= _windows_
.new_PrintDialog(*args
, **kwargs
)
4330 self
.this
= newobj
.this
4333 def ShowModal(*args
, **kwargs
):
4334 """ShowModal(self) -> int"""
4335 return _windows_
.PrintDialog_ShowModal(*args
, **kwargs
)
4337 def GetPrintDialogData(*args
, **kwargs
):
4338 """GetPrintDialogData(self) -> PrintDialogData"""
4339 return _windows_
.PrintDialog_GetPrintDialogData(*args
, **kwargs
)
4341 def GetPrintData(*args
, **kwargs
):
4342 """GetPrintData(self) -> PrintData"""
4343 return _windows_
.PrintDialog_GetPrintData(*args
, **kwargs
)
4345 def GetPrintDC(*args
, **kwargs
):
4346 """GetPrintDC(self) -> DC"""
4347 return _windows_
.PrintDialog_GetPrintDC(*args
, **kwargs
)
4350 class PrintDialogPtr(PrintDialog
):
4351 def __init__(self
, this
):
4353 if not hasattr(self
,"thisown"): self
.thisown
= 0
4354 self
.__class
__ = PrintDialog
4355 _windows_
.PrintDialog_swigregister(PrintDialogPtr
)
4357 PRINTER_NO_ERROR
= _windows_
.PRINTER_NO_ERROR
4358 PRINTER_CANCELLED
= _windows_
.PRINTER_CANCELLED
4359 PRINTER_ERROR
= _windows_
.PRINTER_ERROR
4360 class Printer(_core
.Object
):
4362 return "<%s.%s; proxy of C++ wxPrinter instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4363 def __init__(self
, *args
, **kwargs
):
4364 """__init__(self, PrintDialogData data=None) -> Printer"""
4365 newobj
= _windows_
.new_Printer(*args
, **kwargs
)
4366 self
.this
= newobj
.this
4369 def __del__(self
, destroy
=_windows_
.delete_Printer
):
4372 if self
.thisown
: destroy(self
)
4375 def CreateAbortWindow(*args
, **kwargs
):
4376 """CreateAbortWindow(self, Window parent, Printout printout) -> Window"""
4377 return _windows_
.Printer_CreateAbortWindow(*args
, **kwargs
)
4379 def ReportError(*args
, **kwargs
):
4380 """ReportError(self, Window parent, Printout printout, String message)"""
4381 return _windows_
.Printer_ReportError(*args
, **kwargs
)
4383 def Setup(*args
, **kwargs
):
4384 """Setup(self, Window parent) -> bool"""
4385 return _windows_
.Printer_Setup(*args
, **kwargs
)
4387 def Print(*args
, **kwargs
):
4388 """Print(self, Window parent, Printout printout, bool prompt=True) -> bool"""
4389 return _windows_
.Printer_Print(*args
, **kwargs
)
4391 def PrintDialog(*args
, **kwargs
):
4392 """PrintDialog(self, Window parent) -> DC"""
4393 return _windows_
.Printer_PrintDialog(*args
, **kwargs
)
4395 def GetPrintDialogData(*args
, **kwargs
):
4396 """GetPrintDialogData(self) -> PrintDialogData"""
4397 return _windows_
.Printer_GetPrintDialogData(*args
, **kwargs
)
4399 def GetAbort(*args
, **kwargs
):
4400 """GetAbort(self) -> bool"""
4401 return _windows_
.Printer_GetAbort(*args
, **kwargs
)
4403 def GetLastError(*args
, **kwargs
):
4404 """GetLastError() -> int"""
4405 return _windows_
.Printer_GetLastError(*args
, **kwargs
)
4407 GetLastError
= staticmethod(GetLastError
)
4409 class PrinterPtr(Printer
):
4410 def __init__(self
, this
):
4412 if not hasattr(self
,"thisown"): self
.thisown
= 0
4413 self
.__class
__ = Printer
4414 _windows_
.Printer_swigregister(PrinterPtr
)
4416 def Printer_GetLastError(*args
, **kwargs
):
4417 """Printer_GetLastError() -> int"""
4418 return _windows_
.Printer_GetLastError(*args
, **kwargs
)
4420 class Printout(_core
.Object
):
4422 return "<%s.%s; proxy of C++ wxPyPrintout instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4423 def __init__(self
, *args
, **kwargs
):
4424 """__init__(self, String title=PrintoutTitleStr) -> Printout"""
4425 newobj
= _windows_
.new_Printout(*args
, **kwargs
)
4426 self
.this
= newobj
.this
4429 self
._setCallbackInfo
(self
, Printout
)
4431 def _setCallbackInfo(*args
, **kwargs
):
4432 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4433 return _windows_
.Printout__setCallbackInfo(*args
, **kwargs
)
4435 def GetTitle(*args
, **kwargs
):
4436 """GetTitle(self) -> String"""
4437 return _windows_
.Printout_GetTitle(*args
, **kwargs
)
4439 def GetDC(*args
, **kwargs
):
4440 """GetDC(self) -> DC"""
4441 return _windows_
.Printout_GetDC(*args
, **kwargs
)
4443 def SetDC(*args
, **kwargs
):
4444 """SetDC(self, DC dc)"""
4445 return _windows_
.Printout_SetDC(*args
, **kwargs
)
4447 def SetPageSizePixels(*args
, **kwargs
):
4448 """SetPageSizePixels(self, int w, int h)"""
4449 return _windows_
.Printout_SetPageSizePixels(*args
, **kwargs
)
4451 def GetPageSizePixels(*args
, **kwargs
):
4452 """GetPageSizePixels() -> (w, h)"""
4453 return _windows_
.Printout_GetPageSizePixels(*args
, **kwargs
)
4455 def SetPageSizeMM(*args
, **kwargs
):
4456 """SetPageSizeMM(self, int w, int h)"""
4457 return _windows_
.Printout_SetPageSizeMM(*args
, **kwargs
)
4459 def GetPageSizeMM(*args
, **kwargs
):
4460 """GetPageSizeMM() -> (w, h)"""
4461 return _windows_
.Printout_GetPageSizeMM(*args
, **kwargs
)
4463 def SetPPIScreen(*args
, **kwargs
):
4464 """SetPPIScreen(self, int x, int y)"""
4465 return _windows_
.Printout_SetPPIScreen(*args
, **kwargs
)
4467 def GetPPIScreen(*args
, **kwargs
):
4468 """GetPPIScreen() -> (x,y)"""
4469 return _windows_
.Printout_GetPPIScreen(*args
, **kwargs
)
4471 def SetPPIPrinter(*args
, **kwargs
):
4472 """SetPPIPrinter(self, int x, int y)"""
4473 return _windows_
.Printout_SetPPIPrinter(*args
, **kwargs
)
4475 def GetPPIPrinter(*args
, **kwargs
):
4476 """GetPPIPrinter() -> (x,y)"""
4477 return _windows_
.Printout_GetPPIPrinter(*args
, **kwargs
)
4479 def IsPreview(*args
, **kwargs
):
4480 """IsPreview(self) -> bool"""
4481 return _windows_
.Printout_IsPreview(*args
, **kwargs
)
4483 def SetIsPreview(*args
, **kwargs
):
4484 """SetIsPreview(self, bool p)"""
4485 return _windows_
.Printout_SetIsPreview(*args
, **kwargs
)
4487 def base_OnBeginDocument(*args
, **kwargs
):
4488 """base_OnBeginDocument(self, int startPage, int endPage) -> bool"""
4489 return _windows_
.Printout_base_OnBeginDocument(*args
, **kwargs
)
4491 def base_OnEndDocument(*args
, **kwargs
):
4492 """base_OnEndDocument(self)"""
4493 return _windows_
.Printout_base_OnEndDocument(*args
, **kwargs
)
4495 def base_OnBeginPrinting(*args
, **kwargs
):
4496 """base_OnBeginPrinting(self)"""
4497 return _windows_
.Printout_base_OnBeginPrinting(*args
, **kwargs
)
4499 def base_OnEndPrinting(*args
, **kwargs
):
4500 """base_OnEndPrinting(self)"""
4501 return _windows_
.Printout_base_OnEndPrinting(*args
, **kwargs
)
4503 def base_OnPreparePrinting(*args
, **kwargs
):
4504 """base_OnPreparePrinting(self)"""
4505 return _windows_
.Printout_base_OnPreparePrinting(*args
, **kwargs
)
4507 def base_HasPage(*args
, **kwargs
):
4508 """base_HasPage(self, int page) -> bool"""
4509 return _windows_
.Printout_base_HasPage(*args
, **kwargs
)
4511 def base_GetPageInfo(*args
, **kwargs
):
4512 """base_GetPageInfo() -> (minPage, maxPage, pageFrom, pageTo)"""
4513 return _windows_
.Printout_base_GetPageInfo(*args
, **kwargs
)
4516 class PrintoutPtr(Printout
):
4517 def __init__(self
, this
):
4519 if not hasattr(self
,"thisown"): self
.thisown
= 0
4520 self
.__class
__ = Printout
4521 _windows_
.Printout_swigregister(PrintoutPtr
)
4523 class PreviewCanvas(ScrolledWindow
):
4525 return "<%s.%s; proxy of C++ wxPreviewCanvas instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4526 def __init__(self
, *args
, **kwargs
):
4528 __init__(self, PrintPreview preview, Window parent, Point pos=DefaultPosition,
4529 Size size=DefaultSize, long style=0,
4530 String name=PreviewCanvasNameStr) -> PreviewCanvas
4532 newobj
= _windows_
.new_PreviewCanvas(*args
, **kwargs
)
4533 self
.this
= newobj
.this
4536 self
._setOORInfo
(self
)
4539 class PreviewCanvasPtr(PreviewCanvas
):
4540 def __init__(self
, this
):
4542 if not hasattr(self
,"thisown"): self
.thisown
= 0
4543 self
.__class
__ = PreviewCanvas
4544 _windows_
.PreviewCanvas_swigregister(PreviewCanvasPtr
)
4546 class PreviewFrame(Frame
):
4548 return "<%s.%s; proxy of C++ wxPreviewFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4549 def __init__(self
, *args
, **kwargs
):
4551 __init__(self, PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4552 Size size=DefaultSize,
4553 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PreviewFrame
4555 newobj
= _windows_
.new_PreviewFrame(*args
, **kwargs
)
4556 self
.this
= newobj
.this
4559 self
._setOORInfo
(self
)
4561 def Initialize(*args
, **kwargs
):
4562 """Initialize(self)"""
4563 return _windows_
.PreviewFrame_Initialize(*args
, **kwargs
)
4565 def CreateControlBar(*args
, **kwargs
):
4566 """CreateControlBar(self)"""
4567 return _windows_
.PreviewFrame_CreateControlBar(*args
, **kwargs
)
4569 def CreateCanvas(*args
, **kwargs
):
4570 """CreateCanvas(self)"""
4571 return _windows_
.PreviewFrame_CreateCanvas(*args
, **kwargs
)
4573 def GetControlBar(*args
, **kwargs
):
4574 """GetControlBar(self) -> PreviewControlBar"""
4575 return _windows_
.PreviewFrame_GetControlBar(*args
, **kwargs
)
4578 class PreviewFramePtr(PreviewFrame
):
4579 def __init__(self
, this
):
4581 if not hasattr(self
,"thisown"): self
.thisown
= 0
4582 self
.__class
__ = PreviewFrame
4583 _windows_
.PreviewFrame_swigregister(PreviewFramePtr
)
4585 PREVIEW_PRINT
= _windows_
.PREVIEW_PRINT
4586 PREVIEW_PREVIOUS
= _windows_
.PREVIEW_PREVIOUS
4587 PREVIEW_NEXT
= _windows_
.PREVIEW_NEXT
4588 PREVIEW_ZOOM
= _windows_
.PREVIEW_ZOOM
4589 PREVIEW_FIRST
= _windows_
.PREVIEW_FIRST
4590 PREVIEW_LAST
= _windows_
.PREVIEW_LAST
4591 PREVIEW_GOTO
= _windows_
.PREVIEW_GOTO
4592 PREVIEW_DEFAULT
= _windows_
.PREVIEW_DEFAULT
4593 ID_PREVIEW_CLOSE
= _windows_
.ID_PREVIEW_CLOSE
4594 ID_PREVIEW_NEXT
= _windows_
.ID_PREVIEW_NEXT
4595 ID_PREVIEW_PREVIOUS
= _windows_
.ID_PREVIEW_PREVIOUS
4596 ID_PREVIEW_PRINT
= _windows_
.ID_PREVIEW_PRINT
4597 ID_PREVIEW_ZOOM
= _windows_
.ID_PREVIEW_ZOOM
4598 ID_PREVIEW_FIRST
= _windows_
.ID_PREVIEW_FIRST
4599 ID_PREVIEW_LAST
= _windows_
.ID_PREVIEW_LAST
4600 ID_PREVIEW_GOTO
= _windows_
.ID_PREVIEW_GOTO
4601 class PreviewControlBar(Panel
):
4603 return "<%s.%s; proxy of C++ wxPreviewControlBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4604 def __init__(self
, *args
, **kwargs
):
4606 __init__(self, PrintPreview preview, long buttons, Window parent,
4607 Point pos=DefaultPosition, Size size=DefaultSize,
4608 long style=TAB_TRAVERSAL, String name=PanelNameStr) -> PreviewControlBar
4610 newobj
= _windows_
.new_PreviewControlBar(*args
, **kwargs
)
4611 self
.this
= newobj
.this
4614 self
._setOORInfo
(self
)
4616 def GetZoomControl(*args
, **kwargs
):
4617 """GetZoomControl(self) -> int"""
4618 return _windows_
.PreviewControlBar_GetZoomControl(*args
, **kwargs
)
4620 def SetZoomControl(*args
, **kwargs
):
4621 """SetZoomControl(self, int zoom)"""
4622 return _windows_
.PreviewControlBar_SetZoomControl(*args
, **kwargs
)
4624 def GetPrintPreview(*args
, **kwargs
):
4625 """GetPrintPreview(self) -> PrintPreview"""
4626 return _windows_
.PreviewControlBar_GetPrintPreview(*args
, **kwargs
)
4628 def OnNext(*args
, **kwargs
):
4630 return _windows_
.PreviewControlBar_OnNext(*args
, **kwargs
)
4632 def OnPrevious(*args
, **kwargs
):
4633 """OnPrevious(self)"""
4634 return _windows_
.PreviewControlBar_OnPrevious(*args
, **kwargs
)
4636 def OnFirst(*args
, **kwargs
):
4638 return _windows_
.PreviewControlBar_OnFirst(*args
, **kwargs
)
4640 def OnLast(*args
, **kwargs
):
4642 return _windows_
.PreviewControlBar_OnLast(*args
, **kwargs
)
4644 def OnGoto(*args
, **kwargs
):
4646 return _windows_
.PreviewControlBar_OnGoto(*args
, **kwargs
)
4649 class PreviewControlBarPtr(PreviewControlBar
):
4650 def __init__(self
, this
):
4652 if not hasattr(self
,"thisown"): self
.thisown
= 0
4653 self
.__class
__ = PreviewControlBar
4654 _windows_
.PreviewControlBar_swigregister(PreviewControlBarPtr
)
4656 class PrintPreview(_core
.Object
):
4658 return "<%s.%s; proxy of C++ wxPrintPreview instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4659 def __init__(self
, *args
):
4661 __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PrintPreview
4662 __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PrintPreview
4664 newobj
= _windows_
.new_PrintPreview(*args
)
4665 self
.this
= newobj
.this
4668 def SetCurrentPage(*args
, **kwargs
):
4669 """SetCurrentPage(self, int pageNum) -> bool"""
4670 return _windows_
.PrintPreview_SetCurrentPage(*args
, **kwargs
)
4672 def GetCurrentPage(*args
, **kwargs
):
4673 """GetCurrentPage(self) -> int"""
4674 return _windows_
.PrintPreview_GetCurrentPage(*args
, **kwargs
)
4676 def SetPrintout(*args
, **kwargs
):
4677 """SetPrintout(self, Printout printout)"""
4678 return _windows_
.PrintPreview_SetPrintout(*args
, **kwargs
)
4680 def GetPrintout(*args
, **kwargs
):
4681 """GetPrintout(self) -> Printout"""
4682 return _windows_
.PrintPreview_GetPrintout(*args
, **kwargs
)
4684 def GetPrintoutForPrinting(*args
, **kwargs
):
4685 """GetPrintoutForPrinting(self) -> Printout"""
4686 return _windows_
.PrintPreview_GetPrintoutForPrinting(*args
, **kwargs
)
4688 def SetFrame(*args
, **kwargs
):
4689 """SetFrame(self, Frame frame)"""
4690 return _windows_
.PrintPreview_SetFrame(*args
, **kwargs
)
4692 def SetCanvas(*args
, **kwargs
):
4693 """SetCanvas(self, PreviewCanvas canvas)"""
4694 return _windows_
.PrintPreview_SetCanvas(*args
, **kwargs
)
4696 def GetFrame(*args
, **kwargs
):
4697 """GetFrame(self) -> Frame"""
4698 return _windows_
.PrintPreview_GetFrame(*args
, **kwargs
)
4700 def GetCanvas(*args
, **kwargs
):
4701 """GetCanvas(self) -> PreviewCanvas"""
4702 return _windows_
.PrintPreview_GetCanvas(*args
, **kwargs
)
4704 def PaintPage(*args
, **kwargs
):
4705 """PaintPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4706 return _windows_
.PrintPreview_PaintPage(*args
, **kwargs
)
4708 def DrawBlankPage(*args
, **kwargs
):
4709 """DrawBlankPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4710 return _windows_
.PrintPreview_DrawBlankPage(*args
, **kwargs
)
4712 def RenderPage(*args
, **kwargs
):
4713 """RenderPage(self, int pageNum) -> bool"""
4714 return _windows_
.PrintPreview_RenderPage(*args
, **kwargs
)
4716 def AdjustScrollbars(*args
, **kwargs
):
4717 """AdjustScrollbars(self, PreviewCanvas canvas)"""
4718 return _windows_
.PrintPreview_AdjustScrollbars(*args
, **kwargs
)
4720 def GetPrintDialogData(*args
, **kwargs
):
4721 """GetPrintDialogData(self) -> PrintDialogData"""
4722 return _windows_
.PrintPreview_GetPrintDialogData(*args
, **kwargs
)
4724 def SetZoom(*args
, **kwargs
):
4725 """SetZoom(self, int percent)"""
4726 return _windows_
.PrintPreview_SetZoom(*args
, **kwargs
)
4728 def GetZoom(*args
, **kwargs
):
4729 """GetZoom(self) -> int"""
4730 return _windows_
.PrintPreview_GetZoom(*args
, **kwargs
)
4732 def GetMaxPage(*args
, **kwargs
):
4733 """GetMaxPage(self) -> int"""
4734 return _windows_
.PrintPreview_GetMaxPage(*args
, **kwargs
)
4736 def GetMinPage(*args
, **kwargs
):
4737 """GetMinPage(self) -> int"""
4738 return _windows_
.PrintPreview_GetMinPage(*args
, **kwargs
)
4740 def Ok(*args
, **kwargs
):
4741 """Ok(self) -> bool"""
4742 return _windows_
.PrintPreview_Ok(*args
, **kwargs
)
4744 def SetOk(*args
, **kwargs
):
4745 """SetOk(self, bool ok)"""
4746 return _windows_
.PrintPreview_SetOk(*args
, **kwargs
)
4748 def Print(*args
, **kwargs
):
4749 """Print(self, bool interactive) -> bool"""
4750 return _windows_
.PrintPreview_Print(*args
, **kwargs
)
4752 def DetermineScaling(*args
, **kwargs
):
4753 """DetermineScaling(self)"""
4754 return _windows_
.PrintPreview_DetermineScaling(*args
, **kwargs
)
4756 def __nonzero__(self
): return self
.Ok()
4758 class PrintPreviewPtr(PrintPreview
):
4759 def __init__(self
, this
):
4761 if not hasattr(self
,"thisown"): self
.thisown
= 0
4762 self
.__class
__ = PrintPreview
4763 _windows_
.PrintPreview_swigregister(PrintPreviewPtr
)
4765 class PyPrintPreview(PrintPreview
):
4767 return "<%s.%s; proxy of C++ wxPyPrintPreview instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4768 def __init__(self
, *args
):
4770 __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PyPrintPreview
4771 __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PyPrintPreview
4773 newobj
= _windows_
.new_PyPrintPreview(*args
)
4774 self
.this
= newobj
.this
4777 self
._setCallbackInfo
(self
, PyPrintPreview
)
4779 def _setCallbackInfo(*args
, **kwargs
):
4780 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4781 return _windows_
.PyPrintPreview__setCallbackInfo(*args
, **kwargs
)
4783 def base_SetCurrentPage(*args
, **kwargs
):
4784 """base_SetCurrentPage(self, int pageNum) -> bool"""
4785 return _windows_
.PyPrintPreview_base_SetCurrentPage(*args
, **kwargs
)
4787 def base_PaintPage(*args
, **kwargs
):
4788 """base_PaintPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4789 return _windows_
.PyPrintPreview_base_PaintPage(*args
, **kwargs
)
4791 def base_DrawBlankPage(*args
, **kwargs
):
4792 """base_DrawBlankPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4793 return _windows_
.PyPrintPreview_base_DrawBlankPage(*args
, **kwargs
)
4795 def base_RenderPage(*args
, **kwargs
):
4796 """base_RenderPage(self, int pageNum) -> bool"""
4797 return _windows_
.PyPrintPreview_base_RenderPage(*args
, **kwargs
)
4799 def base_SetZoom(*args
, **kwargs
):
4800 """base_SetZoom(self, int percent)"""
4801 return _windows_
.PyPrintPreview_base_SetZoom(*args
, **kwargs
)
4803 def base_Print(*args
, **kwargs
):
4804 """base_Print(self, bool interactive) -> bool"""
4805 return _windows_
.PyPrintPreview_base_Print(*args
, **kwargs
)
4807 def base_DetermineScaling(*args
, **kwargs
):
4808 """base_DetermineScaling(self)"""
4809 return _windows_
.PyPrintPreview_base_DetermineScaling(*args
, **kwargs
)
4812 class PyPrintPreviewPtr(PyPrintPreview
):
4813 def __init__(self
, this
):
4815 if not hasattr(self
,"thisown"): self
.thisown
= 0
4816 self
.__class
__ = PyPrintPreview
4817 _windows_
.PyPrintPreview_swigregister(PyPrintPreviewPtr
)
4819 class PyPreviewFrame(PreviewFrame
):
4821 return "<%s.%s; proxy of C++ wxPyPreviewFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4822 def __init__(self
, *args
, **kwargs
):
4824 __init__(self, PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4825 Size size=DefaultSize,
4826 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PyPreviewFrame
4828 newobj
= _windows_
.new_PyPreviewFrame(*args
, **kwargs
)
4829 self
.this
= newobj
.this
4832 self
._setCallbackInfo
(self
, PyPreviewFrame
); self
._setOORInfo
(self
)
4834 def _setCallbackInfo(*args
, **kwargs
):
4835 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4836 return _windows_
.PyPreviewFrame__setCallbackInfo(*args
, **kwargs
)
4838 def SetPreviewCanvas(*args
, **kwargs
):
4839 """SetPreviewCanvas(self, PreviewCanvas canvas)"""
4840 return _windows_
.PyPreviewFrame_SetPreviewCanvas(*args
, **kwargs
)
4842 def SetControlBar(*args
, **kwargs
):
4843 """SetControlBar(self, PreviewControlBar bar)"""
4844 return _windows_
.PyPreviewFrame_SetControlBar(*args
, **kwargs
)
4846 def base_Initialize(*args
, **kwargs
):
4847 """base_Initialize(self)"""
4848 return _windows_
.PyPreviewFrame_base_Initialize(*args
, **kwargs
)
4850 def base_CreateCanvas(*args
, **kwargs
):
4851 """base_CreateCanvas(self)"""
4852 return _windows_
.PyPreviewFrame_base_CreateCanvas(*args
, **kwargs
)
4854 def base_CreateControlBar(*args
, **kwargs
):
4855 """base_CreateControlBar(self)"""
4856 return _windows_
.PyPreviewFrame_base_CreateControlBar(*args
, **kwargs
)
4859 class PyPreviewFramePtr(PyPreviewFrame
):
4860 def __init__(self
, this
):
4862 if not hasattr(self
,"thisown"): self
.thisown
= 0
4863 self
.__class
__ = PyPreviewFrame
4864 _windows_
.PyPreviewFrame_swigregister(PyPreviewFramePtr
)
4866 class PyPreviewControlBar(PreviewControlBar
):
4868 return "<%s.%s; proxy of C++ wxPyPreviewControlBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4869 def __init__(self
, *args
, **kwargs
):
4871 __init__(self, PrintPreview preview, long buttons, Window parent,
4872 Point pos=DefaultPosition, Size size=DefaultSize,
4873 long style=0, String name=PanelNameStr) -> PyPreviewControlBar
4875 newobj
= _windows_
.new_PyPreviewControlBar(*args
, **kwargs
)
4876 self
.this
= newobj
.this
4879 self
._setCallbackInfo
(self
, PyPreviewControlBar
); self
._setOORInfo
(self
)
4881 def _setCallbackInfo(*args
, **kwargs
):
4882 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4883 return _windows_
.PyPreviewControlBar__setCallbackInfo(*args
, **kwargs
)
4885 def SetPrintPreview(*args
, **kwargs
):
4886 """SetPrintPreview(self, PrintPreview preview)"""
4887 return _windows_
.PyPreviewControlBar_SetPrintPreview(*args
, **kwargs
)
4889 def base_CreateButtons(*args
, **kwargs
):
4890 """base_CreateButtons(self)"""
4891 return _windows_
.PyPreviewControlBar_base_CreateButtons(*args
, **kwargs
)
4893 def base_SetZoomControl(*args
, **kwargs
):
4894 """base_SetZoomControl(self, int zoom)"""
4895 return _windows_
.PyPreviewControlBar_base_SetZoomControl(*args
, **kwargs
)
4898 class PyPreviewControlBarPtr(PyPreviewControlBar
):
4899 def __init__(self
, this
):
4901 if not hasattr(self
,"thisown"): self
.thisown
= 0
4902 self
.__class
__ = PyPreviewControlBar
4903 _windows_
.PyPreviewControlBar_swigregister(PyPreviewControlBarPtr
)