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
40 data to the dialog via validators.
42 return _windows_
.Panel_InitDialog(*args
, **kwargs
)
44 def GetClassDefaultAttributes(*args
, **kwargs
):
46 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
48 Get the default attributes for this class. This is useful if
49 you want to use the same font or colour in your own control as
50 in a standard control -- which is a much better idea than hard
51 coding specific colours or fonts which might look completely out
52 of place on the users system, especially if it uses themes.
54 The variant parameter is only relevant under Mac currently and is
55 ignore under other platforms. Under Mac, it will change the size of the
56 returned font. See SetWindowVariant for more about this.
58 return _windows_
.Panel_GetClassDefaultAttributes(*args
, **kwargs
)
60 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
62 class PanelPtr(Panel
):
63 def __init__(self
, this
):
65 if not hasattr(self
,"thisown"): self
.thisown
= 0
66 self
.__class
__ = Panel
67 _windows_
.Panel_swigregister(PanelPtr
)
69 def PrePanel(*args
, **kwargs
):
70 """PrePanel() -> Panel"""
71 val
= _windows_
.new_PrePanel(*args
, **kwargs
)
75 def Panel_GetClassDefaultAttributes(*args
, **kwargs
):
77 Panel_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
79 Get the default attributes for this class. This is useful if
80 you want to use the same font or colour in your own control as
81 in a standard control -- which is a much better idea than hard
82 coding specific colours or fonts which might look completely out
83 of place on the users system, especially if it uses themes.
85 The variant parameter is only relevant under Mac currently and is
86 ignore under other platforms. Under Mac, it will change the size of the
87 returned font. See SetWindowVariant for more about this.
89 return _windows_
.Panel_GetClassDefaultAttributes(*args
, **kwargs
)
91 #---------------------------------------------------------------------------
93 class ScrolledWindow(Panel
):
95 return "<%s.%s; proxy of C++ wxScrolledWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
96 def __init__(self
, *args
, **kwargs
):
98 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
99 Size size=DefaultSize, long style=wxHSCROLL|wxVSCROLL,
100 String name=PanelNameStr) -> ScrolledWindow
102 newobj
= _windows_
.new_ScrolledWindow(*args
, **kwargs
)
103 self
.this
= newobj
.this
106 self
._setOORInfo
(self
)
108 def Create(*args
, **kwargs
):
110 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
111 Size size=DefaultSize, long style=wxHSCROLL|wxVSCROLL,
112 String name=PanelNameStr) -> bool
114 Create the GUI part of the Window for 2-phase creation mode.
116 return _windows_
.ScrolledWindow_Create(*args
, **kwargs
)
118 def SetScrollbars(*args
, **kwargs
):
120 SetScrollbars(self, int pixelsPerUnitX, int pixelsPerUnitY, int noUnitsX,
121 int noUnitsY, int xPos=0, int yPos=0, bool noRefresh=False)
123 return _windows_
.ScrolledWindow_SetScrollbars(*args
, **kwargs
)
125 def Scroll(*args
, **kwargs
):
126 """Scroll(self, int x, int y)"""
127 return _windows_
.ScrolledWindow_Scroll(*args
, **kwargs
)
129 def GetScrollPageSize(*args
, **kwargs
):
130 """GetScrollPageSize(self, int orient) -> int"""
131 return _windows_
.ScrolledWindow_GetScrollPageSize(*args
, **kwargs
)
133 def SetScrollPageSize(*args
, **kwargs
):
134 """SetScrollPageSize(self, int orient, int pageSize)"""
135 return _windows_
.ScrolledWindow_SetScrollPageSize(*args
, **kwargs
)
137 def SetScrollRate(*args
, **kwargs
):
138 """SetScrollRate(self, int xstep, int ystep)"""
139 return _windows_
.ScrolledWindow_SetScrollRate(*args
, **kwargs
)
141 def GetScrollPixelsPerUnit(*args
, **kwargs
):
143 GetScrollPixelsPerUnit() -> (xUnit, yUnit)
145 Get the size of one logical unit in physical units.
147 return _windows_
.ScrolledWindow_GetScrollPixelsPerUnit(*args
, **kwargs
)
149 def EnableScrolling(*args
, **kwargs
):
150 """EnableScrolling(self, bool x_scrolling, bool y_scrolling)"""
151 return _windows_
.ScrolledWindow_EnableScrolling(*args
, **kwargs
)
153 def GetViewStart(*args
, **kwargs
):
155 GetViewStart() -> (x,y)
159 return _windows_
.ScrolledWindow_GetViewStart(*args
, **kwargs
)
161 def SetScale(*args
, **kwargs
):
162 """SetScale(self, double xs, double ys)"""
163 return _windows_
.ScrolledWindow_SetScale(*args
, **kwargs
)
165 def GetScaleX(*args
, **kwargs
):
166 """GetScaleX(self) -> double"""
167 return _windows_
.ScrolledWindow_GetScaleX(*args
, **kwargs
)
169 def GetScaleY(*args
, **kwargs
):
170 """GetScaleY(self) -> double"""
171 return _windows_
.ScrolledWindow_GetScaleY(*args
, **kwargs
)
173 def CalcScrolledPosition(*args
):
175 CalcScrolledPosition(self, Point pt) -> Point
176 CalcScrolledPosition(int x, int y) -> (sx, sy)
178 Translate between scrolled and unscrolled coordinates.
180 return _windows_
.ScrolledWindow_CalcScrolledPosition(*args
)
182 def CalcUnscrolledPosition(*args
):
184 CalcUnscrolledPosition(self, Point pt) -> Point
185 CalcUnscrolledPosition(int x, int y) -> (ux, uy)
187 Translate between scrolled and unscrolled coordinates.
189 return _windows_
.ScrolledWindow_CalcUnscrolledPosition(*args
)
191 def AdjustScrollbars(*args
, **kwargs
):
192 """AdjustScrollbars(self)"""
193 return _windows_
.ScrolledWindow_AdjustScrollbars(*args
, **kwargs
)
195 def CalcScrollInc(*args
, **kwargs
):
196 """CalcScrollInc(self, ScrollWinEvent event) -> int"""
197 return _windows_
.ScrolledWindow_CalcScrollInc(*args
, **kwargs
)
199 def SetTargetWindow(*args
, **kwargs
):
200 """SetTargetWindow(self, Window target)"""
201 return _windows_
.ScrolledWindow_SetTargetWindow(*args
, **kwargs
)
203 def GetTargetWindow(*args
, **kwargs
):
204 """GetTargetWindow(self) -> Window"""
205 return _windows_
.ScrolledWindow_GetTargetWindow(*args
, **kwargs
)
207 def SetTargetRect(*args
, **kwargs
):
208 """SetTargetRect(self, Rect rect)"""
209 return _windows_
.ScrolledWindow_SetTargetRect(*args
, **kwargs
)
211 def GetTargetRect(*args
, **kwargs
):
212 """GetTargetRect(self) -> Rect"""
213 return _windows_
.ScrolledWindow_GetTargetRect(*args
, **kwargs
)
215 def GetClassDefaultAttributes(*args
, **kwargs
):
217 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
219 Get the default attributes for this class. This is useful if
220 you want to use the same font or colour in your own control as
221 in a standard control -- which is a much better idea than hard
222 coding specific colours or fonts which might look completely out
223 of place on the users system, especially if it uses themes.
225 The variant parameter is only relevant under Mac currently and is
226 ignore under other platforms. Under Mac, it will change the size of the
227 returned font. See SetWindowVariant for more about this.
229 return _windows_
.ScrolledWindow_GetClassDefaultAttributes(*args
, **kwargs
)
231 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
233 class ScrolledWindowPtr(ScrolledWindow
):
234 def __init__(self
, this
):
236 if not hasattr(self
,"thisown"): self
.thisown
= 0
237 self
.__class
__ = ScrolledWindow
238 _windows_
.ScrolledWindow_swigregister(ScrolledWindowPtr
)
240 def PreScrolledWindow(*args
, **kwargs
):
241 """PreScrolledWindow() -> ScrolledWindow"""
242 val
= _windows_
.new_PreScrolledWindow(*args
, **kwargs
)
246 def ScrolledWindow_GetClassDefaultAttributes(*args
, **kwargs
):
248 ScrolledWindow_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
250 Get the default attributes for this class. This is useful if
251 you want to use the same font or colour in your own control as
252 in a standard control -- which is a much better idea than hard
253 coding specific colours or fonts which might look completely out
254 of place on the users system, especially if it uses themes.
256 The variant parameter is only relevant under Mac currently and is
257 ignore under other platforms. Under Mac, it will change the size of the
258 returned font. See SetWindowVariant for more about this.
260 return _windows_
.ScrolledWindow_GetClassDefaultAttributes(*args
, **kwargs
)
262 #---------------------------------------------------------------------------
264 STAY_ON_TOP
= _windows_
.STAY_ON_TOP
265 ICONIZE
= _windows_
.ICONIZE
266 MINIMIZE
= _windows_
.MINIMIZE
267 MAXIMIZE
= _windows_
.MAXIMIZE
268 CLOSE_BOX
= _windows_
.CLOSE_BOX
269 THICK_FRAME
= _windows_
.THICK_FRAME
270 SYSTEM_MENU
= _windows_
.SYSTEM_MENU
271 MINIMIZE_BOX
= _windows_
.MINIMIZE_BOX
272 MAXIMIZE_BOX
= _windows_
.MAXIMIZE_BOX
273 TINY_CAPTION_HORIZ
= _windows_
.TINY_CAPTION_HORIZ
274 TINY_CAPTION_VERT
= _windows_
.TINY_CAPTION_VERT
275 RESIZE_BOX
= _windows_
.RESIZE_BOX
276 RESIZE_BORDER
= _windows_
.RESIZE_BORDER
277 DIALOG_NO_PARENT
= _windows_
.DIALOG_NO_PARENT
278 DEFAULT_FRAME_STYLE
= _windows_
.DEFAULT_FRAME_STYLE
279 DEFAULT_DIALOG_STYLE
= _windows_
.DEFAULT_DIALOG_STYLE
280 FRAME_TOOL_WINDOW
= _windows_
.FRAME_TOOL_WINDOW
281 FRAME_FLOAT_ON_PARENT
= _windows_
.FRAME_FLOAT_ON_PARENT
282 FRAME_NO_WINDOW_MENU
= _windows_
.FRAME_NO_WINDOW_MENU
283 FRAME_NO_TASKBAR
= _windows_
.FRAME_NO_TASKBAR
284 FRAME_SHAPED
= _windows_
.FRAME_SHAPED
285 DIALOG_MODAL
= _windows_
.DIALOG_MODAL
286 DIALOG_MODELESS
= _windows_
.DIALOG_MODELESS
287 USER_COLOURS
= _windows_
.USER_COLOURS
288 NO_3D
= _windows_
.NO_3D
289 FULLSCREEN_NOMENUBAR
= _windows_
.FULLSCREEN_NOMENUBAR
290 FULLSCREEN_NOTOOLBAR
= _windows_
.FULLSCREEN_NOTOOLBAR
291 FULLSCREEN_NOSTATUSBAR
= _windows_
.FULLSCREEN_NOSTATUSBAR
292 FULLSCREEN_NOBORDER
= _windows_
.FULLSCREEN_NOBORDER
293 FULLSCREEN_NOCAPTION
= _windows_
.FULLSCREEN_NOCAPTION
294 FULLSCREEN_ALL
= _windows_
.FULLSCREEN_ALL
295 TOPLEVEL_EX_DIALOG
= _windows_
.TOPLEVEL_EX_DIALOG
296 class TopLevelWindow(_core
.Window
):
297 def __init__(self
): raise RuntimeError, "No constructor defined"
299 return "<%s.%s; proxy of C++ wxTopLevelWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
300 def Maximize(*args
, **kwargs
):
301 """Maximize(self, bool maximize=True)"""
302 return _windows_
.TopLevelWindow_Maximize(*args
, **kwargs
)
304 def Restore(*args
, **kwargs
):
306 return _windows_
.TopLevelWindow_Restore(*args
, **kwargs
)
308 def Iconize(*args
, **kwargs
):
309 """Iconize(self, bool iconize=True)"""
310 return _windows_
.TopLevelWindow_Iconize(*args
, **kwargs
)
312 def IsMaximized(*args
, **kwargs
):
313 """IsMaximized(self) -> bool"""
314 return _windows_
.TopLevelWindow_IsMaximized(*args
, **kwargs
)
316 def IsIconized(*args
, **kwargs
):
317 """IsIconized(self) -> bool"""
318 return _windows_
.TopLevelWindow_IsIconized(*args
, **kwargs
)
320 def GetIcon(*args
, **kwargs
):
321 """GetIcon(self) -> Icon"""
322 return _windows_
.TopLevelWindow_GetIcon(*args
, **kwargs
)
324 def SetIcon(*args
, **kwargs
):
325 """SetIcon(self, Icon icon)"""
326 return _windows_
.TopLevelWindow_SetIcon(*args
, **kwargs
)
328 def SetIcons(*args
, **kwargs
):
329 """SetIcons(self, wxIconBundle icons)"""
330 return _windows_
.TopLevelWindow_SetIcons(*args
, **kwargs
)
332 def ShowFullScreen(*args
, **kwargs
):
333 """ShowFullScreen(self, bool show, long style=FULLSCREEN_ALL) -> bool"""
334 return _windows_
.TopLevelWindow_ShowFullScreen(*args
, **kwargs
)
336 def IsFullScreen(*args
, **kwargs
):
337 """IsFullScreen(self) -> bool"""
338 return _windows_
.TopLevelWindow_IsFullScreen(*args
, **kwargs
)
340 def SetTitle(*args
, **kwargs
):
342 SetTitle(self, String title)
344 Sets the window's title. Applicable only to frames and dialogs.
346 return _windows_
.TopLevelWindow_SetTitle(*args
, **kwargs
)
348 def GetTitle(*args
, **kwargs
):
350 GetTitle(self) -> String
352 Gets the window's title. Applicable only to frames and dialogs.
354 return _windows_
.TopLevelWindow_GetTitle(*args
, **kwargs
)
356 def SetShape(*args
, **kwargs
):
357 """SetShape(self, Region region) -> bool"""
358 return _windows_
.TopLevelWindow_SetShape(*args
, **kwargs
)
360 def MacSetMetalAppearance(*args
, **kwargs
):
361 """MacSetMetalAppearance(self, bool on)"""
362 return _windows_
.TopLevelWindow_MacSetMetalAppearance(*args
, **kwargs
)
364 def MacGetMetalAppearance(*args
, **kwargs
):
365 """MacGetMetalAppearance(self) -> bool"""
366 return _windows_
.TopLevelWindow_MacGetMetalAppearance(*args
, **kwargs
)
369 class TopLevelWindowPtr(TopLevelWindow
):
370 def __init__(self
, this
):
372 if not hasattr(self
,"thisown"): self
.thisown
= 0
373 self
.__class
__ = TopLevelWindow
374 _windows_
.TopLevelWindow_swigregister(TopLevelWindowPtr
)
375 cvar
= _windows_
.cvar
376 FrameNameStr
= cvar
.FrameNameStr
377 DialogNameStr
= cvar
.DialogNameStr
378 StatusLineNameStr
= cvar
.StatusLineNameStr
379 ToolBarNameStr
= cvar
.ToolBarNameStr
381 #---------------------------------------------------------------------------
383 class Frame(TopLevelWindow
):
385 return "<%s.%s; proxy of C++ wxFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
386 def __init__(self
, *args
, **kwargs
):
388 __init__(self, Window parent, int id, String title, Point pos=DefaultPosition,
389 Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE,
390 String name=FrameNameStr) -> Frame
392 newobj
= _windows_
.new_Frame(*args
, **kwargs
)
393 self
.this
= newobj
.this
396 self
._setOORInfo
(self
)
398 def Create(*args
, **kwargs
):
400 Create(self, Window parent, int id, String title, Point pos=DefaultPosition,
401 Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE,
402 String name=FrameNameStr) -> bool
404 return _windows_
.Frame_Create(*args
, **kwargs
)
406 def GetClientAreaOrigin(*args
, **kwargs
):
408 GetClientAreaOrigin(self) -> Point
410 Get the origin of the client area of the window relative to the
411 window's top left corner (the client area may be shifted because of
412 the borders, scrollbars, other decorations...)
414 return _windows_
.Frame_GetClientAreaOrigin(*args
, **kwargs
)
416 def SendSizeEvent(*args
, **kwargs
):
417 """SendSizeEvent(self)"""
418 return _windows_
.Frame_SendSizeEvent(*args
, **kwargs
)
420 def SetMenuBar(*args
, **kwargs
):
421 """SetMenuBar(self, MenuBar menubar)"""
422 return _windows_
.Frame_SetMenuBar(*args
, **kwargs
)
424 def GetMenuBar(*args
, **kwargs
):
425 """GetMenuBar(self) -> MenuBar"""
426 return _windows_
.Frame_GetMenuBar(*args
, **kwargs
)
428 def ProcessCommand(*args
, **kwargs
):
429 """ProcessCommand(self, int winid) -> bool"""
430 return _windows_
.Frame_ProcessCommand(*args
, **kwargs
)
432 Command
= ProcessCommand
433 def CreateStatusBar(*args
, **kwargs
):
435 CreateStatusBar(self, int number=1, long style=ST_SIZEGRIP, int winid=0,
436 String name=StatusLineNameStr) -> StatusBar
438 return _windows_
.Frame_CreateStatusBar(*args
, **kwargs
)
440 def GetStatusBar(*args
, **kwargs
):
441 """GetStatusBar(self) -> StatusBar"""
442 return _windows_
.Frame_GetStatusBar(*args
, **kwargs
)
444 def SetStatusBar(*args
, **kwargs
):
445 """SetStatusBar(self, StatusBar statBar)"""
446 return _windows_
.Frame_SetStatusBar(*args
, **kwargs
)
448 def SetStatusText(*args
, **kwargs
):
449 """SetStatusText(self, String text, int number=0)"""
450 return _windows_
.Frame_SetStatusText(*args
, **kwargs
)
452 def SetStatusWidths(*args
, **kwargs
):
453 """SetStatusWidths(self, int widths, int widths_field)"""
454 return _windows_
.Frame_SetStatusWidths(*args
, **kwargs
)
456 def PushStatusText(*args
, **kwargs
):
457 """PushStatusText(self, String text, int number=0)"""
458 return _windows_
.Frame_PushStatusText(*args
, **kwargs
)
460 def PopStatusText(*args
, **kwargs
):
461 """PopStatusText(self, int number=0)"""
462 return _windows_
.Frame_PopStatusText(*args
, **kwargs
)
464 def SetStatusBarPane(*args
, **kwargs
):
465 """SetStatusBarPane(self, int n)"""
466 return _windows_
.Frame_SetStatusBarPane(*args
, **kwargs
)
468 def GetStatusBarPane(*args
, **kwargs
):
469 """GetStatusBarPane(self) -> int"""
470 return _windows_
.Frame_GetStatusBarPane(*args
, **kwargs
)
472 def CreateToolBar(*args
, **kwargs
):
473 """CreateToolBar(self, long style=-1, int winid=-1, String name=ToolBarNameStr) -> wxToolBar"""
474 return _windows_
.Frame_CreateToolBar(*args
, **kwargs
)
476 def GetToolBar(*args
, **kwargs
):
477 """GetToolBar(self) -> wxToolBar"""
478 return _windows_
.Frame_GetToolBar(*args
, **kwargs
)
480 def SetToolBar(*args
, **kwargs
):
481 """SetToolBar(self, wxToolBar toolbar)"""
482 return _windows_
.Frame_SetToolBar(*args
, **kwargs
)
484 def DoGiveHelp(*args
, **kwargs
):
485 """DoGiveHelp(self, String text, bool show)"""
486 return _windows_
.Frame_DoGiveHelp(*args
, **kwargs
)
488 def DoMenuUpdates(*args
, **kwargs
):
489 """DoMenuUpdates(self, Menu menu=None)"""
490 return _windows_
.Frame_DoMenuUpdates(*args
, **kwargs
)
492 def GetClassDefaultAttributes(*args
, **kwargs
):
494 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
496 Get the default attributes for this class. This is useful if
497 you want to use the same font or colour in your own control as
498 in a standard control -- which is a much better idea than hard
499 coding specific colours or fonts which might look completely out
500 of place on the users system, especially if it uses themes.
502 The variant parameter is only relevant under Mac currently and is
503 ignore under other platforms. Under Mac, it will change the size of the
504 returned font. See SetWindowVariant for more about this.
506 return _windows_
.Frame_GetClassDefaultAttributes(*args
, **kwargs
)
508 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
510 class FramePtr(Frame
):
511 def __init__(self
, this
):
513 if not hasattr(self
,"thisown"): self
.thisown
= 0
514 self
.__class
__ = Frame
515 _windows_
.Frame_swigregister(FramePtr
)
517 def PreFrame(*args
, **kwargs
):
518 """PreFrame() -> Frame"""
519 val
= _windows_
.new_PreFrame(*args
, **kwargs
)
523 def Frame_GetClassDefaultAttributes(*args
, **kwargs
):
525 Frame_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
527 Get the default attributes for this class. This is useful if
528 you want to use the same font or colour in your own control as
529 in a standard control -- which is a much better idea than hard
530 coding specific colours or fonts which might look completely out
531 of place on the users system, especially if it uses themes.
533 The variant parameter is only relevant under Mac currently and is
534 ignore under other platforms. Under Mac, it will change the size of the
535 returned font. See SetWindowVariant for more about this.
537 return _windows_
.Frame_GetClassDefaultAttributes(*args
, **kwargs
)
539 #---------------------------------------------------------------------------
541 class Dialog(TopLevelWindow
):
543 return "<%s.%s; proxy of C++ wxDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
544 def __init__(self
, *args
, **kwargs
):
546 __init__(self, Window parent, int id, String title, Point pos=DefaultPosition,
547 Size size=DefaultSize, long style=DEFAULT_DIALOG_STYLE,
548 String name=DialogNameStr) -> Dialog
550 newobj
= _windows_
.new_Dialog(*args
, **kwargs
)
551 self
.this
= newobj
.this
554 self
._setOORInfo
(self
)
556 def Create(*args
, **kwargs
):
558 Create(self, Window parent, int id, String title, Point pos=DefaultPosition,
559 Size size=DefaultSize, long style=DEFAULT_DIALOG_STYLE,
560 String name=DialogNameStr) -> bool
562 return _windows_
.Dialog_Create(*args
, **kwargs
)
564 def SetReturnCode(*args
, **kwargs
):
565 """SetReturnCode(self, int returnCode)"""
566 return _windows_
.Dialog_SetReturnCode(*args
, **kwargs
)
568 def GetReturnCode(*args
, **kwargs
):
569 """GetReturnCode(self) -> int"""
570 return _windows_
.Dialog_GetReturnCode(*args
, **kwargs
)
572 def CreateTextSizer(*args
, **kwargs
):
573 """CreateTextSizer(self, String message) -> Sizer"""
574 return _windows_
.Dialog_CreateTextSizer(*args
, **kwargs
)
576 def CreateButtonSizer(*args
, **kwargs
):
577 """CreateButtonSizer(self, long flags) -> Sizer"""
578 return _windows_
.Dialog_CreateButtonSizer(*args
, **kwargs
)
580 def IsModal(*args
, **kwargs
):
581 """IsModal(self) -> bool"""
582 return _windows_
.Dialog_IsModal(*args
, **kwargs
)
584 def ShowModal(*args
, **kwargs
):
585 """ShowModal(self) -> int"""
586 return _windows_
.Dialog_ShowModal(*args
, **kwargs
)
588 def EndModal(*args
, **kwargs
):
589 """EndModal(self, int retCode)"""
590 return _windows_
.Dialog_EndModal(*args
, **kwargs
)
592 def GetClassDefaultAttributes(*args
, **kwargs
):
594 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
596 Get the default attributes for this class. This is useful if
597 you want to use the same font or colour in your own control as
598 in a standard control -- which is a much better idea than hard
599 coding specific colours or fonts which might look completely out
600 of place on the users system, especially if it uses themes.
602 The variant parameter is only relevant under Mac currently and is
603 ignore under other platforms. Under Mac, it will change the size of the
604 returned font. See SetWindowVariant for more about this.
606 return _windows_
.Dialog_GetClassDefaultAttributes(*args
, **kwargs
)
608 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
610 class DialogPtr(Dialog
):
611 def __init__(self
, this
):
613 if not hasattr(self
,"thisown"): self
.thisown
= 0
614 self
.__class
__ = Dialog
615 _windows_
.Dialog_swigregister(DialogPtr
)
617 def PreDialog(*args
, **kwargs
):
618 """PreDialog() -> Dialog"""
619 val
= _windows_
.new_PreDialog(*args
, **kwargs
)
623 def Dialog_GetClassDefaultAttributes(*args
, **kwargs
):
625 Dialog_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
627 Get the default attributes for this class. This is useful if
628 you want to use the same font or colour in your own control as
629 in a standard control -- which is a much better idea than hard
630 coding specific colours or fonts which might look completely out
631 of place on the users system, especially if it uses themes.
633 The variant parameter is only relevant under Mac currently and is
634 ignore under other platforms. Under Mac, it will change the size of the
635 returned font. See SetWindowVariant for more about this.
637 return _windows_
.Dialog_GetClassDefaultAttributes(*args
, **kwargs
)
639 #---------------------------------------------------------------------------
641 class MiniFrame(Frame
):
643 return "<%s.%s; proxy of C++ wxMiniFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
644 def __init__(self
, *args
, **kwargs
):
646 __init__(self, Window parent, int id, String title, Point pos=DefaultPosition,
647 Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE,
648 String name=FrameNameStr) -> MiniFrame
650 newobj
= _windows_
.new_MiniFrame(*args
, **kwargs
)
651 self
.this
= newobj
.this
654 self
._setOORInfo
(self
)
656 def Create(*args
, **kwargs
):
658 Create(self, Window parent, int id, String title, Point pos=DefaultPosition,
659 Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE,
660 String name=FrameNameStr) -> bool
662 return _windows_
.MiniFrame_Create(*args
, **kwargs
)
665 class MiniFramePtr(MiniFrame
):
666 def __init__(self
, this
):
668 if not hasattr(self
,"thisown"): self
.thisown
= 0
669 self
.__class
__ = MiniFrame
670 _windows_
.MiniFrame_swigregister(MiniFramePtr
)
672 def PreMiniFrame(*args
, **kwargs
):
673 """PreMiniFrame() -> MiniFrame"""
674 val
= _windows_
.new_PreMiniFrame(*args
, **kwargs
)
678 #---------------------------------------------------------------------------
680 SPLASH_CENTRE_ON_PARENT
= _windows_
.SPLASH_CENTRE_ON_PARENT
681 SPLASH_CENTRE_ON_SCREEN
= _windows_
.SPLASH_CENTRE_ON_SCREEN
682 SPLASH_NO_CENTRE
= _windows_
.SPLASH_NO_CENTRE
683 SPLASH_TIMEOUT
= _windows_
.SPLASH_TIMEOUT
684 SPLASH_NO_TIMEOUT
= _windows_
.SPLASH_NO_TIMEOUT
685 class SplashScreenWindow(_core
.Window
):
687 return "<%s.%s; proxy of C++ wxSplashScreenWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
688 def __init__(self
, *args
, **kwargs
):
690 __init__(self, Bitmap bitmap, Window parent, int id, Point pos=DefaultPosition,
691 Size size=DefaultSize, long style=NO_BORDER) -> SplashScreenWindow
693 newobj
= _windows_
.new_SplashScreenWindow(*args
, **kwargs
)
694 self
.this
= newobj
.this
697 self
._setOORInfo
(self
)
699 def SetBitmap(*args
, **kwargs
):
700 """SetBitmap(self, Bitmap bitmap)"""
701 return _windows_
.SplashScreenWindow_SetBitmap(*args
, **kwargs
)
703 def GetBitmap(*args
, **kwargs
):
704 """GetBitmap(self) -> Bitmap"""
705 return _windows_
.SplashScreenWindow_GetBitmap(*args
, **kwargs
)
708 class SplashScreenWindowPtr(SplashScreenWindow
):
709 def __init__(self
, this
):
711 if not hasattr(self
,"thisown"): self
.thisown
= 0
712 self
.__class
__ = SplashScreenWindow
713 _windows_
.SplashScreenWindow_swigregister(SplashScreenWindowPtr
)
715 class SplashScreen(Frame
):
717 return "<%s.%s; proxy of C++ wxSplashScreen instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
718 def __init__(self
, *args
, **kwargs
):
720 __init__(self, Bitmap bitmap, long splashStyle, int milliseconds,
721 Window parent, int id, Point pos=DefaultPosition,
722 Size size=DefaultSize, long style=wxSIMPLE_BORDER|wxFRAME_NO_TASKBAR|wxSTAY_ON_TOP) -> SplashScreen
724 newobj
= _windows_
.new_SplashScreen(*args
, **kwargs
)
725 self
.this
= newobj
.this
728 self
._setOORInfo
(self
)
730 def GetSplashStyle(*args
, **kwargs
):
731 """GetSplashStyle(self) -> long"""
732 return _windows_
.SplashScreen_GetSplashStyle(*args
, **kwargs
)
734 def GetSplashWindow(*args
, **kwargs
):
735 """GetSplashWindow(self) -> SplashScreenWindow"""
736 return _windows_
.SplashScreen_GetSplashWindow(*args
, **kwargs
)
738 def GetTimeout(*args
, **kwargs
):
739 """GetTimeout(self) -> int"""
740 return _windows_
.SplashScreen_GetTimeout(*args
, **kwargs
)
743 class SplashScreenPtr(SplashScreen
):
744 def __init__(self
, this
):
746 if not hasattr(self
,"thisown"): self
.thisown
= 0
747 self
.__class
__ = SplashScreen
748 _windows_
.SplashScreen_swigregister(SplashScreenPtr
)
750 #---------------------------------------------------------------------------
752 class StatusBar(_core
.Window
):
754 return "<%s.%s; proxy of C++ wxStatusBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
755 def __init__(self
, *args
, **kwargs
):
756 """__init__(self, Window parent, int id=-1, long style=ST_SIZEGRIP, String name=StatusLineNameStr) -> StatusBar"""
757 newobj
= _windows_
.new_StatusBar(*args
, **kwargs
)
758 self
.this
= newobj
.this
761 self
._setOORInfo
(self
)
763 def Create(*args
, **kwargs
):
764 """Create(self, Window parent, int id, long style=ST_SIZEGRIP, String name=StatusLineNameStr) -> bool"""
765 return _windows_
.StatusBar_Create(*args
, **kwargs
)
767 def SetFieldsCount(*args
, **kwargs
):
768 """SetFieldsCount(self, int number=1)"""
769 return _windows_
.StatusBar_SetFieldsCount(*args
, **kwargs
)
771 def GetFieldsCount(*args
, **kwargs
):
772 """GetFieldsCount(self) -> int"""
773 return _windows_
.StatusBar_GetFieldsCount(*args
, **kwargs
)
775 def SetStatusText(*args
, **kwargs
):
776 """SetStatusText(self, String text, int number=0)"""
777 return _windows_
.StatusBar_SetStatusText(*args
, **kwargs
)
779 def GetStatusText(*args
, **kwargs
):
780 """GetStatusText(self, int number=0) -> String"""
781 return _windows_
.StatusBar_GetStatusText(*args
, **kwargs
)
783 def PushStatusText(*args
, **kwargs
):
784 """PushStatusText(self, String text, int number=0)"""
785 return _windows_
.StatusBar_PushStatusText(*args
, **kwargs
)
787 def PopStatusText(*args
, **kwargs
):
788 """PopStatusText(self, int number=0)"""
789 return _windows_
.StatusBar_PopStatusText(*args
, **kwargs
)
791 def SetStatusWidths(*args
, **kwargs
):
792 """SetStatusWidths(self, int widths, int widths_field)"""
793 return _windows_
.StatusBar_SetStatusWidths(*args
, **kwargs
)
795 def GetFieldRect(*args
, **kwargs
):
796 """GetFieldRect(self, int i) -> Rect"""
797 return _windows_
.StatusBar_GetFieldRect(*args
, **kwargs
)
799 def SetMinHeight(*args
, **kwargs
):
800 """SetMinHeight(self, int height)"""
801 return _windows_
.StatusBar_SetMinHeight(*args
, **kwargs
)
803 def GetBorderX(*args
, **kwargs
):
804 """GetBorderX(self) -> int"""
805 return _windows_
.StatusBar_GetBorderX(*args
, **kwargs
)
807 def GetBorderY(*args
, **kwargs
):
808 """GetBorderY(self) -> int"""
809 return _windows_
.StatusBar_GetBorderY(*args
, **kwargs
)
811 def GetClassDefaultAttributes(*args
, **kwargs
):
813 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
815 Get the default attributes for this class. This is useful if
816 you want to use the same font or colour in your own control as
817 in a standard control -- which is a much better idea than hard
818 coding specific colours or fonts which might look completely out
819 of place on the users system, especially if it uses themes.
821 The variant parameter is only relevant under Mac currently and is
822 ignore under other platforms. Under Mac, it will change the size of the
823 returned font. See SetWindowVariant for more about this.
825 return _windows_
.StatusBar_GetClassDefaultAttributes(*args
, **kwargs
)
827 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
829 class StatusBarPtr(StatusBar
):
830 def __init__(self
, this
):
832 if not hasattr(self
,"thisown"): self
.thisown
= 0
833 self
.__class
__ = StatusBar
834 _windows_
.StatusBar_swigregister(StatusBarPtr
)
836 def PreStatusBar(*args
, **kwargs
):
837 """PreStatusBar() -> StatusBar"""
838 val
= _windows_
.new_PreStatusBar(*args
, **kwargs
)
842 def StatusBar_GetClassDefaultAttributes(*args
, **kwargs
):
844 StatusBar_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
846 Get the default attributes for this class. This is useful if
847 you want to use the same font or colour in your own control as
848 in a standard control -- which is a much better idea than hard
849 coding specific colours or fonts which might look completely out
850 of place on the users system, especially if it uses themes.
852 The variant parameter is only relevant under Mac currently and is
853 ignore under other platforms. Under Mac, it will change the size of the
854 returned font. See SetWindowVariant for more about this.
856 return _windows_
.StatusBar_GetClassDefaultAttributes(*args
, **kwargs
)
858 #---------------------------------------------------------------------------
860 SP_NOBORDER
= _windows_
.SP_NOBORDER
861 SP_NOSASH
= _windows_
.SP_NOSASH
862 SP_PERMIT_UNSPLIT
= _windows_
.SP_PERMIT_UNSPLIT
863 SP_LIVE_UPDATE
= _windows_
.SP_LIVE_UPDATE
864 SP_3DSASH
= _windows_
.SP_3DSASH
865 SP_3DBORDER
= _windows_
.SP_3DBORDER
866 SP_NO_XP_THEME
= _windows_
.SP_NO_XP_THEME
867 SP_BORDER
= _windows_
.SP_BORDER
868 SP_3D
= _windows_
.SP_3D
869 SPLIT_HORIZONTAL
= _windows_
.SPLIT_HORIZONTAL
870 SPLIT_VERTICAL
= _windows_
.SPLIT_VERTICAL
871 SPLIT_DRAG_NONE
= _windows_
.SPLIT_DRAG_NONE
872 SPLIT_DRAG_DRAGGING
= _windows_
.SPLIT_DRAG_DRAGGING
873 SPLIT_DRAG_LEFT_DOWN
= _windows_
.SPLIT_DRAG_LEFT_DOWN
874 class SplitterWindow(_core
.Window
):
876 wx.SplitterWindow manages up to two subwindows or panes,
877 with an optional vertical or horizontal split which can be
878 used with the mouse or programmatically.
882 return "<%s.%s; proxy of C++ wxSplitterWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
883 def __init__(self
, *args
, **kwargs
):
885 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
886 Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> SplitterWindow
888 Constructor. Creates and shows a SplitterWindow.
890 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point'];del kwargs
['point']
891 newobj
= _windows_
.new_SplitterWindow(*args
, **kwargs
)
892 self
.this
= newobj
.this
895 self
._setOORInfo
(self
)
897 def Create(*args
, **kwargs
):
899 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
900 Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> bool
902 Create the GUI part of the SplitterWindow for the 2-phase create.
904 return _windows_
.SplitterWindow_Create(*args
, **kwargs
)
906 def GetWindow1(*args
, **kwargs
):
908 GetWindow1(self) -> Window
910 Gets the only or left/top pane.
912 return _windows_
.SplitterWindow_GetWindow1(*args
, **kwargs
)
914 def GetWindow2(*args
, **kwargs
):
916 GetWindow2(self) -> Window
918 Gets the right/bottom pane.
920 return _windows_
.SplitterWindow_GetWindow2(*args
, **kwargs
)
922 def SetSplitMode(*args
, **kwargs
):
924 SetSplitMode(self, int mode)
926 Sets the split mode. The mode can be wx.SPLIT_VERTICAL or
927 wx.SPLIT_HORIZONTAL. This only sets the internal variable;
928 does not update the display.
930 return _windows_
.SplitterWindow_SetSplitMode(*args
, **kwargs
)
932 def GetSplitMode(*args
, **kwargs
):
934 GetSplitMode(self) -> int
938 return _windows_
.SplitterWindow_GetSplitMode(*args
, **kwargs
)
940 def Initialize(*args
, **kwargs
):
942 Initialize(self, Window window)
944 Initializes the splitter window to have one pane. This
945 should be called if you wish to initially view only a single
946 pane in the splitter window.
948 return _windows_
.SplitterWindow_Initialize(*args
, **kwargs
)
950 def SplitVertically(*args
, **kwargs
):
952 SplitVertically(self, Window window1, Window window2, int sashPosition=0) -> bool
954 Initializes the left and right panes of the splitter window.
956 window1 The left pane.
957 window2 The right pane.
958 sashPosition The initial position of the sash. If this
959 value is positive, it specifies the size
960 of the left pane. If it is negative, it is
961 absolute value gives the size of the right
962 pane. Finally, specify 0 (default) to
963 choose the default position (half of the
966 Returns True if successful, False otherwise (the window was
969 SplitVertically should be called if you wish to initially
970 view two panes. It can also be called at any subsequent
971 time, but the application should check that the window is
972 not currently split using IsSplit.
974 return _windows_
.SplitterWindow_SplitVertically(*args
, **kwargs
)
976 def SplitHorizontally(*args
, **kwargs
):
978 SplitHorizontally(self, Window window1, Window window2, int sashPosition=0) -> bool
980 Initializes the top and bottom panes of the splitter window.
982 window1 The top pane.
983 window2 The bottom pane.
984 sashPosition The initial position of the sash. If this
985 value is positive, it specifies the size
986 of the upper pane. If it is negative, it
987 is absolute value gives the size of the
988 lower pane. Finally, specify 0 (default)
989 to choose the default position (half of
990 the total window height).
992 Returns True if successful, False otherwise (the window was
995 SplitHorizontally should be called if you wish to initially
996 view two panes. It can also be called at any subsequent
997 time, but the application should check that the window is
998 not currently split using IsSplit.
1000 return _windows_
.SplitterWindow_SplitHorizontally(*args
, **kwargs
)
1002 def Unsplit(*args
, **kwargs
):
1004 Unsplit(self, Window toRemove=None) -> bool
1006 Unsplits the window. Pass the pane to remove, or None to
1007 remove the right or bottom pane. Returns True if
1008 successful, False otherwise (the window was not split).
1010 This function will not actually delete the pane being
1011 removed; it sends EVT_SPLITTER_UNSPLIT which can be handled
1012 for the desired behaviour. By default, the pane being
1013 removed is only hidden.
1015 return _windows_
.SplitterWindow_Unsplit(*args
, **kwargs
)
1017 def ReplaceWindow(*args
, **kwargs
):
1019 ReplaceWindow(self, Window winOld, Window winNew) -> bool
1021 This function replaces one of the windows managed by the
1022 SplitterWindow with another one. It is in general better to
1023 use it instead of calling Unsplit() and then resplitting the
1024 window back because it will provoke much less flicker. It is
1025 valid to call this function whether the splitter has two
1026 windows or only one.
1028 Both parameters should be non-None and winOld must specify
1029 one of the windows managed by the splitter. If the
1030 parameters are incorrect or the window couldn't be replaced,
1031 False is returned. Otherwise the function will return True,
1032 but please notice that it will not Destroy the replaced
1033 window and you may wish to do it yourself.
1035 return _windows_
.SplitterWindow_ReplaceWindow(*args
, **kwargs
)
1037 def UpdateSize(*args
, **kwargs
):
1041 Causes any pending sizing of the sash and child panes to
1042 take place immediately.
1044 Such resizing normally takes place in idle time, in order to
1045 wait for layout to be completed. However, this can cause
1046 unacceptable flicker as the panes are resized after the
1047 window has been shown. To work around this, you can perform
1048 window layout (for example by sending a size event to the
1049 parent window), and then call this function, before showing
1050 the top-level window.
1052 return _windows_
.SplitterWindow_UpdateSize(*args
, **kwargs
)
1054 def IsSplit(*args
, **kwargs
):
1056 IsSplit(self) -> bool
1058 Is the window split?
1060 return _windows_
.SplitterWindow_IsSplit(*args
, **kwargs
)
1062 def SetSashSize(*args
, **kwargs
):
1064 SetSashSize(self, int width)
1068 return _windows_
.SplitterWindow_SetSashSize(*args
, **kwargs
)
1070 def SetBorderSize(*args
, **kwargs
):
1072 SetBorderSize(self, int width)
1074 Sets the border size
1076 return _windows_
.SplitterWindow_SetBorderSize(*args
, **kwargs
)
1078 def GetSashSize(*args
, **kwargs
):
1080 GetSashSize(self) -> int
1084 return _windows_
.SplitterWindow_GetSashSize(*args
, **kwargs
)
1086 def GetBorderSize(*args
, **kwargs
):
1088 GetBorderSize(self) -> int
1090 Gets the border size
1092 return _windows_
.SplitterWindow_GetBorderSize(*args
, **kwargs
)
1094 def SetSashPosition(*args
, **kwargs
):
1096 SetSashPosition(self, int position, bool redraw=True)
1098 Sets the sash position, in pixels. If redraw is Ttrue then
1099 the panes are resized and the sash and border are redrawn.
1101 return _windows_
.SplitterWindow_SetSashPosition(*args
, **kwargs
)
1103 def GetSashPosition(*args
, **kwargs
):
1105 GetSashPosition(self) -> int
1107 Returns the surrent sash position.
1109 return _windows_
.SplitterWindow_GetSashPosition(*args
, **kwargs
)
1111 def SetMinimumPaneSize(*args
, **kwargs
):
1113 SetMinimumPaneSize(self, int min)
1115 Sets the minimum pane size in pixels.
1117 The default minimum pane size is zero, which means that
1118 either pane can be reduced to zero by dragging the sash,
1119 thus removing one of the panes. To prevent this behaviour (and
1120 veto out-of-range sash dragging), set a minimum size,
1121 for example 20 pixels. If the wx.SP_PERMIT_UNSPLIT style is
1122 used when a splitter window is created, the window may be
1123 unsplit even if minimum size is non-zero.
1125 return _windows_
.SplitterWindow_SetMinimumPaneSize(*args
, **kwargs
)
1127 def GetMinimumPaneSize(*args
, **kwargs
):
1129 GetMinimumPaneSize(self) -> int
1131 Gets the minimum pane size in pixels.
1133 return _windows_
.SplitterWindow_GetMinimumPaneSize(*args
, **kwargs
)
1135 def SashHitTest(*args
, **kwargs
):
1137 SashHitTest(self, int x, int y, int tolerance=5) -> bool
1139 Tests for x, y over the sash
1141 return _windows_
.SplitterWindow_SashHitTest(*args
, **kwargs
)
1143 def SizeWindows(*args
, **kwargs
):
1149 return _windows_
.SplitterWindow_SizeWindows(*args
, **kwargs
)
1151 def SetNeedUpdating(*args
, **kwargs
):
1152 """SetNeedUpdating(self, bool needUpdating)"""
1153 return _windows_
.SplitterWindow_SetNeedUpdating(*args
, **kwargs
)
1155 def GetNeedUpdating(*args
, **kwargs
):
1156 """GetNeedUpdating(self) -> bool"""
1157 return _windows_
.SplitterWindow_GetNeedUpdating(*args
, **kwargs
)
1159 def GetClassDefaultAttributes(*args
, **kwargs
):
1161 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1163 Get the default attributes for this class. This is useful if
1164 you want to use the same font or colour in your own control as
1165 in a standard control -- which is a much better idea than hard
1166 coding specific colours or fonts which might look completely out
1167 of place on the users system, especially if it uses themes.
1169 The variant parameter is only relevant under Mac currently and is
1170 ignore under other platforms. Under Mac, it will change the size of the
1171 returned font. See SetWindowVariant for more about this.
1173 return _windows_
.SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
)
1175 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1177 class SplitterWindowPtr(SplitterWindow
):
1178 def __init__(self
, this
):
1180 if not hasattr(self
,"thisown"): self
.thisown
= 0
1181 self
.__class
__ = SplitterWindow
1182 _windows_
.SplitterWindow_swigregister(SplitterWindowPtr
)
1183 SplitterNameStr
= cvar
.SplitterNameStr
1185 def PreSplitterWindow(*args
, **kwargs
):
1187 PreSplitterWindow() -> SplitterWindow
1189 Precreate a SplitterWindow for 2-phase creation.
1191 val
= _windows_
.new_PreSplitterWindow(*args
, **kwargs
)
1195 def SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
):
1197 SplitterWindow_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1199 Get the default attributes for this class. This is useful if
1200 you want to use the same font or colour in your own control as
1201 in a standard control -- which is a much better idea than hard
1202 coding specific colours or fonts which might look completely out
1203 of place on the users system, especially if it uses themes.
1205 The variant parameter is only relevant under Mac currently and is
1206 ignore under other platforms. Under Mac, it will change the size of the
1207 returned font. See SetWindowVariant for more about this.
1209 return _windows_
.SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
)
1211 class SplitterEvent(_core
.NotifyEvent
):
1212 """This class represents the events generated by a splitter control."""
1214 return "<%s.%s; proxy of C++ wxSplitterEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1215 def __init__(self
, *args
, **kwargs
):
1217 __init__(self, wxEventType type=wxEVT_NULL, SplitterWindow splitter=(wxSplitterWindow *) NULL) -> SplitterEvent
1219 This class represents the events generated by a splitter control.
1221 newobj
= _windows_
.new_SplitterEvent(*args
, **kwargs
)
1222 self
.this
= newobj
.this
1225 def SetSashPosition(*args
, **kwargs
):
1227 SetSashPosition(self, int pos)
1229 This funciton is only meaningful during
1230 EVT_SPLITTER_SASH_POS_CHANGING and
1231 EVT_SPLITTER_SASH_POS_CHANGED events. In the case of
1232 _CHANGED events, sets the the new sash position. In the case
1233 of _CHANGING events, sets the new tracking bar position so
1234 visual feedback during dragging will represent that change
1235 that will actually take place. Set to -1 from the event
1236 handler code to prevent repositioning.
1238 return _windows_
.SplitterEvent_SetSashPosition(*args
, **kwargs
)
1240 def GetSashPosition(*args
, **kwargs
):
1242 GetSashPosition(self) -> int
1244 Returns the new sash position while in
1245 EVT_SPLITTER_SASH_POS_CHANGING and
1246 EVT_SPLITTER_SASH_POS_CHANGED events.
1248 return _windows_
.SplitterEvent_GetSashPosition(*args
, **kwargs
)
1250 def GetWindowBeingRemoved(*args
, **kwargs
):
1252 GetWindowBeingRemoved(self) -> Window
1254 Returns a pointer to the window being removed when a
1255 splitter window is unsplit.
1257 return _windows_
.SplitterEvent_GetWindowBeingRemoved(*args
, **kwargs
)
1259 def GetX(*args
, **kwargs
):
1263 Returns the x coordinate of the double-click point in a
1264 EVT_SPLITTER_DCLICK event.
1266 return _windows_
.SplitterEvent_GetX(*args
, **kwargs
)
1268 def GetY(*args
, **kwargs
):
1272 Returns the y coordinate of the double-click point in a
1273 EVT_SPLITTER_DCLICK event.
1275 return _windows_
.SplitterEvent_GetY(*args
, **kwargs
)
1278 class SplitterEventPtr(SplitterEvent
):
1279 def __init__(self
, this
):
1281 if not hasattr(self
,"thisown"): self
.thisown
= 0
1282 self
.__class
__ = SplitterEvent
1283 _windows_
.SplitterEvent_swigregister(SplitterEventPtr
)
1285 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
= _windows_
.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
1286 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
= _windows_
.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
1287 wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
= _windows_
.wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
1288 wxEVT_COMMAND_SPLITTER_UNSPLIT
= _windows_
.wxEVT_COMMAND_SPLITTER_UNSPLIT
1289 EVT_SPLITTER_SASH_POS_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
, 1 )
1290 EVT_SPLITTER_SASH_POS_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
, 1 )
1291 EVT_SPLITTER_DOUBLECLICKED
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
, 1 )
1292 EVT_SPLITTER_UNSPLIT
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_UNSPLIT
, 1 )
1293 EVT_SPLITTER_DCLICK
= EVT_SPLITTER_DOUBLECLICKED
1295 #---------------------------------------------------------------------------
1297 SASH_DRAG_NONE
= _windows_
.SASH_DRAG_NONE
1298 SASH_DRAG_DRAGGING
= _windows_
.SASH_DRAG_DRAGGING
1299 SASH_DRAG_LEFT_DOWN
= _windows_
.SASH_DRAG_LEFT_DOWN
1300 SW_NOBORDER
= _windows_
.SW_NOBORDER
1301 SW_BORDER
= _windows_
.SW_BORDER
1302 SW_3DSASH
= _windows_
.SW_3DSASH
1303 SW_3DBORDER
= _windows_
.SW_3DBORDER
1304 SW_3D
= _windows_
.SW_3D
1305 SASH_TOP
= _windows_
.SASH_TOP
1306 SASH_RIGHT
= _windows_
.SASH_RIGHT
1307 SASH_BOTTOM
= _windows_
.SASH_BOTTOM
1308 SASH_LEFT
= _windows_
.SASH_LEFT
1309 SASH_NONE
= _windows_
.SASH_NONE
1310 class SashWindow(_core
.Window
):
1312 return "<%s.%s; proxy of C++ wxSashWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1313 def __init__(self
, *args
, **kwargs
):
1315 __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
1316 long style=wxCLIP_CHILDREN|wxSW_3D,
1317 String name=SashNameStr) -> SashWindow
1319 newobj
= _windows_
.new_SashWindow(*args
, **kwargs
)
1320 self
.this
= newobj
.this
1323 self
._setOORInfo
(self
)
1325 def Create(*args
, **kwargs
):
1327 Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
1328 long style=wxCLIP_CHILDREN|wxSW_3D,
1329 String name=SashNameStr) -> bool
1331 return _windows_
.SashWindow_Create(*args
, **kwargs
)
1333 def SetSashVisible(*args
, **kwargs
):
1334 """SetSashVisible(self, int edge, bool sash)"""
1335 return _windows_
.SashWindow_SetSashVisible(*args
, **kwargs
)
1337 def GetSashVisible(*args
, **kwargs
):
1338 """GetSashVisible(self, int edge) -> bool"""
1339 return _windows_
.SashWindow_GetSashVisible(*args
, **kwargs
)
1341 def SetSashBorder(*args
, **kwargs
):
1342 """SetSashBorder(self, int edge, bool border)"""
1343 return _windows_
.SashWindow_SetSashBorder(*args
, **kwargs
)
1345 def HasBorder(*args
, **kwargs
):
1346 """HasBorder(self, int edge) -> bool"""
1347 return _windows_
.SashWindow_HasBorder(*args
, **kwargs
)
1349 def GetEdgeMargin(*args
, **kwargs
):
1350 """GetEdgeMargin(self, int edge) -> int"""
1351 return _windows_
.SashWindow_GetEdgeMargin(*args
, **kwargs
)
1353 def SetDefaultBorderSize(*args
, **kwargs
):
1354 """SetDefaultBorderSize(self, int width)"""
1355 return _windows_
.SashWindow_SetDefaultBorderSize(*args
, **kwargs
)
1357 def GetDefaultBorderSize(*args
, **kwargs
):
1358 """GetDefaultBorderSize(self) -> int"""
1359 return _windows_
.SashWindow_GetDefaultBorderSize(*args
, **kwargs
)
1361 def SetExtraBorderSize(*args
, **kwargs
):
1362 """SetExtraBorderSize(self, int width)"""
1363 return _windows_
.SashWindow_SetExtraBorderSize(*args
, **kwargs
)
1365 def GetExtraBorderSize(*args
, **kwargs
):
1366 """GetExtraBorderSize(self) -> int"""
1367 return _windows_
.SashWindow_GetExtraBorderSize(*args
, **kwargs
)
1369 def SetMinimumSizeX(*args
, **kwargs
):
1370 """SetMinimumSizeX(self, int min)"""
1371 return _windows_
.SashWindow_SetMinimumSizeX(*args
, **kwargs
)
1373 def SetMinimumSizeY(*args
, **kwargs
):
1374 """SetMinimumSizeY(self, int min)"""
1375 return _windows_
.SashWindow_SetMinimumSizeY(*args
, **kwargs
)
1377 def GetMinimumSizeX(*args
, **kwargs
):
1378 """GetMinimumSizeX(self) -> int"""
1379 return _windows_
.SashWindow_GetMinimumSizeX(*args
, **kwargs
)
1381 def GetMinimumSizeY(*args
, **kwargs
):
1382 """GetMinimumSizeY(self) -> int"""
1383 return _windows_
.SashWindow_GetMinimumSizeY(*args
, **kwargs
)
1385 def SetMaximumSizeX(*args
, **kwargs
):
1386 """SetMaximumSizeX(self, int max)"""
1387 return _windows_
.SashWindow_SetMaximumSizeX(*args
, **kwargs
)
1389 def SetMaximumSizeY(*args
, **kwargs
):
1390 """SetMaximumSizeY(self, int max)"""
1391 return _windows_
.SashWindow_SetMaximumSizeY(*args
, **kwargs
)
1393 def GetMaximumSizeX(*args
, **kwargs
):
1394 """GetMaximumSizeX(self) -> int"""
1395 return _windows_
.SashWindow_GetMaximumSizeX(*args
, **kwargs
)
1397 def GetMaximumSizeY(*args
, **kwargs
):
1398 """GetMaximumSizeY(self) -> int"""
1399 return _windows_
.SashWindow_GetMaximumSizeY(*args
, **kwargs
)
1401 def SashHitTest(*args
, **kwargs
):
1402 """SashHitTest(self, int x, int y, int tolerance=2) -> int"""
1403 return _windows_
.SashWindow_SashHitTest(*args
, **kwargs
)
1405 def SizeWindows(*args
, **kwargs
):
1406 """SizeWindows(self)"""
1407 return _windows_
.SashWindow_SizeWindows(*args
, **kwargs
)
1410 class SashWindowPtr(SashWindow
):
1411 def __init__(self
, this
):
1413 if not hasattr(self
,"thisown"): self
.thisown
= 0
1414 self
.__class
__ = SashWindow
1415 _windows_
.SashWindow_swigregister(SashWindowPtr
)
1416 SashNameStr
= cvar
.SashNameStr
1417 SashLayoutNameStr
= cvar
.SashLayoutNameStr
1419 def PreSashWindow(*args
, **kwargs
):
1420 """PreSashWindow() -> SashWindow"""
1421 val
= _windows_
.new_PreSashWindow(*args
, **kwargs
)
1425 SASH_STATUS_OK
= _windows_
.SASH_STATUS_OK
1426 SASH_STATUS_OUT_OF_RANGE
= _windows_
.SASH_STATUS_OUT_OF_RANGE
1427 class SashEvent(_core
.CommandEvent
):
1429 return "<%s.%s; proxy of C++ wxSashEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1430 def __init__(self
, *args
, **kwargs
):
1431 """__init__(self, int id=0, int edge=SASH_NONE) -> SashEvent"""
1432 newobj
= _windows_
.new_SashEvent(*args
, **kwargs
)
1433 self
.this
= newobj
.this
1436 def SetEdge(*args
, **kwargs
):
1437 """SetEdge(self, int edge)"""
1438 return _windows_
.SashEvent_SetEdge(*args
, **kwargs
)
1440 def GetEdge(*args
, **kwargs
):
1441 """GetEdge(self) -> int"""
1442 return _windows_
.SashEvent_GetEdge(*args
, **kwargs
)
1444 def SetDragRect(*args
, **kwargs
):
1445 """SetDragRect(self, Rect rect)"""
1446 return _windows_
.SashEvent_SetDragRect(*args
, **kwargs
)
1448 def GetDragRect(*args
, **kwargs
):
1449 """GetDragRect(self) -> Rect"""
1450 return _windows_
.SashEvent_GetDragRect(*args
, **kwargs
)
1452 def SetDragStatus(*args
, **kwargs
):
1453 """SetDragStatus(self, int status)"""
1454 return _windows_
.SashEvent_SetDragStatus(*args
, **kwargs
)
1456 def GetDragStatus(*args
, **kwargs
):
1457 """GetDragStatus(self) -> int"""
1458 return _windows_
.SashEvent_GetDragStatus(*args
, **kwargs
)
1461 class SashEventPtr(SashEvent
):
1462 def __init__(self
, this
):
1464 if not hasattr(self
,"thisown"): self
.thisown
= 0
1465 self
.__class
__ = SashEvent
1466 _windows_
.SashEvent_swigregister(SashEventPtr
)
1468 wxEVT_SASH_DRAGGED
= _windows_
.wxEVT_SASH_DRAGGED
1469 EVT_SASH_DRAGGED
= wx
.PyEventBinder( wxEVT_SASH_DRAGGED
, 1 )
1470 EVT_SASH_DRAGGED_RANGE
= wx
.PyEventBinder( wxEVT_SASH_DRAGGED
, 2 )
1472 #---------------------------------------------------------------------------
1474 LAYOUT_HORIZONTAL
= _windows_
.LAYOUT_HORIZONTAL
1475 LAYOUT_VERTICAL
= _windows_
.LAYOUT_VERTICAL
1476 LAYOUT_NONE
= _windows_
.LAYOUT_NONE
1477 LAYOUT_TOP
= _windows_
.LAYOUT_TOP
1478 LAYOUT_LEFT
= _windows_
.LAYOUT_LEFT
1479 LAYOUT_RIGHT
= _windows_
.LAYOUT_RIGHT
1480 LAYOUT_BOTTOM
= _windows_
.LAYOUT_BOTTOM
1481 LAYOUT_LENGTH_Y
= _windows_
.LAYOUT_LENGTH_Y
1482 LAYOUT_LENGTH_X
= _windows_
.LAYOUT_LENGTH_X
1483 LAYOUT_MRU_LENGTH
= _windows_
.LAYOUT_MRU_LENGTH
1484 LAYOUT_QUERY
= _windows_
.LAYOUT_QUERY
1485 wxEVT_QUERY_LAYOUT_INFO
= _windows_
.wxEVT_QUERY_LAYOUT_INFO
1486 wxEVT_CALCULATE_LAYOUT
= _windows_
.wxEVT_CALCULATE_LAYOUT
1487 class QueryLayoutInfoEvent(_core
.Event
):
1489 return "<%s.%s; proxy of C++ wxQueryLayoutInfoEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1490 def __init__(self
, *args
, **kwargs
):
1491 """__init__(self, int id=0) -> QueryLayoutInfoEvent"""
1492 newobj
= _windows_
.new_QueryLayoutInfoEvent(*args
, **kwargs
)
1493 self
.this
= newobj
.this
1496 def SetRequestedLength(*args
, **kwargs
):
1497 """SetRequestedLength(self, int length)"""
1498 return _windows_
.QueryLayoutInfoEvent_SetRequestedLength(*args
, **kwargs
)
1500 def GetRequestedLength(*args
, **kwargs
):
1501 """GetRequestedLength(self) -> int"""
1502 return _windows_
.QueryLayoutInfoEvent_GetRequestedLength(*args
, **kwargs
)
1504 def SetFlags(*args
, **kwargs
):
1505 """SetFlags(self, int flags)"""
1506 return _windows_
.QueryLayoutInfoEvent_SetFlags(*args
, **kwargs
)
1508 def GetFlags(*args
, **kwargs
):
1509 """GetFlags(self) -> int"""
1510 return _windows_
.QueryLayoutInfoEvent_GetFlags(*args
, **kwargs
)
1512 def SetSize(*args
, **kwargs
):
1513 """SetSize(self, Size size)"""
1514 return _windows_
.QueryLayoutInfoEvent_SetSize(*args
, **kwargs
)
1516 def GetSize(*args
, **kwargs
):
1517 """GetSize(self) -> Size"""
1518 return _windows_
.QueryLayoutInfoEvent_GetSize(*args
, **kwargs
)
1520 def SetOrientation(*args
, **kwargs
):
1521 """SetOrientation(self, int orient)"""
1522 return _windows_
.QueryLayoutInfoEvent_SetOrientation(*args
, **kwargs
)
1524 def GetOrientation(*args
, **kwargs
):
1525 """GetOrientation(self) -> int"""
1526 return _windows_
.QueryLayoutInfoEvent_GetOrientation(*args
, **kwargs
)
1528 def SetAlignment(*args
, **kwargs
):
1529 """SetAlignment(self, int align)"""
1530 return _windows_
.QueryLayoutInfoEvent_SetAlignment(*args
, **kwargs
)
1532 def GetAlignment(*args
, **kwargs
):
1533 """GetAlignment(self) -> int"""
1534 return _windows_
.QueryLayoutInfoEvent_GetAlignment(*args
, **kwargs
)
1537 class QueryLayoutInfoEventPtr(QueryLayoutInfoEvent
):
1538 def __init__(self
, this
):
1540 if not hasattr(self
,"thisown"): self
.thisown
= 0
1541 self
.__class
__ = QueryLayoutInfoEvent
1542 _windows_
.QueryLayoutInfoEvent_swigregister(QueryLayoutInfoEventPtr
)
1544 class CalculateLayoutEvent(_core
.Event
):
1546 return "<%s.%s; proxy of C++ wxCalculateLayoutEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1547 def __init__(self
, *args
, **kwargs
):
1548 """__init__(self, int id=0) -> CalculateLayoutEvent"""
1549 newobj
= _windows_
.new_CalculateLayoutEvent(*args
, **kwargs
)
1550 self
.this
= newobj
.this
1553 def SetFlags(*args
, **kwargs
):
1554 """SetFlags(self, int flags)"""
1555 return _windows_
.CalculateLayoutEvent_SetFlags(*args
, **kwargs
)
1557 def GetFlags(*args
, **kwargs
):
1558 """GetFlags(self) -> int"""
1559 return _windows_
.CalculateLayoutEvent_GetFlags(*args
, **kwargs
)
1561 def SetRect(*args
, **kwargs
):
1562 """SetRect(self, Rect rect)"""
1563 return _windows_
.CalculateLayoutEvent_SetRect(*args
, **kwargs
)
1565 def GetRect(*args
, **kwargs
):
1566 """GetRect(self) -> Rect"""
1567 return _windows_
.CalculateLayoutEvent_GetRect(*args
, **kwargs
)
1570 class CalculateLayoutEventPtr(CalculateLayoutEvent
):
1571 def __init__(self
, this
):
1573 if not hasattr(self
,"thisown"): self
.thisown
= 0
1574 self
.__class
__ = CalculateLayoutEvent
1575 _windows_
.CalculateLayoutEvent_swigregister(CalculateLayoutEventPtr
)
1577 EVT_QUERY_LAYOUT_INFO
= wx
.PyEventBinder( wxEVT_QUERY_LAYOUT_INFO
)
1578 EVT_CALCULATE_LAYOUT
= wx
.PyEventBinder( wxEVT_CALCULATE_LAYOUT
)
1580 class SashLayoutWindow(SashWindow
):
1582 return "<%s.%s; proxy of C++ wxSashLayoutWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1583 def __init__(self
, *args
, **kwargs
):
1585 __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
1586 long style=wxCLIP_CHILDREN|wxSW_3D,
1587 String name=SashLayoutNameStr) -> SashLayoutWindow
1589 newobj
= _windows_
.new_SashLayoutWindow(*args
, **kwargs
)
1590 self
.this
= newobj
.this
1593 self
._setOORInfo
(self
)
1595 def Create(*args
, **kwargs
):
1597 Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
1598 long style=wxCLIP_CHILDREN|wxSW_3D,
1599 String name=SashLayoutNameStr) -> bool
1601 return _windows_
.SashLayoutWindow_Create(*args
, **kwargs
)
1603 def GetAlignment(*args
, **kwargs
):
1604 """GetAlignment(self) -> int"""
1605 return _windows_
.SashLayoutWindow_GetAlignment(*args
, **kwargs
)
1607 def GetOrientation(*args
, **kwargs
):
1608 """GetOrientation(self) -> int"""
1609 return _windows_
.SashLayoutWindow_GetOrientation(*args
, **kwargs
)
1611 def SetAlignment(*args
, **kwargs
):
1612 """SetAlignment(self, int alignment)"""
1613 return _windows_
.SashLayoutWindow_SetAlignment(*args
, **kwargs
)
1615 def SetDefaultSize(*args
, **kwargs
):
1616 """SetDefaultSize(self, Size size)"""
1617 return _windows_
.SashLayoutWindow_SetDefaultSize(*args
, **kwargs
)
1619 def SetOrientation(*args
, **kwargs
):
1620 """SetOrientation(self, int orientation)"""
1621 return _windows_
.SashLayoutWindow_SetOrientation(*args
, **kwargs
)
1624 class SashLayoutWindowPtr(SashLayoutWindow
):
1625 def __init__(self
, this
):
1627 if not hasattr(self
,"thisown"): self
.thisown
= 0
1628 self
.__class
__ = SashLayoutWindow
1629 _windows_
.SashLayoutWindow_swigregister(SashLayoutWindowPtr
)
1631 def PreSashLayoutWindow(*args
, **kwargs
):
1632 """PreSashLayoutWindow() -> SashLayoutWindow"""
1633 val
= _windows_
.new_PreSashLayoutWindow(*args
, **kwargs
)
1637 class LayoutAlgorithm(_core
.Object
):
1639 return "<%s.%s; proxy of C++ wxLayoutAlgorithm instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1640 def __init__(self
, *args
, **kwargs
):
1641 """__init__(self) -> LayoutAlgorithm"""
1642 newobj
= _windows_
.new_LayoutAlgorithm(*args
, **kwargs
)
1643 self
.this
= newobj
.this
1646 def __del__(self
, destroy
=_windows_
.delete_LayoutAlgorithm
):
1649 if self
.thisown
: destroy(self
)
1652 def LayoutMDIFrame(*args
, **kwargs
):
1653 """LayoutMDIFrame(self, MDIParentFrame frame, Rect rect=None) -> bool"""
1654 return _windows_
.LayoutAlgorithm_LayoutMDIFrame(*args
, **kwargs
)
1656 def LayoutFrame(*args
, **kwargs
):
1657 """LayoutFrame(self, Frame frame, Window mainWindow=None) -> bool"""
1658 return _windows_
.LayoutAlgorithm_LayoutFrame(*args
, **kwargs
)
1660 def LayoutWindow(*args
, **kwargs
):
1661 """LayoutWindow(self, Window parent, Window mainWindow=None) -> bool"""
1662 return _windows_
.LayoutAlgorithm_LayoutWindow(*args
, **kwargs
)
1665 class LayoutAlgorithmPtr(LayoutAlgorithm
):
1666 def __init__(self
, this
):
1668 if not hasattr(self
,"thisown"): self
.thisown
= 0
1669 self
.__class
__ = LayoutAlgorithm
1670 _windows_
.LayoutAlgorithm_swigregister(LayoutAlgorithmPtr
)
1672 class PopupWindow(_core
.Window
):
1674 return "<%s.%s; proxy of C++ wxPopupWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1675 def __init__(self
, *args
, **kwargs
):
1676 """__init__(self, Window parent, int flags=BORDER_NONE) -> PopupWindow"""
1677 newobj
= _windows_
.new_PopupWindow(*args
, **kwargs
)
1678 self
.this
= newobj
.this
1682 class PopupWindowPtr(PopupWindow
):
1683 def __init__(self
, this
):
1685 if not hasattr(self
,"thisown"): self
.thisown
= 0
1686 self
.__class
__ = PopupWindow
1687 _windows_
.PopupWindow_swigregister(PopupWindowPtr
)
1689 def PrePopupWindow(*args
, **kwargs
):
1690 """PrePopupWindow() -> PopupWindow"""
1691 val
= _windows_
.new_PrePopupWindow(*args
, **kwargs
)
1695 class PopupTransientWindow(PopupWindow
):
1697 return "<%s.%s; proxy of C++ wxPyPopupTransientWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1698 def __init__(self
, *args
, **kwargs
):
1699 """__init__(self, Window parent, int style=BORDER_NONE) -> PopupTransientWindow"""
1700 newobj
= _windows_
.new_PopupTransientWindow(*args
, **kwargs
)
1701 self
.this
= newobj
.this
1705 class PopupTransientWindowPtr(PopupTransientWindow
):
1706 def __init__(self
, this
):
1708 if not hasattr(self
,"thisown"): self
.thisown
= 0
1709 self
.__class
__ = PopupTransientWindow
1710 _windows_
.PopupTransientWindow_swigregister(PopupTransientWindowPtr
)
1712 def PrePopupTransientWindow(*args
, **kwargs
):
1713 """PrePopupTransientWindow() -> PopupTransientWindow"""
1714 val
= _windows_
.new_PrePopupTransientWindow(*args
, **kwargs
)
1718 #---------------------------------------------------------------------------
1720 class TipWindow(Frame
):
1722 return "<%s.%s; proxy of C++ wxTipWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1723 def __init__(self
, *args
, **kwargs
):
1724 """__init__(self, Window parent, String text, int maxLength=100, Rect rectBound=None) -> TipWindow"""
1725 newobj
= _windows_
.new_TipWindow(*args
, **kwargs
)
1726 self
.this
= newobj
.this
1729 self
._setOORInfo
(self
)
1731 def SetBoundingRect(*args
, **kwargs
):
1732 """SetBoundingRect(self, Rect rectBound)"""
1733 return _windows_
.TipWindow_SetBoundingRect(*args
, **kwargs
)
1735 def Close(*args
, **kwargs
):
1737 return _windows_
.TipWindow_Close(*args
, **kwargs
)
1740 class TipWindowPtr(TipWindow
):
1741 def __init__(self
, this
):
1743 if not hasattr(self
,"thisown"): self
.thisown
= 0
1744 self
.__class
__ = TipWindow
1745 _windows_
.TipWindow_swigregister(TipWindowPtr
)
1747 #---------------------------------------------------------------------------
1749 class VScrolledWindow(Panel
):
1751 return "<%s.%s; proxy of C++ wxPyVScrolledWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1752 def __init__(self
, *args
, **kwargs
):
1754 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1755 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> VScrolledWindow
1757 newobj
= _windows_
.new_VScrolledWindow(*args
, **kwargs
)
1758 self
.this
= newobj
.this
1761 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, VScrolledWindow
)
1763 def _setCallbackInfo(*args
, **kwargs
):
1764 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1765 return _windows_
.VScrolledWindow__setCallbackInfo(*args
, **kwargs
)
1767 def Create(*args
, **kwargs
):
1769 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1770 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> bool
1772 return _windows_
.VScrolledWindow_Create(*args
, **kwargs
)
1774 def SetLineCount(*args
, **kwargs
):
1775 """SetLineCount(self, size_t count)"""
1776 return _windows_
.VScrolledWindow_SetLineCount(*args
, **kwargs
)
1778 def ScrollToLine(*args
, **kwargs
):
1779 """ScrollToLine(self, size_t line) -> bool"""
1780 return _windows_
.VScrolledWindow_ScrollToLine(*args
, **kwargs
)
1782 def ScrollLines(*args
, **kwargs
):
1784 ScrollLines(self, int lines) -> bool
1786 If the platform and window class supports it, scrolls the window by
1787 the given number of lines down, if lines is positive, or up if lines
1788 is negative. Returns True if the window was scrolled, False if it was
1789 already on top/bottom and nothing was done.
1791 return _windows_
.VScrolledWindow_ScrollLines(*args
, **kwargs
)
1793 def ScrollPages(*args
, **kwargs
):
1795 ScrollPages(self, int pages) -> bool
1797 If the platform and window class supports it, scrolls the window by
1798 the given number of pages down, if pages is positive, or up if pages
1799 is negative. Returns True if the window was scrolled, False if it was
1800 already on top/bottom and nothing was done.
1802 return _windows_
.VScrolledWindow_ScrollPages(*args
, **kwargs
)
1804 def RefreshLine(*args
, **kwargs
):
1805 """RefreshLine(self, size_t line)"""
1806 return _windows_
.VScrolledWindow_RefreshLine(*args
, **kwargs
)
1808 def RefreshLines(*args
, **kwargs
):
1809 """RefreshLines(self, size_t from, size_t to)"""
1810 return _windows_
.VScrolledWindow_RefreshLines(*args
, **kwargs
)
1812 def HitTestXT(*args
, **kwargs
):
1814 HitTestXT(self, int x, int y) -> int
1816 Test where the given (in client coords) point lies
1818 return _windows_
.VScrolledWindow_HitTestXT(*args
, **kwargs
)
1820 def HitTest(*args
, **kwargs
):
1822 HitTest(self, Point pt) -> int
1824 Test where the given (in client coords) point lies
1826 return _windows_
.VScrolledWindow_HitTest(*args
, **kwargs
)
1828 def RefreshAll(*args
, **kwargs
):
1829 """RefreshAll(self)"""
1830 return _windows_
.VScrolledWindow_RefreshAll(*args
, **kwargs
)
1832 def GetLineCount(*args
, **kwargs
):
1833 """GetLineCount(self) -> size_t"""
1834 return _windows_
.VScrolledWindow_GetLineCount(*args
, **kwargs
)
1836 def GetFirstVisibleLine(*args
, **kwargs
):
1837 """GetFirstVisibleLine(self) -> size_t"""
1838 return _windows_
.VScrolledWindow_GetFirstVisibleLine(*args
, **kwargs
)
1840 def GetLastVisibleLine(*args
, **kwargs
):
1841 """GetLastVisibleLine(self) -> size_t"""
1842 return _windows_
.VScrolledWindow_GetLastVisibleLine(*args
, **kwargs
)
1844 def IsVisible(*args
, **kwargs
):
1845 """IsVisible(self, size_t line) -> bool"""
1846 return _windows_
.VScrolledWindow_IsVisible(*args
, **kwargs
)
1849 class VScrolledWindowPtr(VScrolledWindow
):
1850 def __init__(self
, this
):
1852 if not hasattr(self
,"thisown"): self
.thisown
= 0
1853 self
.__class
__ = VScrolledWindow
1854 _windows_
.VScrolledWindow_swigregister(VScrolledWindowPtr
)
1856 def PreVScrolledWindow(*args
, **kwargs
):
1857 """PreVScrolledWindow() -> VScrolledWindow"""
1858 val
= _windows_
.new_PreVScrolledWindow(*args
, **kwargs
)
1862 class VListBox(VScrolledWindow
):
1864 return "<%s.%s; proxy of C++ wxPyVListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1865 def __init__(self
, *args
, **kwargs
):
1867 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1868 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> VListBox
1870 newobj
= _windows_
.new_VListBox(*args
, **kwargs
)
1871 self
.this
= newobj
.this
1874 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, VListBox
)
1876 def _setCallbackInfo(*args
, **kwargs
):
1877 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1878 return _windows_
.VListBox__setCallbackInfo(*args
, **kwargs
)
1880 def Create(*args
, **kwargs
):
1882 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1883 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
1885 return _windows_
.VListBox_Create(*args
, **kwargs
)
1887 def GetItemCount(*args
, **kwargs
):
1888 """GetItemCount(self) -> size_t"""
1889 return _windows_
.VListBox_GetItemCount(*args
, **kwargs
)
1891 def HasMultipleSelection(*args
, **kwargs
):
1892 """HasMultipleSelection(self) -> bool"""
1893 return _windows_
.VListBox_HasMultipleSelection(*args
, **kwargs
)
1895 def GetSelection(*args
, **kwargs
):
1896 """GetSelection(self) -> int"""
1897 return _windows_
.VListBox_GetSelection(*args
, **kwargs
)
1899 def IsCurrent(*args
, **kwargs
):
1900 """IsCurrent(self, size_t item) -> bool"""
1901 return _windows_
.VListBox_IsCurrent(*args
, **kwargs
)
1903 def IsSelected(*args
, **kwargs
):
1904 """IsSelected(self, size_t item) -> bool"""
1905 return _windows_
.VListBox_IsSelected(*args
, **kwargs
)
1907 def GetSelectedCount(*args
, **kwargs
):
1908 """GetSelectedCount(self) -> size_t"""
1909 return _windows_
.VListBox_GetSelectedCount(*args
, **kwargs
)
1911 def GetFirstSelected(*args
, **kwargs
):
1912 """GetFirstSelected(self, unsigned long cookie) -> int"""
1913 return _windows_
.VListBox_GetFirstSelected(*args
, **kwargs
)
1915 def GetNextSelected(*args
, **kwargs
):
1916 """GetNextSelected(self, unsigned long cookie) -> int"""
1917 return _windows_
.VListBox_GetNextSelected(*args
, **kwargs
)
1919 def GetMargins(*args
, **kwargs
):
1920 """GetMargins(self) -> Point"""
1921 return _windows_
.VListBox_GetMargins(*args
, **kwargs
)
1923 def GetSelectionBackground(*args
, **kwargs
):
1924 """GetSelectionBackground(self) -> Colour"""
1925 return _windows_
.VListBox_GetSelectionBackground(*args
, **kwargs
)
1927 def SetItemCount(*args
, **kwargs
):
1928 """SetItemCount(self, size_t count)"""
1929 return _windows_
.VListBox_SetItemCount(*args
, **kwargs
)
1931 def Clear(*args
, **kwargs
):
1933 return _windows_
.VListBox_Clear(*args
, **kwargs
)
1935 def SetSelection(*args
, **kwargs
):
1936 """SetSelection(self, int selection)"""
1937 return _windows_
.VListBox_SetSelection(*args
, **kwargs
)
1939 def Select(*args
, **kwargs
):
1940 """Select(self, size_t item, bool select=True) -> bool"""
1941 return _windows_
.VListBox_Select(*args
, **kwargs
)
1943 def SelectRange(*args
, **kwargs
):
1944 """SelectRange(self, size_t from, size_t to) -> bool"""
1945 return _windows_
.VListBox_SelectRange(*args
, **kwargs
)
1947 def Toggle(*args
, **kwargs
):
1948 """Toggle(self, size_t item)"""
1949 return _windows_
.VListBox_Toggle(*args
, **kwargs
)
1951 def SelectAll(*args
, **kwargs
):
1952 """SelectAll(self) -> bool"""
1953 return _windows_
.VListBox_SelectAll(*args
, **kwargs
)
1955 def DeselectAll(*args
, **kwargs
):
1956 """DeselectAll(self) -> bool"""
1957 return _windows_
.VListBox_DeselectAll(*args
, **kwargs
)
1959 def SetMargins(*args
, **kwargs
):
1960 """SetMargins(self, Point pt)"""
1961 return _windows_
.VListBox_SetMargins(*args
, **kwargs
)
1963 def SetMarginsXY(*args
, **kwargs
):
1964 """SetMarginsXY(self, int x, int y)"""
1965 return _windows_
.VListBox_SetMarginsXY(*args
, **kwargs
)
1967 def SetSelectionBackground(*args
, **kwargs
):
1968 """SetSelectionBackground(self, Colour col)"""
1969 return _windows_
.VListBox_SetSelectionBackground(*args
, **kwargs
)
1972 class VListBoxPtr(VListBox
):
1973 def __init__(self
, this
):
1975 if not hasattr(self
,"thisown"): self
.thisown
= 0
1976 self
.__class
__ = VListBox
1977 _windows_
.VListBox_swigregister(VListBoxPtr
)
1978 VListBoxNameStr
= cvar
.VListBoxNameStr
1980 def PreVListBox(*args
, **kwargs
):
1981 """PreVListBox() -> VListBox"""
1982 val
= _windows_
.new_PreVListBox(*args
, **kwargs
)
1986 class HtmlListBox(VListBox
):
1988 return "<%s.%s; proxy of C++ wxPyHtmlListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1989 def __init__(self
, *args
, **kwargs
):
1991 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1992 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> HtmlListBox
1994 newobj
= _windows_
.new_HtmlListBox(*args
, **kwargs
)
1995 self
.this
= newobj
.this
1998 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, HtmlListBox
)
2000 def _setCallbackInfo(*args
, **kwargs
):
2001 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
2002 return _windows_
.HtmlListBox__setCallbackInfo(*args
, **kwargs
)
2004 def Create(*args
, **kwargs
):
2006 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
2007 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
2009 return _windows_
.HtmlListBox_Create(*args
, **kwargs
)
2011 def RefreshAll(*args
, **kwargs
):
2012 """RefreshAll(self)"""
2013 return _windows_
.HtmlListBox_RefreshAll(*args
, **kwargs
)
2015 def SetItemCount(*args
, **kwargs
):
2016 """SetItemCount(self, size_t count)"""
2017 return _windows_
.HtmlListBox_SetItemCount(*args
, **kwargs
)
2019 def GetFileSystem(*args
, **kwargs
):
2020 """GetFileSystem(self) -> FileSystem"""
2021 return _windows_
.HtmlListBox_GetFileSystem(*args
, **kwargs
)
2024 class HtmlListBoxPtr(HtmlListBox
):
2025 def __init__(self
, this
):
2027 if not hasattr(self
,"thisown"): self
.thisown
= 0
2028 self
.__class
__ = HtmlListBox
2029 _windows_
.HtmlListBox_swigregister(HtmlListBoxPtr
)
2031 def PreHtmlListBox(*args
, **kwargs
):
2032 """PreHtmlListBox() -> HtmlListBox"""
2033 val
= _windows_
.new_PreHtmlListBox(*args
, **kwargs
)
2037 #---------------------------------------------------------------------------
2039 class TaskBarIcon(_core
.EvtHandler
):
2041 return "<%s.%s; proxy of C++ wxTaskBarIcon instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2042 def __init__(self
, *args
, **kwargs
):
2043 """__init__(self) -> TaskBarIcon"""
2044 newobj
= _windows_
.new_TaskBarIcon(*args
, **kwargs
)
2045 self
.this
= newobj
.this
2048 def __del__(self
, destroy
=_windows_
.delete_TaskBarIcon
):
2051 if self
.thisown
: destroy(self
)
2054 def Destroy(*args
, **kwargs
):
2058 Deletes the C++ object this Python object is a proxy for.
2060 return _windows_
.TaskBarIcon_Destroy(*args
, **kwargs
)
2063 class TaskBarIconPtr(TaskBarIcon
):
2064 def __init__(self
, this
):
2066 if not hasattr(self
,"thisown"): self
.thisown
= 0
2067 self
.__class
__ = TaskBarIcon
2068 _windows_
.TaskBarIcon_swigregister(TaskBarIconPtr
)
2070 class TaskBarIconEvent(_core
.Event
):
2072 return "<%s.%s; proxy of C++ wxTaskBarIconEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2073 def __init__(self
, *args
, **kwargs
):
2074 """__init__(self, wxEventType evtType, TaskBarIcon tbIcon) -> TaskBarIconEvent"""
2075 newobj
= _windows_
.new_TaskBarIconEvent(*args
, **kwargs
)
2076 self
.this
= newobj
.this
2080 class TaskBarIconEventPtr(TaskBarIconEvent
):
2081 def __init__(self
, this
):
2083 if not hasattr(self
,"thisown"): self
.thisown
= 0
2084 self
.__class
__ = TaskBarIconEvent
2085 _windows_
.TaskBarIconEvent_swigregister(TaskBarIconEventPtr
)
2087 wxEVT_TASKBAR_MOVE
= _windows_
.wxEVT_TASKBAR_MOVE
2088 wxEVT_TASKBAR_LEFT_DOWN
= _windows_
.wxEVT_TASKBAR_LEFT_DOWN
2089 wxEVT_TASKBAR_LEFT_UP
= _windows_
.wxEVT_TASKBAR_LEFT_UP
2090 wxEVT_TASKBAR_RIGHT_DOWN
= _windows_
.wxEVT_TASKBAR_RIGHT_DOWN
2091 wxEVT_TASKBAR_RIGHT_UP
= _windows_
.wxEVT_TASKBAR_RIGHT_UP
2092 wxEVT_TASKBAR_LEFT_DCLICK
= _windows_
.wxEVT_TASKBAR_LEFT_DCLICK
2093 wxEVT_TASKBAR_RIGHT_DCLICK
= _windows_
.wxEVT_TASKBAR_RIGHT_DCLICK
2094 EVT_TASKBAR_MOVE
= wx
.PyEventBinder ( wxEVT_TASKBAR_MOVE
)
2095 EVT_TASKBAR_LEFT_DOWN
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_DOWN
)
2096 EVT_TASKBAR_LEFT_UP
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_UP
)
2097 EVT_TASKBAR_RIGHT_DOWN
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DOWN
)
2098 EVT_TASKBAR_RIGHT_UP
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_UP
)
2099 EVT_TASKBAR_LEFT_DCLICK
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_DCLICK
)
2100 EVT_TASKBAR_RIGHT_DCLICK
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DCLICK
)
2102 #---------------------------------------------------------------------------
2104 class ColourData(_core
.Object
):
2106 This class holds a variety of information related to the colour
2107 chooser dialog, used to transfer settings and results to and from the
2111 return "<%s.%s; proxy of C++ wxColourData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2112 def __init__(self
, *args
, **kwargs
):
2114 __init__(self) -> ColourData
2116 Constructor, sets default values.
2118 newobj
= _windows_
.new_ColourData(*args
, **kwargs
)
2119 self
.this
= newobj
.this
2122 def __del__(self
, destroy
=_windows_
.delete_ColourData
):
2125 if self
.thisown
: destroy(self
)
2128 def GetChooseFull(*args
, **kwargs
):
2130 GetChooseFull(self) -> bool
2132 Under Windows, determines whether the Windows colour dialog will
2133 display the full dialog with custom colour selection controls. Has no
2134 meaning under other platforms. The default value is true.
2136 return _windows_
.ColourData_GetChooseFull(*args
, **kwargs
)
2138 def GetColour(*args
, **kwargs
):
2140 GetColour(self) -> Colour
2142 Gets the colour (pre)selected by the dialog.
2144 return _windows_
.ColourData_GetColour(*args
, **kwargs
)
2146 def GetCustomColour(*args
, **kwargs
):
2148 GetCustomColour(self, int i) -> Colour
2150 Gets the i'th custom colour associated with the colour dialog. i
2151 should be an integer between 0 and 15. The default custom colours are
2154 return _windows_
.ColourData_GetCustomColour(*args
, **kwargs
)
2156 def SetChooseFull(*args
, **kwargs
):
2158 SetChooseFull(self, int flag)
2160 Under Windows, tells the Windows colour dialog to display the full
2161 dialog with custom colour selection controls. Under other platforms,
2162 has no effect. The default value is true.
2164 return _windows_
.ColourData_SetChooseFull(*args
, **kwargs
)
2166 def SetColour(*args
, **kwargs
):
2168 SetColour(self, Colour colour)
2170 Sets the default colour for the colour dialog. The default colour is
2173 return _windows_
.ColourData_SetColour(*args
, **kwargs
)
2175 def SetCustomColour(*args
, **kwargs
):
2177 SetCustomColour(self, int i, Colour colour)
2179 Sets the i'th custom colour for the colour dialog. i should be an
2180 integer between 0 and 15. The default custom colours are all white.
2182 return _windows_
.ColourData_SetCustomColour(*args
, **kwargs
)
2185 class ColourDataPtr(ColourData
):
2186 def __init__(self
, this
):
2188 if not hasattr(self
,"thisown"): self
.thisown
= 0
2189 self
.__class
__ = ColourData
2190 _windows_
.ColourData_swigregister(ColourDataPtr
)
2191 FileSelectorPromptStr
= cvar
.FileSelectorPromptStr
2192 DirSelectorPromptStr
= cvar
.DirSelectorPromptStr
2193 DirDialogNameStr
= cvar
.DirDialogNameStr
2194 FileSelectorDefaultWildcardStr
= cvar
.FileSelectorDefaultWildcardStr
2195 GetTextFromUserPromptStr
= cvar
.GetTextFromUserPromptStr
2196 MessageBoxCaptionStr
= cvar
.MessageBoxCaptionStr
2198 class ColourDialog(Dialog
):
2199 """This class represents the colour chooser dialog."""
2201 return "<%s.%s; proxy of C++ wxColourDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2202 def __init__(self
, *args
, **kwargs
):
2204 __init__(self, Window parent, ColourData data=None) -> ColourDialog
2206 Constructor. Pass a parent window, and optionally a `wx.ColourData`,
2207 which will be copied to the colour dialog's internal ColourData
2210 newobj
= _windows_
.new_ColourDialog(*args
, **kwargs
)
2211 self
.this
= newobj
.this
2214 self
._setOORInfo
(self
)
2216 def GetColourData(*args
, **kwargs
):
2218 GetColourData(self) -> ColourData
2220 Returns a reference to the `wx.ColourData` used by the dialog.
2222 return _windows_
.ColourDialog_GetColourData(*args
, **kwargs
)
2225 class ColourDialogPtr(ColourDialog
):
2226 def __init__(self
, this
):
2228 if not hasattr(self
,"thisown"): self
.thisown
= 0
2229 self
.__class
__ = ColourDialog
2230 _windows_
.ColourDialog_swigregister(ColourDialogPtr
)
2232 class DirDialog(Dialog
):
2234 wx.DirDialog allows the user to select a directory by browising the
2240 ==================== ==========================================
2241 wx.DD_NEW_DIR_BUTTON Add 'Create new directory' button and allow
2242 directory names to be editable. On Windows
2243 the new directory button is only available
2244 with recent versions of the common dialogs.
2245 ==================== ==========================================
2249 return "<%s.%s; proxy of C++ wxDirDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2250 def __init__(self
, *args
, **kwargs
):
2252 __init__(self, Window parent, String message=DirSelectorPromptStr,
2253 String defaultPath=EmptyString, long style=0,
2254 Point pos=DefaultPosition, Size size=DefaultSize,
2255 String name=DirDialogNameStr) -> DirDialog
2257 Constructor. Use ShowModal method to show the dialog.
2259 newobj
= _windows_
.new_DirDialog(*args
, **kwargs
)
2260 self
.this
= newobj
.this
2263 self
._setOORInfo
(self
)
2265 def GetPath(*args
, **kwargs
):
2267 GetPath(self) -> String
2269 Returns the default or user-selected path.
2271 return _windows_
.DirDialog_GetPath(*args
, **kwargs
)
2273 def GetMessage(*args
, **kwargs
):
2275 GetMessage(self) -> String
2277 Returns the message that will be displayed on the dialog.
2279 return _windows_
.DirDialog_GetMessage(*args
, **kwargs
)
2281 def GetStyle(*args
, **kwargs
):
2283 GetStyle(self) -> long
2285 Returns the dialog style.
2287 return _windows_
.DirDialog_GetStyle(*args
, **kwargs
)
2289 def SetMessage(*args
, **kwargs
):
2291 SetMessage(self, String message)
2293 Sets the message that will be displayed on the dialog.
2295 return _windows_
.DirDialog_SetMessage(*args
, **kwargs
)
2297 def SetPath(*args
, **kwargs
):
2299 SetPath(self, String path)
2301 Sets the default path.
2303 return _windows_
.DirDialog_SetPath(*args
, **kwargs
)
2306 class DirDialogPtr(DirDialog
):
2307 def __init__(self
, this
):
2309 if not hasattr(self
,"thisown"): self
.thisown
= 0
2310 self
.__class
__ = DirDialog
2311 _windows_
.DirDialog_swigregister(DirDialogPtr
)
2313 class FileDialog(Dialog
):
2315 wx.FileDialog allows the user to select one or more files from the
2318 In Windows, this is the common file selector dialog. On X based
2319 platforms a generic alternative is used. The path and filename are
2320 distinct elements of a full file pathname. If path is "", the
2321 current directory will be used. If filename is "", no default
2322 filename will be supplied. The wildcard determines what files are
2323 displayed in the file selector, and file extension supplies a type
2324 extension for the required filename.
2326 Both the X and Windows versions implement a wildcard filter. Typing a
2327 filename containing wildcards (*, ?) in the filename text item, and
2328 clicking on Ok, will result in only those files matching the pattern
2329 being displayed. The wildcard may be a specification for multiple
2330 types of file with a description for each, such as::
2332 "BMP files (*.bmp)|*.bmp|GIF files (*.gif)|*.gif"
2337 ================== ==========================================
2338 wx.OPEN This is an open dialog.
2340 wx.SAVE This is a save dialog.
2342 wx.HIDE_READONLY For open dialog only: hide the checkbox
2343 allowing to open the file in read-only mode.
2345 wx.OVERWRITE_PROMPT For save dialog only: prompt for a confirmation
2346 if a file will be overwritten.
2348 wx.MULTIPLE For open dialog only: allows selecting multiple
2351 wx.CHANGE_DIR Change the current working directory to the
2352 directory where the file(s) chosen by the user
2354 ================== ==========================================
2358 return "<%s.%s; proxy of C++ wxFileDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2359 def __init__(self
, *args
, **kwargs
):
2361 __init__(self, Window parent, String message=FileSelectorPromptStr,
2362 String defaultDir=EmptyString, String defaultFile=EmptyString,
2363 String wildcard=FileSelectorDefaultWildcardStr,
2364 long style=0, Point pos=DefaultPosition) -> FileDialog
2366 Constructor. Use ShowModal method to show the dialog.
2368 newobj
= _windows_
.new_FileDialog(*args
, **kwargs
)
2369 self
.this
= newobj
.this
2372 self
._setOORInfo
(self
)
2374 def SetMessage(*args
, **kwargs
):
2376 SetMessage(self, String message)
2378 Sets the message that will be displayed on the dialog.
2380 return _windows_
.FileDialog_SetMessage(*args
, **kwargs
)
2382 def SetPath(*args
, **kwargs
):
2384 SetPath(self, String path)
2386 Sets the path (the combined directory and filename that will be
2387 returned when the dialog is dismissed).
2389 return _windows_
.FileDialog_SetPath(*args
, **kwargs
)
2391 def SetDirectory(*args
, **kwargs
):
2393 SetDirectory(self, String dir)
2395 Sets the default directory.
2397 return _windows_
.FileDialog_SetDirectory(*args
, **kwargs
)
2399 def SetFilename(*args
, **kwargs
):
2401 SetFilename(self, String name)
2403 Sets the default filename.
2405 return _windows_
.FileDialog_SetFilename(*args
, **kwargs
)
2407 def SetWildcard(*args
, **kwargs
):
2409 SetWildcard(self, String wildCard)
2411 Sets the wildcard, which can contain multiple file types, for
2414 "BMP files (*.bmp)|*.bmp|GIF files (*.gif)|*.gif"
2417 return _windows_
.FileDialog_SetWildcard(*args
, **kwargs
)
2419 def SetStyle(*args
, **kwargs
):
2421 SetStyle(self, long style)
2423 Sets the dialog style.
2425 return _windows_
.FileDialog_SetStyle(*args
, **kwargs
)
2427 def SetFilterIndex(*args
, **kwargs
):
2429 SetFilterIndex(self, int filterIndex)
2431 Sets the default filter index, starting from zero.
2433 return _windows_
.FileDialog_SetFilterIndex(*args
, **kwargs
)
2435 def GetMessage(*args
, **kwargs
):
2437 GetMessage(self) -> String
2439 Returns the message that will be displayed on the dialog.
2441 return _windows_
.FileDialog_GetMessage(*args
, **kwargs
)
2443 def GetPath(*args
, **kwargs
):
2445 GetPath(self) -> String
2447 Returns the full path (directory and filename) of the selected file.
2449 return _windows_
.FileDialog_GetPath(*args
, **kwargs
)
2451 def GetDirectory(*args
, **kwargs
):
2453 GetDirectory(self) -> String
2455 Returns the default directory.
2457 return _windows_
.FileDialog_GetDirectory(*args
, **kwargs
)
2459 def GetFilename(*args
, **kwargs
):
2461 GetFilename(self) -> String
2463 Returns the default filename.
2465 return _windows_
.FileDialog_GetFilename(*args
, **kwargs
)
2467 def GetWildcard(*args
, **kwargs
):
2469 GetWildcard(self) -> String
2471 Returns the file dialog wildcard.
2473 return _windows_
.FileDialog_GetWildcard(*args
, **kwargs
)
2475 def GetStyle(*args
, **kwargs
):
2477 GetStyle(self) -> long
2479 Returns the dialog style.
2481 return _windows_
.FileDialog_GetStyle(*args
, **kwargs
)
2483 def GetFilterIndex(*args
, **kwargs
):
2485 GetFilterIndex(self) -> int
2487 Returns the index into the list of filters supplied, optionally, in
2488 the wildcard parameter. Before the dialog is shown, this is the index
2489 which will be used when the dialog is first displayed. After the
2490 dialog is shown, this is the index selected by the user.
2492 return _windows_
.FileDialog_GetFilterIndex(*args
, **kwargs
)
2494 def GetFilenames(*args
, **kwargs
):
2496 GetFilenames(self) -> PyObject
2498 Returns a list of filenames chosen in the dialog. This function
2499 should only be used with the dialogs which have wx.MULTIPLE style, use
2500 GetFilename for the others.
2502 return _windows_
.FileDialog_GetFilenames(*args
, **kwargs
)
2504 def GetPaths(*args
, **kwargs
):
2506 GetPaths(self) -> PyObject
2508 Fills the array paths with the full paths of the files chosen. This
2509 function should only be used with the dialogs which have wx.MULTIPLE
2510 style, use GetPath for the others.
2512 return _windows_
.FileDialog_GetPaths(*args
, **kwargs
)
2515 class FileDialogPtr(FileDialog
):
2516 def __init__(self
, this
):
2518 if not hasattr(self
,"thisown"): self
.thisown
= 0
2519 self
.__class
__ = FileDialog
2520 _windows_
.FileDialog_swigregister(FileDialogPtr
)
2522 CHOICEDLG_STYLE
= _windows_
.CHOICEDLG_STYLE
2523 class MultiChoiceDialog(Dialog
):
2524 """A simple dialog with a multi selection listbox."""
2526 return "<%s.%s; proxy of C++ wxMultiChoiceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2527 def __init__(self
, *args
, **kwargs
):
2529 __init__(Window parent, String message, String caption,
2530 List choices=[], long style=CHOICEDLG_STYLE,
2531 Point pos=DefaultPosition) -> MultiChoiceDialog
2533 Constructor. Use ShowModal method to show the dialog.
2535 newobj
= _windows_
.new_MultiChoiceDialog(*args
, **kwargs
)
2536 self
.this
= newobj
.this
2539 self
._setOORInfo
(self
)
2541 def SetSelections(*args
, **kwargs
):
2543 SetSelections(List selections)
2545 Specify the items in the list that should be selected, using a list of
2548 return _windows_
.MultiChoiceDialog_SetSelections(*args
, **kwargs
)
2550 def GetSelections(*args
, **kwargs
):
2552 GetSelections() -> [selections]
2554 Returns a list of integers representing the items that are selected.
2556 return _windows_
.MultiChoiceDialog_GetSelections(*args
, **kwargs
)
2559 class MultiChoiceDialogPtr(MultiChoiceDialog
):
2560 def __init__(self
, this
):
2562 if not hasattr(self
,"thisown"): self
.thisown
= 0
2563 self
.__class
__ = MultiChoiceDialog
2564 _windows_
.MultiChoiceDialog_swigregister(MultiChoiceDialogPtr
)
2566 class SingleChoiceDialog(Dialog
):
2567 """A simple dialog with a single selection listbox."""
2569 return "<%s.%s; proxy of C++ wxSingleChoiceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2570 def __init__(self
, *args
, **kwargs
):
2572 __init__(Window parent, String message, String caption,
2573 List choices=[], long style=CHOICEDLG_STYLE,
2574 Point pos=DefaultPosition) -> SingleChoiceDialog
2576 Constructor. Use ShowModal method to show the dialog.
2578 newobj
= _windows_
.new_SingleChoiceDialog(*args
, **kwargs
)
2579 self
.this
= newobj
.this
2582 self
._setOORInfo
(self
)
2584 def GetSelection(*args
, **kwargs
):
2586 GetSelection(self) -> int
2588 Get the index of teh currently selected item.
2590 return _windows_
.SingleChoiceDialog_GetSelection(*args
, **kwargs
)
2592 def GetStringSelection(*args
, **kwargs
):
2594 GetStringSelection(self) -> String
2596 Returns the string value of the currently selected item
2598 return _windows_
.SingleChoiceDialog_GetStringSelection(*args
, **kwargs
)
2600 def SetSelection(*args
, **kwargs
):
2602 SetSelection(self, int sel)
2604 Set the current selected item to sel
2606 return _windows_
.SingleChoiceDialog_SetSelection(*args
, **kwargs
)
2609 class SingleChoiceDialogPtr(SingleChoiceDialog
):
2610 def __init__(self
, this
):
2612 if not hasattr(self
,"thisown"): self
.thisown
= 0
2613 self
.__class
__ = SingleChoiceDialog
2614 _windows_
.SingleChoiceDialog_swigregister(SingleChoiceDialogPtr
)
2616 class TextEntryDialog(Dialog
):
2617 """A dialog with text control, [ok] and [cancel] buttons"""
2619 return "<%s.%s; proxy of C++ wxTextEntryDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2620 def __init__(self
, *args
, **kwargs
):
2622 __init__(self, Window parent, String message, String caption=GetTextFromUserPromptStr,
2623 String defaultValue=EmptyString,
2624 long style=wxOK|wxCANCEL|wxCENTRE, Point pos=DefaultPosition) -> TextEntryDialog
2626 Constructor. Use ShowModal method to show the dialog.
2628 newobj
= _windows_
.new_TextEntryDialog(*args
, **kwargs
)
2629 self
.this
= newobj
.this
2632 self
._setOORInfo
(self
)
2634 def GetValue(*args
, **kwargs
):
2636 GetValue(self) -> String
2638 Returns the text that the user has entered if the user has pressed OK,
2639 or the original value if the user has pressed Cancel.
2641 return _windows_
.TextEntryDialog_GetValue(*args
, **kwargs
)
2643 def SetValue(*args
, **kwargs
):
2645 SetValue(self, String value)
2647 Sets the default text value.
2649 return _windows_
.TextEntryDialog_SetValue(*args
, **kwargs
)
2652 class TextEntryDialogPtr(TextEntryDialog
):
2653 def __init__(self
, this
):
2655 if not hasattr(self
,"thisown"): self
.thisown
= 0
2656 self
.__class
__ = TextEntryDialog
2657 _windows_
.TextEntryDialog_swigregister(TextEntryDialogPtr
)
2659 class FontData(_core
.Object
):
2661 This class holds a variety of information related to font dialogs and
2662 is used to transfer settings to and results from a `wx.FontDialog`.
2665 return "<%s.%s; proxy of C++ wxFontData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2666 def __init__(self
, *args
, **kwargs
):
2668 __init__(self) -> FontData
2670 This class holds a variety of information related to font dialogs and
2671 is used to transfer settings to and results from a `wx.FontDialog`.
2673 newobj
= _windows_
.new_FontData(*args
, **kwargs
)
2674 self
.this
= newobj
.this
2677 def __del__(self
, destroy
=_windows_
.delete_FontData
):
2680 if self
.thisown
: destroy(self
)
2683 def EnableEffects(*args
, **kwargs
):
2685 EnableEffects(self, bool enable)
2687 Enables or disables 'effects' under MS Windows only. This refers to
2688 the controls for manipulating colour, strikeout and underline
2689 properties. The default value is true.
2691 return _windows_
.FontData_EnableEffects(*args
, **kwargs
)
2693 def GetAllowSymbols(*args
, **kwargs
):
2695 GetAllowSymbols(self) -> bool
2697 Under MS Windows, returns a flag determining whether symbol fonts can
2698 be selected. Has no effect on other platforms. The default value is
2701 return _windows_
.FontData_GetAllowSymbols(*args
, **kwargs
)
2703 def GetColour(*args
, **kwargs
):
2705 GetColour(self) -> Colour
2707 Gets the colour associated with the font dialog. The default value is
2710 return _windows_
.FontData_GetColour(*args
, **kwargs
)
2712 def GetChosenFont(*args
, **kwargs
):
2714 GetChosenFont(self) -> Font
2716 Gets the font chosen by the user.
2718 return _windows_
.FontData_GetChosenFont(*args
, **kwargs
)
2720 def GetEnableEffects(*args
, **kwargs
):
2722 GetEnableEffects(self) -> bool
2724 Determines whether 'effects' are enabled under Windows.
2726 return _windows_
.FontData_GetEnableEffects(*args
, **kwargs
)
2728 def GetInitialFont(*args
, **kwargs
):
2730 GetInitialFont(self) -> Font
2732 Gets the font that will be initially used by the font dialog. This
2733 should have previously been set by the application.
2735 return _windows_
.FontData_GetInitialFont(*args
, **kwargs
)
2737 def GetShowHelp(*args
, **kwargs
):
2739 GetShowHelp(self) -> bool
2741 Returns true if the Help button will be shown (Windows only). The
2742 default value is false.
2744 return _windows_
.FontData_GetShowHelp(*args
, **kwargs
)
2746 def SetAllowSymbols(*args
, **kwargs
):
2748 SetAllowSymbols(self, bool allowSymbols)
2750 Under MS Windows, determines whether symbol fonts can be selected. Has
2751 no effect on other platforms. The default value is true.
2753 return _windows_
.FontData_SetAllowSymbols(*args
, **kwargs
)
2755 def SetChosenFont(*args
, **kwargs
):
2757 SetChosenFont(self, Font font)
2759 Sets the font that will be returned to the user (normally for internal
2762 return _windows_
.FontData_SetChosenFont(*args
, **kwargs
)
2764 def SetColour(*args
, **kwargs
):
2766 SetColour(self, Colour colour)
2768 Sets the colour that will be used for the font foreground colour. The
2769 default colour is black.
2771 return _windows_
.FontData_SetColour(*args
, **kwargs
)
2773 def SetInitialFont(*args
, **kwargs
):
2775 SetInitialFont(self, Font font)
2777 Sets the font that will be initially used by the font dialog.
2779 return _windows_
.FontData_SetInitialFont(*args
, **kwargs
)
2781 def SetRange(*args
, **kwargs
):
2783 SetRange(self, int min, int max)
2785 Sets the valid range for the font point size (Windows only). The
2786 default is 0, 0 (unrestricted range).
2788 return _windows_
.FontData_SetRange(*args
, **kwargs
)
2790 def SetShowHelp(*args
, **kwargs
):
2792 SetShowHelp(self, bool showHelp)
2794 Determines whether the Help button will be displayed in the font
2795 dialog (Windows only). The default value is false.
2797 return _windows_
.FontData_SetShowHelp(*args
, **kwargs
)
2800 class FontDataPtr(FontData
):
2801 def __init__(self
, this
):
2803 if not hasattr(self
,"thisown"): self
.thisown
= 0
2804 self
.__class
__ = FontData
2805 _windows_
.FontData_swigregister(FontDataPtr
)
2807 class FontDialog(Dialog
):
2809 wx.FontDialog allows the user to select a system font and its attributes.
2815 return "<%s.%s; proxy of C++ wxFontDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2816 def __init__(self
, *args
, **kwargs
):
2818 __init__(self, Window parent, FontData data) -> FontDialog
2820 Constructor. Pass a parent window and the `wx.FontData` object to be
2821 used to initialize the dialog controls. Call `ShowModal` to display
2822 the dialog. If ShowModal returns ``wx.ID_OK`` then you can fetch the
2823 results with via the `wx.FontData` returned by `GetFontData`.
2825 newobj
= _windows_
.new_FontDialog(*args
, **kwargs
)
2826 self
.this
= newobj
.this
2829 self
._setOORInfo
(self
)
2831 def GetFontData(*args
, **kwargs
):
2833 GetFontData(self) -> FontData
2835 Returns a reference to the internal `wx.FontData` used by the
2838 return _windows_
.FontDialog_GetFontData(*args
, **kwargs
)
2841 class FontDialogPtr(FontDialog
):
2842 def __init__(self
, this
):
2844 if not hasattr(self
,"thisown"): self
.thisown
= 0
2845 self
.__class
__ = FontDialog
2846 _windows_
.FontDialog_swigregister(FontDialogPtr
)
2848 class MessageDialog(Dialog
):
2850 This class provides a simple dialog that shows a single or multi-line
2851 message, with a choice of OK, Yes, No and/or Cancel buttons.
2856 ================= =============================================
2857 wx.OK Show an OK button.
2858 wx.CANCEL Show a Cancel button.
2859 wx.YES_NO Show Yes and No buttons.
2860 wx.YES_DEFAULT Used with wxYES_NO, makes Yes button the
2861 default - which is the default behaviour.
2862 wx.NO_DEFAULT Used with wxYES_NO, makes No button the default.
2863 wx.ICON_EXCLAMATION Shows an exclamation mark icon.
2864 wx.ICON_HAND Shows an error icon.
2865 wx.ICON_ERROR Shows an error icon - the same as wxICON_HAND.
2866 wx.ICON_QUESTION Shows a question mark icon.
2867 wx.ICON_INFORMATION Shows an information (i) icon.
2868 wx.STAY_ON_TOP The message box stays on top of all other
2869 window, even those of the other applications
2871 ================= =============================================
2875 return "<%s.%s; proxy of C++ wxMessageDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2876 def __init__(self
, *args
, **kwargs
):
2878 __init__(self, Window parent, String message, String caption=MessageBoxCaptionStr,
2879 long style=wxOK|wxCANCEL|wxCENTRE,
2880 Point pos=DefaultPosition) -> MessageDialog
2882 Constructor, use `ShowModal` to display the dialog.
2884 newobj
= _windows_
.new_MessageDialog(*args
, **kwargs
)
2885 self
.this
= newobj
.this
2888 self
._setOORInfo
(self
)
2891 class MessageDialogPtr(MessageDialog
):
2892 def __init__(self
, this
):
2894 if not hasattr(self
,"thisown"): self
.thisown
= 0
2895 self
.__class
__ = MessageDialog
2896 _windows_
.MessageDialog_swigregister(MessageDialogPtr
)
2898 class ProgressDialog(Frame
):
2900 A dialog that shows a short message and a progress bar. Optionally, it
2901 can display an ABORT button.
2905 ================= =============================================
2906 wx.PD_APP_MODAL Make the progress dialog modal. If this flag is
2907 not given, it is only "locally" modal -
2908 that is the input to the parent window is
2909 disabled, but not to the other ones.
2911 wx.PD_AUTO_HIDE Causes the progress dialog to disappear from
2912 screen as soon as the maximum value of the
2913 progress meter has been reached.
2915 wx.PD_CAN_ABORT This flag tells the dialog that it should have
2916 a "Cancel" button which the user may press. If
2917 this happens, the next call to Update() will
2920 wx.PD_ELAPSED_TIME This flag tells the dialog that it should show
2921 elapsed time (since creating the dialog).
2923 wx.PD_ESTIMATED_TIME This flag tells the dialog that it should show
2926 wx.PD_REMAINING_TIME This flag tells the dialog that it should show
2928 ================= =============================================
2932 return "<%s.%s; proxy of C++ wxProgressDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2933 def __init__(self
, *args
, **kwargs
):
2935 __init__(self, String title, String message, int maximum=100, Window parent=None,
2936 int style=wxPD_AUTO_HIDE|wxPD_APP_MODAL) -> ProgressDialog
2938 Constructor. Creates the dialog, displays it and disables user input
2939 for other windows, or, if wx.PD_APP_MODAL flag is not given, for its
2942 newobj
= _windows_
.new_ProgressDialog(*args
, **kwargs
)
2943 self
.this
= newobj
.this
2946 self
._setOORInfo
(self
)
2948 def Update(*args
, **kwargs
):
2950 Update(self, int value, String newmsg=EmptyString) -> bool
2952 Updates the dialog, setting the progress bar to the new value and, if
2953 given changes the message above it. Returns true unless the Cancel
2954 button has been pressed.
2956 If false is returned, the application can either immediately destroy
2957 the dialog or ask the user for the confirmation and if the abort is
2958 not confirmed the dialog may be resumed with Resume function.
2960 return _windows_
.ProgressDialog_Update(*args
, **kwargs
)
2962 def Resume(*args
, **kwargs
):
2966 Can be used to continue with the dialog, after the user had chosen to
2969 return _windows_
.ProgressDialog_Resume(*args
, **kwargs
)
2972 class ProgressDialogPtr(ProgressDialog
):
2973 def __init__(self
, this
):
2975 if not hasattr(self
,"thisown"): self
.thisown
= 0
2976 self
.__class
__ = ProgressDialog
2977 _windows_
.ProgressDialog_swigregister(ProgressDialogPtr
)
2979 FR_DOWN
= _windows_
.FR_DOWN
2980 FR_WHOLEWORD
= _windows_
.FR_WHOLEWORD
2981 FR_MATCHCASE
= _windows_
.FR_MATCHCASE
2982 FR_REPLACEDIALOG
= _windows_
.FR_REPLACEDIALOG
2983 FR_NOUPDOWN
= _windows_
.FR_NOUPDOWN
2984 FR_NOMATCHCASE
= _windows_
.FR_NOMATCHCASE
2985 FR_NOWHOLEWORD
= _windows_
.FR_NOWHOLEWORD
2986 wxEVT_COMMAND_FIND
= _windows_
.wxEVT_COMMAND_FIND
2987 wxEVT_COMMAND_FIND_NEXT
= _windows_
.wxEVT_COMMAND_FIND_NEXT
2988 wxEVT_COMMAND_FIND_REPLACE
= _windows_
.wxEVT_COMMAND_FIND_REPLACE
2989 wxEVT_COMMAND_FIND_REPLACE_ALL
= _windows_
.wxEVT_COMMAND_FIND_REPLACE_ALL
2990 wxEVT_COMMAND_FIND_CLOSE
= _windows_
.wxEVT_COMMAND_FIND_CLOSE
2991 EVT_FIND
= wx
.PyEventBinder( wxEVT_COMMAND_FIND
, 1 )
2992 EVT_FIND_NEXT
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_NEXT
, 1 )
2993 EVT_FIND_REPLACE
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE
, 1 )
2994 EVT_FIND_REPLACE_ALL
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE_ALL
, 1 )
2995 EVT_FIND_CLOSE
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_CLOSE
, 1 )
2997 # For backwards compatibility. Should they be removed?
2998 EVT_COMMAND_FIND
= EVT_FIND
2999 EVT_COMMAND_FIND_NEXT
= EVT_FIND_NEXT
3000 EVT_COMMAND_FIND_REPLACE
= EVT_FIND_REPLACE
3001 EVT_COMMAND_FIND_REPLACE_ALL
= EVT_FIND_REPLACE_ALL
3002 EVT_COMMAND_FIND_CLOSE
= EVT_FIND_CLOSE
3004 class FindDialogEvent(_core
.CommandEvent
):
3005 """Events for the FindReplaceDialog"""
3007 return "<%s.%s; proxy of C++ wxFindDialogEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3008 def __init__(self
, *args
, **kwargs
):
3010 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0) -> FindDialogEvent
3012 Events for the FindReplaceDialog
3014 newobj
= _windows_
.new_FindDialogEvent(*args
, **kwargs
)
3015 self
.this
= newobj
.this
3018 def GetFlags(*args
, **kwargs
):
3020 GetFlags(self) -> int
3022 Get the currently selected flags: this is the combination of
3023 wx.FR_DOWN, wx.FR_WHOLEWORD and wx.FR_MATCHCASE flags.
3025 return _windows_
.FindDialogEvent_GetFlags(*args
, **kwargs
)
3027 def GetFindString(*args
, **kwargs
):
3029 GetFindString(self) -> String
3031 Return the string to find (never empty).
3033 return _windows_
.FindDialogEvent_GetFindString(*args
, **kwargs
)
3035 def GetReplaceString(*args
, **kwargs
):
3037 GetReplaceString(self) -> String
3039 Return the string to replace the search string with (only for replace
3040 and replace all events).
3042 return _windows_
.FindDialogEvent_GetReplaceString(*args
, **kwargs
)
3044 def GetDialog(*args
, **kwargs
):
3046 GetDialog(self) -> FindReplaceDialog
3048 Return the pointer to the dialog which generated this event.
3050 return _windows_
.FindDialogEvent_GetDialog(*args
, **kwargs
)
3052 def SetFlags(*args
, **kwargs
):
3053 """SetFlags(self, int flags)"""
3054 return _windows_
.FindDialogEvent_SetFlags(*args
, **kwargs
)
3056 def SetFindString(*args
, **kwargs
):
3057 """SetFindString(self, String str)"""
3058 return _windows_
.FindDialogEvent_SetFindString(*args
, **kwargs
)
3060 def SetReplaceString(*args
, **kwargs
):
3061 """SetReplaceString(self, String str)"""
3062 return _windows_
.FindDialogEvent_SetReplaceString(*args
, **kwargs
)
3065 class FindDialogEventPtr(FindDialogEvent
):
3066 def __init__(self
, this
):
3068 if not hasattr(self
,"thisown"): self
.thisown
= 0
3069 self
.__class
__ = FindDialogEvent
3070 _windows_
.FindDialogEvent_swigregister(FindDialogEventPtr
)
3072 class FindReplaceData(_core
.Object
):
3074 wx.FindReplaceData holds the data for wx.FindReplaceDialog. It is used
3075 to initialize the dialog with the default values and will keep the
3076 last values from the dialog when it is closed. It is also updated each
3077 time a `wx.FindDialogEvent` is generated so instead of using the
3078 `wx.FindDialogEvent` methods you can also directly query this object.
3080 Note that all SetXXX() methods may only be called before showing the
3081 dialog and calling them has no effect later.
3085 ================ ===============================================
3086 wx.FR_DOWN Downward search/replace selected (otherwise,
3089 wx.FR_WHOLEWORD Whole word search/replace selected
3091 wx.FR_MATCHCASE Case sensitive search/replace selected
3092 (otherwise, case insensitive)
3093 ================ ===============================================
3097 return "<%s.%s; proxy of C++ wxFindReplaceData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3098 def __init__(self
, *args
, **kwargs
):
3100 __init__(self, int flags=0) -> FindReplaceData
3102 Constuctor initializes the flags to default value (0).
3104 newobj
= _windows_
.new_FindReplaceData(*args
, **kwargs
)
3105 self
.this
= newobj
.this
3108 def __del__(self
, destroy
=_windows_
.delete_FindReplaceData
):
3111 if self
.thisown
: destroy(self
)
3114 def GetFindString(*args
, **kwargs
):
3116 GetFindString(self) -> String
3118 Get the string to find.
3120 return _windows_
.FindReplaceData_GetFindString(*args
, **kwargs
)
3122 def GetReplaceString(*args
, **kwargs
):
3124 GetReplaceString(self) -> String
3126 Get the replacement string.
3128 return _windows_
.FindReplaceData_GetReplaceString(*args
, **kwargs
)
3130 def GetFlags(*args
, **kwargs
):
3132 GetFlags(self) -> int
3134 Get the combination of flag values.
3136 return _windows_
.FindReplaceData_GetFlags(*args
, **kwargs
)
3138 def SetFlags(*args
, **kwargs
):
3140 SetFlags(self, int flags)
3142 Set the flags to use to initialize the controls of the dialog.
3144 return _windows_
.FindReplaceData_SetFlags(*args
, **kwargs
)
3146 def SetFindString(*args
, **kwargs
):
3148 SetFindString(self, String str)
3150 Set the string to find (used as initial value by the dialog).
3152 return _windows_
.FindReplaceData_SetFindString(*args
, **kwargs
)
3154 def SetReplaceString(*args
, **kwargs
):
3156 SetReplaceString(self, String str)
3158 Set the replacement string (used as initial value by the dialog).
3160 return _windows_
.FindReplaceData_SetReplaceString(*args
, **kwargs
)
3163 class FindReplaceDataPtr(FindReplaceData
):
3164 def __init__(self
, this
):
3166 if not hasattr(self
,"thisown"): self
.thisown
= 0
3167 self
.__class
__ = FindReplaceData
3168 _windows_
.FindReplaceData_swigregister(FindReplaceDataPtr
)
3170 class FindReplaceDialog(Dialog
):
3172 wx.FindReplaceDialog is a standard modeless dialog which is used to
3173 allow the user to search for some text (and possibly replace it with
3174 something else). The actual searching is supposed to be done in the
3175 owner window which is the parent of this dialog. Note that it means
3176 that unlike for the other standard dialogs this one must have a parent
3177 window. Also note that there is no way to use this dialog in a modal
3178 way; it is always, by design and implementation, modeless.
3184 ===================== =========================================
3185 wx.FR_REPLACEDIALOG replace dialog (otherwise find dialog)
3187 wx.FR_NOUPDOWN don't allow changing the search direction
3189 wx.FR_NOMATCHCASE don't allow case sensitive searching
3191 wx.FR_NOWHOLEWORD don't allow whole word searching
3192 ===================== =========================================
3196 return "<%s.%s; proxy of C++ wxFindReplaceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3197 def __init__(self
, *args
, **kwargs
):
3199 __init__(self, Window parent, FindReplaceData data, String title,
3200 int style=0) -> FindReplaceDialog
3202 Create a FindReplaceDialog. The parent and data parameters must be
3203 non-None. Use Show to display the dialog.
3205 newobj
= _windows_
.new_FindReplaceDialog(*args
, **kwargs
)
3206 self
.this
= newobj
.this
3209 self
._setOORInfo
(self
)
3211 def Create(*args
, **kwargs
):
3213 Create(self, Window parent, FindReplaceData data, String title,
3214 int style=0) -> bool
3216 Create the dialog, for 2-phase create.
3218 return _windows_
.FindReplaceDialog_Create(*args
, **kwargs
)
3220 def GetData(*args
, **kwargs
):
3222 GetData(self) -> FindReplaceData
3224 Get the FindReplaceData object used by this dialog.
3226 return _windows_
.FindReplaceDialog_GetData(*args
, **kwargs
)
3228 def SetData(*args
, **kwargs
):
3230 SetData(self, FindReplaceData data)
3232 Set the FindReplaceData object used by this dialog.
3234 return _windows_
.FindReplaceDialog_SetData(*args
, **kwargs
)
3237 class FindReplaceDialogPtr(FindReplaceDialog
):
3238 def __init__(self
, this
):
3240 if not hasattr(self
,"thisown"): self
.thisown
= 0
3241 self
.__class
__ = FindReplaceDialog
3242 _windows_
.FindReplaceDialog_swigregister(FindReplaceDialogPtr
)
3244 def PreFindReplaceDialog(*args
, **kwargs
):
3246 PreFindReplaceDialog() -> FindReplaceDialog
3248 Precreate a FindReplaceDialog for 2-phase creation
3250 val
= _windows_
.new_PreFindReplaceDialog(*args
, **kwargs
)
3254 #---------------------------------------------------------------------------
3256 IDM_WINDOWTILE
= _windows_
.IDM_WINDOWTILE
3257 IDM_WINDOWTILEHOR
= _windows_
.IDM_WINDOWTILEHOR
3258 IDM_WINDOWCASCADE
= _windows_
.IDM_WINDOWCASCADE
3259 IDM_WINDOWICONS
= _windows_
.IDM_WINDOWICONS
3260 IDM_WINDOWNEXT
= _windows_
.IDM_WINDOWNEXT
3261 IDM_WINDOWTILEVERT
= _windows_
.IDM_WINDOWTILEVERT
3262 FIRST_MDI_CHILD
= _windows_
.FIRST_MDI_CHILD
3263 LAST_MDI_CHILD
= _windows_
.LAST_MDI_CHILD
3264 class MDIParentFrame(Frame
):
3266 return "<%s.%s; proxy of C++ wxMDIParentFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3267 def __init__(self
, *args
, **kwargs
):
3269 __init__(self, Window parent, int id, String title, Point pos=DefaultPosition,
3270 Size size=DefaultSize, long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
3271 String name=FrameNameStr) -> MDIParentFrame
3273 newobj
= _windows_
.new_MDIParentFrame(*args
, **kwargs
)
3274 self
.this
= newobj
.this
3277 self
._setOORInfo
(self
)
3279 def Create(*args
, **kwargs
):
3281 Create(self, Window parent, int id, String title, Point pos=DefaultPosition,
3282 Size size=DefaultSize, long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
3283 String name=FrameNameStr) -> bool
3285 return _windows_
.MDIParentFrame_Create(*args
, **kwargs
)
3287 def ActivateNext(*args
, **kwargs
):
3288 """ActivateNext(self)"""
3289 return _windows_
.MDIParentFrame_ActivateNext(*args
, **kwargs
)
3291 def ActivatePrevious(*args
, **kwargs
):
3292 """ActivatePrevious(self)"""
3293 return _windows_
.MDIParentFrame_ActivatePrevious(*args
, **kwargs
)
3295 def ArrangeIcons(*args
, **kwargs
):
3296 """ArrangeIcons(self)"""
3297 return _windows_
.MDIParentFrame_ArrangeIcons(*args
, **kwargs
)
3299 def Cascade(*args
, **kwargs
):
3301 return _windows_
.MDIParentFrame_Cascade(*args
, **kwargs
)
3303 def GetActiveChild(*args
, **kwargs
):
3304 """GetActiveChild(self) -> MDIChildFrame"""
3305 return _windows_
.MDIParentFrame_GetActiveChild(*args
, **kwargs
)
3307 def GetClientWindow(*args
, **kwargs
):
3308 """GetClientWindow(self) -> MDIClientWindow"""
3309 return _windows_
.MDIParentFrame_GetClientWindow(*args
, **kwargs
)
3311 def GetToolBar(*args
, **kwargs
):
3312 """GetToolBar(self) -> Window"""
3313 return _windows_
.MDIParentFrame_GetToolBar(*args
, **kwargs
)
3315 def Tile(*args
, **kwargs
):
3317 return _windows_
.MDIParentFrame_Tile(*args
, **kwargs
)
3320 class MDIParentFramePtr(MDIParentFrame
):
3321 def __init__(self
, this
):
3323 if not hasattr(self
,"thisown"): self
.thisown
= 0
3324 self
.__class
__ = MDIParentFrame
3325 _windows_
.MDIParentFrame_swigregister(MDIParentFramePtr
)
3327 def PreMDIParentFrame(*args
, **kwargs
):
3328 """PreMDIParentFrame() -> MDIParentFrame"""
3329 val
= _windows_
.new_PreMDIParentFrame(*args
, **kwargs
)
3333 class MDIChildFrame(Frame
):
3335 return "<%s.%s; proxy of C++ wxMDIChildFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3336 def __init__(self
, *args
, **kwargs
):
3338 __init__(self, MDIParentFrame parent, int id, String title, Point pos=DefaultPosition,
3339 Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE,
3340 String name=FrameNameStr) -> MDIChildFrame
3342 newobj
= _windows_
.new_MDIChildFrame(*args
, **kwargs
)
3343 self
.this
= newobj
.this
3346 self
._setOORInfo
(self
)
3348 def Create(*args
, **kwargs
):
3350 Create(self, MDIParentFrame parent, int id, String title, Point pos=DefaultPosition,
3351 Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE,
3352 String name=FrameNameStr) -> bool
3354 return _windows_
.MDIChildFrame_Create(*args
, **kwargs
)
3356 def Activate(*args
, **kwargs
):
3357 """Activate(self)"""
3358 return _windows_
.MDIChildFrame_Activate(*args
, **kwargs
)
3360 def Maximize(*args
, **kwargs
):
3361 """Maximize(self, bool maximize)"""
3362 return _windows_
.MDIChildFrame_Maximize(*args
, **kwargs
)
3364 def Restore(*args
, **kwargs
):
3366 return _windows_
.MDIChildFrame_Restore(*args
, **kwargs
)
3369 class MDIChildFramePtr(MDIChildFrame
):
3370 def __init__(self
, this
):
3372 if not hasattr(self
,"thisown"): self
.thisown
= 0
3373 self
.__class
__ = MDIChildFrame
3374 _windows_
.MDIChildFrame_swigregister(MDIChildFramePtr
)
3376 def PreMDIChildFrame(*args
, **kwargs
):
3377 """PreMDIChildFrame() -> MDIChildFrame"""
3378 val
= _windows_
.new_PreMDIChildFrame(*args
, **kwargs
)
3382 class MDIClientWindow(_core
.Window
):
3384 return "<%s.%s; proxy of C++ wxMDIClientWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3385 def __init__(self
, *args
, **kwargs
):
3386 """__init__(self, MDIParentFrame parent, long style=0) -> MDIClientWindow"""
3387 newobj
= _windows_
.new_MDIClientWindow(*args
, **kwargs
)
3388 self
.this
= newobj
.this
3391 self
._setOORInfo
(self
)
3393 def Create(*args
, **kwargs
):
3394 """Create(self, MDIParentFrame parent, long style=0) -> bool"""
3395 return _windows_
.MDIClientWindow_Create(*args
, **kwargs
)
3398 class MDIClientWindowPtr(MDIClientWindow
):
3399 def __init__(self
, this
):
3401 if not hasattr(self
,"thisown"): self
.thisown
= 0
3402 self
.__class
__ = MDIClientWindow
3403 _windows_
.MDIClientWindow_swigregister(MDIClientWindowPtr
)
3405 def PreMDIClientWindow(*args
, **kwargs
):
3406 """PreMDIClientWindow() -> MDIClientWindow"""
3407 val
= _windows_
.new_PreMDIClientWindow(*args
, **kwargs
)
3411 #---------------------------------------------------------------------------
3413 class PyWindow(_core
.Window
):
3415 return "<%s.%s; proxy of C++ wxPyWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3416 def __init__(self
, *args
, **kwargs
):
3418 __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3419 long style=0, String name=PanelNameStr) -> PyWindow
3421 newobj
= _windows_
.new_PyWindow(*args
, **kwargs
)
3422 self
.this
= newobj
.this
3425 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyWindow
)
3427 def _setCallbackInfo(*args
, **kwargs
):
3428 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3429 return _windows_
.PyWindow__setCallbackInfo(*args
, **kwargs
)
3431 def base_DoMoveWindow(*args
, **kwargs
):
3432 """base_DoMoveWindow(self, int x, int y, int width, int height)"""
3433 return _windows_
.PyWindow_base_DoMoveWindow(*args
, **kwargs
)
3435 def base_DoSetSize(*args
, **kwargs
):
3436 """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3437 return _windows_
.PyWindow_base_DoSetSize(*args
, **kwargs
)
3439 def base_DoSetClientSize(*args
, **kwargs
):
3440 """base_DoSetClientSize(self, int width, int height)"""
3441 return _windows_
.PyWindow_base_DoSetClientSize(*args
, **kwargs
)
3443 def base_DoSetVirtualSize(*args
, **kwargs
):
3444 """base_DoSetVirtualSize(self, int x, int y)"""
3445 return _windows_
.PyWindow_base_DoSetVirtualSize(*args
, **kwargs
)
3447 def base_DoGetSize(*args
, **kwargs
):
3448 """base_DoGetSize() -> (width, height)"""
3449 return _windows_
.PyWindow_base_DoGetSize(*args
, **kwargs
)
3451 def base_DoGetClientSize(*args
, **kwargs
):
3452 """base_DoGetClientSize() -> (width, height)"""
3453 return _windows_
.PyWindow_base_DoGetClientSize(*args
, **kwargs
)
3455 def base_DoGetPosition(*args
, **kwargs
):
3456 """base_DoGetPosition() -> (x,y)"""
3457 return _windows_
.PyWindow_base_DoGetPosition(*args
, **kwargs
)
3459 def base_DoGetVirtualSize(*args
, **kwargs
):
3460 """base_DoGetVirtualSize(self) -> Size"""
3461 return _windows_
.PyWindow_base_DoGetVirtualSize(*args
, **kwargs
)
3463 def base_DoGetBestSize(*args
, **kwargs
):
3464 """base_DoGetBestSize(self) -> Size"""
3465 return _windows_
.PyWindow_base_DoGetBestSize(*args
, **kwargs
)
3467 def base_InitDialog(*args
, **kwargs
):
3468 """base_InitDialog(self)"""
3469 return _windows_
.PyWindow_base_InitDialog(*args
, **kwargs
)
3471 def base_TransferDataToWindow(*args
, **kwargs
):
3472 """base_TransferDataToWindow(self) -> bool"""
3473 return _windows_
.PyWindow_base_TransferDataToWindow(*args
, **kwargs
)
3475 def base_TransferDataFromWindow(*args
, **kwargs
):
3476 """base_TransferDataFromWindow(self) -> bool"""
3477 return _windows_
.PyWindow_base_TransferDataFromWindow(*args
, **kwargs
)
3479 def base_Validate(*args
, **kwargs
):
3480 """base_Validate(self) -> bool"""
3481 return _windows_
.PyWindow_base_Validate(*args
, **kwargs
)
3483 def base_AcceptsFocus(*args
, **kwargs
):
3484 """base_AcceptsFocus(self) -> bool"""
3485 return _windows_
.PyWindow_base_AcceptsFocus(*args
, **kwargs
)
3487 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
3488 """base_AcceptsFocusFromKeyboard(self) -> bool"""
3489 return _windows_
.PyWindow_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3491 def base_GetMaxSize(*args
, **kwargs
):
3492 """base_GetMaxSize(self) -> Size"""
3493 return _windows_
.PyWindow_base_GetMaxSize(*args
, **kwargs
)
3495 def base_AddChild(*args
, **kwargs
):
3496 """base_AddChild(self, Window child)"""
3497 return _windows_
.PyWindow_base_AddChild(*args
, **kwargs
)
3499 def base_RemoveChild(*args
, **kwargs
):
3500 """base_RemoveChild(self, Window child)"""
3501 return _windows_
.PyWindow_base_RemoveChild(*args
, **kwargs
)
3503 def base_ShouldInheritColours(*args
, **kwargs
):
3504 """base_ShouldInheritColours(self) -> bool"""
3505 return _windows_
.PyWindow_base_ShouldInheritColours(*args
, **kwargs
)
3507 def base_ApplyParentThemeBackground(*args
, **kwargs
):
3508 """base_ApplyParentThemeBackground(self, Colour c)"""
3509 return _windows_
.PyWindow_base_ApplyParentThemeBackground(*args
, **kwargs
)
3512 class PyWindowPtr(PyWindow
):
3513 def __init__(self
, this
):
3515 if not hasattr(self
,"thisown"): self
.thisown
= 0
3516 self
.__class
__ = PyWindow
3517 _windows_
.PyWindow_swigregister(PyWindowPtr
)
3519 def PrePyWindow(*args
, **kwargs
):
3520 """PrePyWindow() -> PyWindow"""
3521 val
= _windows_
.new_PrePyWindow(*args
, **kwargs
)
3525 class PyPanel(Panel
):
3527 return "<%s.%s; proxy of C++ wxPyPanel instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3528 def __init__(self
, *args
, **kwargs
):
3530 __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3531 long style=0, String name=PanelNameStr) -> PyPanel
3533 newobj
= _windows_
.new_PyPanel(*args
, **kwargs
)
3534 self
.this
= newobj
.this
3537 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyPanel
)
3539 def _setCallbackInfo(*args
, **kwargs
):
3540 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3541 return _windows_
.PyPanel__setCallbackInfo(*args
, **kwargs
)
3543 def base_DoMoveWindow(*args
, **kwargs
):
3544 """base_DoMoveWindow(self, int x, int y, int width, int height)"""
3545 return _windows_
.PyPanel_base_DoMoveWindow(*args
, **kwargs
)
3547 def base_DoSetSize(*args
, **kwargs
):
3548 """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3549 return _windows_
.PyPanel_base_DoSetSize(*args
, **kwargs
)
3551 def base_DoSetClientSize(*args
, **kwargs
):
3552 """base_DoSetClientSize(self, int width, int height)"""
3553 return _windows_
.PyPanel_base_DoSetClientSize(*args
, **kwargs
)
3555 def base_DoSetVirtualSize(*args
, **kwargs
):
3556 """base_DoSetVirtualSize(self, int x, int y)"""
3557 return _windows_
.PyPanel_base_DoSetVirtualSize(*args
, **kwargs
)
3559 def base_DoGetSize(*args
, **kwargs
):
3560 """base_DoGetSize() -> (width, height)"""
3561 return _windows_
.PyPanel_base_DoGetSize(*args
, **kwargs
)
3563 def base_DoGetClientSize(*args
, **kwargs
):
3564 """base_DoGetClientSize() -> (width, height)"""
3565 return _windows_
.PyPanel_base_DoGetClientSize(*args
, **kwargs
)
3567 def base_DoGetPosition(*args
, **kwargs
):
3568 """base_DoGetPosition() -> (x,y)"""
3569 return _windows_
.PyPanel_base_DoGetPosition(*args
, **kwargs
)
3571 def base_DoGetVirtualSize(*args
, **kwargs
):
3572 """base_DoGetVirtualSize(self) -> Size"""
3573 return _windows_
.PyPanel_base_DoGetVirtualSize(*args
, **kwargs
)
3575 def base_DoGetBestSize(*args
, **kwargs
):
3576 """base_DoGetBestSize(self) -> Size"""
3577 return _windows_
.PyPanel_base_DoGetBestSize(*args
, **kwargs
)
3579 def base_InitDialog(*args
, **kwargs
):
3580 """base_InitDialog(self)"""
3581 return _windows_
.PyPanel_base_InitDialog(*args
, **kwargs
)
3583 def base_TransferDataToWindow(*args
, **kwargs
):
3584 """base_TransferDataToWindow(self) -> bool"""
3585 return _windows_
.PyPanel_base_TransferDataToWindow(*args
, **kwargs
)
3587 def base_TransferDataFromWindow(*args
, **kwargs
):
3588 """base_TransferDataFromWindow(self) -> bool"""
3589 return _windows_
.PyPanel_base_TransferDataFromWindow(*args
, **kwargs
)
3591 def base_Validate(*args
, **kwargs
):
3592 """base_Validate(self) -> bool"""
3593 return _windows_
.PyPanel_base_Validate(*args
, **kwargs
)
3595 def base_AcceptsFocus(*args
, **kwargs
):
3596 """base_AcceptsFocus(self) -> bool"""
3597 return _windows_
.PyPanel_base_AcceptsFocus(*args
, **kwargs
)
3599 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
3600 """base_AcceptsFocusFromKeyboard(self) -> bool"""
3601 return _windows_
.PyPanel_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3603 def base_GetMaxSize(*args
, **kwargs
):
3604 """base_GetMaxSize(self) -> Size"""
3605 return _windows_
.PyPanel_base_GetMaxSize(*args
, **kwargs
)
3607 def base_AddChild(*args
, **kwargs
):
3608 """base_AddChild(self, Window child)"""
3609 return _windows_
.PyPanel_base_AddChild(*args
, **kwargs
)
3611 def base_RemoveChild(*args
, **kwargs
):
3612 """base_RemoveChild(self, Window child)"""
3613 return _windows_
.PyPanel_base_RemoveChild(*args
, **kwargs
)
3615 def base_ShouldInheritColours(*args
, **kwargs
):
3616 """base_ShouldInheritColours(self) -> bool"""
3617 return _windows_
.PyPanel_base_ShouldInheritColours(*args
, **kwargs
)
3619 def base_ApplyParentThemeBackground(*args
, **kwargs
):
3620 """base_ApplyParentThemeBackground(self, Colour c)"""
3621 return _windows_
.PyPanel_base_ApplyParentThemeBackground(*args
, **kwargs
)
3624 class PyPanelPtr(PyPanel
):
3625 def __init__(self
, this
):
3627 if not hasattr(self
,"thisown"): self
.thisown
= 0
3628 self
.__class
__ = PyPanel
3629 _windows_
.PyPanel_swigregister(PyPanelPtr
)
3631 def PrePyPanel(*args
, **kwargs
):
3632 """PrePyPanel() -> PyPanel"""
3633 val
= _windows_
.new_PrePyPanel(*args
, **kwargs
)
3637 class PyScrolledWindow(ScrolledWindow
):
3639 return "<%s.%s; proxy of C++ wxPyScrolledWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3640 def __init__(self
, *args
, **kwargs
):
3642 __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3643 long style=0, String name=PanelNameStr) -> PyScrolledWindow
3645 newobj
= _windows_
.new_PyScrolledWindow(*args
, **kwargs
)
3646 self
.this
= newobj
.this
3649 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyPanel
)
3651 def _setCallbackInfo(*args
, **kwargs
):
3652 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3653 return _windows_
.PyScrolledWindow__setCallbackInfo(*args
, **kwargs
)
3655 def base_DoMoveWindow(*args
, **kwargs
):
3656 """base_DoMoveWindow(self, int x, int y, int width, int height)"""
3657 return _windows_
.PyScrolledWindow_base_DoMoveWindow(*args
, **kwargs
)
3659 def base_DoSetSize(*args
, **kwargs
):
3660 """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3661 return _windows_
.PyScrolledWindow_base_DoSetSize(*args
, **kwargs
)
3663 def base_DoSetClientSize(*args
, **kwargs
):
3664 """base_DoSetClientSize(self, int width, int height)"""
3665 return _windows_
.PyScrolledWindow_base_DoSetClientSize(*args
, **kwargs
)
3667 def base_DoSetVirtualSize(*args
, **kwargs
):
3668 """base_DoSetVirtualSize(self, int x, int y)"""
3669 return _windows_
.PyScrolledWindow_base_DoSetVirtualSize(*args
, **kwargs
)
3671 def base_DoGetSize(*args
, **kwargs
):
3672 """base_DoGetSize() -> (width, height)"""
3673 return _windows_
.PyScrolledWindow_base_DoGetSize(*args
, **kwargs
)
3675 def base_DoGetClientSize(*args
, **kwargs
):
3676 """base_DoGetClientSize() -> (width, height)"""
3677 return _windows_
.PyScrolledWindow_base_DoGetClientSize(*args
, **kwargs
)
3679 def base_DoGetPosition(*args
, **kwargs
):
3680 """base_DoGetPosition() -> (x,y)"""
3681 return _windows_
.PyScrolledWindow_base_DoGetPosition(*args
, **kwargs
)
3683 def base_DoGetVirtualSize(*args
, **kwargs
):
3684 """base_DoGetVirtualSize(self) -> Size"""
3685 return _windows_
.PyScrolledWindow_base_DoGetVirtualSize(*args
, **kwargs
)
3687 def base_DoGetBestSize(*args
, **kwargs
):
3688 """base_DoGetBestSize(self) -> Size"""
3689 return _windows_
.PyScrolledWindow_base_DoGetBestSize(*args
, **kwargs
)
3691 def base_InitDialog(*args
, **kwargs
):
3692 """base_InitDialog(self)"""
3693 return _windows_
.PyScrolledWindow_base_InitDialog(*args
, **kwargs
)
3695 def base_TransferDataToWindow(*args
, **kwargs
):
3696 """base_TransferDataToWindow(self) -> bool"""
3697 return _windows_
.PyScrolledWindow_base_TransferDataToWindow(*args
, **kwargs
)
3699 def base_TransferDataFromWindow(*args
, **kwargs
):
3700 """base_TransferDataFromWindow(self) -> bool"""
3701 return _windows_
.PyScrolledWindow_base_TransferDataFromWindow(*args
, **kwargs
)
3703 def base_Validate(*args
, **kwargs
):
3704 """base_Validate(self) -> bool"""
3705 return _windows_
.PyScrolledWindow_base_Validate(*args
, **kwargs
)
3707 def base_AcceptsFocus(*args
, **kwargs
):
3708 """base_AcceptsFocus(self) -> bool"""
3709 return _windows_
.PyScrolledWindow_base_AcceptsFocus(*args
, **kwargs
)
3711 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
3712 """base_AcceptsFocusFromKeyboard(self) -> bool"""
3713 return _windows_
.PyScrolledWindow_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3715 def base_GetMaxSize(*args
, **kwargs
):
3716 """base_GetMaxSize(self) -> Size"""
3717 return _windows_
.PyScrolledWindow_base_GetMaxSize(*args
, **kwargs
)
3719 def base_AddChild(*args
, **kwargs
):
3720 """base_AddChild(self, Window child)"""
3721 return _windows_
.PyScrolledWindow_base_AddChild(*args
, **kwargs
)
3723 def base_RemoveChild(*args
, **kwargs
):
3724 """base_RemoveChild(self, Window child)"""
3725 return _windows_
.PyScrolledWindow_base_RemoveChild(*args
, **kwargs
)
3727 def base_ShouldInheritColours(*args
, **kwargs
):
3728 """base_ShouldInheritColours(self) -> bool"""
3729 return _windows_
.PyScrolledWindow_base_ShouldInheritColours(*args
, **kwargs
)
3731 def base_ApplyParentThemeBackground(*args
, **kwargs
):
3732 """base_ApplyParentThemeBackground(self, Colour c)"""
3733 return _windows_
.PyScrolledWindow_base_ApplyParentThemeBackground(*args
, **kwargs
)
3736 class PyScrolledWindowPtr(PyScrolledWindow
):
3737 def __init__(self
, this
):
3739 if not hasattr(self
,"thisown"): self
.thisown
= 0
3740 self
.__class
__ = PyScrolledWindow
3741 _windows_
.PyScrolledWindow_swigregister(PyScrolledWindowPtr
)
3743 def PrePyScrolledWindow(*args
, **kwargs
):
3744 """PrePyScrolledWindow() -> PyScrolledWindow"""
3745 val
= _windows_
.new_PrePyScrolledWindow(*args
, **kwargs
)
3749 #---------------------------------------------------------------------------
3751 PRINT_MODE_NONE
= _windows_
.PRINT_MODE_NONE
3752 PRINT_MODE_PREVIEW
= _windows_
.PRINT_MODE_PREVIEW
3753 PRINT_MODE_FILE
= _windows_
.PRINT_MODE_FILE
3754 PRINT_MODE_PRINTER
= _windows_
.PRINT_MODE_PRINTER
3755 PRINT_MODE_STREAM
= _windows_
.PRINT_MODE_STREAM
3756 class PrintData(_core
.Object
):
3758 return "<%s.%s; proxy of C++ wxPrintData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3759 def __init__(self
, *args
, **kwargs
):
3760 """__init__(self) -> PrintData"""
3761 newobj
= _windows_
.new_PrintData(*args
, **kwargs
)
3762 self
.this
= newobj
.this
3765 def __del__(self
, destroy
=_windows_
.delete_PrintData
):
3768 if self
.thisown
: destroy(self
)
3771 def GetNoCopies(*args
, **kwargs
):
3772 """GetNoCopies(self) -> int"""
3773 return _windows_
.PrintData_GetNoCopies(*args
, **kwargs
)
3775 def GetCollate(*args
, **kwargs
):
3776 """GetCollate(self) -> bool"""
3777 return _windows_
.PrintData_GetCollate(*args
, **kwargs
)
3779 def GetOrientation(*args
, **kwargs
):
3780 """GetOrientation(self) -> int"""
3781 return _windows_
.PrintData_GetOrientation(*args
, **kwargs
)
3783 def Ok(*args
, **kwargs
):
3784 """Ok(self) -> bool"""
3785 return _windows_
.PrintData_Ok(*args
, **kwargs
)
3787 def GetPrinterName(*args
, **kwargs
):
3788 """GetPrinterName(self) -> String"""
3789 return _windows_
.PrintData_GetPrinterName(*args
, **kwargs
)
3791 def GetColour(*args
, **kwargs
):
3792 """GetColour(self) -> bool"""
3793 return _windows_
.PrintData_GetColour(*args
, **kwargs
)
3795 def GetDuplex(*args
, **kwargs
):
3796 """GetDuplex(self) -> int"""
3797 return _windows_
.PrintData_GetDuplex(*args
, **kwargs
)
3799 def GetPaperId(*args
, **kwargs
):
3800 """GetPaperId(self) -> int"""
3801 return _windows_
.PrintData_GetPaperId(*args
, **kwargs
)
3803 def GetPaperSize(*args
, **kwargs
):
3804 """GetPaperSize(self) -> Size"""
3805 return _windows_
.PrintData_GetPaperSize(*args
, **kwargs
)
3807 def GetQuality(*args
, **kwargs
):
3808 """GetQuality(self) -> int"""
3809 return _windows_
.PrintData_GetQuality(*args
, **kwargs
)
3811 def SetNoCopies(*args
, **kwargs
):
3812 """SetNoCopies(self, int v)"""
3813 return _windows_
.PrintData_SetNoCopies(*args
, **kwargs
)
3815 def SetCollate(*args
, **kwargs
):
3816 """SetCollate(self, bool flag)"""
3817 return _windows_
.PrintData_SetCollate(*args
, **kwargs
)
3819 def SetOrientation(*args
, **kwargs
):
3820 """SetOrientation(self, int orient)"""
3821 return _windows_
.PrintData_SetOrientation(*args
, **kwargs
)
3823 def SetPrinterName(*args
, **kwargs
):
3824 """SetPrinterName(self, String name)"""
3825 return _windows_
.PrintData_SetPrinterName(*args
, **kwargs
)
3827 def SetColour(*args
, **kwargs
):
3828 """SetColour(self, bool colour)"""
3829 return _windows_
.PrintData_SetColour(*args
, **kwargs
)
3831 def SetDuplex(*args
, **kwargs
):
3832 """SetDuplex(self, int duplex)"""
3833 return _windows_
.PrintData_SetDuplex(*args
, **kwargs
)
3835 def SetPaperId(*args
, **kwargs
):
3836 """SetPaperId(self, int sizeId)"""
3837 return _windows_
.PrintData_SetPaperId(*args
, **kwargs
)
3839 def SetPaperSize(*args
, **kwargs
):
3840 """SetPaperSize(self, Size sz)"""
3841 return _windows_
.PrintData_SetPaperSize(*args
, **kwargs
)
3843 def SetQuality(*args
, **kwargs
):
3844 """SetQuality(self, int quality)"""
3845 return _windows_
.PrintData_SetQuality(*args
, **kwargs
)
3847 def GetPrinterCommand(*args
, **kwargs
):
3848 """GetPrinterCommand(self) -> String"""
3849 return _windows_
.PrintData_GetPrinterCommand(*args
, **kwargs
)
3851 def GetPrinterOptions(*args
, **kwargs
):
3852 """GetPrinterOptions(self) -> String"""
3853 return _windows_
.PrintData_GetPrinterOptions(*args
, **kwargs
)
3855 def GetPreviewCommand(*args
, **kwargs
):
3856 """GetPreviewCommand(self) -> String"""
3857 return _windows_
.PrintData_GetPreviewCommand(*args
, **kwargs
)
3859 def GetFilename(*args
, **kwargs
):
3860 """GetFilename(self) -> String"""
3861 return _windows_
.PrintData_GetFilename(*args
, **kwargs
)
3863 def GetFontMetricPath(*args
, **kwargs
):
3864 """GetFontMetricPath(self) -> String"""
3865 return _windows_
.PrintData_GetFontMetricPath(*args
, **kwargs
)
3867 def GetPrinterScaleX(*args
, **kwargs
):
3868 """GetPrinterScaleX(self) -> double"""
3869 return _windows_
.PrintData_GetPrinterScaleX(*args
, **kwargs
)
3871 def GetPrinterScaleY(*args
, **kwargs
):
3872 """GetPrinterScaleY(self) -> double"""
3873 return _windows_
.PrintData_GetPrinterScaleY(*args
, **kwargs
)
3875 def GetPrinterTranslateX(*args
, **kwargs
):
3876 """GetPrinterTranslateX(self) -> long"""
3877 return _windows_
.PrintData_GetPrinterTranslateX(*args
, **kwargs
)
3879 def GetPrinterTranslateY(*args
, **kwargs
):
3880 """GetPrinterTranslateY(self) -> long"""
3881 return _windows_
.PrintData_GetPrinterTranslateY(*args
, **kwargs
)
3883 def GetPrintMode(*args
, **kwargs
):
3884 """GetPrintMode(self) -> int"""
3885 return _windows_
.PrintData_GetPrintMode(*args
, **kwargs
)
3887 def SetPrinterCommand(*args
, **kwargs
):
3888 """SetPrinterCommand(self, String command)"""
3889 return _windows_
.PrintData_SetPrinterCommand(*args
, **kwargs
)
3891 def SetPrinterOptions(*args
, **kwargs
):
3892 """SetPrinterOptions(self, String options)"""
3893 return _windows_
.PrintData_SetPrinterOptions(*args
, **kwargs
)
3895 def SetPreviewCommand(*args
, **kwargs
):
3896 """SetPreviewCommand(self, String command)"""
3897 return _windows_
.PrintData_SetPreviewCommand(*args
, **kwargs
)
3899 def SetFilename(*args
, **kwargs
):
3900 """SetFilename(self, String filename)"""
3901 return _windows_
.PrintData_SetFilename(*args
, **kwargs
)
3903 def SetFontMetricPath(*args
, **kwargs
):
3904 """SetFontMetricPath(self, String path)"""
3905 return _windows_
.PrintData_SetFontMetricPath(*args
, **kwargs
)
3907 def SetPrinterScaleX(*args
, **kwargs
):
3908 """SetPrinterScaleX(self, double x)"""
3909 return _windows_
.PrintData_SetPrinterScaleX(*args
, **kwargs
)
3911 def SetPrinterScaleY(*args
, **kwargs
):
3912 """SetPrinterScaleY(self, double y)"""
3913 return _windows_
.PrintData_SetPrinterScaleY(*args
, **kwargs
)
3915 def SetPrinterScaling(*args
, **kwargs
):
3916 """SetPrinterScaling(self, double x, double y)"""
3917 return _windows_
.PrintData_SetPrinterScaling(*args
, **kwargs
)
3919 def SetPrinterTranslateX(*args
, **kwargs
):
3920 """SetPrinterTranslateX(self, long x)"""
3921 return _windows_
.PrintData_SetPrinterTranslateX(*args
, **kwargs
)
3923 def SetPrinterTranslateY(*args
, **kwargs
):
3924 """SetPrinterTranslateY(self, long y)"""
3925 return _windows_
.PrintData_SetPrinterTranslateY(*args
, **kwargs
)
3927 def SetPrinterTranslation(*args
, **kwargs
):
3928 """SetPrinterTranslation(self, long x, long y)"""
3929 return _windows_
.PrintData_SetPrinterTranslation(*args
, **kwargs
)
3931 def SetPrintMode(*args
, **kwargs
):
3932 """SetPrintMode(self, int printMode)"""
3933 return _windows_
.PrintData_SetPrintMode(*args
, **kwargs
)
3935 def GetOutputStream(*args
, **kwargs
):
3936 """GetOutputStream(self) -> OutputStream"""
3937 return _windows_
.PrintData_GetOutputStream(*args
, **kwargs
)
3939 def SetOutputStream(*args
, **kwargs
):
3940 """SetOutputStream(self, OutputStream outputstream)"""
3941 return _windows_
.PrintData_SetOutputStream(*args
, **kwargs
)
3943 def __nonzero__(self
): return self
.Ok()
3945 class PrintDataPtr(PrintData
):
3946 def __init__(self
, this
):
3948 if not hasattr(self
,"thisown"): self
.thisown
= 0
3949 self
.__class
__ = PrintData
3950 _windows_
.PrintData_swigregister(PrintDataPtr
)
3951 PrintoutTitleStr
= cvar
.PrintoutTitleStr
3952 PreviewCanvasNameStr
= cvar
.PreviewCanvasNameStr
3954 class PageSetupDialogData(_core
.Object
):
3956 return "<%s.%s; proxy of C++ wxPageSetupDialogData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3957 def __init__(self
, *args
, **kwargs
):
3958 """__init__(self) -> PageSetupDialogData"""
3959 newobj
= _windows_
.new_PageSetupDialogData(*args
, **kwargs
)
3960 self
.this
= newobj
.this
3963 def __del__(self
, destroy
=_windows_
.delete_PageSetupDialogData
):
3966 if self
.thisown
: destroy(self
)
3969 def EnableHelp(*args
, **kwargs
):
3970 """EnableHelp(self, bool flag)"""
3971 return _windows_
.PageSetupDialogData_EnableHelp(*args
, **kwargs
)
3973 def EnableMargins(*args
, **kwargs
):
3974 """EnableMargins(self, bool flag)"""
3975 return _windows_
.PageSetupDialogData_EnableMargins(*args
, **kwargs
)
3977 def EnableOrientation(*args
, **kwargs
):
3978 """EnableOrientation(self, bool flag)"""
3979 return _windows_
.PageSetupDialogData_EnableOrientation(*args
, **kwargs
)
3981 def EnablePaper(*args
, **kwargs
):
3982 """EnablePaper(self, bool flag)"""
3983 return _windows_
.PageSetupDialogData_EnablePaper(*args
, **kwargs
)
3985 def EnablePrinter(*args
, **kwargs
):
3986 """EnablePrinter(self, bool flag)"""
3987 return _windows_
.PageSetupDialogData_EnablePrinter(*args
, **kwargs
)
3989 def GetDefaultMinMargins(*args
, **kwargs
):
3990 """GetDefaultMinMargins(self) -> bool"""
3991 return _windows_
.PageSetupDialogData_GetDefaultMinMargins(*args
, **kwargs
)
3993 def GetEnableMargins(*args
, **kwargs
):
3994 """GetEnableMargins(self) -> bool"""
3995 return _windows_
.PageSetupDialogData_GetEnableMargins(*args
, **kwargs
)
3997 def GetEnableOrientation(*args
, **kwargs
):
3998 """GetEnableOrientation(self) -> bool"""
3999 return _windows_
.PageSetupDialogData_GetEnableOrientation(*args
, **kwargs
)
4001 def GetEnablePaper(*args
, **kwargs
):
4002 """GetEnablePaper(self) -> bool"""
4003 return _windows_
.PageSetupDialogData_GetEnablePaper(*args
, **kwargs
)
4005 def GetEnablePrinter(*args
, **kwargs
):
4006 """GetEnablePrinter(self) -> bool"""
4007 return _windows_
.PageSetupDialogData_GetEnablePrinter(*args
, **kwargs
)
4009 def GetEnableHelp(*args
, **kwargs
):
4010 """GetEnableHelp(self) -> bool"""
4011 return _windows_
.PageSetupDialogData_GetEnableHelp(*args
, **kwargs
)
4013 def GetDefaultInfo(*args
, **kwargs
):
4014 """GetDefaultInfo(self) -> bool"""
4015 return _windows_
.PageSetupDialogData_GetDefaultInfo(*args
, **kwargs
)
4017 def GetMarginTopLeft(*args
, **kwargs
):
4018 """GetMarginTopLeft(self) -> Point"""
4019 return _windows_
.PageSetupDialogData_GetMarginTopLeft(*args
, **kwargs
)
4021 def GetMarginBottomRight(*args
, **kwargs
):
4022 """GetMarginBottomRight(self) -> Point"""
4023 return _windows_
.PageSetupDialogData_GetMarginBottomRight(*args
, **kwargs
)
4025 def GetMinMarginTopLeft(*args
, **kwargs
):
4026 """GetMinMarginTopLeft(self) -> Point"""
4027 return _windows_
.PageSetupDialogData_GetMinMarginTopLeft(*args
, **kwargs
)
4029 def GetMinMarginBottomRight(*args
, **kwargs
):
4030 """GetMinMarginBottomRight(self) -> Point"""
4031 return _windows_
.PageSetupDialogData_GetMinMarginBottomRight(*args
, **kwargs
)
4033 def GetPaperId(*args
, **kwargs
):
4034 """GetPaperId(self) -> int"""
4035 return _windows_
.PageSetupDialogData_GetPaperId(*args
, **kwargs
)
4037 def GetPaperSize(*args
, **kwargs
):
4038 """GetPaperSize(self) -> Size"""
4039 return _windows_
.PageSetupDialogData_GetPaperSize(*args
, **kwargs
)
4041 def GetPrintData(*args
, **kwargs
):
4042 """GetPrintData(self) -> PrintData"""
4043 return _windows_
.PageSetupDialogData_GetPrintData(*args
, **kwargs
)
4045 def Ok(*args
, **kwargs
):
4046 """Ok(self) -> bool"""
4047 return _windows_
.PageSetupDialogData_Ok(*args
, **kwargs
)
4049 def SetDefaultInfo(*args
, **kwargs
):
4050 """SetDefaultInfo(self, bool flag)"""
4051 return _windows_
.PageSetupDialogData_SetDefaultInfo(*args
, **kwargs
)
4053 def SetDefaultMinMargins(*args
, **kwargs
):
4054 """SetDefaultMinMargins(self, bool flag)"""
4055 return _windows_
.PageSetupDialogData_SetDefaultMinMargins(*args
, **kwargs
)
4057 def SetMarginTopLeft(*args
, **kwargs
):
4058 """SetMarginTopLeft(self, Point pt)"""
4059 return _windows_
.PageSetupDialogData_SetMarginTopLeft(*args
, **kwargs
)
4061 def SetMarginBottomRight(*args
, **kwargs
):
4062 """SetMarginBottomRight(self, Point pt)"""
4063 return _windows_
.PageSetupDialogData_SetMarginBottomRight(*args
, **kwargs
)
4065 def SetMinMarginTopLeft(*args
, **kwargs
):
4066 """SetMinMarginTopLeft(self, Point pt)"""
4067 return _windows_
.PageSetupDialogData_SetMinMarginTopLeft(*args
, **kwargs
)
4069 def SetMinMarginBottomRight(*args
, **kwargs
):
4070 """SetMinMarginBottomRight(self, Point pt)"""
4071 return _windows_
.PageSetupDialogData_SetMinMarginBottomRight(*args
, **kwargs
)
4073 def SetPaperId(*args
, **kwargs
):
4074 """SetPaperId(self, int id)"""
4075 return _windows_
.PageSetupDialogData_SetPaperId(*args
, **kwargs
)
4077 def SetPaperSize(*args
, **kwargs
):
4078 """SetPaperSize(self, Size size)"""
4079 return _windows_
.PageSetupDialogData_SetPaperSize(*args
, **kwargs
)
4081 def SetPrintData(*args
, **kwargs
):
4082 """SetPrintData(self, PrintData printData)"""
4083 return _windows_
.PageSetupDialogData_SetPrintData(*args
, **kwargs
)
4085 def __nonzero__(self
): return self
.Ok()
4087 class PageSetupDialogDataPtr(PageSetupDialogData
):
4088 def __init__(self
, this
):
4090 if not hasattr(self
,"thisown"): self
.thisown
= 0
4091 self
.__class
__ = PageSetupDialogData
4092 _windows_
.PageSetupDialogData_swigregister(PageSetupDialogDataPtr
)
4094 class PageSetupDialog(Dialog
):
4096 return "<%s.%s; proxy of C++ wxPageSetupDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4097 def __init__(self
, *args
, **kwargs
):
4098 """__init__(self, Window parent, PageSetupDialogData data=None) -> PageSetupDialog"""
4099 newobj
= _windows_
.new_PageSetupDialog(*args
, **kwargs
)
4100 self
.this
= newobj
.this
4103 self
._setOORInfo
(self
)
4105 def GetPageSetupData(*args
, **kwargs
):
4106 """GetPageSetupData(self) -> PageSetupDialogData"""
4107 return _windows_
.PageSetupDialog_GetPageSetupData(*args
, **kwargs
)
4109 def ShowModal(*args
, **kwargs
):
4110 """ShowModal(self) -> int"""
4111 return _windows_
.PageSetupDialog_ShowModal(*args
, **kwargs
)
4114 class PageSetupDialogPtr(PageSetupDialog
):
4115 def __init__(self
, this
):
4117 if not hasattr(self
,"thisown"): self
.thisown
= 0
4118 self
.__class
__ = PageSetupDialog
4119 _windows_
.PageSetupDialog_swigregister(PageSetupDialogPtr
)
4121 class PrintDialogData(_core
.Object
):
4123 return "<%s.%s; proxy of C++ wxPrintDialogData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4124 def __init__(self
, *args
):
4126 __init__(self) -> PrintDialogData
4127 __init__(self, PrintData printData) -> PrintDialogData
4129 newobj
= _windows_
.new_PrintDialogData(*args
)
4130 self
.this
= newobj
.this
4133 def __del__(self
, destroy
=_windows_
.delete_PrintDialogData
):
4136 if self
.thisown
: destroy(self
)
4139 def GetFromPage(*args
, **kwargs
):
4140 """GetFromPage(self) -> int"""
4141 return _windows_
.PrintDialogData_GetFromPage(*args
, **kwargs
)
4143 def GetToPage(*args
, **kwargs
):
4144 """GetToPage(self) -> int"""
4145 return _windows_
.PrintDialogData_GetToPage(*args
, **kwargs
)
4147 def GetMinPage(*args
, **kwargs
):
4148 """GetMinPage(self) -> int"""
4149 return _windows_
.PrintDialogData_GetMinPage(*args
, **kwargs
)
4151 def GetMaxPage(*args
, **kwargs
):
4152 """GetMaxPage(self) -> int"""
4153 return _windows_
.PrintDialogData_GetMaxPage(*args
, **kwargs
)
4155 def GetNoCopies(*args
, **kwargs
):
4156 """GetNoCopies(self) -> int"""
4157 return _windows_
.PrintDialogData_GetNoCopies(*args
, **kwargs
)
4159 def GetAllPages(*args
, **kwargs
):
4160 """GetAllPages(self) -> bool"""
4161 return _windows_
.PrintDialogData_GetAllPages(*args
, **kwargs
)
4163 def GetSelection(*args
, **kwargs
):
4164 """GetSelection(self) -> bool"""
4165 return _windows_
.PrintDialogData_GetSelection(*args
, **kwargs
)
4167 def GetCollate(*args
, **kwargs
):
4168 """GetCollate(self) -> bool"""
4169 return _windows_
.PrintDialogData_GetCollate(*args
, **kwargs
)
4171 def GetPrintToFile(*args
, **kwargs
):
4172 """GetPrintToFile(self) -> bool"""
4173 return _windows_
.PrintDialogData_GetPrintToFile(*args
, **kwargs
)
4175 def GetSetupDialog(*args
, **kwargs
):
4176 """GetSetupDialog(self) -> bool"""
4177 return _windows_
.PrintDialogData_GetSetupDialog(*args
, **kwargs
)
4179 def SetFromPage(*args
, **kwargs
):
4180 """SetFromPage(self, int v)"""
4181 return _windows_
.PrintDialogData_SetFromPage(*args
, **kwargs
)
4183 def SetToPage(*args
, **kwargs
):
4184 """SetToPage(self, int v)"""
4185 return _windows_
.PrintDialogData_SetToPage(*args
, **kwargs
)
4187 def SetMinPage(*args
, **kwargs
):
4188 """SetMinPage(self, int v)"""
4189 return _windows_
.PrintDialogData_SetMinPage(*args
, **kwargs
)
4191 def SetMaxPage(*args
, **kwargs
):
4192 """SetMaxPage(self, int v)"""
4193 return _windows_
.PrintDialogData_SetMaxPage(*args
, **kwargs
)
4195 def SetNoCopies(*args
, **kwargs
):
4196 """SetNoCopies(self, int v)"""
4197 return _windows_
.PrintDialogData_SetNoCopies(*args
, **kwargs
)
4199 def SetAllPages(*args
, **kwargs
):
4200 """SetAllPages(self, bool flag)"""
4201 return _windows_
.PrintDialogData_SetAllPages(*args
, **kwargs
)
4203 def SetSelection(*args
, **kwargs
):
4204 """SetSelection(self, bool flag)"""
4205 return _windows_
.PrintDialogData_SetSelection(*args
, **kwargs
)
4207 def SetCollate(*args
, **kwargs
):
4208 """SetCollate(self, bool flag)"""
4209 return _windows_
.PrintDialogData_SetCollate(*args
, **kwargs
)
4211 def SetPrintToFile(*args
, **kwargs
):
4212 """SetPrintToFile(self, bool flag)"""
4213 return _windows_
.PrintDialogData_SetPrintToFile(*args
, **kwargs
)
4215 def SetSetupDialog(*args
, **kwargs
):
4216 """SetSetupDialog(self, bool flag)"""
4217 return _windows_
.PrintDialogData_SetSetupDialog(*args
, **kwargs
)
4219 def EnablePrintToFile(*args
, **kwargs
):
4220 """EnablePrintToFile(self, bool flag)"""
4221 return _windows_
.PrintDialogData_EnablePrintToFile(*args
, **kwargs
)
4223 def EnableSelection(*args
, **kwargs
):
4224 """EnableSelection(self, bool flag)"""
4225 return _windows_
.PrintDialogData_EnableSelection(*args
, **kwargs
)
4227 def EnablePageNumbers(*args
, **kwargs
):
4228 """EnablePageNumbers(self, bool flag)"""
4229 return _windows_
.PrintDialogData_EnablePageNumbers(*args
, **kwargs
)
4231 def EnableHelp(*args
, **kwargs
):
4232 """EnableHelp(self, bool flag)"""
4233 return _windows_
.PrintDialogData_EnableHelp(*args
, **kwargs
)
4235 def GetEnablePrintToFile(*args
, **kwargs
):
4236 """GetEnablePrintToFile(self) -> bool"""
4237 return _windows_
.PrintDialogData_GetEnablePrintToFile(*args
, **kwargs
)
4239 def GetEnableSelection(*args
, **kwargs
):
4240 """GetEnableSelection(self) -> bool"""
4241 return _windows_
.PrintDialogData_GetEnableSelection(*args
, **kwargs
)
4243 def GetEnablePageNumbers(*args
, **kwargs
):
4244 """GetEnablePageNumbers(self) -> bool"""
4245 return _windows_
.PrintDialogData_GetEnablePageNumbers(*args
, **kwargs
)
4247 def GetEnableHelp(*args
, **kwargs
):
4248 """GetEnableHelp(self) -> bool"""
4249 return _windows_
.PrintDialogData_GetEnableHelp(*args
, **kwargs
)
4251 def Ok(*args
, **kwargs
):
4252 """Ok(self) -> bool"""
4253 return _windows_
.PrintDialogData_Ok(*args
, **kwargs
)
4255 def GetPrintData(*args
, **kwargs
):
4256 """GetPrintData(self) -> PrintData"""
4257 return _windows_
.PrintDialogData_GetPrintData(*args
, **kwargs
)
4259 def SetPrintData(*args
, **kwargs
):
4260 """SetPrintData(self, PrintData printData)"""
4261 return _windows_
.PrintDialogData_SetPrintData(*args
, **kwargs
)
4263 def __nonzero__(self
): return self
.Ok()
4265 class PrintDialogDataPtr(PrintDialogData
):
4266 def __init__(self
, this
):
4268 if not hasattr(self
,"thisown"): self
.thisown
= 0
4269 self
.__class
__ = PrintDialogData
4270 _windows_
.PrintDialogData_swigregister(PrintDialogDataPtr
)
4272 class PrintDialog(Dialog
):
4274 return "<%s.%s; proxy of C++ wxPrintDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4275 def __init__(self
, *args
, **kwargs
):
4276 """__init__(self, Window parent, PrintDialogData data=None) -> PrintDialog"""
4277 newobj
= _windows_
.new_PrintDialog(*args
, **kwargs
)
4278 self
.this
= newobj
.this
4281 self
._setOORInfo
(self
)
4283 def GetPrintDialogData(*args
, **kwargs
):
4284 """GetPrintDialogData(self) -> PrintDialogData"""
4285 return _windows_
.PrintDialog_GetPrintDialogData(*args
, **kwargs
)
4287 def GetPrintDC(*args
, **kwargs
):
4288 """GetPrintDC(self) -> DC"""
4289 return _windows_
.PrintDialog_GetPrintDC(*args
, **kwargs
)
4291 def ShowModal(*args
, **kwargs
):
4292 """ShowModal(self) -> int"""
4293 return _windows_
.PrintDialog_ShowModal(*args
, **kwargs
)
4296 class PrintDialogPtr(PrintDialog
):
4297 def __init__(self
, this
):
4299 if not hasattr(self
,"thisown"): self
.thisown
= 0
4300 self
.__class
__ = PrintDialog
4301 _windows_
.PrintDialog_swigregister(PrintDialogPtr
)
4303 PRINTER_NO_ERROR
= _windows_
.PRINTER_NO_ERROR
4304 PRINTER_CANCELLED
= _windows_
.PRINTER_CANCELLED
4305 PRINTER_ERROR
= _windows_
.PRINTER_ERROR
4306 class Printer(_core
.Object
):
4308 return "<%s.%s; proxy of C++ wxPrinter instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4309 def __init__(self
, *args
, **kwargs
):
4310 """__init__(self, PrintDialogData data=None) -> Printer"""
4311 newobj
= _windows_
.new_Printer(*args
, **kwargs
)
4312 self
.this
= newobj
.this
4315 def __del__(self
, destroy
=_windows_
.delete_Printer
):
4318 if self
.thisown
: destroy(self
)
4321 def CreateAbortWindow(*args
, **kwargs
):
4322 """CreateAbortWindow(self, Window parent, Printout printout)"""
4323 return _windows_
.Printer_CreateAbortWindow(*args
, **kwargs
)
4325 def GetPrintDialogData(*args
, **kwargs
):
4326 """GetPrintDialogData(self) -> PrintDialogData"""
4327 return _windows_
.Printer_GetPrintDialogData(*args
, **kwargs
)
4329 def Print(*args
, **kwargs
):
4330 """Print(self, Window parent, Printout printout, int prompt=True) -> bool"""
4331 return _windows_
.Printer_Print(*args
, **kwargs
)
4333 def PrintDialog(*args
, **kwargs
):
4334 """PrintDialog(self, Window parent) -> DC"""
4335 return _windows_
.Printer_PrintDialog(*args
, **kwargs
)
4337 def ReportError(*args
, **kwargs
):
4338 """ReportError(self, Window parent, Printout printout, String message)"""
4339 return _windows_
.Printer_ReportError(*args
, **kwargs
)
4341 def Setup(*args
, **kwargs
):
4342 """Setup(self, Window parent) -> bool"""
4343 return _windows_
.Printer_Setup(*args
, **kwargs
)
4345 def GetAbort(*args
, **kwargs
):
4346 """GetAbort(self) -> bool"""
4347 return _windows_
.Printer_GetAbort(*args
, **kwargs
)
4349 def GetLastError(*args
, **kwargs
):
4350 """GetLastError() -> int"""
4351 return _windows_
.Printer_GetLastError(*args
, **kwargs
)
4353 GetLastError
= staticmethod(GetLastError
)
4355 class PrinterPtr(Printer
):
4356 def __init__(self
, this
):
4358 if not hasattr(self
,"thisown"): self
.thisown
= 0
4359 self
.__class
__ = Printer
4360 _windows_
.Printer_swigregister(PrinterPtr
)
4362 def Printer_GetLastError(*args
, **kwargs
):
4363 """Printer_GetLastError() -> int"""
4364 return _windows_
.Printer_GetLastError(*args
, **kwargs
)
4366 class Printout(_core
.Object
):
4368 return "<%s.%s; proxy of C++ wxPyPrintout instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4369 def __init__(self
, *args
, **kwargs
):
4370 """__init__(self, String title=PrintoutTitleStr) -> Printout"""
4371 newobj
= _windows_
.new_Printout(*args
, **kwargs
)
4372 self
.this
= newobj
.this
4375 self
._setCallbackInfo
(self
, Printout
)
4377 def _setCallbackInfo(*args
, **kwargs
):
4378 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4379 return _windows_
.Printout__setCallbackInfo(*args
, **kwargs
)
4381 def GetTitle(*args
, **kwargs
):
4382 """GetTitle(self) -> String"""
4383 return _windows_
.Printout_GetTitle(*args
, **kwargs
)
4385 def GetDC(*args
, **kwargs
):
4386 """GetDC(self) -> DC"""
4387 return _windows_
.Printout_GetDC(*args
, **kwargs
)
4389 def SetDC(*args
, **kwargs
):
4390 """SetDC(self, DC dc)"""
4391 return _windows_
.Printout_SetDC(*args
, **kwargs
)
4393 def SetPageSizePixels(*args
, **kwargs
):
4394 """SetPageSizePixels(self, int w, int h)"""
4395 return _windows_
.Printout_SetPageSizePixels(*args
, **kwargs
)
4397 def GetPageSizePixels(*args
, **kwargs
):
4398 """GetPageSizePixels() -> (w, h)"""
4399 return _windows_
.Printout_GetPageSizePixels(*args
, **kwargs
)
4401 def SetPageSizeMM(*args
, **kwargs
):
4402 """SetPageSizeMM(self, int w, int h)"""
4403 return _windows_
.Printout_SetPageSizeMM(*args
, **kwargs
)
4405 def GetPageSizeMM(*args
, **kwargs
):
4406 """GetPageSizeMM() -> (w, h)"""
4407 return _windows_
.Printout_GetPageSizeMM(*args
, **kwargs
)
4409 def SetPPIScreen(*args
, **kwargs
):
4410 """SetPPIScreen(self, int x, int y)"""
4411 return _windows_
.Printout_SetPPIScreen(*args
, **kwargs
)
4413 def GetPPIScreen(*args
, **kwargs
):
4414 """GetPPIScreen() -> (x,y)"""
4415 return _windows_
.Printout_GetPPIScreen(*args
, **kwargs
)
4417 def SetPPIPrinter(*args
, **kwargs
):
4418 """SetPPIPrinter(self, int x, int y)"""
4419 return _windows_
.Printout_SetPPIPrinter(*args
, **kwargs
)
4421 def GetPPIPrinter(*args
, **kwargs
):
4422 """GetPPIPrinter() -> (x,y)"""
4423 return _windows_
.Printout_GetPPIPrinter(*args
, **kwargs
)
4425 def IsPreview(*args
, **kwargs
):
4426 """IsPreview(self) -> bool"""
4427 return _windows_
.Printout_IsPreview(*args
, **kwargs
)
4429 def SetIsPreview(*args
, **kwargs
):
4430 """SetIsPreview(self, bool p)"""
4431 return _windows_
.Printout_SetIsPreview(*args
, **kwargs
)
4433 def base_OnBeginDocument(*args
, **kwargs
):
4434 """base_OnBeginDocument(self, int startPage, int endPage) -> bool"""
4435 return _windows_
.Printout_base_OnBeginDocument(*args
, **kwargs
)
4437 def base_OnEndDocument(*args
, **kwargs
):
4438 """base_OnEndDocument(self)"""
4439 return _windows_
.Printout_base_OnEndDocument(*args
, **kwargs
)
4441 def base_OnBeginPrinting(*args
, **kwargs
):
4442 """base_OnBeginPrinting(self)"""
4443 return _windows_
.Printout_base_OnBeginPrinting(*args
, **kwargs
)
4445 def base_OnEndPrinting(*args
, **kwargs
):
4446 """base_OnEndPrinting(self)"""
4447 return _windows_
.Printout_base_OnEndPrinting(*args
, **kwargs
)
4449 def base_OnPreparePrinting(*args
, **kwargs
):
4450 """base_OnPreparePrinting(self)"""
4451 return _windows_
.Printout_base_OnPreparePrinting(*args
, **kwargs
)
4453 def base_HasPage(*args
, **kwargs
):
4454 """base_HasPage(self, int page) -> bool"""
4455 return _windows_
.Printout_base_HasPage(*args
, **kwargs
)
4457 def base_GetPageInfo(*args
, **kwargs
):
4458 """base_GetPageInfo() -> (minPage, maxPage, pageFrom, pageTo)"""
4459 return _windows_
.Printout_base_GetPageInfo(*args
, **kwargs
)
4462 class PrintoutPtr(Printout
):
4463 def __init__(self
, this
):
4465 if not hasattr(self
,"thisown"): self
.thisown
= 0
4466 self
.__class
__ = Printout
4467 _windows_
.Printout_swigregister(PrintoutPtr
)
4469 class PreviewCanvas(ScrolledWindow
):
4471 return "<%s.%s; proxy of C++ wxPreviewCanvas instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4472 def __init__(self
, *args
, **kwargs
):
4474 __init__(self, PrintPreview preview, Window parent, Point pos=DefaultPosition,
4475 Size size=DefaultSize, long style=0,
4476 String name=PreviewCanvasNameStr) -> PreviewCanvas
4478 newobj
= _windows_
.new_PreviewCanvas(*args
, **kwargs
)
4479 self
.this
= newobj
.this
4482 self
._setOORInfo
(self
)
4485 class PreviewCanvasPtr(PreviewCanvas
):
4486 def __init__(self
, this
):
4488 if not hasattr(self
,"thisown"): self
.thisown
= 0
4489 self
.__class
__ = PreviewCanvas
4490 _windows_
.PreviewCanvas_swigregister(PreviewCanvasPtr
)
4492 class PreviewFrame(Frame
):
4494 return "<%s.%s; proxy of C++ wxPreviewFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4495 def __init__(self
, *args
, **kwargs
):
4497 __init__(self, PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4498 Size size=DefaultSize,
4499 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PreviewFrame
4501 newobj
= _windows_
.new_PreviewFrame(*args
, **kwargs
)
4502 self
.this
= newobj
.this
4505 self
._setOORInfo
(self
)
4507 def Initialize(*args
, **kwargs
):
4508 """Initialize(self)"""
4509 return _windows_
.PreviewFrame_Initialize(*args
, **kwargs
)
4511 def CreateControlBar(*args
, **kwargs
):
4512 """CreateControlBar(self)"""
4513 return _windows_
.PreviewFrame_CreateControlBar(*args
, **kwargs
)
4515 def CreateCanvas(*args
, **kwargs
):
4516 """CreateCanvas(self)"""
4517 return _windows_
.PreviewFrame_CreateCanvas(*args
, **kwargs
)
4519 def GetControlBar(*args
, **kwargs
):
4520 """GetControlBar(self) -> PreviewControlBar"""
4521 return _windows_
.PreviewFrame_GetControlBar(*args
, **kwargs
)
4524 class PreviewFramePtr(PreviewFrame
):
4525 def __init__(self
, this
):
4527 if not hasattr(self
,"thisown"): self
.thisown
= 0
4528 self
.__class
__ = PreviewFrame
4529 _windows_
.PreviewFrame_swigregister(PreviewFramePtr
)
4531 PREVIEW_PRINT
= _windows_
.PREVIEW_PRINT
4532 PREVIEW_PREVIOUS
= _windows_
.PREVIEW_PREVIOUS
4533 PREVIEW_NEXT
= _windows_
.PREVIEW_NEXT
4534 PREVIEW_ZOOM
= _windows_
.PREVIEW_ZOOM
4535 PREVIEW_FIRST
= _windows_
.PREVIEW_FIRST
4536 PREVIEW_LAST
= _windows_
.PREVIEW_LAST
4537 PREVIEW_GOTO
= _windows_
.PREVIEW_GOTO
4538 PREVIEW_DEFAULT
= _windows_
.PREVIEW_DEFAULT
4539 ID_PREVIEW_CLOSE
= _windows_
.ID_PREVIEW_CLOSE
4540 ID_PREVIEW_NEXT
= _windows_
.ID_PREVIEW_NEXT
4541 ID_PREVIEW_PREVIOUS
= _windows_
.ID_PREVIEW_PREVIOUS
4542 ID_PREVIEW_PRINT
= _windows_
.ID_PREVIEW_PRINT
4543 ID_PREVIEW_ZOOM
= _windows_
.ID_PREVIEW_ZOOM
4544 ID_PREVIEW_FIRST
= _windows_
.ID_PREVIEW_FIRST
4545 ID_PREVIEW_LAST
= _windows_
.ID_PREVIEW_LAST
4546 ID_PREVIEW_GOTO
= _windows_
.ID_PREVIEW_GOTO
4547 class PreviewControlBar(Panel
):
4549 return "<%s.%s; proxy of C++ wxPreviewControlBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4550 def __init__(self
, *args
, **kwargs
):
4552 __init__(self, PrintPreview preview, long buttons, Window parent,
4553 Point pos=DefaultPosition, Size size=DefaultSize,
4554 long style=TAB_TRAVERSAL, String name=PanelNameStr) -> PreviewControlBar
4556 newobj
= _windows_
.new_PreviewControlBar(*args
, **kwargs
)
4557 self
.this
= newobj
.this
4560 self
._setOORInfo
(self
)
4562 def GetZoomControl(*args
, **kwargs
):
4563 """GetZoomControl(self) -> int"""
4564 return _windows_
.PreviewControlBar_GetZoomControl(*args
, **kwargs
)
4566 def SetZoomControl(*args
, **kwargs
):
4567 """SetZoomControl(self, int zoom)"""
4568 return _windows_
.PreviewControlBar_SetZoomControl(*args
, **kwargs
)
4570 def GetPrintPreview(*args
, **kwargs
):
4571 """GetPrintPreview(self) -> PrintPreview"""
4572 return _windows_
.PreviewControlBar_GetPrintPreview(*args
, **kwargs
)
4574 def OnNext(*args
, **kwargs
):
4576 return _windows_
.PreviewControlBar_OnNext(*args
, **kwargs
)
4578 def OnPrevious(*args
, **kwargs
):
4579 """OnPrevious(self)"""
4580 return _windows_
.PreviewControlBar_OnPrevious(*args
, **kwargs
)
4582 def OnFirst(*args
, **kwargs
):
4584 return _windows_
.PreviewControlBar_OnFirst(*args
, **kwargs
)
4586 def OnLast(*args
, **kwargs
):
4588 return _windows_
.PreviewControlBar_OnLast(*args
, **kwargs
)
4590 def OnGoto(*args
, **kwargs
):
4592 return _windows_
.PreviewControlBar_OnGoto(*args
, **kwargs
)
4595 class PreviewControlBarPtr(PreviewControlBar
):
4596 def __init__(self
, this
):
4598 if not hasattr(self
,"thisown"): self
.thisown
= 0
4599 self
.__class
__ = PreviewControlBar
4600 _windows_
.PreviewControlBar_swigregister(PreviewControlBarPtr
)
4602 class PrintPreview(_core
.Object
):
4604 return "<%s.%s; proxy of C++ wxPrintPreview instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4605 def __init__(self
, *args
):
4607 __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PrintPreview
4608 __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PrintPreview
4610 newobj
= _windows_
.new_PrintPreview(*args
)
4611 self
.this
= newobj
.this
4614 def SetCurrentPage(*args
, **kwargs
):
4615 """SetCurrentPage(self, int pageNum) -> bool"""
4616 return _windows_
.PrintPreview_SetCurrentPage(*args
, **kwargs
)
4618 def GetCurrentPage(*args
, **kwargs
):
4619 """GetCurrentPage(self) -> int"""
4620 return _windows_
.PrintPreview_GetCurrentPage(*args
, **kwargs
)
4622 def SetPrintout(*args
, **kwargs
):
4623 """SetPrintout(self, Printout printout)"""
4624 return _windows_
.PrintPreview_SetPrintout(*args
, **kwargs
)
4626 def GetPrintout(*args
, **kwargs
):
4627 """GetPrintout(self) -> Printout"""
4628 return _windows_
.PrintPreview_GetPrintout(*args
, **kwargs
)
4630 def GetPrintoutForPrinting(*args
, **kwargs
):
4631 """GetPrintoutForPrinting(self) -> Printout"""
4632 return _windows_
.PrintPreview_GetPrintoutForPrinting(*args
, **kwargs
)
4634 def SetFrame(*args
, **kwargs
):
4635 """SetFrame(self, Frame frame)"""
4636 return _windows_
.PrintPreview_SetFrame(*args
, **kwargs
)
4638 def SetCanvas(*args
, **kwargs
):
4639 """SetCanvas(self, PreviewCanvas canvas)"""
4640 return _windows_
.PrintPreview_SetCanvas(*args
, **kwargs
)
4642 def GetFrame(*args
, **kwargs
):
4643 """GetFrame(self) -> Frame"""
4644 return _windows_
.PrintPreview_GetFrame(*args
, **kwargs
)
4646 def GetCanvas(*args
, **kwargs
):
4647 """GetCanvas(self) -> PreviewCanvas"""
4648 return _windows_
.PrintPreview_GetCanvas(*args
, **kwargs
)
4650 def PaintPage(*args
, **kwargs
):
4651 """PaintPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4652 return _windows_
.PrintPreview_PaintPage(*args
, **kwargs
)
4654 def DrawBlankPage(*args
, **kwargs
):
4655 """DrawBlankPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4656 return _windows_
.PrintPreview_DrawBlankPage(*args
, **kwargs
)
4658 def RenderPage(*args
, **kwargs
):
4659 """RenderPage(self, int pageNum) -> bool"""
4660 return _windows_
.PrintPreview_RenderPage(*args
, **kwargs
)
4662 def AdjustScrollbars(*args
, **kwargs
):
4663 """AdjustScrollbars(self, PreviewCanvas canvas)"""
4664 return _windows_
.PrintPreview_AdjustScrollbars(*args
, **kwargs
)
4666 def GetPrintDialogData(*args
, **kwargs
):
4667 """GetPrintDialogData(self) -> PrintDialogData"""
4668 return _windows_
.PrintPreview_GetPrintDialogData(*args
, **kwargs
)
4670 def SetZoom(*args
, **kwargs
):
4671 """SetZoom(self, int percent)"""
4672 return _windows_
.PrintPreview_SetZoom(*args
, **kwargs
)
4674 def GetZoom(*args
, **kwargs
):
4675 """GetZoom(self) -> int"""
4676 return _windows_
.PrintPreview_GetZoom(*args
, **kwargs
)
4678 def GetMaxPage(*args
, **kwargs
):
4679 """GetMaxPage(self) -> int"""
4680 return _windows_
.PrintPreview_GetMaxPage(*args
, **kwargs
)
4682 def GetMinPage(*args
, **kwargs
):
4683 """GetMinPage(self) -> int"""
4684 return _windows_
.PrintPreview_GetMinPage(*args
, **kwargs
)
4686 def Ok(*args
, **kwargs
):
4687 """Ok(self) -> bool"""
4688 return _windows_
.PrintPreview_Ok(*args
, **kwargs
)
4690 def SetOk(*args
, **kwargs
):
4691 """SetOk(self, bool ok)"""
4692 return _windows_
.PrintPreview_SetOk(*args
, **kwargs
)
4694 def Print(*args
, **kwargs
):
4695 """Print(self, bool interactive) -> bool"""
4696 return _windows_
.PrintPreview_Print(*args
, **kwargs
)
4698 def DetermineScaling(*args
, **kwargs
):
4699 """DetermineScaling(self)"""
4700 return _windows_
.PrintPreview_DetermineScaling(*args
, **kwargs
)
4702 def __nonzero__(self
): return self
.Ok()
4704 class PrintPreviewPtr(PrintPreview
):
4705 def __init__(self
, this
):
4707 if not hasattr(self
,"thisown"): self
.thisown
= 0
4708 self
.__class
__ = PrintPreview
4709 _windows_
.PrintPreview_swigregister(PrintPreviewPtr
)
4711 class PyPrintPreview(PrintPreview
):
4713 return "<%s.%s; proxy of C++ wxPyPrintPreview instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4714 def __init__(self
, *args
):
4716 __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PyPrintPreview
4717 __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PyPrintPreview
4719 newobj
= _windows_
.new_PyPrintPreview(*args
)
4720 self
.this
= newobj
.this
4723 self
._setCallbackInfo
(self
, PyPrintPreview
)
4725 def _setCallbackInfo(*args
, **kwargs
):
4726 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4727 return _windows_
.PyPrintPreview__setCallbackInfo(*args
, **kwargs
)
4729 def base_SetCurrentPage(*args
, **kwargs
):
4730 """base_SetCurrentPage(self, int pageNum) -> bool"""
4731 return _windows_
.PyPrintPreview_base_SetCurrentPage(*args
, **kwargs
)
4733 def base_PaintPage(*args
, **kwargs
):
4734 """base_PaintPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4735 return _windows_
.PyPrintPreview_base_PaintPage(*args
, **kwargs
)
4737 def base_DrawBlankPage(*args
, **kwargs
):
4738 """base_DrawBlankPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4739 return _windows_
.PyPrintPreview_base_DrawBlankPage(*args
, **kwargs
)
4741 def base_RenderPage(*args
, **kwargs
):
4742 """base_RenderPage(self, int pageNum) -> bool"""
4743 return _windows_
.PyPrintPreview_base_RenderPage(*args
, **kwargs
)
4745 def base_SetZoom(*args
, **kwargs
):
4746 """base_SetZoom(self, int percent)"""
4747 return _windows_
.PyPrintPreview_base_SetZoom(*args
, **kwargs
)
4749 def base_Print(*args
, **kwargs
):
4750 """base_Print(self, bool interactive) -> bool"""
4751 return _windows_
.PyPrintPreview_base_Print(*args
, **kwargs
)
4753 def base_DetermineScaling(*args
, **kwargs
):
4754 """base_DetermineScaling(self)"""
4755 return _windows_
.PyPrintPreview_base_DetermineScaling(*args
, **kwargs
)
4758 class PyPrintPreviewPtr(PyPrintPreview
):
4759 def __init__(self
, this
):
4761 if not hasattr(self
,"thisown"): self
.thisown
= 0
4762 self
.__class
__ = PyPrintPreview
4763 _windows_
.PyPrintPreview_swigregister(PyPrintPreviewPtr
)
4765 class PyPreviewFrame(PreviewFrame
):
4767 return "<%s.%s; proxy of C++ wxPyPreviewFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4768 def __init__(self
, *args
, **kwargs
):
4770 __init__(self, PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4771 Size size=DefaultSize,
4772 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PyPreviewFrame
4774 newobj
= _windows_
.new_PyPreviewFrame(*args
, **kwargs
)
4775 self
.this
= newobj
.this
4778 self
._setCallbackInfo
(self
, PyPreviewFrame
); self
._setOORInfo
(self
)
4780 def _setCallbackInfo(*args
, **kwargs
):
4781 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4782 return _windows_
.PyPreviewFrame__setCallbackInfo(*args
, **kwargs
)
4784 def SetPreviewCanvas(*args
, **kwargs
):
4785 """SetPreviewCanvas(self, PreviewCanvas canvas)"""
4786 return _windows_
.PyPreviewFrame_SetPreviewCanvas(*args
, **kwargs
)
4788 def SetControlBar(*args
, **kwargs
):
4789 """SetControlBar(self, PreviewControlBar bar)"""
4790 return _windows_
.PyPreviewFrame_SetControlBar(*args
, **kwargs
)
4792 def base_Initialize(*args
, **kwargs
):
4793 """base_Initialize(self)"""
4794 return _windows_
.PyPreviewFrame_base_Initialize(*args
, **kwargs
)
4796 def base_CreateCanvas(*args
, **kwargs
):
4797 """base_CreateCanvas(self)"""
4798 return _windows_
.PyPreviewFrame_base_CreateCanvas(*args
, **kwargs
)
4800 def base_CreateControlBar(*args
, **kwargs
):
4801 """base_CreateControlBar(self)"""
4802 return _windows_
.PyPreviewFrame_base_CreateControlBar(*args
, **kwargs
)
4805 class PyPreviewFramePtr(PyPreviewFrame
):
4806 def __init__(self
, this
):
4808 if not hasattr(self
,"thisown"): self
.thisown
= 0
4809 self
.__class
__ = PyPreviewFrame
4810 _windows_
.PyPreviewFrame_swigregister(PyPreviewFramePtr
)
4812 class PyPreviewControlBar(PreviewControlBar
):
4814 return "<%s.%s; proxy of C++ wxPyPreviewControlBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4815 def __init__(self
, *args
, **kwargs
):
4817 __init__(self, PrintPreview preview, long buttons, Window parent,
4818 Point pos=DefaultPosition, Size size=DefaultSize,
4819 long style=0, String name=PanelNameStr) -> PyPreviewControlBar
4821 newobj
= _windows_
.new_PyPreviewControlBar(*args
, **kwargs
)
4822 self
.this
= newobj
.this
4825 self
._setCallbackInfo
(self
, PyPreviewControlBar
); self
._setOORInfo
(self
)
4827 def _setCallbackInfo(*args
, **kwargs
):
4828 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4829 return _windows_
.PyPreviewControlBar__setCallbackInfo(*args
, **kwargs
)
4831 def SetPrintPreview(*args
, **kwargs
):
4832 """SetPrintPreview(self, PrintPreview preview)"""
4833 return _windows_
.PyPreviewControlBar_SetPrintPreview(*args
, **kwargs
)
4835 def base_CreateButtons(*args
, **kwargs
):
4836 """base_CreateButtons(self)"""
4837 return _windows_
.PyPreviewControlBar_base_CreateButtons(*args
, **kwargs
)
4839 def base_SetZoomControl(*args
, **kwargs
):
4840 """base_SetZoomControl(self, int zoom)"""
4841 return _windows_
.PyPreviewControlBar_base_SetZoomControl(*args
, **kwargs
)
4844 class PyPreviewControlBarPtr(PyPreviewControlBar
):
4845 def __init__(self
, this
):
4847 if not hasattr(self
,"thisown"): self
.thisown
= 0
4848 self
.__class
__ = PyPreviewControlBar
4849 _windows_
.PyPreviewControlBar_swigregister(PyPreviewControlBarPtr
)