1 # This file was created automatically by SWIG.
2 # Don't modify this file, modify the SWIG interface instead.
8 #---------------------------------------------------------------------------
10 class Panel(_core
.Window
):
12 return "<%s.%s; proxy of C++ wxPanel instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
13 def __init__(self
, *args
, **kwargs
):
15 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
16 Size size=DefaultSize, long style=wxTAB_TRAVERSAL|wxNO_BORDER,
17 String name=PanelNameStr) -> Panel
19 newobj
= _windows_
.new_Panel(*args
, **kwargs
)
20 self
.this
= newobj
.this
23 self
._setOORInfo
(self
)
25 def Create(*args
, **kwargs
):
27 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
28 Size size=DefaultSize, long style=wxTAB_TRAVERSAL|wxNO_BORDER,
29 String name=PanelNameStr) -> bool
31 Create the GUI part of the Window for 2-phase creation mode.
33 return _windows_
.Panel_Create(*args
, **kwargs
)
35 def InitDialog(*args
, **kwargs
):
39 Sends an EVT_INIT_DIALOG event, whose handler usually transfers data
40 to the dialog via validators.
42 return _windows_
.Panel_InitDialog(*args
, **kwargs
)
44 def SetFocus(*args
, **kwargs
):
48 Overrides `wx.Window.SetFocus`. This method uses the (undocumented)
49 mix-in class wxControlContainer which manages the focus and TAB logic
50 for controls which usually have child controls. In practice, if you
51 call this method and the panel has at least one child window, then the
52 focus will be given to the child window.
54 return _windows_
.Panel_SetFocus(*args
, **kwargs
)
56 def SetFocusIgnoringChildren(*args
, **kwargs
):
58 SetFocusIgnoringChildren(self)
60 In contrast to `SetFocus` (see above) this will set the focus to the
61 panel even of there are child windows in the panel. This is only
64 return _windows_
.Panel_SetFocusIgnoringChildren(*args
, **kwargs
)
66 def GetClassDefaultAttributes(*args
, **kwargs
):
68 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
70 Get the default attributes for this class. This is useful if you want
71 to use the same font or colour in your own control as in a standard
72 control -- which is a much better idea than hard coding specific
73 colours or fonts which might look completely out of place on the
74 user's system, especially if it uses themes.
76 The variant parameter is only relevant under Mac currently and is
77 ignore under other platforms. Under Mac, it will change the size of
78 the returned font. See `wx.Window.SetWindowVariant` for more about
81 return _windows_
.Panel_GetClassDefaultAttributes(*args
, **kwargs
)
83 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
85 class PanelPtr(Panel
):
86 def __init__(self
, this
):
88 if not hasattr(self
,"thisown"): self
.thisown
= 0
89 self
.__class
__ = Panel
90 _windows_
.Panel_swigregister(PanelPtr
)
92 def PrePanel(*args
, **kwargs
):
93 """PrePanel() -> Panel"""
94 val
= _windows_
.new_PrePanel(*args
, **kwargs
)
98 def Panel_GetClassDefaultAttributes(*args
, **kwargs
):
100 Panel_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
102 Get the default attributes for this class. This is useful if you want
103 to use the same font or colour in your own control as in a standard
104 control -- which is a much better idea than hard coding specific
105 colours or fonts which might look completely out of place on the
106 user's system, especially if it uses themes.
108 The variant parameter is only relevant under Mac currently and is
109 ignore under other platforms. Under Mac, it will change the size of
110 the returned font. See `wx.Window.SetWindowVariant` for more about
113 return _windows_
.Panel_GetClassDefaultAttributes(*args
, **kwargs
)
115 #---------------------------------------------------------------------------
117 class ScrolledWindow(Panel
):
119 return "<%s.%s; proxy of C++ wxScrolledWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
120 def __init__(self
, *args
, **kwargs
):
122 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
123 Size size=DefaultSize, long style=wxHSCROLL|wxVSCROLL,
124 String name=PanelNameStr) -> ScrolledWindow
126 newobj
= _windows_
.new_ScrolledWindow(*args
, **kwargs
)
127 self
.this
= newobj
.this
130 self
._setOORInfo
(self
)
132 def Create(*args
, **kwargs
):
134 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
135 Size size=DefaultSize, long style=wxHSCROLL|wxVSCROLL,
136 String name=PanelNameStr) -> bool
138 Create the GUI part of the Window for 2-phase creation mode.
140 return _windows_
.ScrolledWindow_Create(*args
, **kwargs
)
142 def SetScrollbars(*args
, **kwargs
):
144 SetScrollbars(self, int pixelsPerUnitX, int pixelsPerUnitY, int noUnitsX,
145 int noUnitsY, int xPos=0, int yPos=0, bool noRefresh=False)
147 return _windows_
.ScrolledWindow_SetScrollbars(*args
, **kwargs
)
149 def Scroll(*args
, **kwargs
):
150 """Scroll(self, int x, int y)"""
151 return _windows_
.ScrolledWindow_Scroll(*args
, **kwargs
)
153 def GetScrollPageSize(*args
, **kwargs
):
154 """GetScrollPageSize(self, int orient) -> int"""
155 return _windows_
.ScrolledWindow_GetScrollPageSize(*args
, **kwargs
)
157 def SetScrollPageSize(*args
, **kwargs
):
158 """SetScrollPageSize(self, int orient, int pageSize)"""
159 return _windows_
.ScrolledWindow_SetScrollPageSize(*args
, **kwargs
)
161 def SetScrollRate(*args
, **kwargs
):
162 """SetScrollRate(self, int xstep, int ystep)"""
163 return _windows_
.ScrolledWindow_SetScrollRate(*args
, **kwargs
)
165 def GetScrollPixelsPerUnit(*args
, **kwargs
):
167 GetScrollPixelsPerUnit() -> (xUnit, yUnit)
169 Get the size of one logical unit in physical units.
171 return _windows_
.ScrolledWindow_GetScrollPixelsPerUnit(*args
, **kwargs
)
173 def EnableScrolling(*args
, **kwargs
):
174 """EnableScrolling(self, bool x_scrolling, bool y_scrolling)"""
175 return _windows_
.ScrolledWindow_EnableScrolling(*args
, **kwargs
)
177 def GetViewStart(*args
, **kwargs
):
179 GetViewStart() -> (x,y)
183 return _windows_
.ScrolledWindow_GetViewStart(*args
, **kwargs
)
185 def SetScale(*args
, **kwargs
):
186 """SetScale(self, double xs, double ys)"""
187 return _windows_
.ScrolledWindow_SetScale(*args
, **kwargs
)
189 def GetScaleX(*args
, **kwargs
):
190 """GetScaleX(self) -> double"""
191 return _windows_
.ScrolledWindow_GetScaleX(*args
, **kwargs
)
193 def GetScaleY(*args
, **kwargs
):
194 """GetScaleY(self) -> double"""
195 return _windows_
.ScrolledWindow_GetScaleY(*args
, **kwargs
)
197 def CalcScrolledPosition(*args
):
199 CalcScrolledPosition(self, Point pt) -> Point
200 CalcScrolledPosition(int x, int y) -> (sx, sy)
202 Translate between scrolled and unscrolled coordinates.
204 return _windows_
.ScrolledWindow_CalcScrolledPosition(*args
)
206 def CalcUnscrolledPosition(*args
):
208 CalcUnscrolledPosition(self, Point pt) -> Point
209 CalcUnscrolledPosition(int x, int y) -> (ux, uy)
211 Translate between scrolled and unscrolled coordinates.
213 return _windows_
.ScrolledWindow_CalcUnscrolledPosition(*args
)
215 def AdjustScrollbars(*args
, **kwargs
):
216 """AdjustScrollbars(self)"""
217 return _windows_
.ScrolledWindow_AdjustScrollbars(*args
, **kwargs
)
219 def CalcScrollInc(*args
, **kwargs
):
220 """CalcScrollInc(self, ScrollWinEvent event) -> int"""
221 return _windows_
.ScrolledWindow_CalcScrollInc(*args
, **kwargs
)
223 def SetTargetWindow(*args
, **kwargs
):
224 """SetTargetWindow(self, Window target)"""
225 return _windows_
.ScrolledWindow_SetTargetWindow(*args
, **kwargs
)
227 def GetTargetWindow(*args
, **kwargs
):
228 """GetTargetWindow(self) -> Window"""
229 return _windows_
.ScrolledWindow_GetTargetWindow(*args
, **kwargs
)
231 def SetTargetRect(*args
, **kwargs
):
232 """SetTargetRect(self, Rect rect)"""
233 return _windows_
.ScrolledWindow_SetTargetRect(*args
, **kwargs
)
235 def GetTargetRect(*args
, **kwargs
):
236 """GetTargetRect(self) -> Rect"""
237 return _windows_
.ScrolledWindow_GetTargetRect(*args
, **kwargs
)
239 def DoPrepareDC(*args
, **kwargs
):
241 DoPrepareDC(self, DC dc)
243 Normally what is called by `PrepareDC`.
245 return _windows_
.ScrolledWindow_DoPrepareDC(*args
, **kwargs
)
247 def GetClassDefaultAttributes(*args
, **kwargs
):
249 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
251 Get the default attributes for this class. This is useful if you want
252 to use the same font or colour in your own control as in a standard
253 control -- which is a much better idea than hard coding specific
254 colours or fonts which might look completely out of place on the
255 user's system, especially if it uses themes.
257 The variant parameter is only relevant under Mac currently and is
258 ignore under other platforms. Under Mac, it will change the size of
259 the returned font. See `wx.Window.SetWindowVariant` for more about
262 return _windows_
.ScrolledWindow_GetClassDefaultAttributes(*args
, **kwargs
)
264 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
266 class ScrolledWindowPtr(ScrolledWindow
):
267 def __init__(self
, this
):
269 if not hasattr(self
,"thisown"): self
.thisown
= 0
270 self
.__class
__ = ScrolledWindow
271 _windows_
.ScrolledWindow_swigregister(ScrolledWindowPtr
)
273 def PreScrolledWindow(*args
, **kwargs
):
274 """PreScrolledWindow() -> ScrolledWindow"""
275 val
= _windows_
.new_PreScrolledWindow(*args
, **kwargs
)
279 def ScrolledWindow_GetClassDefaultAttributes(*args
, **kwargs
):
281 ScrolledWindow_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
283 Get the default attributes for this class. This is useful if you want
284 to use the same font or colour in your own control as in a standard
285 control -- which is a much better idea than hard coding specific
286 colours or fonts which might look completely out of place on the
287 user's system, especially if it uses themes.
289 The variant parameter is only relevant under Mac currently and is
290 ignore under other platforms. Under Mac, it will change the size of
291 the returned font. See `wx.Window.SetWindowVariant` for more about
294 return _windows_
.ScrolledWindow_GetClassDefaultAttributes(*args
, **kwargs
)
296 #---------------------------------------------------------------------------
298 STAY_ON_TOP
= _windows_
.STAY_ON_TOP
299 ICONIZE
= _windows_
.ICONIZE
300 MINIMIZE
= _windows_
.MINIMIZE
301 MAXIMIZE
= _windows_
.MAXIMIZE
302 CLOSE_BOX
= _windows_
.CLOSE_BOX
303 THICK_FRAME
= _windows_
.THICK_FRAME
304 SYSTEM_MENU
= _windows_
.SYSTEM_MENU
305 MINIMIZE_BOX
= _windows_
.MINIMIZE_BOX
306 MAXIMIZE_BOX
= _windows_
.MAXIMIZE_BOX
307 TINY_CAPTION_HORIZ
= _windows_
.TINY_CAPTION_HORIZ
308 TINY_CAPTION_VERT
= _windows_
.TINY_CAPTION_VERT
309 RESIZE_BOX
= _windows_
.RESIZE_BOX
310 RESIZE_BORDER
= _windows_
.RESIZE_BORDER
311 DIALOG_NO_PARENT
= _windows_
.DIALOG_NO_PARENT
312 DEFAULT_FRAME_STYLE
= _windows_
.DEFAULT_FRAME_STYLE
313 DEFAULT_DIALOG_STYLE
= _windows_
.DEFAULT_DIALOG_STYLE
314 FRAME_TOOL_WINDOW
= _windows_
.FRAME_TOOL_WINDOW
315 FRAME_FLOAT_ON_PARENT
= _windows_
.FRAME_FLOAT_ON_PARENT
316 FRAME_NO_WINDOW_MENU
= _windows_
.FRAME_NO_WINDOW_MENU
317 FRAME_NO_TASKBAR
= _windows_
.FRAME_NO_TASKBAR
318 FRAME_SHAPED
= _windows_
.FRAME_SHAPED
319 FRAME_DRAWER
= _windows_
.FRAME_DRAWER
320 DIALOG_MODAL
= _windows_
.DIALOG_MODAL
321 DIALOG_MODELESS
= _windows_
.DIALOG_MODELESS
322 USER_COLOURS
= _windows_
.USER_COLOURS
323 NO_3D
= _windows_
.NO_3D
324 FULLSCREEN_NOMENUBAR
= _windows_
.FULLSCREEN_NOMENUBAR
325 FULLSCREEN_NOTOOLBAR
= _windows_
.FULLSCREEN_NOTOOLBAR
326 FULLSCREEN_NOSTATUSBAR
= _windows_
.FULLSCREEN_NOSTATUSBAR
327 FULLSCREEN_NOBORDER
= _windows_
.FULLSCREEN_NOBORDER
328 FULLSCREEN_NOCAPTION
= _windows_
.FULLSCREEN_NOCAPTION
329 FULLSCREEN_ALL
= _windows_
.FULLSCREEN_ALL
330 TOPLEVEL_EX_DIALOG
= _windows_
.TOPLEVEL_EX_DIALOG
331 USER_ATTENTION_INFO
= _windows_
.USER_ATTENTION_INFO
332 USER_ATTENTION_ERROR
= _windows_
.USER_ATTENTION_ERROR
333 class TopLevelWindow(_core
.Window
):
334 def __init__(self
): raise RuntimeError, "No constructor defined"
336 return "<%s.%s; proxy of C++ wxTopLevelWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
337 def Maximize(*args
, **kwargs
):
338 """Maximize(self, bool maximize=True)"""
339 return _windows_
.TopLevelWindow_Maximize(*args
, **kwargs
)
341 def Restore(*args
, **kwargs
):
343 return _windows_
.TopLevelWindow_Restore(*args
, **kwargs
)
345 def Iconize(*args
, **kwargs
):
346 """Iconize(self, bool iconize=True)"""
347 return _windows_
.TopLevelWindow_Iconize(*args
, **kwargs
)
349 def IsMaximized(*args
, **kwargs
):
350 """IsMaximized(self) -> bool"""
351 return _windows_
.TopLevelWindow_IsMaximized(*args
, **kwargs
)
353 def IsIconized(*args
, **kwargs
):
354 """IsIconized(self) -> bool"""
355 return _windows_
.TopLevelWindow_IsIconized(*args
, **kwargs
)
357 def GetIcon(*args
, **kwargs
):
358 """GetIcon(self) -> Icon"""
359 return _windows_
.TopLevelWindow_GetIcon(*args
, **kwargs
)
361 def SetIcon(*args
, **kwargs
):
362 """SetIcon(self, Icon icon)"""
363 return _windows_
.TopLevelWindow_SetIcon(*args
, **kwargs
)
365 def SetIcons(*args
, **kwargs
):
366 """SetIcons(self, wxIconBundle icons)"""
367 return _windows_
.TopLevelWindow_SetIcons(*args
, **kwargs
)
369 def ShowFullScreen(*args
, **kwargs
):
370 """ShowFullScreen(self, bool show, long style=FULLSCREEN_ALL) -> bool"""
371 return _windows_
.TopLevelWindow_ShowFullScreen(*args
, **kwargs
)
373 def IsFullScreen(*args
, **kwargs
):
374 """IsFullScreen(self) -> bool"""
375 return _windows_
.TopLevelWindow_IsFullScreen(*args
, **kwargs
)
377 def SetTitle(*args
, **kwargs
):
379 SetTitle(self, String title)
381 Sets the window's title. Applicable only to frames and dialogs.
383 return _windows_
.TopLevelWindow_SetTitle(*args
, **kwargs
)
385 def GetTitle(*args
, **kwargs
):
387 GetTitle(self) -> String
389 Gets the window's title. Applicable only to frames and dialogs.
391 return _windows_
.TopLevelWindow_GetTitle(*args
, **kwargs
)
393 def SetShape(*args
, **kwargs
):
394 """SetShape(self, Region region) -> bool"""
395 return _windows_
.TopLevelWindow_SetShape(*args
, **kwargs
)
397 def RequestUserAttention(*args
, **kwargs
):
398 """RequestUserAttention(self, int flags=USER_ATTENTION_INFO)"""
399 return _windows_
.TopLevelWindow_RequestUserAttention(*args
, **kwargs
)
401 def IsActive(*args
, **kwargs
):
402 """IsActive(self) -> bool"""
403 return _windows_
.TopLevelWindow_IsActive(*args
, **kwargs
)
405 def MacSetMetalAppearance(*args
, **kwargs
):
406 """MacSetMetalAppearance(self, bool on)"""
407 return _windows_
.TopLevelWindow_MacSetMetalAppearance(*args
, **kwargs
)
409 def MacGetMetalAppearance(*args
, **kwargs
):
410 """MacGetMetalAppearance(self) -> bool"""
411 return _windows_
.TopLevelWindow_MacGetMetalAppearance(*args
, **kwargs
)
414 class TopLevelWindowPtr(TopLevelWindow
):
415 def __init__(self
, this
):
417 if not hasattr(self
,"thisown"): self
.thisown
= 0
418 self
.__class
__ = TopLevelWindow
419 _windows_
.TopLevelWindow_swigregister(TopLevelWindowPtr
)
420 cvar
= _windows_
.cvar
421 FrameNameStr
= cvar
.FrameNameStr
422 DialogNameStr
= cvar
.DialogNameStr
423 StatusLineNameStr
= cvar
.StatusLineNameStr
424 ToolBarNameStr
= cvar
.ToolBarNameStr
426 #---------------------------------------------------------------------------
428 class Frame(TopLevelWindow
):
430 return "<%s.%s; proxy of C++ wxFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
431 def __init__(self
, *args
, **kwargs
):
433 __init__(self, Window parent, int id=-1, String title=EmptyString,
434 Point pos=DefaultPosition, Size size=DefaultSize,
435 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> Frame
437 newobj
= _windows_
.new_Frame(*args
, **kwargs
)
438 self
.this
= newobj
.this
441 self
._setOORInfo
(self
)
443 def Create(*args
, **kwargs
):
445 Create(self, Window parent, int id=-1, String title=EmptyString,
446 Point pos=DefaultPosition, Size size=DefaultSize,
447 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> bool
449 return _windows_
.Frame_Create(*args
, **kwargs
)
451 def GetClientAreaOrigin(*args
, **kwargs
):
453 GetClientAreaOrigin(self) -> Point
455 Get the origin of the client area of the window relative to the
456 window's top left corner (the client area may be shifted because of
457 the borders, scrollbars, other decorations...)
459 return _windows_
.Frame_GetClientAreaOrigin(*args
, **kwargs
)
461 def SendSizeEvent(*args
, **kwargs
):
462 """SendSizeEvent(self)"""
463 return _windows_
.Frame_SendSizeEvent(*args
, **kwargs
)
465 def SetMenuBar(*args
, **kwargs
):
466 """SetMenuBar(self, MenuBar menubar)"""
467 return _windows_
.Frame_SetMenuBar(*args
, **kwargs
)
469 def GetMenuBar(*args
, **kwargs
):
470 """GetMenuBar(self) -> MenuBar"""
471 return _windows_
.Frame_GetMenuBar(*args
, **kwargs
)
473 def ProcessCommand(*args
, **kwargs
):
474 """ProcessCommand(self, int winid) -> bool"""
475 return _windows_
.Frame_ProcessCommand(*args
, **kwargs
)
477 Command
= ProcessCommand
478 def CreateStatusBar(*args
, **kwargs
):
480 CreateStatusBar(self, int number=1, long style=ST_SIZEGRIP, int winid=0,
481 String name=StatusLineNameStr) -> StatusBar
483 return _windows_
.Frame_CreateStatusBar(*args
, **kwargs
)
485 def GetStatusBar(*args
, **kwargs
):
486 """GetStatusBar(self) -> StatusBar"""
487 return _windows_
.Frame_GetStatusBar(*args
, **kwargs
)
489 def SetStatusBar(*args
, **kwargs
):
490 """SetStatusBar(self, StatusBar statBar)"""
491 return _windows_
.Frame_SetStatusBar(*args
, **kwargs
)
493 def SetStatusText(*args
, **kwargs
):
494 """SetStatusText(self, String text, int number=0)"""
495 return _windows_
.Frame_SetStatusText(*args
, **kwargs
)
497 def SetStatusWidths(*args
, **kwargs
):
498 """SetStatusWidths(self, int widths, int widths_field)"""
499 return _windows_
.Frame_SetStatusWidths(*args
, **kwargs
)
501 def PushStatusText(*args
, **kwargs
):
502 """PushStatusText(self, String text, int number=0)"""
503 return _windows_
.Frame_PushStatusText(*args
, **kwargs
)
505 def PopStatusText(*args
, **kwargs
):
506 """PopStatusText(self, int number=0)"""
507 return _windows_
.Frame_PopStatusText(*args
, **kwargs
)
509 def SetStatusBarPane(*args
, **kwargs
):
510 """SetStatusBarPane(self, int n)"""
511 return _windows_
.Frame_SetStatusBarPane(*args
, **kwargs
)
513 def GetStatusBarPane(*args
, **kwargs
):
514 """GetStatusBarPane(self) -> int"""
515 return _windows_
.Frame_GetStatusBarPane(*args
, **kwargs
)
517 def CreateToolBar(*args
, **kwargs
):
518 """CreateToolBar(self, long style=-1, int winid=-1, String name=ToolBarNameStr) -> wxToolBar"""
519 return _windows_
.Frame_CreateToolBar(*args
, **kwargs
)
521 def GetToolBar(*args
, **kwargs
):
522 """GetToolBar(self) -> wxToolBar"""
523 return _windows_
.Frame_GetToolBar(*args
, **kwargs
)
525 def SetToolBar(*args
, **kwargs
):
526 """SetToolBar(self, wxToolBar toolbar)"""
527 return _windows_
.Frame_SetToolBar(*args
, **kwargs
)
529 def DoGiveHelp(*args
, **kwargs
):
530 """DoGiveHelp(self, String text, bool show)"""
531 return _windows_
.Frame_DoGiveHelp(*args
, **kwargs
)
533 def DoMenuUpdates(*args
, **kwargs
):
534 """DoMenuUpdates(self, Menu menu=None)"""
535 return _windows_
.Frame_DoMenuUpdates(*args
, **kwargs
)
537 def GetClassDefaultAttributes(*args
, **kwargs
):
539 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
541 Get the default attributes for this class. This is useful if you want
542 to use the same font or colour in your own control as in a standard
543 control -- which is a much better idea than hard coding specific
544 colours or fonts which might look completely out of place on the
545 user's system, especially if it uses themes.
547 The variant parameter is only relevant under Mac currently and is
548 ignore under other platforms. Under Mac, it will change the size of
549 the returned font. See `wx.Window.SetWindowVariant` for more about
552 return _windows_
.Frame_GetClassDefaultAttributes(*args
, **kwargs
)
554 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
556 class FramePtr(Frame
):
557 def __init__(self
, this
):
559 if not hasattr(self
,"thisown"): self
.thisown
= 0
560 self
.__class
__ = Frame
561 _windows_
.Frame_swigregister(FramePtr
)
563 def PreFrame(*args
, **kwargs
):
564 """PreFrame() -> Frame"""
565 val
= _windows_
.new_PreFrame(*args
, **kwargs
)
569 def Frame_GetClassDefaultAttributes(*args
, **kwargs
):
571 Frame_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
573 Get the default attributes for this class. This is useful if you want
574 to use the same font or colour in your own control as in a standard
575 control -- which is a much better idea than hard coding specific
576 colours or fonts which might look completely out of place on the
577 user's system, especially if it uses themes.
579 The variant parameter is only relevant under Mac currently and is
580 ignore under other platforms. Under Mac, it will change the size of
581 the returned font. See `wx.Window.SetWindowVariant` for more about
584 return _windows_
.Frame_GetClassDefaultAttributes(*args
, **kwargs
)
586 #---------------------------------------------------------------------------
588 class Dialog(TopLevelWindow
):
590 return "<%s.%s; proxy of C++ wxDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
591 def __init__(self
, *args
, **kwargs
):
593 __init__(self, Window parent, int id=-1, String title=EmptyString,
594 Point pos=DefaultPosition, Size size=DefaultSize,
595 long style=DEFAULT_DIALOG_STYLE, String name=DialogNameStr) -> Dialog
597 newobj
= _windows_
.new_Dialog(*args
, **kwargs
)
598 self
.this
= newobj
.this
601 self
._setOORInfo
(self
)
603 def Create(*args
, **kwargs
):
605 Create(self, Window parent, int id=-1, String title=EmptyString,
606 Point pos=DefaultPosition, Size size=DefaultSize,
607 long style=DEFAULT_DIALOG_STYLE, String name=DialogNameStr) -> bool
609 return _windows_
.Dialog_Create(*args
, **kwargs
)
611 def SetReturnCode(*args
, **kwargs
):
612 """SetReturnCode(self, int returnCode)"""
613 return _windows_
.Dialog_SetReturnCode(*args
, **kwargs
)
615 def GetReturnCode(*args
, **kwargs
):
616 """GetReturnCode(self) -> int"""
617 return _windows_
.Dialog_GetReturnCode(*args
, **kwargs
)
619 def CreateTextSizer(*args
, **kwargs
):
620 """CreateTextSizer(self, String message) -> Sizer"""
621 return _windows_
.Dialog_CreateTextSizer(*args
, **kwargs
)
623 def CreateButtonSizer(*args
, **kwargs
):
624 """CreateButtonSizer(self, long flags) -> Sizer"""
625 return _windows_
.Dialog_CreateButtonSizer(*args
, **kwargs
)
627 def IsModal(*args
, **kwargs
):
628 """IsModal(self) -> bool"""
629 return _windows_
.Dialog_IsModal(*args
, **kwargs
)
631 def ShowModal(*args
, **kwargs
):
632 """ShowModal(self) -> int"""
633 return _windows_
.Dialog_ShowModal(*args
, **kwargs
)
635 def EndModal(*args
, **kwargs
):
636 """EndModal(self, int retCode)"""
637 return _windows_
.Dialog_EndModal(*args
, **kwargs
)
639 def GetClassDefaultAttributes(*args
, **kwargs
):
641 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
643 Get the default attributes for this class. This is useful if you want
644 to use the same font or colour in your own control as in a standard
645 control -- which is a much better idea than hard coding specific
646 colours or fonts which might look completely out of place on the
647 user's system, especially if it uses themes.
649 The variant parameter is only relevant under Mac currently and is
650 ignore under other platforms. Under Mac, it will change the size of
651 the returned font. See `wx.Window.SetWindowVariant` for more about
654 return _windows_
.Dialog_GetClassDefaultAttributes(*args
, **kwargs
)
656 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
657 def SendSizeEvent(self
):
658 self
.ProcessEvent(wx
.SizeEvent((-1,-1)))
661 class DialogPtr(Dialog
):
662 def __init__(self
, this
):
664 if not hasattr(self
,"thisown"): self
.thisown
= 0
665 self
.__class
__ = Dialog
666 _windows_
.Dialog_swigregister(DialogPtr
)
668 def PreDialog(*args
, **kwargs
):
669 """PreDialog() -> Dialog"""
670 val
= _windows_
.new_PreDialog(*args
, **kwargs
)
674 def Dialog_GetClassDefaultAttributes(*args
, **kwargs
):
676 Dialog_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
678 Get the default attributes for this class. This is useful if you want
679 to use the same font or colour in your own control as in a standard
680 control -- which is a much better idea than hard coding specific
681 colours or fonts which might look completely out of place on the
682 user's system, especially if it uses themes.
684 The variant parameter is only relevant under Mac currently and is
685 ignore under other platforms. Under Mac, it will change the size of
686 the returned font. See `wx.Window.SetWindowVariant` for more about
689 return _windows_
.Dialog_GetClassDefaultAttributes(*args
, **kwargs
)
691 #---------------------------------------------------------------------------
693 class MiniFrame(Frame
):
695 return "<%s.%s; proxy of C++ wxMiniFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
696 def __init__(self
, *args
, **kwargs
):
698 __init__(self, Window parent, int id=-1, String title=EmptyString,
699 Point pos=DefaultPosition, Size size=DefaultSize,
700 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> MiniFrame
702 newobj
= _windows_
.new_MiniFrame(*args
, **kwargs
)
703 self
.this
= newobj
.this
706 self
._setOORInfo
(self
)
708 def Create(*args
, **kwargs
):
710 Create(self, Window parent, int id=-1, String title=EmptyString,
711 Point pos=DefaultPosition, Size size=DefaultSize,
712 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> bool
714 return _windows_
.MiniFrame_Create(*args
, **kwargs
)
717 class MiniFramePtr(MiniFrame
):
718 def __init__(self
, this
):
720 if not hasattr(self
,"thisown"): self
.thisown
= 0
721 self
.__class
__ = MiniFrame
722 _windows_
.MiniFrame_swigregister(MiniFramePtr
)
724 def PreMiniFrame(*args
, **kwargs
):
725 """PreMiniFrame() -> MiniFrame"""
726 val
= _windows_
.new_PreMiniFrame(*args
, **kwargs
)
730 #---------------------------------------------------------------------------
732 SPLASH_CENTRE_ON_PARENT
= _windows_
.SPLASH_CENTRE_ON_PARENT
733 SPLASH_CENTRE_ON_SCREEN
= _windows_
.SPLASH_CENTRE_ON_SCREEN
734 SPLASH_NO_CENTRE
= _windows_
.SPLASH_NO_CENTRE
735 SPLASH_TIMEOUT
= _windows_
.SPLASH_TIMEOUT
736 SPLASH_NO_TIMEOUT
= _windows_
.SPLASH_NO_TIMEOUT
737 class SplashScreenWindow(_core
.Window
):
739 return "<%s.%s; proxy of C++ wxSplashScreenWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
740 def __init__(self
, *args
, **kwargs
):
742 __init__(self, Bitmap bitmap, Window parent, int id, Point pos=DefaultPosition,
743 Size size=DefaultSize, long style=NO_BORDER) -> SplashScreenWindow
745 newobj
= _windows_
.new_SplashScreenWindow(*args
, **kwargs
)
746 self
.this
= newobj
.this
749 self
._setOORInfo
(self
)
751 def SetBitmap(*args
, **kwargs
):
752 """SetBitmap(self, Bitmap bitmap)"""
753 return _windows_
.SplashScreenWindow_SetBitmap(*args
, **kwargs
)
755 def GetBitmap(*args
, **kwargs
):
756 """GetBitmap(self) -> Bitmap"""
757 return _windows_
.SplashScreenWindow_GetBitmap(*args
, **kwargs
)
760 class SplashScreenWindowPtr(SplashScreenWindow
):
761 def __init__(self
, this
):
763 if not hasattr(self
,"thisown"): self
.thisown
= 0
764 self
.__class
__ = SplashScreenWindow
765 _windows_
.SplashScreenWindow_swigregister(SplashScreenWindowPtr
)
767 class SplashScreen(Frame
):
769 return "<%s.%s; proxy of C++ wxSplashScreen instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
770 def __init__(self
, *args
, **kwargs
):
772 __init__(self, Bitmap bitmap, long splashStyle, int milliseconds,
773 Window parent, int id=-1, Point pos=DefaultPosition,
774 Size size=DefaultSize, long style=wxSIMPLE_BORDER|wxFRAME_NO_TASKBAR|wxSTAY_ON_TOP) -> SplashScreen
776 newobj
= _windows_
.new_SplashScreen(*args
, **kwargs
)
777 self
.this
= newobj
.this
780 self
._setOORInfo
(self
)
782 def GetSplashStyle(*args
, **kwargs
):
783 """GetSplashStyle(self) -> long"""
784 return _windows_
.SplashScreen_GetSplashStyle(*args
, **kwargs
)
786 def GetSplashWindow(*args
, **kwargs
):
787 """GetSplashWindow(self) -> SplashScreenWindow"""
788 return _windows_
.SplashScreen_GetSplashWindow(*args
, **kwargs
)
790 def GetTimeout(*args
, **kwargs
):
791 """GetTimeout(self) -> int"""
792 return _windows_
.SplashScreen_GetTimeout(*args
, **kwargs
)
795 class SplashScreenPtr(SplashScreen
):
796 def __init__(self
, this
):
798 if not hasattr(self
,"thisown"): self
.thisown
= 0
799 self
.__class
__ = SplashScreen
800 _windows_
.SplashScreen_swigregister(SplashScreenPtr
)
802 #---------------------------------------------------------------------------
804 SB_NORMAL
= _windows_
.SB_NORMAL
805 SB_FLAT
= _windows_
.SB_FLAT
806 SB_RAISED
= _windows_
.SB_RAISED
807 class StatusBar(_core
.Window
):
809 return "<%s.%s; proxy of C++ wxStatusBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
810 def __init__(self
, *args
, **kwargs
):
811 """__init__(self, Window parent, int id=-1, long style=ST_SIZEGRIP, String name=StatusLineNameStr) -> StatusBar"""
812 newobj
= _windows_
.new_StatusBar(*args
, **kwargs
)
813 self
.this
= newobj
.this
816 self
._setOORInfo
(self
)
818 def Create(*args
, **kwargs
):
819 """Create(self, Window parent, int id=-1, long style=ST_SIZEGRIP, String name=StatusLineNameStr) -> bool"""
820 return _windows_
.StatusBar_Create(*args
, **kwargs
)
822 def SetFieldsCount(*args
, **kwargs
):
823 """SetFieldsCount(self, int number=1)"""
824 return _windows_
.StatusBar_SetFieldsCount(*args
, **kwargs
)
826 def GetFieldsCount(*args
, **kwargs
):
827 """GetFieldsCount(self) -> int"""
828 return _windows_
.StatusBar_GetFieldsCount(*args
, **kwargs
)
830 def SetStatusText(*args
, **kwargs
):
831 """SetStatusText(self, String text, int number=0)"""
832 return _windows_
.StatusBar_SetStatusText(*args
, **kwargs
)
834 def GetStatusText(*args
, **kwargs
):
835 """GetStatusText(self, int number=0) -> String"""
836 return _windows_
.StatusBar_GetStatusText(*args
, **kwargs
)
838 def PushStatusText(*args
, **kwargs
):
839 """PushStatusText(self, String text, int number=0)"""
840 return _windows_
.StatusBar_PushStatusText(*args
, **kwargs
)
842 def PopStatusText(*args
, **kwargs
):
843 """PopStatusText(self, int number=0)"""
844 return _windows_
.StatusBar_PopStatusText(*args
, **kwargs
)
846 def SetStatusWidths(*args
, **kwargs
):
847 """SetStatusWidths(self, int widths, int widths_field)"""
848 return _windows_
.StatusBar_SetStatusWidths(*args
, **kwargs
)
850 def SetStatusStyles(*args
, **kwargs
):
851 """SetStatusStyles(self, int styles, int styles_field)"""
852 return _windows_
.StatusBar_SetStatusStyles(*args
, **kwargs
)
854 def GetFieldRect(*args
, **kwargs
):
855 """GetFieldRect(self, int i) -> Rect"""
856 return _windows_
.StatusBar_GetFieldRect(*args
, **kwargs
)
858 def SetMinHeight(*args
, **kwargs
):
859 """SetMinHeight(self, int height)"""
860 return _windows_
.StatusBar_SetMinHeight(*args
, **kwargs
)
862 def GetBorderX(*args
, **kwargs
):
863 """GetBorderX(self) -> int"""
864 return _windows_
.StatusBar_GetBorderX(*args
, **kwargs
)
866 def GetBorderY(*args
, **kwargs
):
867 """GetBorderY(self) -> int"""
868 return _windows_
.StatusBar_GetBorderY(*args
, **kwargs
)
870 def GetClassDefaultAttributes(*args
, **kwargs
):
872 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
874 Get the default attributes for this class. This is useful if you want
875 to use the same font or colour in your own control as in a standard
876 control -- which is a much better idea than hard coding specific
877 colours or fonts which might look completely out of place on the
878 user's system, especially if it uses themes.
880 The variant parameter is only relevant under Mac currently and is
881 ignore under other platforms. Under Mac, it will change the size of
882 the returned font. See `wx.Window.SetWindowVariant` for more about
885 return _windows_
.StatusBar_GetClassDefaultAttributes(*args
, **kwargs
)
887 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
889 class StatusBarPtr(StatusBar
):
890 def __init__(self
, this
):
892 if not hasattr(self
,"thisown"): self
.thisown
= 0
893 self
.__class
__ = StatusBar
894 _windows_
.StatusBar_swigregister(StatusBarPtr
)
896 def PreStatusBar(*args
, **kwargs
):
897 """PreStatusBar() -> StatusBar"""
898 val
= _windows_
.new_PreStatusBar(*args
, **kwargs
)
902 def StatusBar_GetClassDefaultAttributes(*args
, **kwargs
):
904 StatusBar_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
906 Get the default attributes for this class. This is useful if you want
907 to use the same font or colour in your own control as in a standard
908 control -- which is a much better idea than hard coding specific
909 colours or fonts which might look completely out of place on the
910 user's system, especially if it uses themes.
912 The variant parameter is only relevant under Mac currently and is
913 ignore under other platforms. Under Mac, it will change the size of
914 the returned font. See `wx.Window.SetWindowVariant` for more about
917 return _windows_
.StatusBar_GetClassDefaultAttributes(*args
, **kwargs
)
919 #---------------------------------------------------------------------------
921 SP_NOBORDER
= _windows_
.SP_NOBORDER
922 SP_NOSASH
= _windows_
.SP_NOSASH
923 SP_PERMIT_UNSPLIT
= _windows_
.SP_PERMIT_UNSPLIT
924 SP_LIVE_UPDATE
= _windows_
.SP_LIVE_UPDATE
925 SP_3DSASH
= _windows_
.SP_3DSASH
926 SP_3DBORDER
= _windows_
.SP_3DBORDER
927 SP_NO_XP_THEME
= _windows_
.SP_NO_XP_THEME
928 SP_BORDER
= _windows_
.SP_BORDER
929 SP_3D
= _windows_
.SP_3D
930 SPLIT_HORIZONTAL
= _windows_
.SPLIT_HORIZONTAL
931 SPLIT_VERTICAL
= _windows_
.SPLIT_VERTICAL
932 SPLIT_DRAG_NONE
= _windows_
.SPLIT_DRAG_NONE
933 SPLIT_DRAG_DRAGGING
= _windows_
.SPLIT_DRAG_DRAGGING
934 SPLIT_DRAG_LEFT_DOWN
= _windows_
.SPLIT_DRAG_LEFT_DOWN
935 class SplitterWindow(_core
.Window
):
937 wx.SplitterWindow manages up to two subwindows or panes, with an
938 optional vertical or horizontal split which can be used with the mouse
942 return "<%s.%s; proxy of C++ wxSplitterWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
943 def __init__(self
, *args
, **kwargs
):
945 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
946 Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> SplitterWindow
948 Constructor. Creates and shows a SplitterWindow.
950 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point'];del kwargs
['point']
951 newobj
= _windows_
.new_SplitterWindow(*args
, **kwargs
)
952 self
.this
= newobj
.this
955 self
._setOORInfo
(self
)
957 def Create(*args
, **kwargs
):
959 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
960 Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> bool
962 Create the GUI part of the SplitterWindow for the 2-phase create.
964 return _windows_
.SplitterWindow_Create(*args
, **kwargs
)
966 def GetWindow1(*args
, **kwargs
):
968 GetWindow1(self) -> Window
970 Gets the only or left/top pane.
972 return _windows_
.SplitterWindow_GetWindow1(*args
, **kwargs
)
974 def GetWindow2(*args
, **kwargs
):
976 GetWindow2(self) -> Window
978 Gets the right/bottom pane.
980 return _windows_
.SplitterWindow_GetWindow2(*args
, **kwargs
)
982 def SetSplitMode(*args
, **kwargs
):
984 SetSplitMode(self, int mode)
986 Sets the split mode. The mode can be wx.SPLIT_VERTICAL or
987 wx.SPLIT_HORIZONTAL. This only sets the internal variable; does not
990 return _windows_
.SplitterWindow_SetSplitMode(*args
, **kwargs
)
992 def GetSplitMode(*args
, **kwargs
):
994 GetSplitMode(self) -> int
998 return _windows_
.SplitterWindow_GetSplitMode(*args
, **kwargs
)
1000 def Initialize(*args
, **kwargs
):
1002 Initialize(self, Window window)
1004 Initializes the splitter window to have one pane. This should be
1005 called if you wish to initially view only a single pane in the
1008 return _windows_
.SplitterWindow_Initialize(*args
, **kwargs
)
1010 def SplitVertically(*args
, **kwargs
):
1012 SplitVertically(self, Window window1, Window window2, int sashPosition=0) -> bool
1014 Initializes the left and right panes of the splitter window.
1016 return _windows_
.SplitterWindow_SplitVertically(*args
, **kwargs
)
1018 def SplitHorizontally(*args
, **kwargs
):
1020 SplitHorizontally(self, Window window1, Window window2, int sashPosition=0) -> bool
1022 Initializes the top and bottom panes of the splitter window.
1024 return _windows_
.SplitterWindow_SplitHorizontally(*args
, **kwargs
)
1026 def Unsplit(*args
, **kwargs
):
1028 Unsplit(self, Window toRemove=None) -> bool
1030 Unsplits the window. Pass the pane to remove, or None to remove the
1031 right or bottom pane. Returns True if successful, False otherwise (the
1032 window was not split).
1034 This function will not actually delete the pane being
1035 removed; it sends EVT_SPLITTER_UNSPLIT which can be handled
1036 for the desired behaviour. By default, the pane being
1037 removed is only hidden.
1039 return _windows_
.SplitterWindow_Unsplit(*args
, **kwargs
)
1041 def ReplaceWindow(*args
, **kwargs
):
1043 ReplaceWindow(self, Window winOld, Window winNew) -> bool
1045 This function replaces one of the windows managed by the
1046 SplitterWindow with another one. It is in general better to use it
1047 instead of calling Unsplit() and then resplitting the window back
1048 because it will provoke much less flicker. It is valid to call this
1049 function whether the splitter has two windows or only one.
1051 Both parameters should be non-None and winOld must specify one of the
1052 windows managed by the splitter. If the parameters are incorrect or
1053 the window couldn't be replaced, False is returned. Otherwise the
1054 function will return True, but please notice that it will not Destroy
1055 the replaced window and you may wish to do it yourself.
1057 return _windows_
.SplitterWindow_ReplaceWindow(*args
, **kwargs
)
1059 def UpdateSize(*args
, **kwargs
):
1063 Causes any pending sizing of the sash and child panes to take place
1066 Such resizing normally takes place in idle time, in order to wait for
1067 layout to be completed. However, this can cause unacceptable flicker
1068 as the panes are resized after the window has been shown. To work
1069 around this, you can perform window layout (for example by sending a
1070 size event to the parent window), and then call this function, before
1071 showing the top-level window.
1073 return _windows_
.SplitterWindow_UpdateSize(*args
, **kwargs
)
1075 def IsSplit(*args
, **kwargs
):
1077 IsSplit(self) -> bool
1079 Is the window split?
1081 return _windows_
.SplitterWindow_IsSplit(*args
, **kwargs
)
1083 def SetSashSize(*args
, **kwargs
):
1085 SetSashSize(self, int width)
1087 Sets the sash size. Currently a NOP.
1089 return _windows_
.SplitterWindow_SetSashSize(*args
, **kwargs
)
1091 def SetBorderSize(*args
, **kwargs
):
1093 SetBorderSize(self, int width)
1095 Sets the border size. Currently a NOP.
1097 return _windows_
.SplitterWindow_SetBorderSize(*args
, **kwargs
)
1099 def GetSashSize(*args
, **kwargs
):
1101 GetSashSize(self) -> int
1105 return _windows_
.SplitterWindow_GetSashSize(*args
, **kwargs
)
1107 def GetBorderSize(*args
, **kwargs
):
1109 GetBorderSize(self) -> int
1111 Gets the border size
1113 return _windows_
.SplitterWindow_GetBorderSize(*args
, **kwargs
)
1115 def SetSashPosition(*args
, **kwargs
):
1117 SetSashPosition(self, int position, bool redraw=True)
1119 Sets the sash position, in pixels. If redraw is Ttrue then the panes
1120 are resized and the sash and border are redrawn.
1122 return _windows_
.SplitterWindow_SetSashPosition(*args
, **kwargs
)
1124 def GetSashPosition(*args
, **kwargs
):
1126 GetSashPosition(self) -> int
1128 Returns the surrent sash position.
1130 return _windows_
.SplitterWindow_GetSashPosition(*args
, **kwargs
)
1132 def SetSashGravity(*args
, **kwargs
):
1134 SetSashGravity(self, double gravity)
1136 Set the sash gravity. Gravity is a floating-point factor between 0.0
1137 and 1.0 which controls position of sash while resizing the
1138 `wx.SplitterWindow`. The gravity specifies how much the left/top
1139 window will grow while resizing.
1141 return _windows_
.SplitterWindow_SetSashGravity(*args
, **kwargs
)
1143 def GetSashGravity(*args
, **kwargs
):
1145 GetSashGravity(self) -> double
1147 Gets the sash gravity.
1149 :see: `SetSashGravity`
1152 return _windows_
.SplitterWindow_GetSashGravity(*args
, **kwargs
)
1154 def SetMinimumPaneSize(*args
, **kwargs
):
1156 SetMinimumPaneSize(self, int min)
1158 Sets the minimum pane size in pixels.
1160 The default minimum pane size is zero, which means that either pane
1161 can be reduced to zero by dragging the sash, thus removing one of the
1162 panes. To prevent this behaviour (and veto out-of-range sash
1163 dragging), set a minimum size, for example 20 pixels. If the
1164 wx.SP_PERMIT_UNSPLIT style is used when a splitter window is created,
1165 the window may be unsplit even if minimum size is non-zero.
1167 return _windows_
.SplitterWindow_SetMinimumPaneSize(*args
, **kwargs
)
1169 def GetMinimumPaneSize(*args
, **kwargs
):
1171 GetMinimumPaneSize(self) -> int
1173 Gets the minimum pane size in pixels.
1175 return _windows_
.SplitterWindow_GetMinimumPaneSize(*args
, **kwargs
)
1177 def SashHitTest(*args
, **kwargs
):
1179 SashHitTest(self, int x, int y, int tolerance=5) -> bool
1181 Tests for x, y over the sash
1183 return _windows_
.SplitterWindow_SashHitTest(*args
, **kwargs
)
1185 def SizeWindows(*args
, **kwargs
):
1191 return _windows_
.SplitterWindow_SizeWindows(*args
, **kwargs
)
1193 def SetNeedUpdating(*args
, **kwargs
):
1194 """SetNeedUpdating(self, bool needUpdating)"""
1195 return _windows_
.SplitterWindow_SetNeedUpdating(*args
, **kwargs
)
1197 def GetNeedUpdating(*args
, **kwargs
):
1198 """GetNeedUpdating(self) -> bool"""
1199 return _windows_
.SplitterWindow_GetNeedUpdating(*args
, **kwargs
)
1201 def GetClassDefaultAttributes(*args
, **kwargs
):
1203 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1205 Get the default attributes for this class. This is useful if you want
1206 to use the same font or colour in your own control as in a standard
1207 control -- which is a much better idea than hard coding specific
1208 colours or fonts which might look completely out of place on the
1209 user's system, especially if it uses themes.
1211 The variant parameter is only relevant under Mac currently and is
1212 ignore under other platforms. Under Mac, it will change the size of
1213 the returned font. See `wx.Window.SetWindowVariant` for more about
1216 return _windows_
.SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
)
1218 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1220 class SplitterWindowPtr(SplitterWindow
):
1221 def __init__(self
, this
):
1223 if not hasattr(self
,"thisown"): self
.thisown
= 0
1224 self
.__class
__ = SplitterWindow
1225 _windows_
.SplitterWindow_swigregister(SplitterWindowPtr
)
1226 SplitterNameStr
= cvar
.SplitterNameStr
1228 def PreSplitterWindow(*args
, **kwargs
):
1230 PreSplitterWindow() -> SplitterWindow
1232 Precreate a SplitterWindow for 2-phase creation.
1234 val
= _windows_
.new_PreSplitterWindow(*args
, **kwargs
)
1238 def SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
):
1240 SplitterWindow_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1242 Get the default attributes for this class. This is useful if you want
1243 to use the same font or colour in your own control as in a standard
1244 control -- which is a much better idea than hard coding specific
1245 colours or fonts which might look completely out of place on the
1246 user's system, especially if it uses themes.
1248 The variant parameter is only relevant under Mac currently and is
1249 ignore under other platforms. Under Mac, it will change the size of
1250 the returned font. See `wx.Window.SetWindowVariant` for more about
1253 return _windows_
.SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
)
1255 class SplitterEvent(_core
.NotifyEvent
):
1256 """This class represents the events generated by a splitter control."""
1258 return "<%s.%s; proxy of C++ wxSplitterEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1259 def __init__(self
, *args
, **kwargs
):
1261 __init__(self, wxEventType type=wxEVT_NULL, SplitterWindow splitter=(wxSplitterWindow *) NULL) -> SplitterEvent
1263 This class represents the events generated by a splitter control.
1265 newobj
= _windows_
.new_SplitterEvent(*args
, **kwargs
)
1266 self
.this
= newobj
.this
1269 def SetSashPosition(*args
, **kwargs
):
1271 SetSashPosition(self, int pos)
1273 This funciton is only meaningful during EVT_SPLITTER_SASH_POS_CHANGING
1274 and EVT_SPLITTER_SASH_POS_CHANGED events. In the case of _CHANGED
1275 events, sets the the new sash position. In the case of _CHANGING
1276 events, sets the new tracking bar position so visual feedback during
1277 dragging will represent that change that will actually take place. Set
1278 to -1 from the event handler code to prevent repositioning.
1280 return _windows_
.SplitterEvent_SetSashPosition(*args
, **kwargs
)
1282 def GetSashPosition(*args
, **kwargs
):
1284 GetSashPosition(self) -> int
1286 Returns the new sash position while in EVT_SPLITTER_SASH_POS_CHANGING
1287 and EVT_SPLITTER_SASH_POS_CHANGED events.
1289 return _windows_
.SplitterEvent_GetSashPosition(*args
, **kwargs
)
1291 def GetWindowBeingRemoved(*args
, **kwargs
):
1293 GetWindowBeingRemoved(self) -> Window
1295 Returns a pointer to the window being removed when a splitter window
1298 return _windows_
.SplitterEvent_GetWindowBeingRemoved(*args
, **kwargs
)
1300 def GetX(*args
, **kwargs
):
1304 Returns the x coordinate of the double-click point in a
1305 EVT_SPLITTER_DCLICK event.
1307 return _windows_
.SplitterEvent_GetX(*args
, **kwargs
)
1309 def GetY(*args
, **kwargs
):
1313 Returns the y coordinate of the double-click point in a
1314 EVT_SPLITTER_DCLICK event.
1316 return _windows_
.SplitterEvent_GetY(*args
, **kwargs
)
1319 class SplitterEventPtr(SplitterEvent
):
1320 def __init__(self
, this
):
1322 if not hasattr(self
,"thisown"): self
.thisown
= 0
1323 self
.__class
__ = SplitterEvent
1324 _windows_
.SplitterEvent_swigregister(SplitterEventPtr
)
1326 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
= _windows_
.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
1327 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
= _windows_
.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
1328 wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
= _windows_
.wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
1329 wxEVT_COMMAND_SPLITTER_UNSPLIT
= _windows_
.wxEVT_COMMAND_SPLITTER_UNSPLIT
1330 EVT_SPLITTER_SASH_POS_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
, 1 )
1331 EVT_SPLITTER_SASH_POS_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
, 1 )
1332 EVT_SPLITTER_DOUBLECLICKED
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
, 1 )
1333 EVT_SPLITTER_UNSPLIT
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_UNSPLIT
, 1 )
1334 EVT_SPLITTER_DCLICK
= EVT_SPLITTER_DOUBLECLICKED
1336 #---------------------------------------------------------------------------
1338 SASH_DRAG_NONE
= _windows_
.SASH_DRAG_NONE
1339 SASH_DRAG_DRAGGING
= _windows_
.SASH_DRAG_DRAGGING
1340 SASH_DRAG_LEFT_DOWN
= _windows_
.SASH_DRAG_LEFT_DOWN
1341 SW_NOBORDER
= _windows_
.SW_NOBORDER
1342 SW_BORDER
= _windows_
.SW_BORDER
1343 SW_3DSASH
= _windows_
.SW_3DSASH
1344 SW_3DBORDER
= _windows_
.SW_3DBORDER
1345 SW_3D
= _windows_
.SW_3D
1346 SASH_TOP
= _windows_
.SASH_TOP
1347 SASH_RIGHT
= _windows_
.SASH_RIGHT
1348 SASH_BOTTOM
= _windows_
.SASH_BOTTOM
1349 SASH_LEFT
= _windows_
.SASH_LEFT
1350 SASH_NONE
= _windows_
.SASH_NONE
1351 class SashWindow(_core
.Window
):
1353 return "<%s.%s; proxy of C++ wxSashWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1354 def __init__(self
, *args
, **kwargs
):
1356 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1357 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1358 String name=SashNameStr) -> SashWindow
1360 newobj
= _windows_
.new_SashWindow(*args
, **kwargs
)
1361 self
.this
= newobj
.this
1364 self
._setOORInfo
(self
)
1366 def Create(*args
, **kwargs
):
1368 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1369 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1370 String name=SashNameStr) -> bool
1372 return _windows_
.SashWindow_Create(*args
, **kwargs
)
1374 def SetSashVisible(*args
, **kwargs
):
1375 """SetSashVisible(self, int edge, bool sash)"""
1376 return _windows_
.SashWindow_SetSashVisible(*args
, **kwargs
)
1378 def GetSashVisible(*args
, **kwargs
):
1379 """GetSashVisible(self, int edge) -> bool"""
1380 return _windows_
.SashWindow_GetSashVisible(*args
, **kwargs
)
1382 def SetSashBorder(*args
, **kwargs
):
1383 """SetSashBorder(self, int edge, bool border)"""
1384 return _windows_
.SashWindow_SetSashBorder(*args
, **kwargs
)
1386 def HasBorder(*args
, **kwargs
):
1387 """HasBorder(self, int edge) -> bool"""
1388 return _windows_
.SashWindow_HasBorder(*args
, **kwargs
)
1390 def GetEdgeMargin(*args
, **kwargs
):
1391 """GetEdgeMargin(self, int edge) -> int"""
1392 return _windows_
.SashWindow_GetEdgeMargin(*args
, **kwargs
)
1394 def SetDefaultBorderSize(*args
, **kwargs
):
1395 """SetDefaultBorderSize(self, int width)"""
1396 return _windows_
.SashWindow_SetDefaultBorderSize(*args
, **kwargs
)
1398 def GetDefaultBorderSize(*args
, **kwargs
):
1399 """GetDefaultBorderSize(self) -> int"""
1400 return _windows_
.SashWindow_GetDefaultBorderSize(*args
, **kwargs
)
1402 def SetExtraBorderSize(*args
, **kwargs
):
1403 """SetExtraBorderSize(self, int width)"""
1404 return _windows_
.SashWindow_SetExtraBorderSize(*args
, **kwargs
)
1406 def GetExtraBorderSize(*args
, **kwargs
):
1407 """GetExtraBorderSize(self) -> int"""
1408 return _windows_
.SashWindow_GetExtraBorderSize(*args
, **kwargs
)
1410 def SetMinimumSizeX(*args
, **kwargs
):
1411 """SetMinimumSizeX(self, int min)"""
1412 return _windows_
.SashWindow_SetMinimumSizeX(*args
, **kwargs
)
1414 def SetMinimumSizeY(*args
, **kwargs
):
1415 """SetMinimumSizeY(self, int min)"""
1416 return _windows_
.SashWindow_SetMinimumSizeY(*args
, **kwargs
)
1418 def GetMinimumSizeX(*args
, **kwargs
):
1419 """GetMinimumSizeX(self) -> int"""
1420 return _windows_
.SashWindow_GetMinimumSizeX(*args
, **kwargs
)
1422 def GetMinimumSizeY(*args
, **kwargs
):
1423 """GetMinimumSizeY(self) -> int"""
1424 return _windows_
.SashWindow_GetMinimumSizeY(*args
, **kwargs
)
1426 def SetMaximumSizeX(*args
, **kwargs
):
1427 """SetMaximumSizeX(self, int max)"""
1428 return _windows_
.SashWindow_SetMaximumSizeX(*args
, **kwargs
)
1430 def SetMaximumSizeY(*args
, **kwargs
):
1431 """SetMaximumSizeY(self, int max)"""
1432 return _windows_
.SashWindow_SetMaximumSizeY(*args
, **kwargs
)
1434 def GetMaximumSizeX(*args
, **kwargs
):
1435 """GetMaximumSizeX(self) -> int"""
1436 return _windows_
.SashWindow_GetMaximumSizeX(*args
, **kwargs
)
1438 def GetMaximumSizeY(*args
, **kwargs
):
1439 """GetMaximumSizeY(self) -> int"""
1440 return _windows_
.SashWindow_GetMaximumSizeY(*args
, **kwargs
)
1442 def SashHitTest(*args
, **kwargs
):
1443 """SashHitTest(self, int x, int y, int tolerance=2) -> int"""
1444 return _windows_
.SashWindow_SashHitTest(*args
, **kwargs
)
1446 def SizeWindows(*args
, **kwargs
):
1447 """SizeWindows(self)"""
1448 return _windows_
.SashWindow_SizeWindows(*args
, **kwargs
)
1451 class SashWindowPtr(SashWindow
):
1452 def __init__(self
, this
):
1454 if not hasattr(self
,"thisown"): self
.thisown
= 0
1455 self
.__class
__ = SashWindow
1456 _windows_
.SashWindow_swigregister(SashWindowPtr
)
1457 SashNameStr
= cvar
.SashNameStr
1458 SashLayoutNameStr
= cvar
.SashLayoutNameStr
1460 def PreSashWindow(*args
, **kwargs
):
1461 """PreSashWindow() -> SashWindow"""
1462 val
= _windows_
.new_PreSashWindow(*args
, **kwargs
)
1466 SASH_STATUS_OK
= _windows_
.SASH_STATUS_OK
1467 SASH_STATUS_OUT_OF_RANGE
= _windows_
.SASH_STATUS_OUT_OF_RANGE
1468 class SashEvent(_core
.CommandEvent
):
1470 return "<%s.%s; proxy of C++ wxSashEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1471 def __init__(self
, *args
, **kwargs
):
1472 """__init__(self, int id=0, int edge=SASH_NONE) -> SashEvent"""
1473 newobj
= _windows_
.new_SashEvent(*args
, **kwargs
)
1474 self
.this
= newobj
.this
1477 def SetEdge(*args
, **kwargs
):
1478 """SetEdge(self, int edge)"""
1479 return _windows_
.SashEvent_SetEdge(*args
, **kwargs
)
1481 def GetEdge(*args
, **kwargs
):
1482 """GetEdge(self) -> int"""
1483 return _windows_
.SashEvent_GetEdge(*args
, **kwargs
)
1485 def SetDragRect(*args
, **kwargs
):
1486 """SetDragRect(self, Rect rect)"""
1487 return _windows_
.SashEvent_SetDragRect(*args
, **kwargs
)
1489 def GetDragRect(*args
, **kwargs
):
1490 """GetDragRect(self) -> Rect"""
1491 return _windows_
.SashEvent_GetDragRect(*args
, **kwargs
)
1493 def SetDragStatus(*args
, **kwargs
):
1494 """SetDragStatus(self, int status)"""
1495 return _windows_
.SashEvent_SetDragStatus(*args
, **kwargs
)
1497 def GetDragStatus(*args
, **kwargs
):
1498 """GetDragStatus(self) -> int"""
1499 return _windows_
.SashEvent_GetDragStatus(*args
, **kwargs
)
1502 class SashEventPtr(SashEvent
):
1503 def __init__(self
, this
):
1505 if not hasattr(self
,"thisown"): self
.thisown
= 0
1506 self
.__class
__ = SashEvent
1507 _windows_
.SashEvent_swigregister(SashEventPtr
)
1509 wxEVT_SASH_DRAGGED
= _windows_
.wxEVT_SASH_DRAGGED
1510 EVT_SASH_DRAGGED
= wx
.PyEventBinder( wxEVT_SASH_DRAGGED
, 1 )
1511 EVT_SASH_DRAGGED_RANGE
= wx
.PyEventBinder( wxEVT_SASH_DRAGGED
, 2 )
1513 #---------------------------------------------------------------------------
1515 LAYOUT_HORIZONTAL
= _windows_
.LAYOUT_HORIZONTAL
1516 LAYOUT_VERTICAL
= _windows_
.LAYOUT_VERTICAL
1517 LAYOUT_NONE
= _windows_
.LAYOUT_NONE
1518 LAYOUT_TOP
= _windows_
.LAYOUT_TOP
1519 LAYOUT_LEFT
= _windows_
.LAYOUT_LEFT
1520 LAYOUT_RIGHT
= _windows_
.LAYOUT_RIGHT
1521 LAYOUT_BOTTOM
= _windows_
.LAYOUT_BOTTOM
1522 LAYOUT_LENGTH_Y
= _windows_
.LAYOUT_LENGTH_Y
1523 LAYOUT_LENGTH_X
= _windows_
.LAYOUT_LENGTH_X
1524 LAYOUT_MRU_LENGTH
= _windows_
.LAYOUT_MRU_LENGTH
1525 LAYOUT_QUERY
= _windows_
.LAYOUT_QUERY
1526 wxEVT_QUERY_LAYOUT_INFO
= _windows_
.wxEVT_QUERY_LAYOUT_INFO
1527 wxEVT_CALCULATE_LAYOUT
= _windows_
.wxEVT_CALCULATE_LAYOUT
1528 class QueryLayoutInfoEvent(_core
.Event
):
1530 return "<%s.%s; proxy of C++ wxQueryLayoutInfoEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1531 def __init__(self
, *args
, **kwargs
):
1532 """__init__(self, int id=0) -> QueryLayoutInfoEvent"""
1533 newobj
= _windows_
.new_QueryLayoutInfoEvent(*args
, **kwargs
)
1534 self
.this
= newobj
.this
1537 def SetRequestedLength(*args
, **kwargs
):
1538 """SetRequestedLength(self, int length)"""
1539 return _windows_
.QueryLayoutInfoEvent_SetRequestedLength(*args
, **kwargs
)
1541 def GetRequestedLength(*args
, **kwargs
):
1542 """GetRequestedLength(self) -> int"""
1543 return _windows_
.QueryLayoutInfoEvent_GetRequestedLength(*args
, **kwargs
)
1545 def SetFlags(*args
, **kwargs
):
1546 """SetFlags(self, int flags)"""
1547 return _windows_
.QueryLayoutInfoEvent_SetFlags(*args
, **kwargs
)
1549 def GetFlags(*args
, **kwargs
):
1550 """GetFlags(self) -> int"""
1551 return _windows_
.QueryLayoutInfoEvent_GetFlags(*args
, **kwargs
)
1553 def SetSize(*args
, **kwargs
):
1554 """SetSize(self, Size size)"""
1555 return _windows_
.QueryLayoutInfoEvent_SetSize(*args
, **kwargs
)
1557 def GetSize(*args
, **kwargs
):
1558 """GetSize(self) -> Size"""
1559 return _windows_
.QueryLayoutInfoEvent_GetSize(*args
, **kwargs
)
1561 def SetOrientation(*args
, **kwargs
):
1562 """SetOrientation(self, int orient)"""
1563 return _windows_
.QueryLayoutInfoEvent_SetOrientation(*args
, **kwargs
)
1565 def GetOrientation(*args
, **kwargs
):
1566 """GetOrientation(self) -> int"""
1567 return _windows_
.QueryLayoutInfoEvent_GetOrientation(*args
, **kwargs
)
1569 def SetAlignment(*args
, **kwargs
):
1570 """SetAlignment(self, int align)"""
1571 return _windows_
.QueryLayoutInfoEvent_SetAlignment(*args
, **kwargs
)
1573 def GetAlignment(*args
, **kwargs
):
1574 """GetAlignment(self) -> int"""
1575 return _windows_
.QueryLayoutInfoEvent_GetAlignment(*args
, **kwargs
)
1578 class QueryLayoutInfoEventPtr(QueryLayoutInfoEvent
):
1579 def __init__(self
, this
):
1581 if not hasattr(self
,"thisown"): self
.thisown
= 0
1582 self
.__class
__ = QueryLayoutInfoEvent
1583 _windows_
.QueryLayoutInfoEvent_swigregister(QueryLayoutInfoEventPtr
)
1585 class CalculateLayoutEvent(_core
.Event
):
1587 return "<%s.%s; proxy of C++ wxCalculateLayoutEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1588 def __init__(self
, *args
, **kwargs
):
1589 """__init__(self, int id=0) -> CalculateLayoutEvent"""
1590 newobj
= _windows_
.new_CalculateLayoutEvent(*args
, **kwargs
)
1591 self
.this
= newobj
.this
1594 def SetFlags(*args
, **kwargs
):
1595 """SetFlags(self, int flags)"""
1596 return _windows_
.CalculateLayoutEvent_SetFlags(*args
, **kwargs
)
1598 def GetFlags(*args
, **kwargs
):
1599 """GetFlags(self) -> int"""
1600 return _windows_
.CalculateLayoutEvent_GetFlags(*args
, **kwargs
)
1602 def SetRect(*args
, **kwargs
):
1603 """SetRect(self, Rect rect)"""
1604 return _windows_
.CalculateLayoutEvent_SetRect(*args
, **kwargs
)
1606 def GetRect(*args
, **kwargs
):
1607 """GetRect(self) -> Rect"""
1608 return _windows_
.CalculateLayoutEvent_GetRect(*args
, **kwargs
)
1611 class CalculateLayoutEventPtr(CalculateLayoutEvent
):
1612 def __init__(self
, this
):
1614 if not hasattr(self
,"thisown"): self
.thisown
= 0
1615 self
.__class
__ = CalculateLayoutEvent
1616 _windows_
.CalculateLayoutEvent_swigregister(CalculateLayoutEventPtr
)
1618 EVT_QUERY_LAYOUT_INFO
= wx
.PyEventBinder( wxEVT_QUERY_LAYOUT_INFO
)
1619 EVT_CALCULATE_LAYOUT
= wx
.PyEventBinder( wxEVT_CALCULATE_LAYOUT
)
1621 class SashLayoutWindow(SashWindow
):
1623 return "<%s.%s; proxy of C++ wxSashLayoutWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1624 def __init__(self
, *args
, **kwargs
):
1626 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1627 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1628 String name=SashLayoutNameStr) -> SashLayoutWindow
1630 newobj
= _windows_
.new_SashLayoutWindow(*args
, **kwargs
)
1631 self
.this
= newobj
.this
1634 self
._setOORInfo
(self
)
1636 def Create(*args
, **kwargs
):
1638 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1639 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1640 String name=SashLayoutNameStr) -> bool
1642 return _windows_
.SashLayoutWindow_Create(*args
, **kwargs
)
1644 def GetAlignment(*args
, **kwargs
):
1645 """GetAlignment(self) -> int"""
1646 return _windows_
.SashLayoutWindow_GetAlignment(*args
, **kwargs
)
1648 def GetOrientation(*args
, **kwargs
):
1649 """GetOrientation(self) -> int"""
1650 return _windows_
.SashLayoutWindow_GetOrientation(*args
, **kwargs
)
1652 def SetAlignment(*args
, **kwargs
):
1653 """SetAlignment(self, int alignment)"""
1654 return _windows_
.SashLayoutWindow_SetAlignment(*args
, **kwargs
)
1656 def SetDefaultSize(*args
, **kwargs
):
1657 """SetDefaultSize(self, Size size)"""
1658 return _windows_
.SashLayoutWindow_SetDefaultSize(*args
, **kwargs
)
1660 def SetOrientation(*args
, **kwargs
):
1661 """SetOrientation(self, int orientation)"""
1662 return _windows_
.SashLayoutWindow_SetOrientation(*args
, **kwargs
)
1665 class SashLayoutWindowPtr(SashLayoutWindow
):
1666 def __init__(self
, this
):
1668 if not hasattr(self
,"thisown"): self
.thisown
= 0
1669 self
.__class
__ = SashLayoutWindow
1670 _windows_
.SashLayoutWindow_swigregister(SashLayoutWindowPtr
)
1672 def PreSashLayoutWindow(*args
, **kwargs
):
1673 """PreSashLayoutWindow() -> SashLayoutWindow"""
1674 val
= _windows_
.new_PreSashLayoutWindow(*args
, **kwargs
)
1678 class LayoutAlgorithm(_core
.Object
):
1680 return "<%s.%s; proxy of C++ wxLayoutAlgorithm instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1681 def __init__(self
, *args
, **kwargs
):
1682 """__init__(self) -> LayoutAlgorithm"""
1683 newobj
= _windows_
.new_LayoutAlgorithm(*args
, **kwargs
)
1684 self
.this
= newobj
.this
1687 def __del__(self
, destroy
=_windows_
.delete_LayoutAlgorithm
):
1690 if self
.thisown
: destroy(self
)
1693 def LayoutMDIFrame(*args
, **kwargs
):
1694 """LayoutMDIFrame(self, MDIParentFrame frame, Rect rect=None) -> bool"""
1695 return _windows_
.LayoutAlgorithm_LayoutMDIFrame(*args
, **kwargs
)
1697 def LayoutFrame(*args
, **kwargs
):
1698 """LayoutFrame(self, Frame frame, Window mainWindow=None) -> bool"""
1699 return _windows_
.LayoutAlgorithm_LayoutFrame(*args
, **kwargs
)
1701 def LayoutWindow(*args
, **kwargs
):
1702 """LayoutWindow(self, Window parent, Window mainWindow=None) -> bool"""
1703 return _windows_
.LayoutAlgorithm_LayoutWindow(*args
, **kwargs
)
1706 class LayoutAlgorithmPtr(LayoutAlgorithm
):
1707 def __init__(self
, this
):
1709 if not hasattr(self
,"thisown"): self
.thisown
= 0
1710 self
.__class
__ = LayoutAlgorithm
1711 _windows_
.LayoutAlgorithm_swigregister(LayoutAlgorithmPtr
)
1713 #---------------------------------------------------------------------------
1715 class PopupWindow(_core
.Window
):
1717 return "<%s.%s; proxy of C++ wxPopupWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1718 def __init__(self
, *args
, **kwargs
):
1719 """__init__(self, Window parent, int flags=BORDER_NONE) -> PopupWindow"""
1720 newobj
= _windows_
.new_PopupWindow(*args
, **kwargs
)
1721 self
.this
= newobj
.this
1724 self
._setOORInfo
(self
)
1726 def Create(*args
, **kwargs
):
1727 """Create(self, Window parent, int flags=BORDER_NONE) -> bool"""
1728 return _windows_
.PopupWindow_Create(*args
, **kwargs
)
1730 def Position(*args
, **kwargs
):
1731 """Position(self, Point ptOrigin, Size size)"""
1732 return _windows_
.PopupWindow_Position(*args
, **kwargs
)
1735 class PopupWindowPtr(PopupWindow
):
1736 def __init__(self
, this
):
1738 if not hasattr(self
,"thisown"): self
.thisown
= 0
1739 self
.__class
__ = PopupWindow
1740 _windows_
.PopupWindow_swigregister(PopupWindowPtr
)
1742 def PrePopupWindow(*args
, **kwargs
):
1743 """PrePopupWindow() -> PopupWindow"""
1744 val
= _windows_
.new_PrePopupWindow(*args
, **kwargs
)
1748 #---------------------------------------------------------------------------
1750 class PopupTransientWindow(PopupWindow
):
1752 return "<%s.%s; proxy of C++ wxPyPopupTransientWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1753 def __init__(self
, *args
, **kwargs
):
1754 """__init__(self, Window parent, int style=BORDER_NONE) -> PopupTransientWindow"""
1755 newobj
= _windows_
.new_PopupTransientWindow(*args
, **kwargs
)
1756 self
.this
= newobj
.this
1759 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, PopupTransientWindow
)
1761 def _setCallbackInfo(*args
, **kwargs
):
1762 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1763 return _windows_
.PopupTransientWindow__setCallbackInfo(*args
, **kwargs
)
1765 def Popup(*args
, **kwargs
):
1766 """Popup(self, Window focus=None)"""
1767 return _windows_
.PopupTransientWindow_Popup(*args
, **kwargs
)
1769 def Dismiss(*args
, **kwargs
):
1771 return _windows_
.PopupTransientWindow_Dismiss(*args
, **kwargs
)
1774 class PopupTransientWindowPtr(PopupTransientWindow
):
1775 def __init__(self
, this
):
1777 if not hasattr(self
,"thisown"): self
.thisown
= 0
1778 self
.__class
__ = PopupTransientWindow
1779 _windows_
.PopupTransientWindow_swigregister(PopupTransientWindowPtr
)
1781 def PrePopupTransientWindow(*args
, **kwargs
):
1782 """PrePopupTransientWindow() -> PopupTransientWindow"""
1783 val
= _windows_
.new_PrePopupTransientWindow(*args
, **kwargs
)
1787 #---------------------------------------------------------------------------
1789 class TipWindow(PopupTransientWindow
):
1791 return "<%s.%s; proxy of C++ wxTipWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1792 def __init__(self
, *args
, **kwargs
):
1793 """__init__(self, Window parent, String text, int maxLength=100, Rect rectBound=None) -> TipWindow"""
1794 newobj
= _windows_
.new_TipWindow(*args
, **kwargs
)
1795 self
.this
= newobj
.this
1798 self
._setOORInfo
(self
)
1800 def SetBoundingRect(*args
, **kwargs
):
1801 """SetBoundingRect(self, Rect rectBound)"""
1802 return _windows_
.TipWindow_SetBoundingRect(*args
, **kwargs
)
1804 def Close(*args
, **kwargs
):
1806 return _windows_
.TipWindow_Close(*args
, **kwargs
)
1809 class TipWindowPtr(TipWindow
):
1810 def __init__(self
, this
):
1812 if not hasattr(self
,"thisown"): self
.thisown
= 0
1813 self
.__class
__ = TipWindow
1814 _windows_
.TipWindow_swigregister(TipWindowPtr
)
1816 #---------------------------------------------------------------------------
1818 class VScrolledWindow(Panel
):
1820 return "<%s.%s; proxy of C++ wxPyVScrolledWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1821 def __init__(self
, *args
, **kwargs
):
1823 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1824 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> VScrolledWindow
1826 newobj
= _windows_
.new_VScrolledWindow(*args
, **kwargs
)
1827 self
.this
= newobj
.this
1830 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, VScrolledWindow
)
1832 def _setCallbackInfo(*args
, **kwargs
):
1833 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1834 return _windows_
.VScrolledWindow__setCallbackInfo(*args
, **kwargs
)
1836 def Create(*args
, **kwargs
):
1838 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1839 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> bool
1841 return _windows_
.VScrolledWindow_Create(*args
, **kwargs
)
1843 def SetLineCount(*args
, **kwargs
):
1844 """SetLineCount(self, size_t count)"""
1845 return _windows_
.VScrolledWindow_SetLineCount(*args
, **kwargs
)
1847 def ScrollToLine(*args
, **kwargs
):
1848 """ScrollToLine(self, size_t line) -> bool"""
1849 return _windows_
.VScrolledWindow_ScrollToLine(*args
, **kwargs
)
1851 def ScrollLines(*args
, **kwargs
):
1853 ScrollLines(self, int lines) -> bool
1855 If the platform and window class supports it, scrolls the window by
1856 the given number of lines down, if lines is positive, or up if lines
1857 is negative. Returns True if the window was scrolled, False if it was
1858 already on top/bottom and nothing was done.
1860 return _windows_
.VScrolledWindow_ScrollLines(*args
, **kwargs
)
1862 def ScrollPages(*args
, **kwargs
):
1864 ScrollPages(self, int pages) -> bool
1866 If the platform and window class supports it, scrolls the window by
1867 the given number of pages down, if pages is positive, or up if pages
1868 is negative. Returns True if the window was scrolled, False if it was
1869 already on top/bottom and nothing was done.
1871 return _windows_
.VScrolledWindow_ScrollPages(*args
, **kwargs
)
1873 def RefreshLine(*args
, **kwargs
):
1874 """RefreshLine(self, size_t line)"""
1875 return _windows_
.VScrolledWindow_RefreshLine(*args
, **kwargs
)
1877 def RefreshLines(*args
, **kwargs
):
1878 """RefreshLines(self, size_t from, size_t to)"""
1879 return _windows_
.VScrolledWindow_RefreshLines(*args
, **kwargs
)
1881 def HitTestXY(*args
, **kwargs
):
1883 HitTestXY(self, int x, int y) -> int
1885 Test where the given (in client coords) point lies
1887 return _windows_
.VScrolledWindow_HitTestXY(*args
, **kwargs
)
1889 def HitTest(*args
, **kwargs
):
1891 HitTest(self, Point pt) -> int
1893 Test where the given (in client coords) point lies
1895 return _windows_
.VScrolledWindow_HitTest(*args
, **kwargs
)
1897 def RefreshAll(*args
, **kwargs
):
1898 """RefreshAll(self)"""
1899 return _windows_
.VScrolledWindow_RefreshAll(*args
, **kwargs
)
1901 def GetLineCount(*args
, **kwargs
):
1902 """GetLineCount(self) -> size_t"""
1903 return _windows_
.VScrolledWindow_GetLineCount(*args
, **kwargs
)
1905 def GetFirstVisibleLine(*args
, **kwargs
):
1906 """GetFirstVisibleLine(self) -> size_t"""
1907 return _windows_
.VScrolledWindow_GetFirstVisibleLine(*args
, **kwargs
)
1909 def GetLastVisibleLine(*args
, **kwargs
):
1910 """GetLastVisibleLine(self) -> size_t"""
1911 return _windows_
.VScrolledWindow_GetLastVisibleLine(*args
, **kwargs
)
1913 def IsVisible(*args
, **kwargs
):
1914 """IsVisible(self, size_t line) -> bool"""
1915 return _windows_
.VScrolledWindow_IsVisible(*args
, **kwargs
)
1918 class VScrolledWindowPtr(VScrolledWindow
):
1919 def __init__(self
, this
):
1921 if not hasattr(self
,"thisown"): self
.thisown
= 0
1922 self
.__class
__ = VScrolledWindow
1923 _windows_
.VScrolledWindow_swigregister(VScrolledWindowPtr
)
1925 def PreVScrolledWindow(*args
, **kwargs
):
1926 """PreVScrolledWindow() -> VScrolledWindow"""
1927 val
= _windows_
.new_PreVScrolledWindow(*args
, **kwargs
)
1931 class VListBox(VScrolledWindow
):
1933 return "<%s.%s; proxy of C++ wxPyVListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1934 def __init__(self
, *args
, **kwargs
):
1936 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1937 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> VListBox
1939 newobj
= _windows_
.new_VListBox(*args
, **kwargs
)
1940 self
.this
= newobj
.this
1943 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, VListBox
)
1945 def _setCallbackInfo(*args
, **kwargs
):
1946 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1947 return _windows_
.VListBox__setCallbackInfo(*args
, **kwargs
)
1949 def Create(*args
, **kwargs
):
1951 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1952 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
1954 return _windows_
.VListBox_Create(*args
, **kwargs
)
1956 def GetItemCount(*args
, **kwargs
):
1957 """GetItemCount(self) -> size_t"""
1958 return _windows_
.VListBox_GetItemCount(*args
, **kwargs
)
1960 def HasMultipleSelection(*args
, **kwargs
):
1961 """HasMultipleSelection(self) -> bool"""
1962 return _windows_
.VListBox_HasMultipleSelection(*args
, **kwargs
)
1964 def GetSelection(*args
, **kwargs
):
1965 """GetSelection(self) -> int"""
1966 return _windows_
.VListBox_GetSelection(*args
, **kwargs
)
1968 def IsCurrent(*args
, **kwargs
):
1969 """IsCurrent(self, size_t item) -> bool"""
1970 return _windows_
.VListBox_IsCurrent(*args
, **kwargs
)
1972 def IsSelected(*args
, **kwargs
):
1973 """IsSelected(self, size_t item) -> bool"""
1974 return _windows_
.VListBox_IsSelected(*args
, **kwargs
)
1976 def GetSelectedCount(*args
, **kwargs
):
1977 """GetSelectedCount(self) -> size_t"""
1978 return _windows_
.VListBox_GetSelectedCount(*args
, **kwargs
)
1980 def GetFirstSelected(*args
, **kwargs
):
1981 """GetFirstSelected(self) -> PyObject"""
1982 return _windows_
.VListBox_GetFirstSelected(*args
, **kwargs
)
1984 def GetNextSelected(*args
, **kwargs
):
1985 """GetNextSelected(self, unsigned long cookie) -> PyObject"""
1986 return _windows_
.VListBox_GetNextSelected(*args
, **kwargs
)
1988 def GetMargins(*args
, **kwargs
):
1989 """GetMargins(self) -> Point"""
1990 return _windows_
.VListBox_GetMargins(*args
, **kwargs
)
1992 def GetSelectionBackground(*args
, **kwargs
):
1993 """GetSelectionBackground(self) -> Colour"""
1994 return _windows_
.VListBox_GetSelectionBackground(*args
, **kwargs
)
1996 def SetItemCount(*args
, **kwargs
):
1997 """SetItemCount(self, size_t count)"""
1998 return _windows_
.VListBox_SetItemCount(*args
, **kwargs
)
2000 def Clear(*args
, **kwargs
):
2002 return _windows_
.VListBox_Clear(*args
, **kwargs
)
2004 def SetSelection(*args
, **kwargs
):
2005 """SetSelection(self, int selection)"""
2006 return _windows_
.VListBox_SetSelection(*args
, **kwargs
)
2008 def Select(*args
, **kwargs
):
2009 """Select(self, size_t item, bool select=True) -> bool"""
2010 return _windows_
.VListBox_Select(*args
, **kwargs
)
2012 def SelectRange(*args
, **kwargs
):
2013 """SelectRange(self, size_t from, size_t to) -> bool"""
2014 return _windows_
.VListBox_SelectRange(*args
, **kwargs
)
2016 def Toggle(*args
, **kwargs
):
2017 """Toggle(self, size_t item)"""
2018 return _windows_
.VListBox_Toggle(*args
, **kwargs
)
2020 def SelectAll(*args
, **kwargs
):
2021 """SelectAll(self) -> bool"""
2022 return _windows_
.VListBox_SelectAll(*args
, **kwargs
)
2024 def DeselectAll(*args
, **kwargs
):
2025 """DeselectAll(self) -> bool"""
2026 return _windows_
.VListBox_DeselectAll(*args
, **kwargs
)
2028 def SetMargins(*args
, **kwargs
):
2029 """SetMargins(self, Point pt)"""
2030 return _windows_
.VListBox_SetMargins(*args
, **kwargs
)
2032 def SetMarginsXY(*args
, **kwargs
):
2033 """SetMarginsXY(self, int x, int y)"""
2034 return _windows_
.VListBox_SetMarginsXY(*args
, **kwargs
)
2036 def SetSelectionBackground(*args
, **kwargs
):
2037 """SetSelectionBackground(self, Colour col)"""
2038 return _windows_
.VListBox_SetSelectionBackground(*args
, **kwargs
)
2041 class VListBoxPtr(VListBox
):
2042 def __init__(self
, this
):
2044 if not hasattr(self
,"thisown"): self
.thisown
= 0
2045 self
.__class
__ = VListBox
2046 _windows_
.VListBox_swigregister(VListBoxPtr
)
2047 VListBoxNameStr
= cvar
.VListBoxNameStr
2049 def PreVListBox(*args
, **kwargs
):
2050 """PreVListBox() -> VListBox"""
2051 val
= _windows_
.new_PreVListBox(*args
, **kwargs
)
2055 class HtmlListBox(VListBox
):
2057 return "<%s.%s; proxy of C++ wxPyHtmlListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2058 def __init__(self
, *args
, **kwargs
):
2060 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
2061 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> HtmlListBox
2063 newobj
= _windows_
.new_HtmlListBox(*args
, **kwargs
)
2064 self
.this
= newobj
.this
2067 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, HtmlListBox
)
2069 def _setCallbackInfo(*args
, **kwargs
):
2070 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
2071 return _windows_
.HtmlListBox__setCallbackInfo(*args
, **kwargs
)
2073 def Create(*args
, **kwargs
):
2075 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
2076 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
2078 return _windows_
.HtmlListBox_Create(*args
, **kwargs
)
2080 def RefreshAll(*args
, **kwargs
):
2081 """RefreshAll(self)"""
2082 return _windows_
.HtmlListBox_RefreshAll(*args
, **kwargs
)
2084 def SetItemCount(*args
, **kwargs
):
2085 """SetItemCount(self, size_t count)"""
2086 return _windows_
.HtmlListBox_SetItemCount(*args
, **kwargs
)
2088 def GetFileSystem(*args
, **kwargs
):
2089 """GetFileSystem(self) -> FileSystem"""
2090 return _windows_
.HtmlListBox_GetFileSystem(*args
, **kwargs
)
2093 class HtmlListBoxPtr(HtmlListBox
):
2094 def __init__(self
, this
):
2096 if not hasattr(self
,"thisown"): self
.thisown
= 0
2097 self
.__class
__ = HtmlListBox
2098 _windows_
.HtmlListBox_swigregister(HtmlListBoxPtr
)
2100 def PreHtmlListBox(*args
, **kwargs
):
2101 """PreHtmlListBox() -> HtmlListBox"""
2102 val
= _windows_
.new_PreHtmlListBox(*args
, **kwargs
)
2106 #---------------------------------------------------------------------------
2108 class TaskBarIcon(_core
.EvtHandler
):
2110 return "<%s.%s; proxy of C++ wxPyTaskBarIcon instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2111 def __init__(self
, *args
, **kwargs
):
2112 """__init__(self) -> TaskBarIcon"""
2113 newobj
= _windows_
.new_TaskBarIcon(*args
, **kwargs
)
2114 self
.this
= newobj
.this
2117 self
._setCallbackInfo
(self
, TaskBarIcon
, 0)
2119 def _setCallbackInfo(*args
, **kwargs
):
2120 """_setCallbackInfo(self, PyObject self, PyObject _class, int incref)"""
2121 return _windows_
.TaskBarIcon__setCallbackInfo(*args
, **kwargs
)
2123 def Destroy(*args
, **kwargs
):
2127 Deletes the C++ object this Python object is a proxy for.
2129 return _windows_
.TaskBarIcon_Destroy(*args
, **kwargs
)
2131 def IsOk(*args
, **kwargs
):
2132 """IsOk(self) -> bool"""
2133 return _windows_
.TaskBarIcon_IsOk(*args
, **kwargs
)
2135 def __nonzero__(self
): return self
.IsOk()
2136 def IsIconInstalled(*args
, **kwargs
):
2137 """IsIconInstalled(self) -> bool"""
2138 return _windows_
.TaskBarIcon_IsIconInstalled(*args
, **kwargs
)
2140 def SetIcon(*args
, **kwargs
):
2141 """SetIcon(self, Icon icon, String tooltip=EmptyString) -> bool"""
2142 return _windows_
.TaskBarIcon_SetIcon(*args
, **kwargs
)
2144 def RemoveIcon(*args
, **kwargs
):
2145 """RemoveIcon(self) -> bool"""
2146 return _windows_
.TaskBarIcon_RemoveIcon(*args
, **kwargs
)
2148 def PopupMenu(*args
, **kwargs
):
2149 """PopupMenu(self, Menu menu) -> bool"""
2150 return _windows_
.TaskBarIcon_PopupMenu(*args
, **kwargs
)
2153 class TaskBarIconPtr(TaskBarIcon
):
2154 def __init__(self
, this
):
2156 if not hasattr(self
,"thisown"): self
.thisown
= 0
2157 self
.__class
__ = TaskBarIcon
2158 _windows_
.TaskBarIcon_swigregister(TaskBarIconPtr
)
2160 class TaskBarIconEvent(_core
.Event
):
2162 return "<%s.%s; proxy of C++ wxTaskBarIconEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2163 def __init__(self
, *args
, **kwargs
):
2164 """__init__(self, wxEventType evtType, wxTaskBarIcon tbIcon) -> TaskBarIconEvent"""
2165 newobj
= _windows_
.new_TaskBarIconEvent(*args
, **kwargs
)
2166 self
.this
= newobj
.this
2170 class TaskBarIconEventPtr(TaskBarIconEvent
):
2171 def __init__(self
, this
):
2173 if not hasattr(self
,"thisown"): self
.thisown
= 0
2174 self
.__class
__ = TaskBarIconEvent
2175 _windows_
.TaskBarIconEvent_swigregister(TaskBarIconEventPtr
)
2177 wxEVT_TASKBAR_MOVE
= _windows_
.wxEVT_TASKBAR_MOVE
2178 wxEVT_TASKBAR_LEFT_DOWN
= _windows_
.wxEVT_TASKBAR_LEFT_DOWN
2179 wxEVT_TASKBAR_LEFT_UP
= _windows_
.wxEVT_TASKBAR_LEFT_UP
2180 wxEVT_TASKBAR_RIGHT_DOWN
= _windows_
.wxEVT_TASKBAR_RIGHT_DOWN
2181 wxEVT_TASKBAR_RIGHT_UP
= _windows_
.wxEVT_TASKBAR_RIGHT_UP
2182 wxEVT_TASKBAR_LEFT_DCLICK
= _windows_
.wxEVT_TASKBAR_LEFT_DCLICK
2183 wxEVT_TASKBAR_RIGHT_DCLICK
= _windows_
.wxEVT_TASKBAR_RIGHT_DCLICK
2184 EVT_TASKBAR_MOVE
= wx
.PyEventBinder ( wxEVT_TASKBAR_MOVE
)
2185 EVT_TASKBAR_LEFT_DOWN
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_DOWN
)
2186 EVT_TASKBAR_LEFT_UP
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_UP
)
2187 EVT_TASKBAR_RIGHT_DOWN
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DOWN
)
2188 EVT_TASKBAR_RIGHT_UP
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_UP
)
2189 EVT_TASKBAR_LEFT_DCLICK
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_DCLICK
)
2190 EVT_TASKBAR_RIGHT_DCLICK
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DCLICK
)
2192 #---------------------------------------------------------------------------
2194 class ColourData(_core
.Object
):
2196 This class holds a variety of information related to the colour
2197 chooser dialog, used to transfer settings and results to and from the
2201 return "<%s.%s; proxy of C++ wxColourData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2202 def __init__(self
, *args
, **kwargs
):
2204 __init__(self) -> ColourData
2206 Constructor, sets default values.
2208 newobj
= _windows_
.new_ColourData(*args
, **kwargs
)
2209 self
.this
= newobj
.this
2212 def __del__(self
, destroy
=_windows_
.delete_ColourData
):
2215 if self
.thisown
: destroy(self
)
2218 def GetChooseFull(*args
, **kwargs
):
2220 GetChooseFull(self) -> bool
2222 Under Windows, determines whether the Windows colour dialog will
2223 display the full dialog with custom colour selection controls. Has no
2224 meaning under other platforms. The default value is true.
2226 return _windows_
.ColourData_GetChooseFull(*args
, **kwargs
)
2228 def GetColour(*args
, **kwargs
):
2230 GetColour(self) -> Colour
2232 Gets the colour (pre)selected by the dialog.
2234 return _windows_
.ColourData_GetColour(*args
, **kwargs
)
2236 def GetCustomColour(*args
, **kwargs
):
2238 GetCustomColour(self, int i) -> Colour
2240 Gets the i'th custom colour associated with the colour dialog. i
2241 should be an integer between 0 and 15. The default custom colours are
2242 all invalid colours.
2244 return _windows_
.ColourData_GetCustomColour(*args
, **kwargs
)
2246 def SetChooseFull(*args
, **kwargs
):
2248 SetChooseFull(self, int flag)
2250 Under Windows, tells the Windows colour dialog to display the full
2251 dialog with custom colour selection controls. Under other platforms,
2252 has no effect. The default value is true.
2254 return _windows_
.ColourData_SetChooseFull(*args
, **kwargs
)
2256 def SetColour(*args
, **kwargs
):
2258 SetColour(self, Colour colour)
2260 Sets the default colour for the colour dialog. The default colour is
2263 return _windows_
.ColourData_SetColour(*args
, **kwargs
)
2265 def SetCustomColour(*args
, **kwargs
):
2267 SetCustomColour(self, int i, Colour colour)
2269 Sets the i'th custom colour for the colour dialog. i should be an
2270 integer between 0 and 15. The default custom colours are all invalid colours.
2272 return _windows_
.ColourData_SetCustomColour(*args
, **kwargs
)
2275 class ColourDataPtr(ColourData
):
2276 def __init__(self
, this
):
2278 if not hasattr(self
,"thisown"): self
.thisown
= 0
2279 self
.__class
__ = ColourData
2280 _windows_
.ColourData_swigregister(ColourDataPtr
)
2281 FileSelectorPromptStr
= cvar
.FileSelectorPromptStr
2282 DirSelectorPromptStr
= cvar
.DirSelectorPromptStr
2283 DirDialogNameStr
= cvar
.DirDialogNameStr
2284 FileSelectorDefaultWildcardStr
= cvar
.FileSelectorDefaultWildcardStr
2285 GetTextFromUserPromptStr
= cvar
.GetTextFromUserPromptStr
2286 MessageBoxCaptionStr
= cvar
.MessageBoxCaptionStr
2288 class ColourDialog(Dialog
):
2289 """This class represents the colour chooser dialog."""
2291 return "<%s.%s; proxy of C++ wxColourDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2292 def __init__(self
, *args
, **kwargs
):
2294 __init__(self, Window parent, ColourData data=None) -> ColourDialog
2296 Constructor. Pass a parent window, and optionally a `wx.ColourData`,
2297 which will be copied to the colour dialog's internal ColourData
2300 newobj
= _windows_
.new_ColourDialog(*args
, **kwargs
)
2301 self
.this
= newobj
.this
2304 self
._setOORInfo
(self
)
2306 def GetColourData(*args
, **kwargs
):
2308 GetColourData(self) -> ColourData
2310 Returns a reference to the `wx.ColourData` used by the dialog.
2312 return _windows_
.ColourDialog_GetColourData(*args
, **kwargs
)
2315 class ColourDialogPtr(ColourDialog
):
2316 def __init__(self
, this
):
2318 if not hasattr(self
,"thisown"): self
.thisown
= 0
2319 self
.__class
__ = ColourDialog
2320 _windows_
.ColourDialog_swigregister(ColourDialogPtr
)
2322 class DirDialog(Dialog
):
2324 wx.DirDialog allows the user to select a directory by browising the
2328 return "<%s.%s; proxy of C++ wxDirDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2329 def __init__(self
, *args
, **kwargs
):
2331 __init__(self, Window parent, String message=DirSelectorPromptStr,
2332 String defaultPath=EmptyString, long style=0,
2333 Point pos=DefaultPosition, Size size=DefaultSize,
2334 String name=DirDialogNameStr) -> DirDialog
2336 Constructor. Use ShowModal method to show the dialog.
2338 newobj
= _windows_
.new_DirDialog(*args
, **kwargs
)
2339 self
.this
= newobj
.this
2342 self
._setOORInfo
(self
)
2344 def GetPath(*args
, **kwargs
):
2346 GetPath(self) -> String
2348 Returns the default or user-selected path.
2350 return _windows_
.DirDialog_GetPath(*args
, **kwargs
)
2352 def GetMessage(*args
, **kwargs
):
2354 GetMessage(self) -> String
2356 Returns the message that will be displayed on the dialog.
2358 return _windows_
.DirDialog_GetMessage(*args
, **kwargs
)
2360 def GetStyle(*args
, **kwargs
):
2362 GetStyle(self) -> long
2364 Returns the dialog style.
2366 return _windows_
.DirDialog_GetStyle(*args
, **kwargs
)
2368 def SetMessage(*args
, **kwargs
):
2370 SetMessage(self, String message)
2372 Sets the message that will be displayed on the dialog.
2374 return _windows_
.DirDialog_SetMessage(*args
, **kwargs
)
2376 def SetPath(*args
, **kwargs
):
2378 SetPath(self, String path)
2380 Sets the default path.
2382 return _windows_
.DirDialog_SetPath(*args
, **kwargs
)
2385 class DirDialogPtr(DirDialog
):
2386 def __init__(self
, this
):
2388 if not hasattr(self
,"thisown"): self
.thisown
= 0
2389 self
.__class
__ = DirDialog
2390 _windows_
.DirDialog_swigregister(DirDialogPtr
)
2392 class FileDialog(Dialog
):
2394 wx.FileDialog allows the user to select one or more files from the
2398 return "<%s.%s; proxy of C++ wxFileDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2399 def __init__(self
, *args
, **kwargs
):
2401 __init__(self, Window parent, String message=FileSelectorPromptStr,
2402 String defaultDir=EmptyString, String defaultFile=EmptyString,
2403 String wildcard=FileSelectorDefaultWildcardStr,
2404 long style=0, Point pos=DefaultPosition) -> FileDialog
2406 Constructor. Use ShowModal method to show the dialog.
2408 newobj
= _windows_
.new_FileDialog(*args
, **kwargs
)
2409 self
.this
= newobj
.this
2412 self
._setOORInfo
(self
)
2414 def SetMessage(*args
, **kwargs
):
2416 SetMessage(self, String message)
2418 Sets the message that will be displayed on the dialog.
2420 return _windows_
.FileDialog_SetMessage(*args
, **kwargs
)
2422 def SetPath(*args
, **kwargs
):
2424 SetPath(self, String path)
2426 Sets the path (the combined directory and filename that will be
2427 returned when the dialog is dismissed).
2429 return _windows_
.FileDialog_SetPath(*args
, **kwargs
)
2431 def SetDirectory(*args
, **kwargs
):
2433 SetDirectory(self, String dir)
2435 Sets the default directory.
2437 return _windows_
.FileDialog_SetDirectory(*args
, **kwargs
)
2439 def SetFilename(*args
, **kwargs
):
2441 SetFilename(self, String name)
2443 Sets the default filename.
2445 return _windows_
.FileDialog_SetFilename(*args
, **kwargs
)
2447 def SetWildcard(*args
, **kwargs
):
2449 SetWildcard(self, String wildCard)
2451 Sets the wildcard, which can contain multiple file types, for
2454 "BMP files (*.bmp)|*.bmp|GIF files (*.gif)|*.gif"
2457 return _windows_
.FileDialog_SetWildcard(*args
, **kwargs
)
2459 def SetStyle(*args
, **kwargs
):
2461 SetStyle(self, long style)
2463 Sets the dialog style.
2465 return _windows_
.FileDialog_SetStyle(*args
, **kwargs
)
2467 def SetFilterIndex(*args
, **kwargs
):
2469 SetFilterIndex(self, int filterIndex)
2471 Sets the default filter index, starting from zero.
2473 return _windows_
.FileDialog_SetFilterIndex(*args
, **kwargs
)
2475 def GetMessage(*args
, **kwargs
):
2477 GetMessage(self) -> String
2479 Returns the message that will be displayed on the dialog.
2481 return _windows_
.FileDialog_GetMessage(*args
, **kwargs
)
2483 def GetPath(*args
, **kwargs
):
2485 GetPath(self) -> String
2487 Returns the full path (directory and filename) of the selected file.
2489 return _windows_
.FileDialog_GetPath(*args
, **kwargs
)
2491 def GetDirectory(*args
, **kwargs
):
2493 GetDirectory(self) -> String
2495 Returns the default directory.
2497 return _windows_
.FileDialog_GetDirectory(*args
, **kwargs
)
2499 def GetFilename(*args
, **kwargs
):
2501 GetFilename(self) -> String
2503 Returns the default filename.
2505 return _windows_
.FileDialog_GetFilename(*args
, **kwargs
)
2507 def GetWildcard(*args
, **kwargs
):
2509 GetWildcard(self) -> String
2511 Returns the file dialog wildcard.
2513 return _windows_
.FileDialog_GetWildcard(*args
, **kwargs
)
2515 def GetStyle(*args
, **kwargs
):
2517 GetStyle(self) -> long
2519 Returns the dialog style.
2521 return _windows_
.FileDialog_GetStyle(*args
, **kwargs
)
2523 def GetFilterIndex(*args
, **kwargs
):
2525 GetFilterIndex(self) -> int
2527 Returns the index into the list of filters supplied, optionally, in
2528 the wildcard parameter. Before the dialog is shown, this is the index
2529 which will be used when the dialog is first displayed. After the
2530 dialog is shown, this is the index selected by the user.
2532 return _windows_
.FileDialog_GetFilterIndex(*args
, **kwargs
)
2534 def GetFilenames(*args
, **kwargs
):
2536 GetFilenames(self) -> PyObject
2538 Returns a list of filenames chosen in the dialog. This function
2539 should only be used with the dialogs which have wx.MULTIPLE style, use
2540 GetFilename for the others.
2542 return _windows_
.FileDialog_GetFilenames(*args
, **kwargs
)
2544 def GetPaths(*args
, **kwargs
):
2546 GetPaths(self) -> PyObject
2548 Fills the array paths with the full paths of the files chosen. This
2549 function should only be used with the dialogs which have wx.MULTIPLE
2550 style, use GetPath for the others.
2552 return _windows_
.FileDialog_GetPaths(*args
, **kwargs
)
2555 class FileDialogPtr(FileDialog
):
2556 def __init__(self
, this
):
2558 if not hasattr(self
,"thisown"): self
.thisown
= 0
2559 self
.__class
__ = FileDialog
2560 _windows_
.FileDialog_swigregister(FileDialogPtr
)
2562 CHOICEDLG_STYLE
= _windows_
.CHOICEDLG_STYLE
2563 class MultiChoiceDialog(Dialog
):
2564 """A simple dialog with a multi selection listbox."""
2566 return "<%s.%s; proxy of C++ wxMultiChoiceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2567 def __init__(self
, *args
, **kwargs
):
2569 __init__(Window parent, String message, String caption,
2570 List choices=[], long style=CHOICEDLG_STYLE,
2571 Point pos=DefaultPosition) -> MultiChoiceDialog
2573 Constructor. Use ShowModal method to show the dialog.
2575 newobj
= _windows_
.new_MultiChoiceDialog(*args
, **kwargs
)
2576 self
.this
= newobj
.this
2579 self
._setOORInfo
(self
)
2581 def SetSelections(*args
, **kwargs
):
2583 SetSelections(List selections)
2585 Specify the items in the list that should be selected, using a list of
2588 return _windows_
.MultiChoiceDialog_SetSelections(*args
, **kwargs
)
2590 def GetSelections(*args
, **kwargs
):
2592 GetSelections() -> [selections]
2594 Returns a list of integers representing the items that are selected.
2596 return _windows_
.MultiChoiceDialog_GetSelections(*args
, **kwargs
)
2599 class MultiChoiceDialogPtr(MultiChoiceDialog
):
2600 def __init__(self
, this
):
2602 if not hasattr(self
,"thisown"): self
.thisown
= 0
2603 self
.__class
__ = MultiChoiceDialog
2604 _windows_
.MultiChoiceDialog_swigregister(MultiChoiceDialogPtr
)
2606 class SingleChoiceDialog(Dialog
):
2607 """A simple dialog with a single selection listbox."""
2609 return "<%s.%s; proxy of C++ wxSingleChoiceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2610 def __init__(self
, *args
, **kwargs
):
2612 __init__(Window parent, String message, String caption,
2613 List choices=[], long style=CHOICEDLG_STYLE,
2614 Point pos=DefaultPosition) -> SingleChoiceDialog
2616 Constructor. Use ShowModal method to show the dialog.
2618 newobj
= _windows_
.new_SingleChoiceDialog(*args
, **kwargs
)
2619 self
.this
= newobj
.this
2622 self
._setOORInfo
(self
)
2624 def GetSelection(*args
, **kwargs
):
2626 GetSelection(self) -> int
2628 Get the index of teh currently selected item.
2630 return _windows_
.SingleChoiceDialog_GetSelection(*args
, **kwargs
)
2632 def GetStringSelection(*args
, **kwargs
):
2634 GetStringSelection(self) -> String
2636 Returns the string value of the currently selected item
2638 return _windows_
.SingleChoiceDialog_GetStringSelection(*args
, **kwargs
)
2640 def SetSelection(*args
, **kwargs
):
2642 SetSelection(self, int sel)
2644 Set the current selected item to sel
2646 return _windows_
.SingleChoiceDialog_SetSelection(*args
, **kwargs
)
2649 class SingleChoiceDialogPtr(SingleChoiceDialog
):
2650 def __init__(self
, this
):
2652 if not hasattr(self
,"thisown"): self
.thisown
= 0
2653 self
.__class
__ = SingleChoiceDialog
2654 _windows_
.SingleChoiceDialog_swigregister(SingleChoiceDialogPtr
)
2656 TextEntryDialogStyle
= _windows_
.TextEntryDialogStyle
2657 class TextEntryDialog(Dialog
):
2658 """A dialog with text control, [ok] and [cancel] buttons"""
2660 return "<%s.%s; proxy of C++ wxTextEntryDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2661 def __init__(self
, *args
, **kwargs
):
2663 __init__(self, Window parent, String message, String caption=GetTextFromUserPromptStr,
2664 String defaultValue=EmptyString,
2665 long style=TextEntryDialogStyle, Point pos=DefaultPosition) -> TextEntryDialog
2667 Constructor. Use ShowModal method to show the dialog.
2669 newobj
= _windows_
.new_TextEntryDialog(*args
, **kwargs
)
2670 self
.this
= newobj
.this
2673 self
._setOORInfo
(self
)
2675 def GetValue(*args
, **kwargs
):
2677 GetValue(self) -> String
2679 Returns the text that the user has entered if the user has pressed OK,
2680 or the original value if the user has pressed Cancel.
2682 return _windows_
.TextEntryDialog_GetValue(*args
, **kwargs
)
2684 def SetValue(*args
, **kwargs
):
2686 SetValue(self, String value)
2688 Sets the default text value.
2690 return _windows_
.TextEntryDialog_SetValue(*args
, **kwargs
)
2693 class TextEntryDialogPtr(TextEntryDialog
):
2694 def __init__(self
, this
):
2696 if not hasattr(self
,"thisown"): self
.thisown
= 0
2697 self
.__class
__ = TextEntryDialog
2698 _windows_
.TextEntryDialog_swigregister(TextEntryDialogPtr
)
2700 class PasswordEntryDialog(TextEntryDialog
):
2702 return "<%s.%s; proxy of C++ wxPasswordEntryDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2703 def __init__(self
, *args
, **kwargs
):
2705 __init__(self, Window parent, String message, String caption=GetPasswordFromUserPromptStr,
2706 String value=EmptyString,
2707 long style=TextEntryDialogStyle, Point pos=DefaultPosition) -> PasswordEntryDialog
2709 newobj
= _windows_
.new_PasswordEntryDialog(*args
, **kwargs
)
2710 self
.this
= newobj
.this
2714 class PasswordEntryDialogPtr(PasswordEntryDialog
):
2715 def __init__(self
, this
):
2717 if not hasattr(self
,"thisown"): self
.thisown
= 0
2718 self
.__class
__ = PasswordEntryDialog
2719 _windows_
.PasswordEntryDialog_swigregister(PasswordEntryDialogPtr
)
2720 GetPasswordFromUserPromptStr
= cvar
.GetPasswordFromUserPromptStr
2722 class FontData(_core
.Object
):
2724 This class holds a variety of information related to font dialogs and
2725 is used to transfer settings to and results from a `wx.FontDialog`.
2728 return "<%s.%s; proxy of C++ wxFontData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2729 def __init__(self
, *args
, **kwargs
):
2731 __init__(self) -> FontData
2733 This class holds a variety of information related to font dialogs and
2734 is used to transfer settings to and results from a `wx.FontDialog`.
2736 newobj
= _windows_
.new_FontData(*args
, **kwargs
)
2737 self
.this
= newobj
.this
2740 def __del__(self
, destroy
=_windows_
.delete_FontData
):
2743 if self
.thisown
: destroy(self
)
2746 def EnableEffects(*args
, **kwargs
):
2748 EnableEffects(self, bool enable)
2750 Enables or disables 'effects' under MS Windows only. This refers to
2751 the controls for manipulating colour, strikeout and underline
2752 properties. The default value is true.
2754 return _windows_
.FontData_EnableEffects(*args
, **kwargs
)
2756 def GetAllowSymbols(*args
, **kwargs
):
2758 GetAllowSymbols(self) -> bool
2760 Under MS Windows, returns a flag determining whether symbol fonts can
2761 be selected. Has no effect on other platforms. The default value is
2764 return _windows_
.FontData_GetAllowSymbols(*args
, **kwargs
)
2766 def GetColour(*args
, **kwargs
):
2768 GetColour(self) -> Colour
2770 Gets the colour associated with the font dialog. The default value is
2773 return _windows_
.FontData_GetColour(*args
, **kwargs
)
2775 def GetChosenFont(*args
, **kwargs
):
2777 GetChosenFont(self) -> Font
2779 Gets the font chosen by the user.
2781 return _windows_
.FontData_GetChosenFont(*args
, **kwargs
)
2783 def GetEnableEffects(*args
, **kwargs
):
2785 GetEnableEffects(self) -> bool
2787 Determines whether 'effects' are enabled under Windows.
2789 return _windows_
.FontData_GetEnableEffects(*args
, **kwargs
)
2791 def GetInitialFont(*args
, **kwargs
):
2793 GetInitialFont(self) -> Font
2795 Gets the font that will be initially used by the font dialog. This
2796 should have previously been set by the application.
2798 return _windows_
.FontData_GetInitialFont(*args
, **kwargs
)
2800 def GetShowHelp(*args
, **kwargs
):
2802 GetShowHelp(self) -> bool
2804 Returns true if the Help button will be shown (Windows only). The
2805 default value is false.
2807 return _windows_
.FontData_GetShowHelp(*args
, **kwargs
)
2809 def SetAllowSymbols(*args
, **kwargs
):
2811 SetAllowSymbols(self, bool allowSymbols)
2813 Under MS Windows, determines whether symbol fonts can be selected. Has
2814 no effect on other platforms. The default value is true.
2816 return _windows_
.FontData_SetAllowSymbols(*args
, **kwargs
)
2818 def SetChosenFont(*args
, **kwargs
):
2820 SetChosenFont(self, Font font)
2822 Sets the font that will be returned to the user (normally for internal
2825 return _windows_
.FontData_SetChosenFont(*args
, **kwargs
)
2827 def SetColour(*args
, **kwargs
):
2829 SetColour(self, Colour colour)
2831 Sets the colour that will be used for the font foreground colour. The
2832 default colour is black.
2834 return _windows_
.FontData_SetColour(*args
, **kwargs
)
2836 def SetInitialFont(*args
, **kwargs
):
2838 SetInitialFont(self, Font font)
2840 Sets the font that will be initially used by the font dialog.
2842 return _windows_
.FontData_SetInitialFont(*args
, **kwargs
)
2844 def SetRange(*args
, **kwargs
):
2846 SetRange(self, int min, int max)
2848 Sets the valid range for the font point size (Windows only). The
2849 default is 0, 0 (unrestricted range).
2851 return _windows_
.FontData_SetRange(*args
, **kwargs
)
2853 def SetShowHelp(*args
, **kwargs
):
2855 SetShowHelp(self, bool showHelp)
2857 Determines whether the Help button will be displayed in the font
2858 dialog (Windows only). The default value is false.
2860 return _windows_
.FontData_SetShowHelp(*args
, **kwargs
)
2863 class FontDataPtr(FontData
):
2864 def __init__(self
, this
):
2866 if not hasattr(self
,"thisown"): self
.thisown
= 0
2867 self
.__class
__ = FontData
2868 _windows_
.FontData_swigregister(FontDataPtr
)
2870 class FontDialog(Dialog
):
2872 wx.FontDialog allows the user to select a system font and its attributes.
2878 return "<%s.%s; proxy of C++ wxFontDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2879 def __init__(self
, *args
, **kwargs
):
2881 __init__(self, Window parent, FontData data) -> FontDialog
2883 Constructor. Pass a parent window and the `wx.FontData` object to be
2884 used to initialize the dialog controls. Call `ShowModal` to display
2885 the dialog. If ShowModal returns ``wx.ID_OK`` then you can fetch the
2886 results with via the `wx.FontData` returned by `GetFontData`.
2888 newobj
= _windows_
.new_FontDialog(*args
, **kwargs
)
2889 self
.this
= newobj
.this
2892 self
._setOORInfo
(self
)
2894 def GetFontData(*args
, **kwargs
):
2896 GetFontData(self) -> FontData
2898 Returns a reference to the internal `wx.FontData` used by the
2901 return _windows_
.FontDialog_GetFontData(*args
, **kwargs
)
2904 class FontDialogPtr(FontDialog
):
2905 def __init__(self
, this
):
2907 if not hasattr(self
,"thisown"): self
.thisown
= 0
2908 self
.__class
__ = FontDialog
2909 _windows_
.FontDialog_swigregister(FontDialogPtr
)
2911 class MessageDialog(Dialog
):
2913 This class provides a simple dialog that shows a single or multi-line
2914 message, with a choice of OK, Yes, No and/or Cancel buttons.
2917 return "<%s.%s; proxy of C++ wxMessageDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2918 def __init__(self
, *args
, **kwargs
):
2920 __init__(self, Window parent, String message, String caption=MessageBoxCaptionStr,
2921 long style=wxOK|wxCANCEL|wxCENTRE,
2922 Point pos=DefaultPosition) -> MessageDialog
2924 Constructor, use `ShowModal` to display the dialog.
2926 newobj
= _windows_
.new_MessageDialog(*args
, **kwargs
)
2927 self
.this
= newobj
.this
2930 self
._setOORInfo
(self
)
2933 class MessageDialogPtr(MessageDialog
):
2934 def __init__(self
, this
):
2936 if not hasattr(self
,"thisown"): self
.thisown
= 0
2937 self
.__class
__ = MessageDialog
2938 _windows_
.MessageDialog_swigregister(MessageDialogPtr
)
2940 class ProgressDialog(Frame
):
2942 A dialog that shows a short message and a progress bar. Optionally, it
2943 can display an ABORT button.
2946 return "<%s.%s; proxy of C++ wxProgressDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2947 def __init__(self
, *args
, **kwargs
):
2949 __init__(self, String title, String message, int maximum=100, Window parent=None,
2950 int style=wxPD_AUTO_HIDE|wxPD_APP_MODAL) -> ProgressDialog
2952 Constructor. Creates the dialog, displays it and disables user input
2953 for other windows, or, if wx.PD_APP_MODAL flag is not given, for its
2956 newobj
= _windows_
.new_ProgressDialog(*args
, **kwargs
)
2957 self
.this
= newobj
.this
2960 self
._setOORInfo
(self
)
2962 def Update(*args
, **kwargs
):
2964 Update(self, int value, String newmsg=EmptyString) -> bool
2966 Updates the dialog, setting the progress bar to the new value and, if
2967 given changes the message above it. The value given should be less
2968 than or equal to the maximum value given to the constructor and the
2969 dialog is closed if it is equal to the maximum. Returns true unless
2970 the Cancel button has been pressed.
2972 If false is returned, the application can either immediately destroy
2973 the dialog or ask the user for the confirmation and if the abort is
2974 not confirmed the dialog may be resumed with Resume function.
2976 return _windows_
.ProgressDialog_Update(*args
, **kwargs
)
2978 def Resume(*args
, **kwargs
):
2982 Can be used to continue with the dialog, after the user had chosen to
2985 return _windows_
.ProgressDialog_Resume(*args
, **kwargs
)
2988 class ProgressDialogPtr(ProgressDialog
):
2989 def __init__(self
, this
):
2991 if not hasattr(self
,"thisown"): self
.thisown
= 0
2992 self
.__class
__ = ProgressDialog
2993 _windows_
.ProgressDialog_swigregister(ProgressDialogPtr
)
2995 FR_DOWN
= _windows_
.FR_DOWN
2996 FR_WHOLEWORD
= _windows_
.FR_WHOLEWORD
2997 FR_MATCHCASE
= _windows_
.FR_MATCHCASE
2998 FR_REPLACEDIALOG
= _windows_
.FR_REPLACEDIALOG
2999 FR_NOUPDOWN
= _windows_
.FR_NOUPDOWN
3000 FR_NOMATCHCASE
= _windows_
.FR_NOMATCHCASE
3001 FR_NOWHOLEWORD
= _windows_
.FR_NOWHOLEWORD
3002 wxEVT_COMMAND_FIND
= _windows_
.wxEVT_COMMAND_FIND
3003 wxEVT_COMMAND_FIND_NEXT
= _windows_
.wxEVT_COMMAND_FIND_NEXT
3004 wxEVT_COMMAND_FIND_REPLACE
= _windows_
.wxEVT_COMMAND_FIND_REPLACE
3005 wxEVT_COMMAND_FIND_REPLACE_ALL
= _windows_
.wxEVT_COMMAND_FIND_REPLACE_ALL
3006 wxEVT_COMMAND_FIND_CLOSE
= _windows_
.wxEVT_COMMAND_FIND_CLOSE
3007 EVT_FIND
= wx
.PyEventBinder( wxEVT_COMMAND_FIND
, 1 )
3008 EVT_FIND_NEXT
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_NEXT
, 1 )
3009 EVT_FIND_REPLACE
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE
, 1 )
3010 EVT_FIND_REPLACE_ALL
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE_ALL
, 1 )
3011 EVT_FIND_CLOSE
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_CLOSE
, 1 )
3013 # For backwards compatibility. Should they be removed?
3014 EVT_COMMAND_FIND
= EVT_FIND
3015 EVT_COMMAND_FIND_NEXT
= EVT_FIND_NEXT
3016 EVT_COMMAND_FIND_REPLACE
= EVT_FIND_REPLACE
3017 EVT_COMMAND_FIND_REPLACE_ALL
= EVT_FIND_REPLACE_ALL
3018 EVT_COMMAND_FIND_CLOSE
= EVT_FIND_CLOSE
3020 class FindDialogEvent(_core
.CommandEvent
):
3021 """Events for the FindReplaceDialog"""
3023 return "<%s.%s; proxy of C++ wxFindDialogEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3024 def __init__(self
, *args
, **kwargs
):
3026 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0) -> FindDialogEvent
3028 Events for the FindReplaceDialog
3030 newobj
= _windows_
.new_FindDialogEvent(*args
, **kwargs
)
3031 self
.this
= newobj
.this
3034 def GetFlags(*args
, **kwargs
):
3036 GetFlags(self) -> int
3038 Get the currently selected flags: this is the combination of
3039 wx.FR_DOWN, wx.FR_WHOLEWORD and wx.FR_MATCHCASE flags.
3041 return _windows_
.FindDialogEvent_GetFlags(*args
, **kwargs
)
3043 def GetFindString(*args
, **kwargs
):
3045 GetFindString(self) -> String
3047 Return the string to find (never empty).
3049 return _windows_
.FindDialogEvent_GetFindString(*args
, **kwargs
)
3051 def GetReplaceString(*args
, **kwargs
):
3053 GetReplaceString(self) -> String
3055 Return the string to replace the search string with (only for replace
3056 and replace all events).
3058 return _windows_
.FindDialogEvent_GetReplaceString(*args
, **kwargs
)
3060 def GetDialog(*args
, **kwargs
):
3062 GetDialog(self) -> FindReplaceDialog
3064 Return the pointer to the dialog which generated this event.
3066 return _windows_
.FindDialogEvent_GetDialog(*args
, **kwargs
)
3068 def SetFlags(*args
, **kwargs
):
3069 """SetFlags(self, int flags)"""
3070 return _windows_
.FindDialogEvent_SetFlags(*args
, **kwargs
)
3072 def SetFindString(*args
, **kwargs
):
3073 """SetFindString(self, String str)"""
3074 return _windows_
.FindDialogEvent_SetFindString(*args
, **kwargs
)
3076 def SetReplaceString(*args
, **kwargs
):
3077 """SetReplaceString(self, String str)"""
3078 return _windows_
.FindDialogEvent_SetReplaceString(*args
, **kwargs
)
3081 class FindDialogEventPtr(FindDialogEvent
):
3082 def __init__(self
, this
):
3084 if not hasattr(self
,"thisown"): self
.thisown
= 0
3085 self
.__class
__ = FindDialogEvent
3086 _windows_
.FindDialogEvent_swigregister(FindDialogEventPtr
)
3088 class FindReplaceData(_core
.Object
):
3090 wx.FindReplaceData holds the data for wx.FindReplaceDialog. It is used
3091 to initialize the dialog with the default values and will keep the
3092 last values from the dialog when it is closed. It is also updated each
3093 time a `wx.FindDialogEvent` is generated so instead of using the
3094 `wx.FindDialogEvent` methods you can also directly query this object.
3096 Note that all SetXXX() methods may only be called before showing the
3097 dialog and calling them has no effect later.
3100 return "<%s.%s; proxy of C++ wxFindReplaceData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3101 def __init__(self
, *args
, **kwargs
):
3103 __init__(self, int flags=0) -> FindReplaceData
3105 Constuctor initializes the flags to default value (0).
3107 newobj
= _windows_
.new_FindReplaceData(*args
, **kwargs
)
3108 self
.this
= newobj
.this
3111 def __del__(self
, destroy
=_windows_
.delete_FindReplaceData
):
3114 if self
.thisown
: destroy(self
)
3117 def GetFindString(*args
, **kwargs
):
3119 GetFindString(self) -> String
3121 Get the string to find.
3123 return _windows_
.FindReplaceData_GetFindString(*args
, **kwargs
)
3125 def GetReplaceString(*args
, **kwargs
):
3127 GetReplaceString(self) -> String
3129 Get the replacement string.
3131 return _windows_
.FindReplaceData_GetReplaceString(*args
, **kwargs
)
3133 def GetFlags(*args
, **kwargs
):
3135 GetFlags(self) -> int
3137 Get the combination of flag values.
3139 return _windows_
.FindReplaceData_GetFlags(*args
, **kwargs
)
3141 def SetFlags(*args
, **kwargs
):
3143 SetFlags(self, int flags)
3145 Set the flags to use to initialize the controls of the dialog.
3147 return _windows_
.FindReplaceData_SetFlags(*args
, **kwargs
)
3149 def SetFindString(*args
, **kwargs
):
3151 SetFindString(self, String str)
3153 Set the string to find (used as initial value by the dialog).
3155 return _windows_
.FindReplaceData_SetFindString(*args
, **kwargs
)
3157 def SetReplaceString(*args
, **kwargs
):
3159 SetReplaceString(self, String str)
3161 Set the replacement string (used as initial value by the dialog).
3163 return _windows_
.FindReplaceData_SetReplaceString(*args
, **kwargs
)
3166 class FindReplaceDataPtr(FindReplaceData
):
3167 def __init__(self
, this
):
3169 if not hasattr(self
,"thisown"): self
.thisown
= 0
3170 self
.__class
__ = FindReplaceData
3171 _windows_
.FindReplaceData_swigregister(FindReplaceDataPtr
)
3173 class FindReplaceDialog(Dialog
):
3175 wx.FindReplaceDialog is a standard modeless dialog which is used to
3176 allow the user to search for some text (and possibly replace it with
3177 something else). The actual searching is supposed to be done in the
3178 owner window which is the parent of this dialog. Note that it means
3179 that unlike for the other standard dialogs this one must have a parent
3180 window. Also note that there is no way to use this dialog in a modal
3181 way; it is always, by design and implementation, modeless.
3184 return "<%s.%s; proxy of C++ wxFindReplaceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3185 def __init__(self
, *args
, **kwargs
):
3187 __init__(self, Window parent, FindReplaceData data, String title,
3188 int style=0) -> FindReplaceDialog
3190 Create a FindReplaceDialog. The parent and data parameters must be
3191 non-None. Use Show to display the dialog.
3193 newobj
= _windows_
.new_FindReplaceDialog(*args
, **kwargs
)
3194 self
.this
= newobj
.this
3197 self
._setOORInfo
(self
)
3199 def Create(*args
, **kwargs
):
3201 Create(self, Window parent, FindReplaceData data, String title,
3202 int style=0) -> bool
3204 Create the dialog, for 2-phase create.
3206 return _windows_
.FindReplaceDialog_Create(*args
, **kwargs
)
3208 def GetData(*args
, **kwargs
):
3210 GetData(self) -> FindReplaceData
3212 Get the FindReplaceData object used by this dialog.
3214 return _windows_
.FindReplaceDialog_GetData(*args
, **kwargs
)
3216 def SetData(*args
, **kwargs
):
3218 SetData(self, FindReplaceData data)
3220 Set the FindReplaceData object used by this dialog.
3222 return _windows_
.FindReplaceDialog_SetData(*args
, **kwargs
)
3225 class FindReplaceDialogPtr(FindReplaceDialog
):
3226 def __init__(self
, this
):
3228 if not hasattr(self
,"thisown"): self
.thisown
= 0
3229 self
.__class
__ = FindReplaceDialog
3230 _windows_
.FindReplaceDialog_swigregister(FindReplaceDialogPtr
)
3232 def PreFindReplaceDialog(*args
, **kwargs
):
3234 PreFindReplaceDialog() -> FindReplaceDialog
3236 Precreate a FindReplaceDialog for 2-phase creation
3238 val
= _windows_
.new_PreFindReplaceDialog(*args
, **kwargs
)
3242 #---------------------------------------------------------------------------
3244 IDM_WINDOWTILE
= _windows_
.IDM_WINDOWTILE
3245 IDM_WINDOWTILEHOR
= _windows_
.IDM_WINDOWTILEHOR
3246 IDM_WINDOWCASCADE
= _windows_
.IDM_WINDOWCASCADE
3247 IDM_WINDOWICONS
= _windows_
.IDM_WINDOWICONS
3248 IDM_WINDOWNEXT
= _windows_
.IDM_WINDOWNEXT
3249 IDM_WINDOWTILEVERT
= _windows_
.IDM_WINDOWTILEVERT
3250 FIRST_MDI_CHILD
= _windows_
.FIRST_MDI_CHILD
3251 LAST_MDI_CHILD
= _windows_
.LAST_MDI_CHILD
3252 class MDIParentFrame(Frame
):
3254 return "<%s.%s; proxy of C++ wxMDIParentFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3255 def __init__(self
, *args
, **kwargs
):
3257 __init__(self, Window parent, int id=-1, String title=EmptyString,
3258 Point pos=DefaultPosition, Size size=DefaultSize,
3259 long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
3260 String name=FrameNameStr) -> MDIParentFrame
3262 newobj
= _windows_
.new_MDIParentFrame(*args
, **kwargs
)
3263 self
.this
= newobj
.this
3266 self
._setOORInfo
(self
)
3268 def Create(*args
, **kwargs
):
3270 Create(self, Window parent, int id=-1, String title=EmptyString,
3271 Point pos=DefaultPosition, Size size=DefaultSize,
3272 long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
3273 String name=FrameNameStr) -> bool
3275 return _windows_
.MDIParentFrame_Create(*args
, **kwargs
)
3277 def ActivateNext(*args
, **kwargs
):
3278 """ActivateNext(self)"""
3279 return _windows_
.MDIParentFrame_ActivateNext(*args
, **kwargs
)
3281 def ActivatePrevious(*args
, **kwargs
):
3282 """ActivatePrevious(self)"""
3283 return _windows_
.MDIParentFrame_ActivatePrevious(*args
, **kwargs
)
3285 def ArrangeIcons(*args
, **kwargs
):
3286 """ArrangeIcons(self)"""
3287 return _windows_
.MDIParentFrame_ArrangeIcons(*args
, **kwargs
)
3289 def Cascade(*args
, **kwargs
):
3291 return _windows_
.MDIParentFrame_Cascade(*args
, **kwargs
)
3293 def GetActiveChild(*args
, **kwargs
):
3294 """GetActiveChild(self) -> MDIChildFrame"""
3295 return _windows_
.MDIParentFrame_GetActiveChild(*args
, **kwargs
)
3297 def GetClientWindow(*args
, **kwargs
):
3298 """GetClientWindow(self) -> MDIClientWindow"""
3299 return _windows_
.MDIParentFrame_GetClientWindow(*args
, **kwargs
)
3301 def GetToolBar(*args
, **kwargs
):
3302 """GetToolBar(self) -> Window"""
3303 return _windows_
.MDIParentFrame_GetToolBar(*args
, **kwargs
)
3305 def GetWindowMenu(*args
, **kwargs
):
3306 """GetWindowMenu(self) -> Menu"""
3307 return _windows_
.MDIParentFrame_GetWindowMenu(*args
, **kwargs
)
3309 def SetWindowMenu(*args
, **kwargs
):
3310 """SetWindowMenu(self, Menu menu)"""
3311 return _windows_
.MDIParentFrame_SetWindowMenu(*args
, **kwargs
)
3313 def SetToolBar(*args
, **kwargs
):
3314 """SetToolBar(self, wxToolBar toolbar)"""
3315 return _windows_
.MDIParentFrame_SetToolBar(*args
, **kwargs
)
3317 def Tile(*args
, **kwargs
):
3319 return _windows_
.MDIParentFrame_Tile(*args
, **kwargs
)
3322 class MDIParentFramePtr(MDIParentFrame
):
3323 def __init__(self
, this
):
3325 if not hasattr(self
,"thisown"): self
.thisown
= 0
3326 self
.__class
__ = MDIParentFrame
3327 _windows_
.MDIParentFrame_swigregister(MDIParentFramePtr
)
3329 def PreMDIParentFrame(*args
, **kwargs
):
3330 """PreMDIParentFrame() -> MDIParentFrame"""
3331 val
= _windows_
.new_PreMDIParentFrame(*args
, **kwargs
)
3335 class MDIChildFrame(Frame
):
3337 return "<%s.%s; proxy of C++ wxMDIChildFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3338 def __init__(self
, *args
, **kwargs
):
3340 __init__(self, MDIParentFrame parent, int id=-1, String title=EmptyString,
3341 Point pos=DefaultPosition, Size size=DefaultSize,
3342 long style=DEFAULT_FRAME_STYLE,
3343 String name=FrameNameStr) -> MDIChildFrame
3345 newobj
= _windows_
.new_MDIChildFrame(*args
, **kwargs
)
3346 self
.this
= newobj
.this
3349 self
._setOORInfo
(self
)
3351 def Create(*args
, **kwargs
):
3353 Create(self, MDIParentFrame parent, int id=-1, String title=EmptyString,
3354 Point pos=DefaultPosition, Size size=DefaultSize,
3355 long style=DEFAULT_FRAME_STYLE,
3356 String name=FrameNameStr) -> bool
3358 return _windows_
.MDIChildFrame_Create(*args
, **kwargs
)
3360 def Activate(*args
, **kwargs
):
3361 """Activate(self)"""
3362 return _windows_
.MDIChildFrame_Activate(*args
, **kwargs
)
3364 def Maximize(*args
, **kwargs
):
3365 """Maximize(self, bool maximize=True)"""
3366 return _windows_
.MDIChildFrame_Maximize(*args
, **kwargs
)
3368 def Restore(*args
, **kwargs
):
3370 return _windows_
.MDIChildFrame_Restore(*args
, **kwargs
)
3373 class MDIChildFramePtr(MDIChildFrame
):
3374 def __init__(self
, this
):
3376 if not hasattr(self
,"thisown"): self
.thisown
= 0
3377 self
.__class
__ = MDIChildFrame
3378 _windows_
.MDIChildFrame_swigregister(MDIChildFramePtr
)
3380 def PreMDIChildFrame(*args
, **kwargs
):
3381 """PreMDIChildFrame() -> MDIChildFrame"""
3382 val
= _windows_
.new_PreMDIChildFrame(*args
, **kwargs
)
3386 class MDIClientWindow(_core
.Window
):
3388 return "<%s.%s; proxy of C++ wxMDIClientWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3389 def __init__(self
, *args
, **kwargs
):
3390 """__init__(self, MDIParentFrame parent, long style=0) -> MDIClientWindow"""
3391 newobj
= _windows_
.new_MDIClientWindow(*args
, **kwargs
)
3392 self
.this
= newobj
.this
3395 self
._setOORInfo
(self
)
3397 def Create(*args
, **kwargs
):
3398 """Create(self, MDIParentFrame parent, long style=0) -> bool"""
3399 return _windows_
.MDIClientWindow_Create(*args
, **kwargs
)
3402 class MDIClientWindowPtr(MDIClientWindow
):
3403 def __init__(self
, this
):
3405 if not hasattr(self
,"thisown"): self
.thisown
= 0
3406 self
.__class
__ = MDIClientWindow
3407 _windows_
.MDIClientWindow_swigregister(MDIClientWindowPtr
)
3409 def PreMDIClientWindow(*args
, **kwargs
):
3410 """PreMDIClientWindow() -> MDIClientWindow"""
3411 val
= _windows_
.new_PreMDIClientWindow(*args
, **kwargs
)
3415 #---------------------------------------------------------------------------
3417 class PyWindow(_core
.Window
):
3419 return "<%s.%s; proxy of C++ wxPyWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3420 def __init__(self
, *args
, **kwargs
):
3422 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3423 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyWindow
3425 newobj
= _windows_
.new_PyWindow(*args
, **kwargs
)
3426 self
.this
= newobj
.this
3429 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyWindow
)
3431 def _setCallbackInfo(*args
, **kwargs
):
3432 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3433 return _windows_
.PyWindow__setCallbackInfo(*args
, **kwargs
)
3435 def SetBestSize(*args
, **kwargs
):
3436 """SetBestSize(self, Size size)"""
3437 return _windows_
.PyWindow_SetBestSize(*args
, **kwargs
)
3439 def base_DoMoveWindow(*args
, **kwargs
):
3440 """base_DoMoveWindow(self, int x, int y, int width, int height)"""
3441 return _windows_
.PyWindow_base_DoMoveWindow(*args
, **kwargs
)
3443 def base_DoSetSize(*args
, **kwargs
):
3444 """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3445 return _windows_
.PyWindow_base_DoSetSize(*args
, **kwargs
)
3447 def base_DoSetClientSize(*args
, **kwargs
):
3448 """base_DoSetClientSize(self, int width, int height)"""
3449 return _windows_
.PyWindow_base_DoSetClientSize(*args
, **kwargs
)
3451 def base_DoSetVirtualSize(*args
, **kwargs
):
3452 """base_DoSetVirtualSize(self, int x, int y)"""
3453 return _windows_
.PyWindow_base_DoSetVirtualSize(*args
, **kwargs
)
3455 def base_DoGetSize(*args
, **kwargs
):
3456 """base_DoGetSize() -> (width, height)"""
3457 return _windows_
.PyWindow_base_DoGetSize(*args
, **kwargs
)
3459 def base_DoGetClientSize(*args
, **kwargs
):
3460 """base_DoGetClientSize() -> (width, height)"""
3461 return _windows_
.PyWindow_base_DoGetClientSize(*args
, **kwargs
)
3463 def base_DoGetPosition(*args
, **kwargs
):
3464 """base_DoGetPosition() -> (x,y)"""
3465 return _windows_
.PyWindow_base_DoGetPosition(*args
, **kwargs
)
3467 def base_DoGetVirtualSize(*args
, **kwargs
):
3468 """base_DoGetVirtualSize(self) -> Size"""
3469 return _windows_
.PyWindow_base_DoGetVirtualSize(*args
, **kwargs
)
3471 def base_DoGetBestSize(*args
, **kwargs
):
3472 """base_DoGetBestSize(self) -> Size"""
3473 return _windows_
.PyWindow_base_DoGetBestSize(*args
, **kwargs
)
3475 def base_InitDialog(*args
, **kwargs
):
3476 """base_InitDialog(self)"""
3477 return _windows_
.PyWindow_base_InitDialog(*args
, **kwargs
)
3479 def base_TransferDataToWindow(*args
, **kwargs
):
3480 """base_TransferDataToWindow(self) -> bool"""
3481 return _windows_
.PyWindow_base_TransferDataToWindow(*args
, **kwargs
)
3483 def base_TransferDataFromWindow(*args
, **kwargs
):
3484 """base_TransferDataFromWindow(self) -> bool"""
3485 return _windows_
.PyWindow_base_TransferDataFromWindow(*args
, **kwargs
)
3487 def base_Validate(*args
, **kwargs
):
3488 """base_Validate(self) -> bool"""
3489 return _windows_
.PyWindow_base_Validate(*args
, **kwargs
)
3491 def base_AcceptsFocus(*args
, **kwargs
):
3492 """base_AcceptsFocus(self) -> bool"""
3493 return _windows_
.PyWindow_base_AcceptsFocus(*args
, **kwargs
)
3495 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
3496 """base_AcceptsFocusFromKeyboard(self) -> bool"""
3497 return _windows_
.PyWindow_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3499 def base_GetMaxSize(*args
, **kwargs
):
3500 """base_GetMaxSize(self) -> Size"""
3501 return _windows_
.PyWindow_base_GetMaxSize(*args
, **kwargs
)
3503 def base_AddChild(*args
, **kwargs
):
3504 """base_AddChild(self, Window child)"""
3505 return _windows_
.PyWindow_base_AddChild(*args
, **kwargs
)
3507 def base_RemoveChild(*args
, **kwargs
):
3508 """base_RemoveChild(self, Window child)"""
3509 return _windows_
.PyWindow_base_RemoveChild(*args
, **kwargs
)
3511 def base_ShouldInheritColours(*args
, **kwargs
):
3512 """base_ShouldInheritColours(self) -> bool"""
3513 return _windows_
.PyWindow_base_ShouldInheritColours(*args
, **kwargs
)
3515 def base_ApplyParentThemeBackground(*args
, **kwargs
):
3516 """base_ApplyParentThemeBackground(self, Colour c)"""
3517 return _windows_
.PyWindow_base_ApplyParentThemeBackground(*args
, **kwargs
)
3519 def base_GetDefaultAttributes(*args
, **kwargs
):
3520 """base_GetDefaultAttributes(self) -> VisualAttributes"""
3521 return _windows_
.PyWindow_base_GetDefaultAttributes(*args
, **kwargs
)
3524 class PyWindowPtr(PyWindow
):
3525 def __init__(self
, this
):
3527 if not hasattr(self
,"thisown"): self
.thisown
= 0
3528 self
.__class
__ = PyWindow
3529 _windows_
.PyWindow_swigregister(PyWindowPtr
)
3531 def PrePyWindow(*args
, **kwargs
):
3532 """PrePyWindow() -> PyWindow"""
3533 val
= _windows_
.new_PrePyWindow(*args
, **kwargs
)
3537 class PyPanel(Panel
):
3539 return "<%s.%s; proxy of C++ wxPyPanel instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3540 def __init__(self
, *args
, **kwargs
):
3542 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3543 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyPanel
3545 newobj
= _windows_
.new_PyPanel(*args
, **kwargs
)
3546 self
.this
= newobj
.this
3549 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyPanel
)
3551 def _setCallbackInfo(*args
, **kwargs
):
3552 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3553 return _windows_
.PyPanel__setCallbackInfo(*args
, **kwargs
)
3555 def SetBestSize(*args
, **kwargs
):
3556 """SetBestSize(self, Size size)"""
3557 return _windows_
.PyPanel_SetBestSize(*args
, **kwargs
)
3559 def base_DoMoveWindow(*args
, **kwargs
):
3560 """base_DoMoveWindow(self, int x, int y, int width, int height)"""
3561 return _windows_
.PyPanel_base_DoMoveWindow(*args
, **kwargs
)
3563 def base_DoSetSize(*args
, **kwargs
):
3564 """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3565 return _windows_
.PyPanel_base_DoSetSize(*args
, **kwargs
)
3567 def base_DoSetClientSize(*args
, **kwargs
):
3568 """base_DoSetClientSize(self, int width, int height)"""
3569 return _windows_
.PyPanel_base_DoSetClientSize(*args
, **kwargs
)
3571 def base_DoSetVirtualSize(*args
, **kwargs
):
3572 """base_DoSetVirtualSize(self, int x, int y)"""
3573 return _windows_
.PyPanel_base_DoSetVirtualSize(*args
, **kwargs
)
3575 def base_DoGetSize(*args
, **kwargs
):
3576 """base_DoGetSize() -> (width, height)"""
3577 return _windows_
.PyPanel_base_DoGetSize(*args
, **kwargs
)
3579 def base_DoGetClientSize(*args
, **kwargs
):
3580 """base_DoGetClientSize() -> (width, height)"""
3581 return _windows_
.PyPanel_base_DoGetClientSize(*args
, **kwargs
)
3583 def base_DoGetPosition(*args
, **kwargs
):
3584 """base_DoGetPosition() -> (x,y)"""
3585 return _windows_
.PyPanel_base_DoGetPosition(*args
, **kwargs
)
3587 def base_DoGetVirtualSize(*args
, **kwargs
):
3588 """base_DoGetVirtualSize(self) -> Size"""
3589 return _windows_
.PyPanel_base_DoGetVirtualSize(*args
, **kwargs
)
3591 def base_DoGetBestSize(*args
, **kwargs
):
3592 """base_DoGetBestSize(self) -> Size"""
3593 return _windows_
.PyPanel_base_DoGetBestSize(*args
, **kwargs
)
3595 def base_InitDialog(*args
, **kwargs
):
3596 """base_InitDialog(self)"""
3597 return _windows_
.PyPanel_base_InitDialog(*args
, **kwargs
)
3599 def base_TransferDataToWindow(*args
, **kwargs
):
3600 """base_TransferDataToWindow(self) -> bool"""
3601 return _windows_
.PyPanel_base_TransferDataToWindow(*args
, **kwargs
)
3603 def base_TransferDataFromWindow(*args
, **kwargs
):
3604 """base_TransferDataFromWindow(self) -> bool"""
3605 return _windows_
.PyPanel_base_TransferDataFromWindow(*args
, **kwargs
)
3607 def base_Validate(*args
, **kwargs
):
3608 """base_Validate(self) -> bool"""
3609 return _windows_
.PyPanel_base_Validate(*args
, **kwargs
)
3611 def base_AcceptsFocus(*args
, **kwargs
):
3612 """base_AcceptsFocus(self) -> bool"""
3613 return _windows_
.PyPanel_base_AcceptsFocus(*args
, **kwargs
)
3615 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
3616 """base_AcceptsFocusFromKeyboard(self) -> bool"""
3617 return _windows_
.PyPanel_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3619 def base_GetMaxSize(*args
, **kwargs
):
3620 """base_GetMaxSize(self) -> Size"""
3621 return _windows_
.PyPanel_base_GetMaxSize(*args
, **kwargs
)
3623 def base_AddChild(*args
, **kwargs
):
3624 """base_AddChild(self, Window child)"""
3625 return _windows_
.PyPanel_base_AddChild(*args
, **kwargs
)
3627 def base_RemoveChild(*args
, **kwargs
):
3628 """base_RemoveChild(self, Window child)"""
3629 return _windows_
.PyPanel_base_RemoveChild(*args
, **kwargs
)
3631 def base_ShouldInheritColours(*args
, **kwargs
):
3632 """base_ShouldInheritColours(self) -> bool"""
3633 return _windows_
.PyPanel_base_ShouldInheritColours(*args
, **kwargs
)
3635 def base_ApplyParentThemeBackground(*args
, **kwargs
):
3636 """base_ApplyParentThemeBackground(self, Colour c)"""
3637 return _windows_
.PyPanel_base_ApplyParentThemeBackground(*args
, **kwargs
)
3639 def base_GetDefaultAttributes(*args
, **kwargs
):
3640 """base_GetDefaultAttributes(self) -> VisualAttributes"""
3641 return _windows_
.PyPanel_base_GetDefaultAttributes(*args
, **kwargs
)
3644 class PyPanelPtr(PyPanel
):
3645 def __init__(self
, this
):
3647 if not hasattr(self
,"thisown"): self
.thisown
= 0
3648 self
.__class
__ = PyPanel
3649 _windows_
.PyPanel_swigregister(PyPanelPtr
)
3651 def PrePyPanel(*args
, **kwargs
):
3652 """PrePyPanel() -> PyPanel"""
3653 val
= _windows_
.new_PrePyPanel(*args
, **kwargs
)
3657 class PyScrolledWindow(ScrolledWindow
):
3659 return "<%s.%s; proxy of C++ wxPyScrolledWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3660 def __init__(self
, *args
, **kwargs
):
3662 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3663 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyScrolledWindow
3665 newobj
= _windows_
.new_PyScrolledWindow(*args
, **kwargs
)
3666 self
.this
= newobj
.this
3669 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyPanel
)
3671 def _setCallbackInfo(*args
, **kwargs
):
3672 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3673 return _windows_
.PyScrolledWindow__setCallbackInfo(*args
, **kwargs
)
3675 def SetBestSize(*args
, **kwargs
):
3676 """SetBestSize(self, Size size)"""
3677 return _windows_
.PyScrolledWindow_SetBestSize(*args
, **kwargs
)
3679 def base_DoMoveWindow(*args
, **kwargs
):
3680 """base_DoMoveWindow(self, int x, int y, int width, int height)"""
3681 return _windows_
.PyScrolledWindow_base_DoMoveWindow(*args
, **kwargs
)
3683 def base_DoSetSize(*args
, **kwargs
):
3684 """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3685 return _windows_
.PyScrolledWindow_base_DoSetSize(*args
, **kwargs
)
3687 def base_DoSetClientSize(*args
, **kwargs
):
3688 """base_DoSetClientSize(self, int width, int height)"""
3689 return _windows_
.PyScrolledWindow_base_DoSetClientSize(*args
, **kwargs
)
3691 def base_DoSetVirtualSize(*args
, **kwargs
):
3692 """base_DoSetVirtualSize(self, int x, int y)"""
3693 return _windows_
.PyScrolledWindow_base_DoSetVirtualSize(*args
, **kwargs
)
3695 def base_DoGetSize(*args
, **kwargs
):
3696 """base_DoGetSize() -> (width, height)"""
3697 return _windows_
.PyScrolledWindow_base_DoGetSize(*args
, **kwargs
)
3699 def base_DoGetClientSize(*args
, **kwargs
):
3700 """base_DoGetClientSize() -> (width, height)"""
3701 return _windows_
.PyScrolledWindow_base_DoGetClientSize(*args
, **kwargs
)
3703 def base_DoGetPosition(*args
, **kwargs
):
3704 """base_DoGetPosition() -> (x,y)"""
3705 return _windows_
.PyScrolledWindow_base_DoGetPosition(*args
, **kwargs
)
3707 def base_DoGetVirtualSize(*args
, **kwargs
):
3708 """base_DoGetVirtualSize(self) -> Size"""
3709 return _windows_
.PyScrolledWindow_base_DoGetVirtualSize(*args
, **kwargs
)
3711 def base_DoGetBestSize(*args
, **kwargs
):
3712 """base_DoGetBestSize(self) -> Size"""
3713 return _windows_
.PyScrolledWindow_base_DoGetBestSize(*args
, **kwargs
)
3715 def base_InitDialog(*args
, **kwargs
):
3716 """base_InitDialog(self)"""
3717 return _windows_
.PyScrolledWindow_base_InitDialog(*args
, **kwargs
)
3719 def base_TransferDataToWindow(*args
, **kwargs
):
3720 """base_TransferDataToWindow(self) -> bool"""
3721 return _windows_
.PyScrolledWindow_base_TransferDataToWindow(*args
, **kwargs
)
3723 def base_TransferDataFromWindow(*args
, **kwargs
):
3724 """base_TransferDataFromWindow(self) -> bool"""
3725 return _windows_
.PyScrolledWindow_base_TransferDataFromWindow(*args
, **kwargs
)
3727 def base_Validate(*args
, **kwargs
):
3728 """base_Validate(self) -> bool"""
3729 return _windows_
.PyScrolledWindow_base_Validate(*args
, **kwargs
)
3731 def base_AcceptsFocus(*args
, **kwargs
):
3732 """base_AcceptsFocus(self) -> bool"""
3733 return _windows_
.PyScrolledWindow_base_AcceptsFocus(*args
, **kwargs
)
3735 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
3736 """base_AcceptsFocusFromKeyboard(self) -> bool"""
3737 return _windows_
.PyScrolledWindow_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3739 def base_GetMaxSize(*args
, **kwargs
):
3740 """base_GetMaxSize(self) -> Size"""
3741 return _windows_
.PyScrolledWindow_base_GetMaxSize(*args
, **kwargs
)
3743 def base_AddChild(*args
, **kwargs
):
3744 """base_AddChild(self, Window child)"""
3745 return _windows_
.PyScrolledWindow_base_AddChild(*args
, **kwargs
)
3747 def base_RemoveChild(*args
, **kwargs
):
3748 """base_RemoveChild(self, Window child)"""
3749 return _windows_
.PyScrolledWindow_base_RemoveChild(*args
, **kwargs
)
3751 def base_ShouldInheritColours(*args
, **kwargs
):
3752 """base_ShouldInheritColours(self) -> bool"""
3753 return _windows_
.PyScrolledWindow_base_ShouldInheritColours(*args
, **kwargs
)
3755 def base_ApplyParentThemeBackground(*args
, **kwargs
):
3756 """base_ApplyParentThemeBackground(self, Colour c)"""
3757 return _windows_
.PyScrolledWindow_base_ApplyParentThemeBackground(*args
, **kwargs
)
3759 def base_GetDefaultAttributes(*args
, **kwargs
):
3760 """base_GetDefaultAttributes(self) -> VisualAttributes"""
3761 return _windows_
.PyScrolledWindow_base_GetDefaultAttributes(*args
, **kwargs
)
3764 class PyScrolledWindowPtr(PyScrolledWindow
):
3765 def __init__(self
, this
):
3767 if not hasattr(self
,"thisown"): self
.thisown
= 0
3768 self
.__class
__ = PyScrolledWindow
3769 _windows_
.PyScrolledWindow_swigregister(PyScrolledWindowPtr
)
3771 def PrePyScrolledWindow(*args
, **kwargs
):
3772 """PrePyScrolledWindow() -> PyScrolledWindow"""
3773 val
= _windows_
.new_PrePyScrolledWindow(*args
, **kwargs
)
3777 #---------------------------------------------------------------------------
3779 PRINT_MODE_NONE
= _windows_
.PRINT_MODE_NONE
3780 PRINT_MODE_PREVIEW
= _windows_
.PRINT_MODE_PREVIEW
3781 PRINT_MODE_FILE
= _windows_
.PRINT_MODE_FILE
3782 PRINT_MODE_PRINTER
= _windows_
.PRINT_MODE_PRINTER
3783 PRINT_MODE_STREAM
= _windows_
.PRINT_MODE_STREAM
3784 PRINTBIN_DEFAULT
= _windows_
.PRINTBIN_DEFAULT
3785 PRINTBIN_ONLYONE
= _windows_
.PRINTBIN_ONLYONE
3786 PRINTBIN_LOWER
= _windows_
.PRINTBIN_LOWER
3787 PRINTBIN_MIDDLE
= _windows_
.PRINTBIN_MIDDLE
3788 PRINTBIN_MANUAL
= _windows_
.PRINTBIN_MANUAL
3789 PRINTBIN_ENVELOPE
= _windows_
.PRINTBIN_ENVELOPE
3790 PRINTBIN_ENVMANUAL
= _windows_
.PRINTBIN_ENVMANUAL
3791 PRINTBIN_AUTO
= _windows_
.PRINTBIN_AUTO
3792 PRINTBIN_TRACTOR
= _windows_
.PRINTBIN_TRACTOR
3793 PRINTBIN_SMALLFMT
= _windows_
.PRINTBIN_SMALLFMT
3794 PRINTBIN_LARGEFMT
= _windows_
.PRINTBIN_LARGEFMT
3795 PRINTBIN_LARGECAPACITY
= _windows_
.PRINTBIN_LARGECAPACITY
3796 PRINTBIN_CASSETTE
= _windows_
.PRINTBIN_CASSETTE
3797 PRINTBIN_FORMSOURCE
= _windows_
.PRINTBIN_FORMSOURCE
3798 PRINTBIN_USER
= _windows_
.PRINTBIN_USER
3799 class PrintData(_core
.Object
):
3801 return "<%s.%s; proxy of C++ wxPrintData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3802 def __init__(self
, *args
):
3804 __init__(self) -> PrintData
3805 __init__(self, PrintData data) -> PrintData
3807 newobj
= _windows_
.new_PrintData(*args
)
3808 self
.this
= newobj
.this
3811 def __del__(self
, destroy
=_windows_
.delete_PrintData
):
3814 if self
.thisown
: destroy(self
)
3817 def GetNoCopies(*args
, **kwargs
):
3818 """GetNoCopies(self) -> int"""
3819 return _windows_
.PrintData_GetNoCopies(*args
, **kwargs
)
3821 def GetCollate(*args
, **kwargs
):
3822 """GetCollate(self) -> bool"""
3823 return _windows_
.PrintData_GetCollate(*args
, **kwargs
)
3825 def GetOrientation(*args
, **kwargs
):
3826 """GetOrientation(self) -> int"""
3827 return _windows_
.PrintData_GetOrientation(*args
, **kwargs
)
3829 def Ok(*args
, **kwargs
):
3830 """Ok(self) -> bool"""
3831 return _windows_
.PrintData_Ok(*args
, **kwargs
)
3833 def GetPrinterName(*args
, **kwargs
):
3834 """GetPrinterName(self) -> String"""
3835 return _windows_
.PrintData_GetPrinterName(*args
, **kwargs
)
3837 def GetColour(*args
, **kwargs
):
3838 """GetColour(self) -> bool"""
3839 return _windows_
.PrintData_GetColour(*args
, **kwargs
)
3841 def GetDuplex(*args
, **kwargs
):
3842 """GetDuplex(self) -> int"""
3843 return _windows_
.PrintData_GetDuplex(*args
, **kwargs
)
3845 def GetPaperId(*args
, **kwargs
):
3846 """GetPaperId(self) -> int"""
3847 return _windows_
.PrintData_GetPaperId(*args
, **kwargs
)
3849 def GetPaperSize(*args
, **kwargs
):
3850 """GetPaperSize(self) -> Size"""
3851 return _windows_
.PrintData_GetPaperSize(*args
, **kwargs
)
3853 def GetQuality(*args
, **kwargs
):
3854 """GetQuality(self) -> int"""
3855 return _windows_
.PrintData_GetQuality(*args
, **kwargs
)
3857 def GetBin(*args
, **kwargs
):
3858 """GetBin(self) -> int"""
3859 return _windows_
.PrintData_GetBin(*args
, **kwargs
)
3861 def GetPrintMode(*args
, **kwargs
):
3862 """GetPrintMode(self) -> int"""
3863 return _windows_
.PrintData_GetPrintMode(*args
, **kwargs
)
3865 def SetNoCopies(*args
, **kwargs
):
3866 """SetNoCopies(self, int v)"""
3867 return _windows_
.PrintData_SetNoCopies(*args
, **kwargs
)
3869 def SetCollate(*args
, **kwargs
):
3870 """SetCollate(self, bool flag)"""
3871 return _windows_
.PrintData_SetCollate(*args
, **kwargs
)
3873 def SetOrientation(*args
, **kwargs
):
3874 """SetOrientation(self, int orient)"""
3875 return _windows_
.PrintData_SetOrientation(*args
, **kwargs
)
3877 def SetPrinterName(*args
, **kwargs
):
3878 """SetPrinterName(self, String name)"""
3879 return _windows_
.PrintData_SetPrinterName(*args
, **kwargs
)
3881 def SetColour(*args
, **kwargs
):
3882 """SetColour(self, bool colour)"""
3883 return _windows_
.PrintData_SetColour(*args
, **kwargs
)
3885 def SetDuplex(*args
, **kwargs
):
3886 """SetDuplex(self, int duplex)"""
3887 return _windows_
.PrintData_SetDuplex(*args
, **kwargs
)
3889 def SetPaperId(*args
, **kwargs
):
3890 """SetPaperId(self, int sizeId)"""
3891 return _windows_
.PrintData_SetPaperId(*args
, **kwargs
)
3893 def SetPaperSize(*args
, **kwargs
):
3894 """SetPaperSize(self, Size sz)"""
3895 return _windows_
.PrintData_SetPaperSize(*args
, **kwargs
)
3897 def SetQuality(*args
, **kwargs
):
3898 """SetQuality(self, int quality)"""
3899 return _windows_
.PrintData_SetQuality(*args
, **kwargs
)
3901 def SetBin(*args
, **kwargs
):
3902 """SetBin(self, int bin)"""
3903 return _windows_
.PrintData_SetBin(*args
, **kwargs
)
3905 def SetPrintMode(*args
, **kwargs
):
3906 """SetPrintMode(self, int printMode)"""
3907 return _windows_
.PrintData_SetPrintMode(*args
, **kwargs
)
3909 def GetFilename(*args
, **kwargs
):
3910 """GetFilename(self) -> String"""
3911 return _windows_
.PrintData_GetFilename(*args
, **kwargs
)
3913 def SetFilename(*args
, **kwargs
):
3914 """SetFilename(self, String filename)"""
3915 return _windows_
.PrintData_SetFilename(*args
, **kwargs
)
3917 def __nonzero__(self
): return self
.Ok()
3918 def GetPrinterCommand(*args
, **kwargs
):
3919 """GetPrinterCommand(self) -> String"""
3920 return _windows_
.PrintData_GetPrinterCommand(*args
, **kwargs
)
3922 def GetPrinterOptions(*args
, **kwargs
):
3923 """GetPrinterOptions(self) -> String"""
3924 return _windows_
.PrintData_GetPrinterOptions(*args
, **kwargs
)
3926 def GetPreviewCommand(*args
, **kwargs
):
3927 """GetPreviewCommand(self) -> String"""
3928 return _windows_
.PrintData_GetPreviewCommand(*args
, **kwargs
)
3930 def GetFontMetricPath(*args
, **kwargs
):
3931 """GetFontMetricPath(self) -> String"""
3932 return _windows_
.PrintData_GetFontMetricPath(*args
, **kwargs
)
3934 def GetPrinterScaleX(*args
, **kwargs
):
3935 """GetPrinterScaleX(self) -> double"""
3936 return _windows_
.PrintData_GetPrinterScaleX(*args
, **kwargs
)
3938 def GetPrinterScaleY(*args
, **kwargs
):
3939 """GetPrinterScaleY(self) -> double"""
3940 return _windows_
.PrintData_GetPrinterScaleY(*args
, **kwargs
)
3942 def GetPrinterTranslateX(*args
, **kwargs
):
3943 """GetPrinterTranslateX(self) -> long"""
3944 return _windows_
.PrintData_GetPrinterTranslateX(*args
, **kwargs
)
3946 def GetPrinterTranslateY(*args
, **kwargs
):
3947 """GetPrinterTranslateY(self) -> long"""
3948 return _windows_
.PrintData_GetPrinterTranslateY(*args
, **kwargs
)
3950 def SetPrinterCommand(*args
, **kwargs
):
3951 """SetPrinterCommand(self, String command)"""
3952 return _windows_
.PrintData_SetPrinterCommand(*args
, **kwargs
)
3954 def SetPrinterOptions(*args
, **kwargs
):
3955 """SetPrinterOptions(self, String options)"""
3956 return _windows_
.PrintData_SetPrinterOptions(*args
, **kwargs
)
3958 def SetPreviewCommand(*args
, **kwargs
):
3959 """SetPreviewCommand(self, String command)"""
3960 return _windows_
.PrintData_SetPreviewCommand(*args
, **kwargs
)
3962 def SetFontMetricPath(*args
, **kwargs
):
3963 """SetFontMetricPath(self, String path)"""
3964 return _windows_
.PrintData_SetFontMetricPath(*args
, **kwargs
)
3966 def SetPrinterScaleX(*args
, **kwargs
):
3967 """SetPrinterScaleX(self, double x)"""
3968 return _windows_
.PrintData_SetPrinterScaleX(*args
, **kwargs
)
3970 def SetPrinterScaleY(*args
, **kwargs
):
3971 """SetPrinterScaleY(self, double y)"""
3972 return _windows_
.PrintData_SetPrinterScaleY(*args
, **kwargs
)
3974 def SetPrinterScaling(*args
, **kwargs
):
3975 """SetPrinterScaling(self, double x, double y)"""
3976 return _windows_
.PrintData_SetPrinterScaling(*args
, **kwargs
)
3978 def SetPrinterTranslateX(*args
, **kwargs
):
3979 """SetPrinterTranslateX(self, long x)"""
3980 return _windows_
.PrintData_SetPrinterTranslateX(*args
, **kwargs
)
3982 def SetPrinterTranslateY(*args
, **kwargs
):
3983 """SetPrinterTranslateY(self, long y)"""
3984 return _windows_
.PrintData_SetPrinterTranslateY(*args
, **kwargs
)
3986 def SetPrinterTranslation(*args
, **kwargs
):
3987 """SetPrinterTranslation(self, long x, long y)"""
3988 return _windows_
.PrintData_SetPrinterTranslation(*args
, **kwargs
)
3991 class PrintDataPtr(PrintData
):
3992 def __init__(self
, this
):
3994 if not hasattr(self
,"thisown"): self
.thisown
= 0
3995 self
.__class
__ = PrintData
3996 _windows_
.PrintData_swigregister(PrintDataPtr
)
3997 PrintoutTitleStr
= cvar
.PrintoutTitleStr
3998 PreviewCanvasNameStr
= cvar
.PreviewCanvasNameStr
4000 class PageSetupDialogData(_core
.Object
):
4002 return "<%s.%s; proxy of C++ wxPageSetupDialogData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4003 def __init__(self
, *args
):
4005 __init__(self) -> PageSetupDialogData
4006 __init__(self, PageSetupDialogData data) -> PageSetupDialogData
4008 newobj
= _windows_
.new_PageSetupDialogData(*args
)
4009 self
.this
= newobj
.this
4012 def __del__(self
, destroy
=_windows_
.delete_PageSetupDialogData
):
4015 if self
.thisown
: destroy(self
)
4018 def EnableHelp(*args
, **kwargs
):
4019 """EnableHelp(self, bool flag)"""
4020 return _windows_
.PageSetupDialogData_EnableHelp(*args
, **kwargs
)
4022 def EnableMargins(*args
, **kwargs
):
4023 """EnableMargins(self, bool flag)"""
4024 return _windows_
.PageSetupDialogData_EnableMargins(*args
, **kwargs
)
4026 def EnableOrientation(*args
, **kwargs
):
4027 """EnableOrientation(self, bool flag)"""
4028 return _windows_
.PageSetupDialogData_EnableOrientation(*args
, **kwargs
)
4030 def EnablePaper(*args
, **kwargs
):
4031 """EnablePaper(self, bool flag)"""
4032 return _windows_
.PageSetupDialogData_EnablePaper(*args
, **kwargs
)
4034 def EnablePrinter(*args
, **kwargs
):
4035 """EnablePrinter(self, bool flag)"""
4036 return _windows_
.PageSetupDialogData_EnablePrinter(*args
, **kwargs
)
4038 def GetDefaultMinMargins(*args
, **kwargs
):
4039 """GetDefaultMinMargins(self) -> bool"""
4040 return _windows_
.PageSetupDialogData_GetDefaultMinMargins(*args
, **kwargs
)
4042 def GetEnableMargins(*args
, **kwargs
):
4043 """GetEnableMargins(self) -> bool"""
4044 return _windows_
.PageSetupDialogData_GetEnableMargins(*args
, **kwargs
)
4046 def GetEnableOrientation(*args
, **kwargs
):
4047 """GetEnableOrientation(self) -> bool"""
4048 return _windows_
.PageSetupDialogData_GetEnableOrientation(*args
, **kwargs
)
4050 def GetEnablePaper(*args
, **kwargs
):
4051 """GetEnablePaper(self) -> bool"""
4052 return _windows_
.PageSetupDialogData_GetEnablePaper(*args
, **kwargs
)
4054 def GetEnablePrinter(*args
, **kwargs
):
4055 """GetEnablePrinter(self) -> bool"""
4056 return _windows_
.PageSetupDialogData_GetEnablePrinter(*args
, **kwargs
)
4058 def GetEnableHelp(*args
, **kwargs
):
4059 """GetEnableHelp(self) -> bool"""
4060 return _windows_
.PageSetupDialogData_GetEnableHelp(*args
, **kwargs
)
4062 def GetDefaultInfo(*args
, **kwargs
):
4063 """GetDefaultInfo(self) -> bool"""
4064 return _windows_
.PageSetupDialogData_GetDefaultInfo(*args
, **kwargs
)
4066 def GetMarginTopLeft(*args
, **kwargs
):
4067 """GetMarginTopLeft(self) -> Point"""
4068 return _windows_
.PageSetupDialogData_GetMarginTopLeft(*args
, **kwargs
)
4070 def GetMarginBottomRight(*args
, **kwargs
):
4071 """GetMarginBottomRight(self) -> Point"""
4072 return _windows_
.PageSetupDialogData_GetMarginBottomRight(*args
, **kwargs
)
4074 def GetMinMarginTopLeft(*args
, **kwargs
):
4075 """GetMinMarginTopLeft(self) -> Point"""
4076 return _windows_
.PageSetupDialogData_GetMinMarginTopLeft(*args
, **kwargs
)
4078 def GetMinMarginBottomRight(*args
, **kwargs
):
4079 """GetMinMarginBottomRight(self) -> Point"""
4080 return _windows_
.PageSetupDialogData_GetMinMarginBottomRight(*args
, **kwargs
)
4082 def GetPaperId(*args
, **kwargs
):
4083 """GetPaperId(self) -> int"""
4084 return _windows_
.PageSetupDialogData_GetPaperId(*args
, **kwargs
)
4086 def GetPaperSize(*args
, **kwargs
):
4087 """GetPaperSize(self) -> Size"""
4088 return _windows_
.PageSetupDialogData_GetPaperSize(*args
, **kwargs
)
4090 def GetPrintData(*args
, **kwargs
):
4091 """GetPrintData(self) -> PrintData"""
4092 return _windows_
.PageSetupDialogData_GetPrintData(*args
, **kwargs
)
4094 def Ok(*args
, **kwargs
):
4095 """Ok(self) -> bool"""
4096 return _windows_
.PageSetupDialogData_Ok(*args
, **kwargs
)
4098 def SetDefaultInfo(*args
, **kwargs
):
4099 """SetDefaultInfo(self, bool flag)"""
4100 return _windows_
.PageSetupDialogData_SetDefaultInfo(*args
, **kwargs
)
4102 def SetDefaultMinMargins(*args
, **kwargs
):
4103 """SetDefaultMinMargins(self, bool flag)"""
4104 return _windows_
.PageSetupDialogData_SetDefaultMinMargins(*args
, **kwargs
)
4106 def SetMarginTopLeft(*args
, **kwargs
):
4107 """SetMarginTopLeft(self, Point pt)"""
4108 return _windows_
.PageSetupDialogData_SetMarginTopLeft(*args
, **kwargs
)
4110 def SetMarginBottomRight(*args
, **kwargs
):
4111 """SetMarginBottomRight(self, Point pt)"""
4112 return _windows_
.PageSetupDialogData_SetMarginBottomRight(*args
, **kwargs
)
4114 def SetMinMarginTopLeft(*args
, **kwargs
):
4115 """SetMinMarginTopLeft(self, Point pt)"""
4116 return _windows_
.PageSetupDialogData_SetMinMarginTopLeft(*args
, **kwargs
)
4118 def SetMinMarginBottomRight(*args
, **kwargs
):
4119 """SetMinMarginBottomRight(self, Point pt)"""
4120 return _windows_
.PageSetupDialogData_SetMinMarginBottomRight(*args
, **kwargs
)
4122 def SetPaperId(*args
, **kwargs
):
4123 """SetPaperId(self, int id)"""
4124 return _windows_
.PageSetupDialogData_SetPaperId(*args
, **kwargs
)
4126 def SetPaperSize(*args
, **kwargs
):
4127 """SetPaperSize(self, Size size)"""
4128 return _windows_
.PageSetupDialogData_SetPaperSize(*args
, **kwargs
)
4130 def SetPrintData(*args
, **kwargs
):
4131 """SetPrintData(self, PrintData printData)"""
4132 return _windows_
.PageSetupDialogData_SetPrintData(*args
, **kwargs
)
4134 def __nonzero__(self
): return self
.Ok()
4136 class PageSetupDialogDataPtr(PageSetupDialogData
):
4137 def __init__(self
, this
):
4139 if not hasattr(self
,"thisown"): self
.thisown
= 0
4140 self
.__class
__ = PageSetupDialogData
4141 _windows_
.PageSetupDialogData_swigregister(PageSetupDialogDataPtr
)
4143 class PageSetupDialog(_core
.Object
):
4145 return "<%s.%s; proxy of C++ wxPageSetupDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4146 def __init__(self
, *args
, **kwargs
):
4147 """__init__(self, Window parent, PageSetupDialogData data=None) -> PageSetupDialog"""
4148 newobj
= _windows_
.new_PageSetupDialog(*args
, **kwargs
)
4149 self
.this
= newobj
.this
4152 def GetPageSetupData(*args
, **kwargs
):
4153 """GetPageSetupData(self) -> PageSetupDialogData"""
4154 return _windows_
.PageSetupDialog_GetPageSetupData(*args
, **kwargs
)
4156 def GetPageSetupDialogData(*args
, **kwargs
):
4157 """GetPageSetupDialogData(self) -> PageSetupDialogData"""
4158 return _windows_
.PageSetupDialog_GetPageSetupDialogData(*args
, **kwargs
)
4160 def ShowModal(*args
, **kwargs
):
4161 """ShowModal(self) -> int"""
4162 return _windows_
.PageSetupDialog_ShowModal(*args
, **kwargs
)
4165 class PageSetupDialogPtr(PageSetupDialog
):
4166 def __init__(self
, this
):
4168 if not hasattr(self
,"thisown"): self
.thisown
= 0
4169 self
.__class
__ = PageSetupDialog
4170 _windows_
.PageSetupDialog_swigregister(PageSetupDialogPtr
)
4172 class PrintDialogData(_core
.Object
):
4174 return "<%s.%s; proxy of C++ wxPrintDialogData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4175 def __init__(self
, *args
):
4177 __init__(self) -> PrintDialogData
4178 __init__(self, PrintData printData) -> PrintDialogData
4180 newobj
= _windows_
.new_PrintDialogData(*args
)
4181 self
.this
= newobj
.this
4184 def __del__(self
, destroy
=_windows_
.delete_PrintDialogData
):
4187 if self
.thisown
: destroy(self
)
4190 def GetFromPage(*args
, **kwargs
):
4191 """GetFromPage(self) -> int"""
4192 return _windows_
.PrintDialogData_GetFromPage(*args
, **kwargs
)
4194 def GetToPage(*args
, **kwargs
):
4195 """GetToPage(self) -> int"""
4196 return _windows_
.PrintDialogData_GetToPage(*args
, **kwargs
)
4198 def GetMinPage(*args
, **kwargs
):
4199 """GetMinPage(self) -> int"""
4200 return _windows_
.PrintDialogData_GetMinPage(*args
, **kwargs
)
4202 def GetMaxPage(*args
, **kwargs
):
4203 """GetMaxPage(self) -> int"""
4204 return _windows_
.PrintDialogData_GetMaxPage(*args
, **kwargs
)
4206 def GetNoCopies(*args
, **kwargs
):
4207 """GetNoCopies(self) -> int"""
4208 return _windows_
.PrintDialogData_GetNoCopies(*args
, **kwargs
)
4210 def GetAllPages(*args
, **kwargs
):
4211 """GetAllPages(self) -> bool"""
4212 return _windows_
.PrintDialogData_GetAllPages(*args
, **kwargs
)
4214 def GetSelection(*args
, **kwargs
):
4215 """GetSelection(self) -> bool"""
4216 return _windows_
.PrintDialogData_GetSelection(*args
, **kwargs
)
4218 def GetCollate(*args
, **kwargs
):
4219 """GetCollate(self) -> bool"""
4220 return _windows_
.PrintDialogData_GetCollate(*args
, **kwargs
)
4222 def GetPrintToFile(*args
, **kwargs
):
4223 """GetPrintToFile(self) -> bool"""
4224 return _windows_
.PrintDialogData_GetPrintToFile(*args
, **kwargs
)
4226 def GetSetupDialog(*args
, **kwargs
):
4227 """GetSetupDialog(self) -> bool"""
4228 return _windows_
.PrintDialogData_GetSetupDialog(*args
, **kwargs
)
4230 def SetSetupDialog(*args
, **kwargs
):
4231 """SetSetupDialog(self, bool flag)"""
4232 return _windows_
.PrintDialogData_SetSetupDialog(*args
, **kwargs
)
4234 def SetFromPage(*args
, **kwargs
):
4235 """SetFromPage(self, int v)"""
4236 return _windows_
.PrintDialogData_SetFromPage(*args
, **kwargs
)
4238 def SetToPage(*args
, **kwargs
):
4239 """SetToPage(self, int v)"""
4240 return _windows_
.PrintDialogData_SetToPage(*args
, **kwargs
)
4242 def SetMinPage(*args
, **kwargs
):
4243 """SetMinPage(self, int v)"""
4244 return _windows_
.PrintDialogData_SetMinPage(*args
, **kwargs
)
4246 def SetMaxPage(*args
, **kwargs
):
4247 """SetMaxPage(self, int v)"""
4248 return _windows_
.PrintDialogData_SetMaxPage(*args
, **kwargs
)
4250 def SetNoCopies(*args
, **kwargs
):
4251 """SetNoCopies(self, int v)"""
4252 return _windows_
.PrintDialogData_SetNoCopies(*args
, **kwargs
)
4254 def SetAllPages(*args
, **kwargs
):
4255 """SetAllPages(self, bool flag)"""
4256 return _windows_
.PrintDialogData_SetAllPages(*args
, **kwargs
)
4258 def SetSelection(*args
, **kwargs
):
4259 """SetSelection(self, bool flag)"""
4260 return _windows_
.PrintDialogData_SetSelection(*args
, **kwargs
)
4262 def SetCollate(*args
, **kwargs
):
4263 """SetCollate(self, bool flag)"""
4264 return _windows_
.PrintDialogData_SetCollate(*args
, **kwargs
)
4266 def SetPrintToFile(*args
, **kwargs
):
4267 """SetPrintToFile(self, bool flag)"""
4268 return _windows_
.PrintDialogData_SetPrintToFile(*args
, **kwargs
)
4270 def EnablePrintToFile(*args
, **kwargs
):
4271 """EnablePrintToFile(self, bool flag)"""
4272 return _windows_
.PrintDialogData_EnablePrintToFile(*args
, **kwargs
)
4274 def EnableSelection(*args
, **kwargs
):
4275 """EnableSelection(self, bool flag)"""
4276 return _windows_
.PrintDialogData_EnableSelection(*args
, **kwargs
)
4278 def EnablePageNumbers(*args
, **kwargs
):
4279 """EnablePageNumbers(self, bool flag)"""
4280 return _windows_
.PrintDialogData_EnablePageNumbers(*args
, **kwargs
)
4282 def EnableHelp(*args
, **kwargs
):
4283 """EnableHelp(self, bool flag)"""
4284 return _windows_
.PrintDialogData_EnableHelp(*args
, **kwargs
)
4286 def GetEnablePrintToFile(*args
, **kwargs
):
4287 """GetEnablePrintToFile(self) -> bool"""
4288 return _windows_
.PrintDialogData_GetEnablePrintToFile(*args
, **kwargs
)
4290 def GetEnableSelection(*args
, **kwargs
):
4291 """GetEnableSelection(self) -> bool"""
4292 return _windows_
.PrintDialogData_GetEnableSelection(*args
, **kwargs
)
4294 def GetEnablePageNumbers(*args
, **kwargs
):
4295 """GetEnablePageNumbers(self) -> bool"""
4296 return _windows_
.PrintDialogData_GetEnablePageNumbers(*args
, **kwargs
)
4298 def GetEnableHelp(*args
, **kwargs
):
4299 """GetEnableHelp(self) -> bool"""
4300 return _windows_
.PrintDialogData_GetEnableHelp(*args
, **kwargs
)
4302 def Ok(*args
, **kwargs
):
4303 """Ok(self) -> bool"""
4304 return _windows_
.PrintDialogData_Ok(*args
, **kwargs
)
4306 def GetPrintData(*args
, **kwargs
):
4307 """GetPrintData(self) -> PrintData"""
4308 return _windows_
.PrintDialogData_GetPrintData(*args
, **kwargs
)
4310 def SetPrintData(*args
, **kwargs
):
4311 """SetPrintData(self, PrintData printData)"""
4312 return _windows_
.PrintDialogData_SetPrintData(*args
, **kwargs
)
4314 def __nonzero__(self
): return self
.Ok()
4316 class PrintDialogDataPtr(PrintDialogData
):
4317 def __init__(self
, this
):
4319 if not hasattr(self
,"thisown"): self
.thisown
= 0
4320 self
.__class
__ = PrintDialogData
4321 _windows_
.PrintDialogData_swigregister(PrintDialogDataPtr
)
4323 class PrintDialog(_core
.Object
):
4325 return "<%s.%s; proxy of C++ wxPrintDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4326 def __init__(self
, *args
, **kwargs
):
4327 """__init__(self, Window parent, PrintDialogData data=None) -> PrintDialog"""
4328 newobj
= _windows_
.new_PrintDialog(*args
, **kwargs
)
4329 self
.this
= newobj
.this
4332 def ShowModal(*args
, **kwargs
):
4333 """ShowModal(self) -> int"""
4334 return _windows_
.PrintDialog_ShowModal(*args
, **kwargs
)
4336 def GetPrintDialogData(*args
, **kwargs
):
4337 """GetPrintDialogData(self) -> PrintDialogData"""
4338 return _windows_
.PrintDialog_GetPrintDialogData(*args
, **kwargs
)
4340 def GetPrintData(*args
, **kwargs
):
4341 """GetPrintData(self) -> PrintData"""
4342 return _windows_
.PrintDialog_GetPrintData(*args
, **kwargs
)
4344 def GetPrintDC(*args
, **kwargs
):
4345 """GetPrintDC(self) -> DC"""
4346 return _windows_
.PrintDialog_GetPrintDC(*args
, **kwargs
)
4349 class PrintDialogPtr(PrintDialog
):
4350 def __init__(self
, this
):
4352 if not hasattr(self
,"thisown"): self
.thisown
= 0
4353 self
.__class
__ = PrintDialog
4354 _windows_
.PrintDialog_swigregister(PrintDialogPtr
)
4356 PRINTER_NO_ERROR
= _windows_
.PRINTER_NO_ERROR
4357 PRINTER_CANCELLED
= _windows_
.PRINTER_CANCELLED
4358 PRINTER_ERROR
= _windows_
.PRINTER_ERROR
4359 class Printer(_core
.Object
):
4361 return "<%s.%s; proxy of C++ wxPrinter instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4362 def __init__(self
, *args
, **kwargs
):
4363 """__init__(self, PrintDialogData data=None) -> Printer"""
4364 newobj
= _windows_
.new_Printer(*args
, **kwargs
)
4365 self
.this
= newobj
.this
4368 def __del__(self
, destroy
=_windows_
.delete_Printer
):
4371 if self
.thisown
: destroy(self
)
4374 def CreateAbortWindow(*args
, **kwargs
):
4375 """CreateAbortWindow(self, Window parent, Printout printout) -> Window"""
4376 return _windows_
.Printer_CreateAbortWindow(*args
, **kwargs
)
4378 def ReportError(*args
, **kwargs
):
4379 """ReportError(self, Window parent, Printout printout, String message)"""
4380 return _windows_
.Printer_ReportError(*args
, **kwargs
)
4382 def Setup(*args
, **kwargs
):
4383 """Setup(self, Window parent) -> bool"""
4384 return _windows_
.Printer_Setup(*args
, **kwargs
)
4386 def Print(*args
, **kwargs
):
4387 """Print(self, Window parent, Printout printout, bool prompt=True) -> bool"""
4388 return _windows_
.Printer_Print(*args
, **kwargs
)
4390 def PrintDialog(*args
, **kwargs
):
4391 """PrintDialog(self, Window parent) -> DC"""
4392 return _windows_
.Printer_PrintDialog(*args
, **kwargs
)
4394 def GetPrintDialogData(*args
, **kwargs
):
4395 """GetPrintDialogData(self) -> PrintDialogData"""
4396 return _windows_
.Printer_GetPrintDialogData(*args
, **kwargs
)
4398 def GetAbort(*args
, **kwargs
):
4399 """GetAbort(self) -> bool"""
4400 return _windows_
.Printer_GetAbort(*args
, **kwargs
)
4402 def GetLastError(*args
, **kwargs
):
4403 """GetLastError() -> int"""
4404 return _windows_
.Printer_GetLastError(*args
, **kwargs
)
4406 GetLastError
= staticmethod(GetLastError
)
4408 class PrinterPtr(Printer
):
4409 def __init__(self
, this
):
4411 if not hasattr(self
,"thisown"): self
.thisown
= 0
4412 self
.__class
__ = Printer
4413 _windows_
.Printer_swigregister(PrinterPtr
)
4415 def Printer_GetLastError(*args
, **kwargs
):
4416 """Printer_GetLastError() -> int"""
4417 return _windows_
.Printer_GetLastError(*args
, **kwargs
)
4419 class Printout(_core
.Object
):
4421 return "<%s.%s; proxy of C++ wxPyPrintout instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4422 def __init__(self
, *args
, **kwargs
):
4423 """__init__(self, String title=PrintoutTitleStr) -> Printout"""
4424 newobj
= _windows_
.new_Printout(*args
, **kwargs
)
4425 self
.this
= newobj
.this
4428 self
._setCallbackInfo
(self
, Printout
)
4430 def _setCallbackInfo(*args
, **kwargs
):
4431 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4432 return _windows_
.Printout__setCallbackInfo(*args
, **kwargs
)
4434 def GetTitle(*args
, **kwargs
):
4435 """GetTitle(self) -> String"""
4436 return _windows_
.Printout_GetTitle(*args
, **kwargs
)
4438 def GetDC(*args
, **kwargs
):
4439 """GetDC(self) -> DC"""
4440 return _windows_
.Printout_GetDC(*args
, **kwargs
)
4442 def SetDC(*args
, **kwargs
):
4443 """SetDC(self, DC dc)"""
4444 return _windows_
.Printout_SetDC(*args
, **kwargs
)
4446 def SetPageSizePixels(*args
, **kwargs
):
4447 """SetPageSizePixels(self, int w, int h)"""
4448 return _windows_
.Printout_SetPageSizePixels(*args
, **kwargs
)
4450 def GetPageSizePixels(*args
, **kwargs
):
4451 """GetPageSizePixels() -> (w, h)"""
4452 return _windows_
.Printout_GetPageSizePixels(*args
, **kwargs
)
4454 def SetPageSizeMM(*args
, **kwargs
):
4455 """SetPageSizeMM(self, int w, int h)"""
4456 return _windows_
.Printout_SetPageSizeMM(*args
, **kwargs
)
4458 def GetPageSizeMM(*args
, **kwargs
):
4459 """GetPageSizeMM() -> (w, h)"""
4460 return _windows_
.Printout_GetPageSizeMM(*args
, **kwargs
)
4462 def SetPPIScreen(*args
, **kwargs
):
4463 """SetPPIScreen(self, int x, int y)"""
4464 return _windows_
.Printout_SetPPIScreen(*args
, **kwargs
)
4466 def GetPPIScreen(*args
, **kwargs
):
4467 """GetPPIScreen() -> (x,y)"""
4468 return _windows_
.Printout_GetPPIScreen(*args
, **kwargs
)
4470 def SetPPIPrinter(*args
, **kwargs
):
4471 """SetPPIPrinter(self, int x, int y)"""
4472 return _windows_
.Printout_SetPPIPrinter(*args
, **kwargs
)
4474 def GetPPIPrinter(*args
, **kwargs
):
4475 """GetPPIPrinter() -> (x,y)"""
4476 return _windows_
.Printout_GetPPIPrinter(*args
, **kwargs
)
4478 def IsPreview(*args
, **kwargs
):
4479 """IsPreview(self) -> bool"""
4480 return _windows_
.Printout_IsPreview(*args
, **kwargs
)
4482 def SetIsPreview(*args
, **kwargs
):
4483 """SetIsPreview(self, bool p)"""
4484 return _windows_
.Printout_SetIsPreview(*args
, **kwargs
)
4486 def base_OnBeginDocument(*args
, **kwargs
):
4487 """base_OnBeginDocument(self, int startPage, int endPage) -> bool"""
4488 return _windows_
.Printout_base_OnBeginDocument(*args
, **kwargs
)
4490 def base_OnEndDocument(*args
, **kwargs
):
4491 """base_OnEndDocument(self)"""
4492 return _windows_
.Printout_base_OnEndDocument(*args
, **kwargs
)
4494 def base_OnBeginPrinting(*args
, **kwargs
):
4495 """base_OnBeginPrinting(self)"""
4496 return _windows_
.Printout_base_OnBeginPrinting(*args
, **kwargs
)
4498 def base_OnEndPrinting(*args
, **kwargs
):
4499 """base_OnEndPrinting(self)"""
4500 return _windows_
.Printout_base_OnEndPrinting(*args
, **kwargs
)
4502 def base_OnPreparePrinting(*args
, **kwargs
):
4503 """base_OnPreparePrinting(self)"""
4504 return _windows_
.Printout_base_OnPreparePrinting(*args
, **kwargs
)
4506 def base_HasPage(*args
, **kwargs
):
4507 """base_HasPage(self, int page) -> bool"""
4508 return _windows_
.Printout_base_HasPage(*args
, **kwargs
)
4510 def base_GetPageInfo(*args
, **kwargs
):
4511 """base_GetPageInfo() -> (minPage, maxPage, pageFrom, pageTo)"""
4512 return _windows_
.Printout_base_GetPageInfo(*args
, **kwargs
)
4515 class PrintoutPtr(Printout
):
4516 def __init__(self
, this
):
4518 if not hasattr(self
,"thisown"): self
.thisown
= 0
4519 self
.__class
__ = Printout
4520 _windows_
.Printout_swigregister(PrintoutPtr
)
4522 class PreviewCanvas(ScrolledWindow
):
4524 return "<%s.%s; proxy of C++ wxPreviewCanvas instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4525 def __init__(self
, *args
, **kwargs
):
4527 __init__(self, PrintPreview preview, Window parent, Point pos=DefaultPosition,
4528 Size size=DefaultSize, long style=0,
4529 String name=PreviewCanvasNameStr) -> PreviewCanvas
4531 newobj
= _windows_
.new_PreviewCanvas(*args
, **kwargs
)
4532 self
.this
= newobj
.this
4535 self
._setOORInfo
(self
)
4538 class PreviewCanvasPtr(PreviewCanvas
):
4539 def __init__(self
, this
):
4541 if not hasattr(self
,"thisown"): self
.thisown
= 0
4542 self
.__class
__ = PreviewCanvas
4543 _windows_
.PreviewCanvas_swigregister(PreviewCanvasPtr
)
4545 class PreviewFrame(Frame
):
4547 return "<%s.%s; proxy of C++ wxPreviewFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4548 def __init__(self
, *args
, **kwargs
):
4550 __init__(self, PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4551 Size size=DefaultSize,
4552 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PreviewFrame
4554 newobj
= _windows_
.new_PreviewFrame(*args
, **kwargs
)
4555 self
.this
= newobj
.this
4558 self
._setOORInfo
(self
)
4560 def Initialize(*args
, **kwargs
):
4561 """Initialize(self)"""
4562 return _windows_
.PreviewFrame_Initialize(*args
, **kwargs
)
4564 def CreateControlBar(*args
, **kwargs
):
4565 """CreateControlBar(self)"""
4566 return _windows_
.PreviewFrame_CreateControlBar(*args
, **kwargs
)
4568 def CreateCanvas(*args
, **kwargs
):
4569 """CreateCanvas(self)"""
4570 return _windows_
.PreviewFrame_CreateCanvas(*args
, **kwargs
)
4572 def GetControlBar(*args
, **kwargs
):
4573 """GetControlBar(self) -> PreviewControlBar"""
4574 return _windows_
.PreviewFrame_GetControlBar(*args
, **kwargs
)
4577 class PreviewFramePtr(PreviewFrame
):
4578 def __init__(self
, this
):
4580 if not hasattr(self
,"thisown"): self
.thisown
= 0
4581 self
.__class
__ = PreviewFrame
4582 _windows_
.PreviewFrame_swigregister(PreviewFramePtr
)
4584 PREVIEW_PRINT
= _windows_
.PREVIEW_PRINT
4585 PREVIEW_PREVIOUS
= _windows_
.PREVIEW_PREVIOUS
4586 PREVIEW_NEXT
= _windows_
.PREVIEW_NEXT
4587 PREVIEW_ZOOM
= _windows_
.PREVIEW_ZOOM
4588 PREVIEW_FIRST
= _windows_
.PREVIEW_FIRST
4589 PREVIEW_LAST
= _windows_
.PREVIEW_LAST
4590 PREVIEW_GOTO
= _windows_
.PREVIEW_GOTO
4591 PREVIEW_DEFAULT
= _windows_
.PREVIEW_DEFAULT
4592 ID_PREVIEW_CLOSE
= _windows_
.ID_PREVIEW_CLOSE
4593 ID_PREVIEW_NEXT
= _windows_
.ID_PREVIEW_NEXT
4594 ID_PREVIEW_PREVIOUS
= _windows_
.ID_PREVIEW_PREVIOUS
4595 ID_PREVIEW_PRINT
= _windows_
.ID_PREVIEW_PRINT
4596 ID_PREVIEW_ZOOM
= _windows_
.ID_PREVIEW_ZOOM
4597 ID_PREVIEW_FIRST
= _windows_
.ID_PREVIEW_FIRST
4598 ID_PREVIEW_LAST
= _windows_
.ID_PREVIEW_LAST
4599 ID_PREVIEW_GOTO
= _windows_
.ID_PREVIEW_GOTO
4600 class PreviewControlBar(Panel
):
4602 return "<%s.%s; proxy of C++ wxPreviewControlBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4603 def __init__(self
, *args
, **kwargs
):
4605 __init__(self, PrintPreview preview, long buttons, Window parent,
4606 Point pos=DefaultPosition, Size size=DefaultSize,
4607 long style=TAB_TRAVERSAL, String name=PanelNameStr) -> PreviewControlBar
4609 newobj
= _windows_
.new_PreviewControlBar(*args
, **kwargs
)
4610 self
.this
= newobj
.this
4613 self
._setOORInfo
(self
)
4615 def GetZoomControl(*args
, **kwargs
):
4616 """GetZoomControl(self) -> int"""
4617 return _windows_
.PreviewControlBar_GetZoomControl(*args
, **kwargs
)
4619 def SetZoomControl(*args
, **kwargs
):
4620 """SetZoomControl(self, int zoom)"""
4621 return _windows_
.PreviewControlBar_SetZoomControl(*args
, **kwargs
)
4623 def GetPrintPreview(*args
, **kwargs
):
4624 """GetPrintPreview(self) -> PrintPreview"""
4625 return _windows_
.PreviewControlBar_GetPrintPreview(*args
, **kwargs
)
4627 def OnNext(*args
, **kwargs
):
4629 return _windows_
.PreviewControlBar_OnNext(*args
, **kwargs
)
4631 def OnPrevious(*args
, **kwargs
):
4632 """OnPrevious(self)"""
4633 return _windows_
.PreviewControlBar_OnPrevious(*args
, **kwargs
)
4635 def OnFirst(*args
, **kwargs
):
4637 return _windows_
.PreviewControlBar_OnFirst(*args
, **kwargs
)
4639 def OnLast(*args
, **kwargs
):
4641 return _windows_
.PreviewControlBar_OnLast(*args
, **kwargs
)
4643 def OnGoto(*args
, **kwargs
):
4645 return _windows_
.PreviewControlBar_OnGoto(*args
, **kwargs
)
4648 class PreviewControlBarPtr(PreviewControlBar
):
4649 def __init__(self
, this
):
4651 if not hasattr(self
,"thisown"): self
.thisown
= 0
4652 self
.__class
__ = PreviewControlBar
4653 _windows_
.PreviewControlBar_swigregister(PreviewControlBarPtr
)
4655 class PrintPreview(_core
.Object
):
4657 return "<%s.%s; proxy of C++ wxPrintPreview instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4658 def __init__(self
, *args
):
4660 __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PrintPreview
4661 __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PrintPreview
4663 newobj
= _windows_
.new_PrintPreview(*args
)
4664 self
.this
= newobj
.this
4667 def SetCurrentPage(*args
, **kwargs
):
4668 """SetCurrentPage(self, int pageNum) -> bool"""
4669 return _windows_
.PrintPreview_SetCurrentPage(*args
, **kwargs
)
4671 def GetCurrentPage(*args
, **kwargs
):
4672 """GetCurrentPage(self) -> int"""
4673 return _windows_
.PrintPreview_GetCurrentPage(*args
, **kwargs
)
4675 def SetPrintout(*args
, **kwargs
):
4676 """SetPrintout(self, Printout printout)"""
4677 return _windows_
.PrintPreview_SetPrintout(*args
, **kwargs
)
4679 def GetPrintout(*args
, **kwargs
):
4680 """GetPrintout(self) -> Printout"""
4681 return _windows_
.PrintPreview_GetPrintout(*args
, **kwargs
)
4683 def GetPrintoutForPrinting(*args
, **kwargs
):
4684 """GetPrintoutForPrinting(self) -> Printout"""
4685 return _windows_
.PrintPreview_GetPrintoutForPrinting(*args
, **kwargs
)
4687 def SetFrame(*args
, **kwargs
):
4688 """SetFrame(self, Frame frame)"""
4689 return _windows_
.PrintPreview_SetFrame(*args
, **kwargs
)
4691 def SetCanvas(*args
, **kwargs
):
4692 """SetCanvas(self, PreviewCanvas canvas)"""
4693 return _windows_
.PrintPreview_SetCanvas(*args
, **kwargs
)
4695 def GetFrame(*args
, **kwargs
):
4696 """GetFrame(self) -> Frame"""
4697 return _windows_
.PrintPreview_GetFrame(*args
, **kwargs
)
4699 def GetCanvas(*args
, **kwargs
):
4700 """GetCanvas(self) -> PreviewCanvas"""
4701 return _windows_
.PrintPreview_GetCanvas(*args
, **kwargs
)
4703 def PaintPage(*args
, **kwargs
):
4704 """PaintPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4705 return _windows_
.PrintPreview_PaintPage(*args
, **kwargs
)
4707 def DrawBlankPage(*args
, **kwargs
):
4708 """DrawBlankPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4709 return _windows_
.PrintPreview_DrawBlankPage(*args
, **kwargs
)
4711 def RenderPage(*args
, **kwargs
):
4712 """RenderPage(self, int pageNum) -> bool"""
4713 return _windows_
.PrintPreview_RenderPage(*args
, **kwargs
)
4715 def AdjustScrollbars(*args
, **kwargs
):
4716 """AdjustScrollbars(self, PreviewCanvas canvas)"""
4717 return _windows_
.PrintPreview_AdjustScrollbars(*args
, **kwargs
)
4719 def GetPrintDialogData(*args
, **kwargs
):
4720 """GetPrintDialogData(self) -> PrintDialogData"""
4721 return _windows_
.PrintPreview_GetPrintDialogData(*args
, **kwargs
)
4723 def SetZoom(*args
, **kwargs
):
4724 """SetZoom(self, int percent)"""
4725 return _windows_
.PrintPreview_SetZoom(*args
, **kwargs
)
4727 def GetZoom(*args
, **kwargs
):
4728 """GetZoom(self) -> int"""
4729 return _windows_
.PrintPreview_GetZoom(*args
, **kwargs
)
4731 def GetMaxPage(*args
, **kwargs
):
4732 """GetMaxPage(self) -> int"""
4733 return _windows_
.PrintPreview_GetMaxPage(*args
, **kwargs
)
4735 def GetMinPage(*args
, **kwargs
):
4736 """GetMinPage(self) -> int"""
4737 return _windows_
.PrintPreview_GetMinPage(*args
, **kwargs
)
4739 def Ok(*args
, **kwargs
):
4740 """Ok(self) -> bool"""
4741 return _windows_
.PrintPreview_Ok(*args
, **kwargs
)
4743 def SetOk(*args
, **kwargs
):
4744 """SetOk(self, bool ok)"""
4745 return _windows_
.PrintPreview_SetOk(*args
, **kwargs
)
4747 def Print(*args
, **kwargs
):
4748 """Print(self, bool interactive) -> bool"""
4749 return _windows_
.PrintPreview_Print(*args
, **kwargs
)
4751 def DetermineScaling(*args
, **kwargs
):
4752 """DetermineScaling(self)"""
4753 return _windows_
.PrintPreview_DetermineScaling(*args
, **kwargs
)
4755 def __nonzero__(self
): return self
.Ok()
4757 class PrintPreviewPtr(PrintPreview
):
4758 def __init__(self
, this
):
4760 if not hasattr(self
,"thisown"): self
.thisown
= 0
4761 self
.__class
__ = PrintPreview
4762 _windows_
.PrintPreview_swigregister(PrintPreviewPtr
)
4764 class PyPrintPreview(PrintPreview
):
4766 return "<%s.%s; proxy of C++ wxPyPrintPreview instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4767 def __init__(self
, *args
):
4769 __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PyPrintPreview
4770 __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PyPrintPreview
4772 newobj
= _windows_
.new_PyPrintPreview(*args
)
4773 self
.this
= newobj
.this
4776 self
._setCallbackInfo
(self
, PyPrintPreview
)
4778 def _setCallbackInfo(*args
, **kwargs
):
4779 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4780 return _windows_
.PyPrintPreview__setCallbackInfo(*args
, **kwargs
)
4782 def base_SetCurrentPage(*args
, **kwargs
):
4783 """base_SetCurrentPage(self, int pageNum) -> bool"""
4784 return _windows_
.PyPrintPreview_base_SetCurrentPage(*args
, **kwargs
)
4786 def base_PaintPage(*args
, **kwargs
):
4787 """base_PaintPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4788 return _windows_
.PyPrintPreview_base_PaintPage(*args
, **kwargs
)
4790 def base_DrawBlankPage(*args
, **kwargs
):
4791 """base_DrawBlankPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4792 return _windows_
.PyPrintPreview_base_DrawBlankPage(*args
, **kwargs
)
4794 def base_RenderPage(*args
, **kwargs
):
4795 """base_RenderPage(self, int pageNum) -> bool"""
4796 return _windows_
.PyPrintPreview_base_RenderPage(*args
, **kwargs
)
4798 def base_SetZoom(*args
, **kwargs
):
4799 """base_SetZoom(self, int percent)"""
4800 return _windows_
.PyPrintPreview_base_SetZoom(*args
, **kwargs
)
4802 def base_Print(*args
, **kwargs
):
4803 """base_Print(self, bool interactive) -> bool"""
4804 return _windows_
.PyPrintPreview_base_Print(*args
, **kwargs
)
4806 def base_DetermineScaling(*args
, **kwargs
):
4807 """base_DetermineScaling(self)"""
4808 return _windows_
.PyPrintPreview_base_DetermineScaling(*args
, **kwargs
)
4811 class PyPrintPreviewPtr(PyPrintPreview
):
4812 def __init__(self
, this
):
4814 if not hasattr(self
,"thisown"): self
.thisown
= 0
4815 self
.__class
__ = PyPrintPreview
4816 _windows_
.PyPrintPreview_swigregister(PyPrintPreviewPtr
)
4818 class PyPreviewFrame(PreviewFrame
):
4820 return "<%s.%s; proxy of C++ wxPyPreviewFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4821 def __init__(self
, *args
, **kwargs
):
4823 __init__(self, PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4824 Size size=DefaultSize,
4825 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PyPreviewFrame
4827 newobj
= _windows_
.new_PyPreviewFrame(*args
, **kwargs
)
4828 self
.this
= newobj
.this
4831 self
._setCallbackInfo
(self
, PyPreviewFrame
); self
._setOORInfo
(self
)
4833 def _setCallbackInfo(*args
, **kwargs
):
4834 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4835 return _windows_
.PyPreviewFrame__setCallbackInfo(*args
, **kwargs
)
4837 def SetPreviewCanvas(*args
, **kwargs
):
4838 """SetPreviewCanvas(self, PreviewCanvas canvas)"""
4839 return _windows_
.PyPreviewFrame_SetPreviewCanvas(*args
, **kwargs
)
4841 def SetControlBar(*args
, **kwargs
):
4842 """SetControlBar(self, PreviewControlBar bar)"""
4843 return _windows_
.PyPreviewFrame_SetControlBar(*args
, **kwargs
)
4845 def base_Initialize(*args
, **kwargs
):
4846 """base_Initialize(self)"""
4847 return _windows_
.PyPreviewFrame_base_Initialize(*args
, **kwargs
)
4849 def base_CreateCanvas(*args
, **kwargs
):
4850 """base_CreateCanvas(self)"""
4851 return _windows_
.PyPreviewFrame_base_CreateCanvas(*args
, **kwargs
)
4853 def base_CreateControlBar(*args
, **kwargs
):
4854 """base_CreateControlBar(self)"""
4855 return _windows_
.PyPreviewFrame_base_CreateControlBar(*args
, **kwargs
)
4858 class PyPreviewFramePtr(PyPreviewFrame
):
4859 def __init__(self
, this
):
4861 if not hasattr(self
,"thisown"): self
.thisown
= 0
4862 self
.__class
__ = PyPreviewFrame
4863 _windows_
.PyPreviewFrame_swigregister(PyPreviewFramePtr
)
4865 class PyPreviewControlBar(PreviewControlBar
):
4867 return "<%s.%s; proxy of C++ wxPyPreviewControlBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4868 def __init__(self
, *args
, **kwargs
):
4870 __init__(self, PrintPreview preview, long buttons, Window parent,
4871 Point pos=DefaultPosition, Size size=DefaultSize,
4872 long style=0, String name=PanelNameStr) -> PyPreviewControlBar
4874 newobj
= _windows_
.new_PyPreviewControlBar(*args
, **kwargs
)
4875 self
.this
= newobj
.this
4878 self
._setCallbackInfo
(self
, PyPreviewControlBar
); self
._setOORInfo
(self
)
4880 def _setCallbackInfo(*args
, **kwargs
):
4881 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4882 return _windows_
.PyPreviewControlBar__setCallbackInfo(*args
, **kwargs
)
4884 def SetPrintPreview(*args
, **kwargs
):
4885 """SetPrintPreview(self, PrintPreview preview)"""
4886 return _windows_
.PyPreviewControlBar_SetPrintPreview(*args
, **kwargs
)
4888 def base_CreateButtons(*args
, **kwargs
):
4889 """base_CreateButtons(self)"""
4890 return _windows_
.PyPreviewControlBar_base_CreateButtons(*args
, **kwargs
)
4892 def base_SetZoomControl(*args
, **kwargs
):
4893 """base_SetZoomControl(self, int zoom)"""
4894 return _windows_
.PyPreviewControlBar_base_SetZoomControl(*args
, **kwargs
)
4897 class PyPreviewControlBarPtr(PyPreviewControlBar
):
4898 def __init__(self
, this
):
4900 if not hasattr(self
,"thisown"): self
.thisown
= 0
4901 self
.__class
__ = PyPreviewControlBar
4902 _windows_
.PyPreviewControlBar_swigregister(PyPreviewControlBarPtr
)