]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/mac/_windows.py
more standard (although less RFC-conformant) treatment of file: URIs (patch 1415189)
[wxWidgets.git] / wxPython / src / mac / _windows.py
1 # This file was created automatically by SWIG 1.3.27.
2 # Don't modify this file, modify the SWIG interface instead.
3
4 import _windows_
5
6 def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
7 if (name == "this"):
8 if isinstance(value, class_type):
9 self.__dict__[name] = value.this
10 if hasattr(value,"thisown"): self.__dict__["thisown"] = value.thisown
11 del value.thisown
12 return
13 method = class_type.__swig_setmethods__.get(name,None)
14 if method: return method(self,value)
15 if (not static) or hasattr(self,name) or (name == "thisown"):
16 self.__dict__[name] = value
17 else:
18 raise AttributeError("You cannot add attributes to %s" % self)
19
20 def _swig_setattr(self,class_type,name,value):
21 return _swig_setattr_nondynamic(self,class_type,name,value,0)
22
23 def _swig_getattr(self,class_type,name):
24 method = class_type.__swig_getmethods__.get(name,None)
25 if method: return method(self)
26 raise AttributeError,name
27
28 import types
29 try:
30 _object = types.ObjectType
31 _newclass = 1
32 except AttributeError:
33 class _object : pass
34 _newclass = 0
35 del types
36
37
38 def _swig_setattr_nondynamic_method(set):
39 def set_attr(self,name,value):
40 if hasattr(self,name) or (name in ("this", "thisown")):
41 set(self,name,value)
42 else:
43 raise AttributeError("You cannot add attributes to %s" % self)
44 return set_attr
45
46
47 import _core
48 wx = _core
49 #---------------------------------------------------------------------------
50
51 class Panel(_core.Window):
52 """Proxy of C++ Panel class"""
53 def __repr__(self):
54 return "<%s.%s; proxy of C++ wxPanel instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
55 def __init__(self, *args, **kwargs):
56 """
57 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
58 Size size=DefaultSize, long style=wxTAB_TRAVERSAL|wxNO_BORDER,
59 String name=PanelNameStr) -> Panel
60 """
61 newobj = _windows_.new_Panel(*args, **kwargs)
62 self.this = newobj.this
63 self.thisown = 1
64 del newobj.thisown
65 self._setOORInfo(self)
66
67 def Create(*args, **kwargs):
68 """
69 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
70 Size size=DefaultSize, long style=wxTAB_TRAVERSAL|wxNO_BORDER,
71 String name=PanelNameStr) -> bool
72
73 Create the GUI part of the Window for 2-phase creation mode.
74 """
75 return _windows_.Panel_Create(*args, **kwargs)
76
77 def InitDialog(*args, **kwargs):
78 """
79 InitDialog(self)
80
81 Sends an EVT_INIT_DIALOG event, whose handler usually transfers data
82 to the dialog via validators.
83 """
84 return _windows_.Panel_InitDialog(*args, **kwargs)
85
86 def SetFocus(*args, **kwargs):
87 """
88 SetFocus(self)
89
90 Overrides `wx.Window.SetFocus`. This method uses the (undocumented)
91 mix-in class wxControlContainer which manages the focus and TAB logic
92 for controls which usually have child controls. In practice, if you
93 call this method and the panel has at least one child window, then the
94 focus will be given to the child window.
95 """
96 return _windows_.Panel_SetFocus(*args, **kwargs)
97
98 def SetFocusIgnoringChildren(*args, **kwargs):
99 """
100 SetFocusIgnoringChildren(self)
101
102 In contrast to `SetFocus` (see above) this will set the focus to the
103 panel even of there are child windows in the panel. This is only
104 rarely needed.
105 """
106 return _windows_.Panel_SetFocusIgnoringChildren(*args, **kwargs)
107
108 def GetClassDefaultAttributes(*args, **kwargs):
109 """
110 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
111
112 Get the default attributes for this class. This is useful if you want
113 to use the same font or colour in your own control as in a standard
114 control -- which is a much better idea than hard coding specific
115 colours or fonts which might look completely out of place on the
116 user's system, especially if it uses themes.
117
118 The variant parameter is only relevant under Mac currently and is
119 ignore under other platforms. Under Mac, it will change the size of
120 the returned font. See `wx.Window.SetWindowVariant` for more about
121 this.
122 """
123 return _windows_.Panel_GetClassDefaultAttributes(*args, **kwargs)
124
125 GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes)
126
127 class PanelPtr(Panel):
128 def __init__(self, this):
129 self.this = this
130 if not hasattr(self,"thisown"): self.thisown = 0
131 self.__class__ = Panel
132 _windows_.Panel_swigregister(PanelPtr)
133
134 def PrePanel(*args, **kwargs):
135 """PrePanel() -> Panel"""
136 val = _windows_.new_PrePanel(*args, **kwargs)
137 val.thisown = 1
138 return val
139
140 def Panel_GetClassDefaultAttributes(*args, **kwargs):
141 """
142 Panel_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
143
144 Get the default attributes for this class. This is useful if you want
145 to use the same font or colour in your own control as in a standard
146 control -- which is a much better idea than hard coding specific
147 colours or fonts which might look completely out of place on the
148 user's system, especially if it uses themes.
149
150 The variant parameter is only relevant under Mac currently and is
151 ignore under other platforms. Under Mac, it will change the size of
152 the returned font. See `wx.Window.SetWindowVariant` for more about
153 this.
154 """
155 return _windows_.Panel_GetClassDefaultAttributes(*args, **kwargs)
156
157 #---------------------------------------------------------------------------
158
159 class ScrolledWindow(Panel):
160 """Proxy of C++ ScrolledWindow class"""
161 def __repr__(self):
162 return "<%s.%s; proxy of C++ wxScrolledWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
163 def __init__(self, *args, **kwargs):
164 """
165 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
166 Size size=DefaultSize, long style=wxHSCROLL|wxVSCROLL,
167 String name=PanelNameStr) -> ScrolledWindow
168 """
169 newobj = _windows_.new_ScrolledWindow(*args, **kwargs)
170 self.this = newobj.this
171 self.thisown = 1
172 del newobj.thisown
173 self._setOORInfo(self)
174
175 def Create(*args, **kwargs):
176 """
177 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
178 Size size=DefaultSize, long style=wxHSCROLL|wxVSCROLL,
179 String name=PanelNameStr) -> bool
180
181 Create the GUI part of the Window for 2-phase creation mode.
182 """
183 return _windows_.ScrolledWindow_Create(*args, **kwargs)
184
185 def SetScrollbars(*args, **kwargs):
186 """
187 SetScrollbars(self, int pixelsPerUnitX, int pixelsPerUnitY, int noUnitsX,
188 int noUnitsY, int xPos=0, int yPos=0, bool noRefresh=False)
189 """
190 return _windows_.ScrolledWindow_SetScrollbars(*args, **kwargs)
191
192 def Scroll(*args, **kwargs):
193 """Scroll(self, int x, int y)"""
194 return _windows_.ScrolledWindow_Scroll(*args, **kwargs)
195
196 def GetScrollPageSize(*args, **kwargs):
197 """GetScrollPageSize(self, int orient) -> int"""
198 return _windows_.ScrolledWindow_GetScrollPageSize(*args, **kwargs)
199
200 def SetScrollPageSize(*args, **kwargs):
201 """SetScrollPageSize(self, int orient, int pageSize)"""
202 return _windows_.ScrolledWindow_SetScrollPageSize(*args, **kwargs)
203
204 def SetScrollRate(*args, **kwargs):
205 """SetScrollRate(self, int xstep, int ystep)"""
206 return _windows_.ScrolledWindow_SetScrollRate(*args, **kwargs)
207
208 def GetScrollPixelsPerUnit(*args, **kwargs):
209 """
210 GetScrollPixelsPerUnit() -> (xUnit, yUnit)
211
212 Get the size of one logical unit in physical units.
213 """
214 return _windows_.ScrolledWindow_GetScrollPixelsPerUnit(*args, **kwargs)
215
216 def EnableScrolling(*args, **kwargs):
217 """EnableScrolling(self, bool x_scrolling, bool y_scrolling)"""
218 return _windows_.ScrolledWindow_EnableScrolling(*args, **kwargs)
219
220 def GetViewStart(*args, **kwargs):
221 """
222 GetViewStart() -> (x,y)
223
224 Get the view start
225 """
226 return _windows_.ScrolledWindow_GetViewStart(*args, **kwargs)
227
228 def SetScale(*args, **kwargs):
229 """SetScale(self, double xs, double ys)"""
230 return _windows_.ScrolledWindow_SetScale(*args, **kwargs)
231
232 def GetScaleX(*args, **kwargs):
233 """GetScaleX(self) -> double"""
234 return _windows_.ScrolledWindow_GetScaleX(*args, **kwargs)
235
236 def GetScaleY(*args, **kwargs):
237 """GetScaleY(self) -> double"""
238 return _windows_.ScrolledWindow_GetScaleY(*args, **kwargs)
239
240 def CalcScrolledPosition(*args):
241 """
242 CalcScrolledPosition(self, Point pt) -> Point
243 CalcScrolledPosition(int x, int y) -> (sx, sy)
244
245 Translate between scrolled and unscrolled coordinates.
246 """
247 return _windows_.ScrolledWindow_CalcScrolledPosition(*args)
248
249 def CalcUnscrolledPosition(*args):
250 """
251 CalcUnscrolledPosition(self, Point pt) -> Point
252 CalcUnscrolledPosition(int x, int y) -> (ux, uy)
253
254 Translate between scrolled and unscrolled coordinates.
255 """
256 return _windows_.ScrolledWindow_CalcUnscrolledPosition(*args)
257
258 def AdjustScrollbars(*args, **kwargs):
259 """AdjustScrollbars(self)"""
260 return _windows_.ScrolledWindow_AdjustScrollbars(*args, **kwargs)
261
262 def CalcScrollInc(*args, **kwargs):
263 """CalcScrollInc(self, ScrollWinEvent event) -> int"""
264 return _windows_.ScrolledWindow_CalcScrollInc(*args, **kwargs)
265
266 def SetTargetWindow(*args, **kwargs):
267 """SetTargetWindow(self, Window target)"""
268 return _windows_.ScrolledWindow_SetTargetWindow(*args, **kwargs)
269
270 def GetTargetWindow(*args, **kwargs):
271 """GetTargetWindow(self) -> Window"""
272 return _windows_.ScrolledWindow_GetTargetWindow(*args, **kwargs)
273
274 def SetTargetRect(*args, **kwargs):
275 """SetTargetRect(self, Rect rect)"""
276 return _windows_.ScrolledWindow_SetTargetRect(*args, **kwargs)
277
278 def GetTargetRect(*args, **kwargs):
279 """GetTargetRect(self) -> Rect"""
280 return _windows_.ScrolledWindow_GetTargetRect(*args, **kwargs)
281
282 def DoPrepareDC(*args, **kwargs):
283 """
284 DoPrepareDC(self, DC dc)
285
286 Normally what is called by `PrepareDC`.
287 """
288 return _windows_.ScrolledWindow_DoPrepareDC(*args, **kwargs)
289
290 def GetClassDefaultAttributes(*args, **kwargs):
291 """
292 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
293
294 Get the default attributes for this class. This is useful if you want
295 to use the same font or colour in your own control as in a standard
296 control -- which is a much better idea than hard coding specific
297 colours or fonts which might look completely out of place on the
298 user's system, especially if it uses themes.
299
300 The variant parameter is only relevant under Mac currently and is
301 ignore under other platforms. Under Mac, it will change the size of
302 the returned font. See `wx.Window.SetWindowVariant` for more about
303 this.
304 """
305 return _windows_.ScrolledWindow_GetClassDefaultAttributes(*args, **kwargs)
306
307 GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes)
308
309 class ScrolledWindowPtr(ScrolledWindow):
310 def __init__(self, this):
311 self.this = this
312 if not hasattr(self,"thisown"): self.thisown = 0
313 self.__class__ = ScrolledWindow
314 _windows_.ScrolledWindow_swigregister(ScrolledWindowPtr)
315
316 def PreScrolledWindow(*args, **kwargs):
317 """PreScrolledWindow() -> ScrolledWindow"""
318 val = _windows_.new_PreScrolledWindow(*args, **kwargs)
319 val.thisown = 1
320 return val
321
322 def ScrolledWindow_GetClassDefaultAttributes(*args, **kwargs):
323 """
324 ScrolledWindow_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
325
326 Get the default attributes for this class. This is useful if you want
327 to use the same font or colour in your own control as in a standard
328 control -- which is a much better idea than hard coding specific
329 colours or fonts which might look completely out of place on the
330 user's system, especially if it uses themes.
331
332 The variant parameter is only relevant under Mac currently and is
333 ignore under other platforms. Under Mac, it will change the size of
334 the returned font. See `wx.Window.SetWindowVariant` for more about
335 this.
336 """
337 return _windows_.ScrolledWindow_GetClassDefaultAttributes(*args, **kwargs)
338
339 #---------------------------------------------------------------------------
340
341 STAY_ON_TOP = _windows_.STAY_ON_TOP
342 ICONIZE = _windows_.ICONIZE
343 MINIMIZE = _windows_.MINIMIZE
344 MAXIMIZE = _windows_.MAXIMIZE
345 CLOSE_BOX = _windows_.CLOSE_BOX
346 THICK_FRAME = _windows_.THICK_FRAME
347 SYSTEM_MENU = _windows_.SYSTEM_MENU
348 MINIMIZE_BOX = _windows_.MINIMIZE_BOX
349 MAXIMIZE_BOX = _windows_.MAXIMIZE_BOX
350 TINY_CAPTION_HORIZ = _windows_.TINY_CAPTION_HORIZ
351 TINY_CAPTION_VERT = _windows_.TINY_CAPTION_VERT
352 RESIZE_BOX = _windows_.RESIZE_BOX
353 RESIZE_BORDER = _windows_.RESIZE_BORDER
354 DIALOG_NO_PARENT = _windows_.DIALOG_NO_PARENT
355 DEFAULT_FRAME_STYLE = _windows_.DEFAULT_FRAME_STYLE
356 DEFAULT_DIALOG_STYLE = _windows_.DEFAULT_DIALOG_STYLE
357 FRAME_TOOL_WINDOW = _windows_.FRAME_TOOL_WINDOW
358 FRAME_FLOAT_ON_PARENT = _windows_.FRAME_FLOAT_ON_PARENT
359 FRAME_NO_WINDOW_MENU = _windows_.FRAME_NO_WINDOW_MENU
360 FRAME_NO_TASKBAR = _windows_.FRAME_NO_TASKBAR
361 FRAME_SHAPED = _windows_.FRAME_SHAPED
362 FRAME_DRAWER = _windows_.FRAME_DRAWER
363 FRAME_EX_METAL = _windows_.FRAME_EX_METAL
364 DIALOG_EX_METAL = _windows_.DIALOG_EX_METAL
365 DIALOG_MODAL = _windows_.DIALOG_MODAL
366 DIALOG_MODELESS = _windows_.DIALOG_MODELESS
367 USER_COLOURS = _windows_.USER_COLOURS
368 NO_3D = _windows_.NO_3D
369 FULLSCREEN_NOMENUBAR = _windows_.FULLSCREEN_NOMENUBAR
370 FULLSCREEN_NOTOOLBAR = _windows_.FULLSCREEN_NOTOOLBAR
371 FULLSCREEN_NOSTATUSBAR = _windows_.FULLSCREEN_NOSTATUSBAR
372 FULLSCREEN_NOBORDER = _windows_.FULLSCREEN_NOBORDER
373 FULLSCREEN_NOCAPTION = _windows_.FULLSCREEN_NOCAPTION
374 FULLSCREEN_ALL = _windows_.FULLSCREEN_ALL
375 TOPLEVEL_EX_DIALOG = _windows_.TOPLEVEL_EX_DIALOG
376 USER_ATTENTION_INFO = _windows_.USER_ATTENTION_INFO
377 USER_ATTENTION_ERROR = _windows_.USER_ATTENTION_ERROR
378 class TopLevelWindow(_core.Window):
379 """Proxy of C++ TopLevelWindow class"""
380 def __init__(self): raise RuntimeError, "No constructor defined"
381 def __repr__(self):
382 return "<%s.%s; proxy of C++ wxTopLevelWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
383 def Maximize(*args, **kwargs):
384 """Maximize(self, bool maximize=True)"""
385 return _windows_.TopLevelWindow_Maximize(*args, **kwargs)
386
387 def Restore(*args, **kwargs):
388 """Restore(self)"""
389 return _windows_.TopLevelWindow_Restore(*args, **kwargs)
390
391 def Iconize(*args, **kwargs):
392 """Iconize(self, bool iconize=True)"""
393 return _windows_.TopLevelWindow_Iconize(*args, **kwargs)
394
395 def IsMaximized(*args, **kwargs):
396 """IsMaximized(self) -> bool"""
397 return _windows_.TopLevelWindow_IsMaximized(*args, **kwargs)
398
399 def IsIconized(*args, **kwargs):
400 """IsIconized(self) -> bool"""
401 return _windows_.TopLevelWindow_IsIconized(*args, **kwargs)
402
403 def GetIcon(*args, **kwargs):
404 """GetIcon(self) -> Icon"""
405 return _windows_.TopLevelWindow_GetIcon(*args, **kwargs)
406
407 def SetIcon(*args, **kwargs):
408 """SetIcon(self, Icon icon)"""
409 return _windows_.TopLevelWindow_SetIcon(*args, **kwargs)
410
411 def SetIcons(*args, **kwargs):
412 """SetIcons(self, wxIconBundle icons)"""
413 return _windows_.TopLevelWindow_SetIcons(*args, **kwargs)
414
415 def ShowFullScreen(*args, **kwargs):
416 """ShowFullScreen(self, bool show, long style=FULLSCREEN_ALL) -> bool"""
417 return _windows_.TopLevelWindow_ShowFullScreen(*args, **kwargs)
418
419 def IsFullScreen(*args, **kwargs):
420 """IsFullScreen(self) -> bool"""
421 return _windows_.TopLevelWindow_IsFullScreen(*args, **kwargs)
422
423 def SetTitle(*args, **kwargs):
424 """SetTitle(self, String title)"""
425 return _windows_.TopLevelWindow_SetTitle(*args, **kwargs)
426
427 def GetTitle(*args, **kwargs):
428 """GetTitle(self) -> String"""
429 return _windows_.TopLevelWindow_GetTitle(*args, **kwargs)
430
431 def SetShape(*args, **kwargs):
432 """SetShape(self, Region region) -> bool"""
433 return _windows_.TopLevelWindow_SetShape(*args, **kwargs)
434
435 def RequestUserAttention(*args, **kwargs):
436 """RequestUserAttention(self, int flags=USER_ATTENTION_INFO)"""
437 return _windows_.TopLevelWindow_RequestUserAttention(*args, **kwargs)
438
439 def IsActive(*args, **kwargs):
440 """IsActive(self) -> bool"""
441 return _windows_.TopLevelWindow_IsActive(*args, **kwargs)
442
443 def MacSetMetalAppearance(*args, **kwargs):
444 """MacSetMetalAppearance(self, bool on)"""
445 return _windows_.TopLevelWindow_MacSetMetalAppearance(*args, **kwargs)
446
447 def MacGetMetalAppearance(*args, **kwargs):
448 """MacGetMetalAppearance(self) -> bool"""
449 return _windows_.TopLevelWindow_MacGetMetalAppearance(*args, **kwargs)
450
451
452 class TopLevelWindowPtr(TopLevelWindow):
453 def __init__(self, this):
454 self.this = this
455 if not hasattr(self,"thisown"): self.thisown = 0
456 self.__class__ = TopLevelWindow
457 _windows_.TopLevelWindow_swigregister(TopLevelWindowPtr)
458 cvar = _windows_.cvar
459 FrameNameStr = cvar.FrameNameStr
460 DialogNameStr = cvar.DialogNameStr
461 StatusLineNameStr = cvar.StatusLineNameStr
462 ToolBarNameStr = cvar.ToolBarNameStr
463
464 #---------------------------------------------------------------------------
465
466 class Frame(TopLevelWindow):
467 """Proxy of C++ Frame class"""
468 def __repr__(self):
469 return "<%s.%s; proxy of C++ wxFrame instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
470 def __init__(self, *args, **kwargs):
471 """
472 __init__(self, Window parent, int id=-1, String title=EmptyString,
473 Point pos=DefaultPosition, Size size=DefaultSize,
474 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> Frame
475 """
476 newobj = _windows_.new_Frame(*args, **kwargs)
477 self.this = newobj.this
478 self.thisown = 1
479 del newobj.thisown
480 self._setOORInfo(self)
481
482 def Create(*args, **kwargs):
483 """
484 Create(self, Window parent, int id=-1, String title=EmptyString,
485 Point pos=DefaultPosition, Size size=DefaultSize,
486 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> bool
487 """
488 return _windows_.Frame_Create(*args, **kwargs)
489
490 def GetClientAreaOrigin(*args, **kwargs):
491 """
492 GetClientAreaOrigin(self) -> Point
493
494 Get the origin of the client area of the window relative to the
495 window's top left corner (the client area may be shifted because of
496 the borders, scrollbars, other decorations...)
497 """
498 return _windows_.Frame_GetClientAreaOrigin(*args, **kwargs)
499
500 def SendSizeEvent(*args, **kwargs):
501 """SendSizeEvent(self)"""
502 return _windows_.Frame_SendSizeEvent(*args, **kwargs)
503
504 def SetMenuBar(*args, **kwargs):
505 """SetMenuBar(self, MenuBar menubar)"""
506 return _windows_.Frame_SetMenuBar(*args, **kwargs)
507
508 def GetMenuBar(*args, **kwargs):
509 """GetMenuBar(self) -> MenuBar"""
510 return _windows_.Frame_GetMenuBar(*args, **kwargs)
511
512 def ProcessCommand(*args, **kwargs):
513 """ProcessCommand(self, int winid) -> bool"""
514 return _windows_.Frame_ProcessCommand(*args, **kwargs)
515
516 Command = ProcessCommand
517 def CreateStatusBar(*args, **kwargs):
518 """
519 CreateStatusBar(self, int number=1, long style=DEFAULT_STATUSBAR_STYLE, int winid=0,
520 String name=StatusLineNameStr) -> StatusBar
521 """
522 return _windows_.Frame_CreateStatusBar(*args, **kwargs)
523
524 def GetStatusBar(*args, **kwargs):
525 """GetStatusBar(self) -> StatusBar"""
526 return _windows_.Frame_GetStatusBar(*args, **kwargs)
527
528 def SetStatusBar(*args, **kwargs):
529 """SetStatusBar(self, StatusBar statBar)"""
530 return _windows_.Frame_SetStatusBar(*args, **kwargs)
531
532 def SetStatusText(*args, **kwargs):
533 """SetStatusText(self, String text, int number=0)"""
534 return _windows_.Frame_SetStatusText(*args, **kwargs)
535
536 def SetStatusWidths(*args, **kwargs):
537 """SetStatusWidths(self, int widths)"""
538 return _windows_.Frame_SetStatusWidths(*args, **kwargs)
539
540 def PushStatusText(*args, **kwargs):
541 """PushStatusText(self, String text, int number=0)"""
542 return _windows_.Frame_PushStatusText(*args, **kwargs)
543
544 def PopStatusText(*args, **kwargs):
545 """PopStatusText(self, int number=0)"""
546 return _windows_.Frame_PopStatusText(*args, **kwargs)
547
548 def SetStatusBarPane(*args, **kwargs):
549 """SetStatusBarPane(self, int n)"""
550 return _windows_.Frame_SetStatusBarPane(*args, **kwargs)
551
552 def GetStatusBarPane(*args, **kwargs):
553 """GetStatusBarPane(self) -> int"""
554 return _windows_.Frame_GetStatusBarPane(*args, **kwargs)
555
556 def CreateToolBar(*args, **kwargs):
557 """CreateToolBar(self, long style=-1, int winid=-1, String name=ToolBarNameStr) -> wxToolBar"""
558 return _windows_.Frame_CreateToolBar(*args, **kwargs)
559
560 def GetToolBar(*args, **kwargs):
561 """GetToolBar(self) -> wxToolBar"""
562 return _windows_.Frame_GetToolBar(*args, **kwargs)
563
564 def SetToolBar(*args, **kwargs):
565 """SetToolBar(self, wxToolBar toolbar)"""
566 return _windows_.Frame_SetToolBar(*args, **kwargs)
567
568 def DoGiveHelp(*args, **kwargs):
569 """DoGiveHelp(self, String text, bool show)"""
570 return _windows_.Frame_DoGiveHelp(*args, **kwargs)
571
572 def DoMenuUpdates(*args, **kwargs):
573 """DoMenuUpdates(self, Menu menu=None)"""
574 return _windows_.Frame_DoMenuUpdates(*args, **kwargs)
575
576 def GetClassDefaultAttributes(*args, **kwargs):
577 """
578 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
579
580 Get the default attributes for this class. This is useful if you want
581 to use the same font or colour in your own control as in a standard
582 control -- which is a much better idea than hard coding specific
583 colours or fonts which might look completely out of place on the
584 user's system, especially if it uses themes.
585
586 The variant parameter is only relevant under Mac currently and is
587 ignore under other platforms. Under Mac, it will change the size of
588 the returned font. See `wx.Window.SetWindowVariant` for more about
589 this.
590 """
591 return _windows_.Frame_GetClassDefaultAttributes(*args, **kwargs)
592
593 GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes)
594
595 class FramePtr(Frame):
596 def __init__(self, this):
597 self.this = this
598 if not hasattr(self,"thisown"): self.thisown = 0
599 self.__class__ = Frame
600 _windows_.Frame_swigregister(FramePtr)
601
602 def PreFrame(*args, **kwargs):
603 """PreFrame() -> Frame"""
604 val = _windows_.new_PreFrame(*args, **kwargs)
605 val.thisown = 1
606 return val
607
608 def Frame_GetClassDefaultAttributes(*args, **kwargs):
609 """
610 Frame_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
611
612 Get the default attributes for this class. This is useful if you want
613 to use the same font or colour in your own control as in a standard
614 control -- which is a much better idea than hard coding specific
615 colours or fonts which might look completely out of place on the
616 user's system, especially if it uses themes.
617
618 The variant parameter is only relevant under Mac currently and is
619 ignore under other platforms. Under Mac, it will change the size of
620 the returned font. See `wx.Window.SetWindowVariant` for more about
621 this.
622 """
623 return _windows_.Frame_GetClassDefaultAttributes(*args, **kwargs)
624
625 #---------------------------------------------------------------------------
626
627 class Dialog(TopLevelWindow):
628 """Proxy of C++ Dialog class"""
629 def __repr__(self):
630 return "<%s.%s; proxy of C++ wxDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
631 ButtonSizerFlags = _windows_.Dialog_ButtonSizerFlags
632 def __init__(self, *args, **kwargs):
633 """
634 __init__(self, Window parent, int id=-1, String title=EmptyString,
635 Point pos=DefaultPosition, Size size=DefaultSize,
636 long style=DEFAULT_DIALOG_STYLE, String name=DialogNameStr) -> Dialog
637 """
638 newobj = _windows_.new_Dialog(*args, **kwargs)
639 self.this = newobj.this
640 self.thisown = 1
641 del newobj.thisown
642 self._setOORInfo(self)
643
644 def Create(*args, **kwargs):
645 """
646 Create(self, Window parent, int id=-1, String title=EmptyString,
647 Point pos=DefaultPosition, Size size=DefaultSize,
648 long style=DEFAULT_DIALOG_STYLE, String name=DialogNameStr) -> bool
649 """
650 return _windows_.Dialog_Create(*args, **kwargs)
651
652 def SetReturnCode(*args, **kwargs):
653 """SetReturnCode(self, int returnCode)"""
654 return _windows_.Dialog_SetReturnCode(*args, **kwargs)
655
656 def GetReturnCode(*args, **kwargs):
657 """GetReturnCode(self) -> int"""
658 return _windows_.Dialog_GetReturnCode(*args, **kwargs)
659
660 def CreateTextSizer(*args, **kwargs):
661 """CreateTextSizer(self, String message) -> Sizer"""
662 return _windows_.Dialog_CreateTextSizer(*args, **kwargs)
663
664 def CreateButtonSizer(*args, **kwargs):
665 """CreateButtonSizer(self, long flags, bool separated=False, int distance=0) -> Sizer"""
666 return _windows_.Dialog_CreateButtonSizer(*args, **kwargs)
667
668 def CreateStdDialogButtonSizer(*args, **kwargs):
669 """CreateStdDialogButtonSizer(self, long flags) -> StdDialogButtonSizer"""
670 return _windows_.Dialog_CreateStdDialogButtonSizer(*args, **kwargs)
671
672 def IsModal(*args, **kwargs):
673 """IsModal(self) -> bool"""
674 return _windows_.Dialog_IsModal(*args, **kwargs)
675
676 def ShowModal(*args, **kwargs):
677 """ShowModal(self) -> int"""
678 return _windows_.Dialog_ShowModal(*args, **kwargs)
679
680 def EndModal(*args, **kwargs):
681 """EndModal(self, int retCode)"""
682 return _windows_.Dialog_EndModal(*args, **kwargs)
683
684 def GetClassDefaultAttributes(*args, **kwargs):
685 """
686 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
687
688 Get the default attributes for this class. This is useful if you want
689 to use the same font or colour in your own control as in a standard
690 control -- which is a much better idea than hard coding specific
691 colours or fonts which might look completely out of place on the
692 user's system, especially if it uses themes.
693
694 The variant parameter is only relevant under Mac currently and is
695 ignore under other platforms. Under Mac, it will change the size of
696 the returned font. See `wx.Window.SetWindowVariant` for more about
697 this.
698 """
699 return _windows_.Dialog_GetClassDefaultAttributes(*args, **kwargs)
700
701 GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes)
702
703 class DialogPtr(Dialog):
704 def __init__(self, this):
705 self.this = this
706 if not hasattr(self,"thisown"): self.thisown = 0
707 self.__class__ = Dialog
708 _windows_.Dialog_swigregister(DialogPtr)
709
710 def PreDialog(*args, **kwargs):
711 """PreDialog() -> Dialog"""
712 val = _windows_.new_PreDialog(*args, **kwargs)
713 val.thisown = 1
714 return val
715
716 def Dialog_GetClassDefaultAttributes(*args, **kwargs):
717 """
718 Dialog_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
719
720 Get the default attributes for this class. This is useful if you want
721 to use the same font or colour in your own control as in a standard
722 control -- which is a much better idea than hard coding specific
723 colours or fonts which might look completely out of place on the
724 user's system, especially if it uses themes.
725
726 The variant parameter is only relevant under Mac currently and is
727 ignore under other platforms. Under Mac, it will change the size of
728 the returned font. See `wx.Window.SetWindowVariant` for more about
729 this.
730 """
731 return _windows_.Dialog_GetClassDefaultAttributes(*args, **kwargs)
732
733 #---------------------------------------------------------------------------
734
735 class MiniFrame(Frame):
736 """Proxy of C++ MiniFrame class"""
737 def __repr__(self):
738 return "<%s.%s; proxy of C++ wxMiniFrame instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
739 def __init__(self, *args, **kwargs):
740 """
741 __init__(self, Window parent, int id=-1, String title=EmptyString,
742 Point pos=DefaultPosition, Size size=DefaultSize,
743 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> MiniFrame
744 """
745 newobj = _windows_.new_MiniFrame(*args, **kwargs)
746 self.this = newobj.this
747 self.thisown = 1
748 del newobj.thisown
749 self._setOORInfo(self)
750
751 def Create(*args, **kwargs):
752 """
753 Create(self, Window parent, int id=-1, String title=EmptyString,
754 Point pos=DefaultPosition, Size size=DefaultSize,
755 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> bool
756 """
757 return _windows_.MiniFrame_Create(*args, **kwargs)
758
759
760 class MiniFramePtr(MiniFrame):
761 def __init__(self, this):
762 self.this = this
763 if not hasattr(self,"thisown"): self.thisown = 0
764 self.__class__ = MiniFrame
765 _windows_.MiniFrame_swigregister(MiniFramePtr)
766
767 def PreMiniFrame(*args, **kwargs):
768 """PreMiniFrame() -> MiniFrame"""
769 val = _windows_.new_PreMiniFrame(*args, **kwargs)
770 val.thisown = 1
771 return val
772
773 #---------------------------------------------------------------------------
774
775 SPLASH_CENTRE_ON_PARENT = _windows_.SPLASH_CENTRE_ON_PARENT
776 SPLASH_CENTRE_ON_SCREEN = _windows_.SPLASH_CENTRE_ON_SCREEN
777 SPLASH_NO_CENTRE = _windows_.SPLASH_NO_CENTRE
778 SPLASH_TIMEOUT = _windows_.SPLASH_TIMEOUT
779 SPLASH_NO_TIMEOUT = _windows_.SPLASH_NO_TIMEOUT
780 class SplashScreenWindow(_core.Window):
781 """Proxy of C++ SplashScreenWindow class"""
782 def __repr__(self):
783 return "<%s.%s; proxy of C++ wxSplashScreenWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
784 def __init__(self, *args, **kwargs):
785 """
786 __init__(self, Bitmap bitmap, Window parent, int id, Point pos=DefaultPosition,
787 Size size=DefaultSize, long style=NO_BORDER) -> SplashScreenWindow
788 """
789 newobj = _windows_.new_SplashScreenWindow(*args, **kwargs)
790 self.this = newobj.this
791 self.thisown = 1
792 del newobj.thisown
793 self._setOORInfo(self)
794
795 def SetBitmap(*args, **kwargs):
796 """SetBitmap(self, Bitmap bitmap)"""
797 return _windows_.SplashScreenWindow_SetBitmap(*args, **kwargs)
798
799 def GetBitmap(*args, **kwargs):
800 """GetBitmap(self) -> Bitmap"""
801 return _windows_.SplashScreenWindow_GetBitmap(*args, **kwargs)
802
803
804 class SplashScreenWindowPtr(SplashScreenWindow):
805 def __init__(self, this):
806 self.this = this
807 if not hasattr(self,"thisown"): self.thisown = 0
808 self.__class__ = SplashScreenWindow
809 _windows_.SplashScreenWindow_swigregister(SplashScreenWindowPtr)
810
811 class SplashScreen(Frame):
812 """Proxy of C++ SplashScreen class"""
813 def __repr__(self):
814 return "<%s.%s; proxy of C++ wxSplashScreen instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
815 def __init__(self, *args, **kwargs):
816 """
817 __init__(self, Bitmap bitmap, long splashStyle, int milliseconds,
818 Window parent, int id=-1, Point pos=DefaultPosition,
819 Size size=DefaultSize, long style=wxSIMPLE_BORDER|wxFRAME_NO_TASKBAR|wxSTAY_ON_TOP) -> SplashScreen
820 """
821 newobj = _windows_.new_SplashScreen(*args, **kwargs)
822 self.this = newobj.this
823 self.thisown = 1
824 del newobj.thisown
825 self._setOORInfo(self)
826
827 def GetSplashStyle(*args, **kwargs):
828 """GetSplashStyle(self) -> long"""
829 return _windows_.SplashScreen_GetSplashStyle(*args, **kwargs)
830
831 def GetSplashWindow(*args, **kwargs):
832 """GetSplashWindow(self) -> SplashScreenWindow"""
833 return _windows_.SplashScreen_GetSplashWindow(*args, **kwargs)
834
835 def GetTimeout(*args, **kwargs):
836 """GetTimeout(self) -> int"""
837 return _windows_.SplashScreen_GetTimeout(*args, **kwargs)
838
839
840 class SplashScreenPtr(SplashScreen):
841 def __init__(self, this):
842 self.this = this
843 if not hasattr(self,"thisown"): self.thisown = 0
844 self.__class__ = SplashScreen
845 _windows_.SplashScreen_swigregister(SplashScreenPtr)
846
847 #---------------------------------------------------------------------------
848
849 SB_NORMAL = _windows_.SB_NORMAL
850 SB_FLAT = _windows_.SB_FLAT
851 SB_RAISED = _windows_.SB_RAISED
852 class StatusBar(_core.Window):
853 """Proxy of C++ StatusBar class"""
854 def __repr__(self):
855 return "<%s.%s; proxy of C++ wxStatusBar instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
856 def __init__(self, *args, **kwargs):
857 """
858 __init__(self, Window parent, int id=-1, long style=DEFAULT_STATUSBAR_STYLE,
859 String name=StatusLineNameStr) -> StatusBar
860 """
861 newobj = _windows_.new_StatusBar(*args, **kwargs)
862 self.this = newobj.this
863 self.thisown = 1
864 del newobj.thisown
865 self._setOORInfo(self)
866
867 def Create(*args, **kwargs):
868 """Create(self, Window parent, int id=-1, long style=ST_SIZEGRIP, String name=StatusLineNameStr) -> bool"""
869 return _windows_.StatusBar_Create(*args, **kwargs)
870
871 def SetFieldsCount(*args, **kwargs):
872 """SetFieldsCount(self, int number=1)"""
873 return _windows_.StatusBar_SetFieldsCount(*args, **kwargs)
874
875 def GetFieldsCount(*args, **kwargs):
876 """GetFieldsCount(self) -> int"""
877 return _windows_.StatusBar_GetFieldsCount(*args, **kwargs)
878
879 def SetStatusText(*args, **kwargs):
880 """SetStatusText(self, String text, int number=0)"""
881 return _windows_.StatusBar_SetStatusText(*args, **kwargs)
882
883 def GetStatusText(*args, **kwargs):
884 """GetStatusText(self, int number=0) -> String"""
885 return _windows_.StatusBar_GetStatusText(*args, **kwargs)
886
887 def PushStatusText(*args, **kwargs):
888 """PushStatusText(self, String text, int number=0)"""
889 return _windows_.StatusBar_PushStatusText(*args, **kwargs)
890
891 def PopStatusText(*args, **kwargs):
892 """PopStatusText(self, int number=0)"""
893 return _windows_.StatusBar_PopStatusText(*args, **kwargs)
894
895 def SetStatusWidths(*args, **kwargs):
896 """SetStatusWidths(self, int widths)"""
897 return _windows_.StatusBar_SetStatusWidths(*args, **kwargs)
898
899 def SetStatusStyles(*args, **kwargs):
900 """SetStatusStyles(self, int styles)"""
901 return _windows_.StatusBar_SetStatusStyles(*args, **kwargs)
902
903 def GetFieldRect(*args, **kwargs):
904 """GetFieldRect(self, int i) -> Rect"""
905 return _windows_.StatusBar_GetFieldRect(*args, **kwargs)
906
907 def SetMinHeight(*args, **kwargs):
908 """SetMinHeight(self, int height)"""
909 return _windows_.StatusBar_SetMinHeight(*args, **kwargs)
910
911 def GetBorderX(*args, **kwargs):
912 """GetBorderX(self) -> int"""
913 return _windows_.StatusBar_GetBorderX(*args, **kwargs)
914
915 def GetBorderY(*args, **kwargs):
916 """GetBorderY(self) -> int"""
917 return _windows_.StatusBar_GetBorderY(*args, **kwargs)
918
919 def GetClassDefaultAttributes(*args, **kwargs):
920 """
921 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
922
923 Get the default attributes for this class. This is useful if you want
924 to use the same font or colour in your own control as in a standard
925 control -- which is a much better idea than hard coding specific
926 colours or fonts which might look completely out of place on the
927 user's system, especially if it uses themes.
928
929 The variant parameter is only relevant under Mac currently and is
930 ignore under other platforms. Under Mac, it will change the size of
931 the returned font. See `wx.Window.SetWindowVariant` for more about
932 this.
933 """
934 return _windows_.StatusBar_GetClassDefaultAttributes(*args, **kwargs)
935
936 GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes)
937
938 class StatusBarPtr(StatusBar):
939 def __init__(self, this):
940 self.this = this
941 if not hasattr(self,"thisown"): self.thisown = 0
942 self.__class__ = StatusBar
943 _windows_.StatusBar_swigregister(StatusBarPtr)
944
945 def PreStatusBar(*args, **kwargs):
946 """PreStatusBar() -> StatusBar"""
947 val = _windows_.new_PreStatusBar(*args, **kwargs)
948 val.thisown = 1
949 return val
950
951 def StatusBar_GetClassDefaultAttributes(*args, **kwargs):
952 """
953 StatusBar_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
954
955 Get the default attributes for this class. This is useful if you want
956 to use the same font or colour in your own control as in a standard
957 control -- which is a much better idea than hard coding specific
958 colours or fonts which might look completely out of place on the
959 user's system, especially if it uses themes.
960
961 The variant parameter is only relevant under Mac currently and is
962 ignore under other platforms. Under Mac, it will change the size of
963 the returned font. See `wx.Window.SetWindowVariant` for more about
964 this.
965 """
966 return _windows_.StatusBar_GetClassDefaultAttributes(*args, **kwargs)
967
968 #---------------------------------------------------------------------------
969
970 SP_NOBORDER = _windows_.SP_NOBORDER
971 SP_NOSASH = _windows_.SP_NOSASH
972 SP_PERMIT_UNSPLIT = _windows_.SP_PERMIT_UNSPLIT
973 SP_LIVE_UPDATE = _windows_.SP_LIVE_UPDATE
974 SP_3DSASH = _windows_.SP_3DSASH
975 SP_3DBORDER = _windows_.SP_3DBORDER
976 SP_NO_XP_THEME = _windows_.SP_NO_XP_THEME
977 SP_BORDER = _windows_.SP_BORDER
978 SP_3D = _windows_.SP_3D
979 SPLIT_HORIZONTAL = _windows_.SPLIT_HORIZONTAL
980 SPLIT_VERTICAL = _windows_.SPLIT_VERTICAL
981 SPLIT_DRAG_NONE = _windows_.SPLIT_DRAG_NONE
982 SPLIT_DRAG_DRAGGING = _windows_.SPLIT_DRAG_DRAGGING
983 SPLIT_DRAG_LEFT_DOWN = _windows_.SPLIT_DRAG_LEFT_DOWN
984 class SplitterWindow(_core.Window):
985 """
986 wx.SplitterWindow manages up to two subwindows or panes, with an
987 optional vertical or horizontal split which can be used with the mouse
988 or programmatically.
989 """
990 def __repr__(self):
991 return "<%s.%s; proxy of C++ wxSplitterWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
992 def __init__(self, *args, **kwargs):
993 """
994 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
995 Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> SplitterWindow
996
997 Constructor. Creates and shows a SplitterWindow.
998 """
999 if kwargs.has_key('point'): kwargs['pos'] = kwargs['point'];del kwargs['point']
1000 newobj = _windows_.new_SplitterWindow(*args, **kwargs)
1001 self.this = newobj.this
1002 self.thisown = 1
1003 del newobj.thisown
1004 self._setOORInfo(self)
1005
1006 def Create(*args, **kwargs):
1007 """
1008 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1009 Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> bool
1010
1011 Create the GUI part of the SplitterWindow for the 2-phase create.
1012 """
1013 return _windows_.SplitterWindow_Create(*args, **kwargs)
1014
1015 def GetWindow1(*args, **kwargs):
1016 """
1017 GetWindow1(self) -> Window
1018
1019 Gets the only or left/top pane.
1020 """
1021 return _windows_.SplitterWindow_GetWindow1(*args, **kwargs)
1022
1023 def GetWindow2(*args, **kwargs):
1024 """
1025 GetWindow2(self) -> Window
1026
1027 Gets the right/bottom pane.
1028 """
1029 return _windows_.SplitterWindow_GetWindow2(*args, **kwargs)
1030
1031 def SetSplitMode(*args, **kwargs):
1032 """
1033 SetSplitMode(self, int mode)
1034
1035 Sets the split mode. The mode can be wx.SPLIT_VERTICAL or
1036 wx.SPLIT_HORIZONTAL. This only sets the internal variable; does not
1037 update the display.
1038 """
1039 return _windows_.SplitterWindow_SetSplitMode(*args, **kwargs)
1040
1041 def GetSplitMode(*args, **kwargs):
1042 """
1043 GetSplitMode(self) -> int
1044
1045 Gets the split mode
1046 """
1047 return _windows_.SplitterWindow_GetSplitMode(*args, **kwargs)
1048
1049 def Initialize(*args, **kwargs):
1050 """
1051 Initialize(self, Window window)
1052
1053 Initializes the splitter window to have one pane. This should be
1054 called if you wish to initially view only a single pane in the
1055 splitter window. The child window is shown if it is currently hidden.
1056 """
1057 return _windows_.SplitterWindow_Initialize(*args, **kwargs)
1058
1059 def SplitVertically(*args, **kwargs):
1060 """
1061 SplitVertically(self, Window window1, Window window2, int sashPosition=0) -> bool
1062
1063 Initializes the left and right panes of the splitter window. The
1064 child windows are shown if they are currently hidden.
1065 """
1066 return _windows_.SplitterWindow_SplitVertically(*args, **kwargs)
1067
1068 def SplitHorizontally(*args, **kwargs):
1069 """
1070 SplitHorizontally(self, Window window1, Window window2, int sashPosition=0) -> bool
1071
1072 Initializes the top and bottom panes of the splitter window. The
1073 child windows are shown if they are currently hidden.
1074 """
1075 return _windows_.SplitterWindow_SplitHorizontally(*args, **kwargs)
1076
1077 def Unsplit(*args, **kwargs):
1078 """
1079 Unsplit(self, Window toRemove=None) -> bool
1080
1081 Unsplits the window. Pass the pane to remove, or None to remove the
1082 right or bottom pane. Returns True if successful, False otherwise (the
1083 window was not split).
1084
1085 This function will not actually delete the pane being
1086 removed; it sends EVT_SPLITTER_UNSPLIT which can be handled
1087 for the desired behaviour. By default, the pane being
1088 removed is only hidden.
1089 """
1090 return _windows_.SplitterWindow_Unsplit(*args, **kwargs)
1091
1092 def ReplaceWindow(*args, **kwargs):
1093 """
1094 ReplaceWindow(self, Window winOld, Window winNew) -> bool
1095
1096 This function replaces one of the windows managed by the
1097 SplitterWindow with another one. It is in general better to use it
1098 instead of calling Unsplit() and then resplitting the window back
1099 because it will provoke much less flicker. It is valid to call this
1100 function whether the splitter has two windows or only one.
1101
1102 Both parameters should be non-None and winOld must specify one of the
1103 windows managed by the splitter. If the parameters are incorrect or
1104 the window couldn't be replaced, False is returned. Otherwise the
1105 function will return True, but please notice that it will not Destroy
1106 the replaced window and you may wish to do it yourself.
1107 """
1108 return _windows_.SplitterWindow_ReplaceWindow(*args, **kwargs)
1109
1110 def UpdateSize(*args, **kwargs):
1111 """
1112 UpdateSize(self)
1113
1114 Causes any pending sizing of the sash and child panes to take place
1115 immediately.
1116
1117 Such resizing normally takes place in idle time, in order to wait for
1118 layout to be completed. However, this can cause unacceptable flicker
1119 as the panes are resized after the window has been shown. To work
1120 around this, you can perform window layout (for example by sending a
1121 size event to the parent window), and then call this function, before
1122 showing the top-level window.
1123 """
1124 return _windows_.SplitterWindow_UpdateSize(*args, **kwargs)
1125
1126 def IsSplit(*args, **kwargs):
1127 """
1128 IsSplit(self) -> bool
1129
1130 Is the window split?
1131 """
1132 return _windows_.SplitterWindow_IsSplit(*args, **kwargs)
1133
1134 def SetSashSize(*args, **kwargs):
1135 """
1136 SetSashSize(self, int width)
1137
1138 Sets the sash size.
1139 """
1140 return _windows_.SplitterWindow_SetSashSize(*args, **kwargs)
1141
1142 def SetBorderSize(*args, **kwargs):
1143 """
1144 SetBorderSize(self, int width)
1145
1146 Sets the border size. Currently a NOP.
1147 """
1148 return _windows_.SplitterWindow_SetBorderSize(*args, **kwargs)
1149
1150 def GetSashSize(*args, **kwargs):
1151 """
1152 GetSashSize(self) -> int
1153
1154 Gets the sash size
1155 """
1156 return _windows_.SplitterWindow_GetSashSize(*args, **kwargs)
1157
1158 def GetBorderSize(*args, **kwargs):
1159 """
1160 GetBorderSize(self) -> int
1161
1162 Gets the border size
1163 """
1164 return _windows_.SplitterWindow_GetBorderSize(*args, **kwargs)
1165
1166 def SetSashPosition(*args, **kwargs):
1167 """
1168 SetSashPosition(self, int position, bool redraw=True)
1169
1170 Sets the sash position, in pixels. If redraw is Ttrue then the panes
1171 are resized and the sash and border are redrawn.
1172 """
1173 return _windows_.SplitterWindow_SetSashPosition(*args, **kwargs)
1174
1175 def GetSashPosition(*args, **kwargs):
1176 """
1177 GetSashPosition(self) -> int
1178
1179 Returns the surrent sash position.
1180 """
1181 return _windows_.SplitterWindow_GetSashPosition(*args, **kwargs)
1182
1183 def SetSashGravity(*args, **kwargs):
1184 """
1185 SetSashGravity(self, double gravity)
1186
1187 Set the sash gravity. Gravity is a floating-point factor between 0.0
1188 and 1.0 which controls position of sash while resizing the
1189 `wx.SplitterWindow`. The gravity specifies how much the left/top
1190 window will grow while resizing.
1191 """
1192 return _windows_.SplitterWindow_SetSashGravity(*args, **kwargs)
1193
1194 def GetSashGravity(*args, **kwargs):
1195 """
1196 GetSashGravity(self) -> double
1197
1198 Gets the sash gravity.
1199
1200 :see: `SetSashGravity`
1201
1202 """
1203 return _windows_.SplitterWindow_GetSashGravity(*args, **kwargs)
1204
1205 def SetMinimumPaneSize(*args, **kwargs):
1206 """
1207 SetMinimumPaneSize(self, int min)
1208
1209 Sets the minimum pane size in pixels.
1210
1211 The default minimum pane size is zero, which means that either pane
1212 can be reduced to zero by dragging the sash, thus removing one of the
1213 panes. To prevent this behaviour (and veto out-of-range sash
1214 dragging), set a minimum size, for example 20 pixels. If the
1215 wx.SP_PERMIT_UNSPLIT style is used when a splitter window is created,
1216 the window may be unsplit even if minimum size is non-zero.
1217 """
1218 return _windows_.SplitterWindow_SetMinimumPaneSize(*args, **kwargs)
1219
1220 def GetMinimumPaneSize(*args, **kwargs):
1221 """
1222 GetMinimumPaneSize(self) -> int
1223
1224 Gets the minimum pane size in pixels.
1225 """
1226 return _windows_.SplitterWindow_GetMinimumPaneSize(*args, **kwargs)
1227
1228 def SashHitTest(*args, **kwargs):
1229 """
1230 SashHitTest(self, int x, int y, int tolerance=5) -> bool
1231
1232 Tests for x, y over the sash
1233 """
1234 return _windows_.SplitterWindow_SashHitTest(*args, **kwargs)
1235
1236 def SizeWindows(*args, **kwargs):
1237 """
1238 SizeWindows(self)
1239
1240 Resizes subwindows
1241 """
1242 return _windows_.SplitterWindow_SizeWindows(*args, **kwargs)
1243
1244 def SetNeedUpdating(*args, **kwargs):
1245 """SetNeedUpdating(self, bool needUpdating)"""
1246 return _windows_.SplitterWindow_SetNeedUpdating(*args, **kwargs)
1247
1248 def GetNeedUpdating(*args, **kwargs):
1249 """GetNeedUpdating(self) -> bool"""
1250 return _windows_.SplitterWindow_GetNeedUpdating(*args, **kwargs)
1251
1252 def GetClassDefaultAttributes(*args, **kwargs):
1253 """
1254 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1255
1256 Get the default attributes for this class. This is useful if you want
1257 to use the same font or colour in your own control as in a standard
1258 control -- which is a much better idea than hard coding specific
1259 colours or fonts which might look completely out of place on the
1260 user's system, especially if it uses themes.
1261
1262 The variant parameter is only relevant under Mac currently and is
1263 ignore under other platforms. Under Mac, it will change the size of
1264 the returned font. See `wx.Window.SetWindowVariant` for more about
1265 this.
1266 """
1267 return _windows_.SplitterWindow_GetClassDefaultAttributes(*args, **kwargs)
1268
1269 GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes)
1270
1271 class SplitterWindowPtr(SplitterWindow):
1272 def __init__(self, this):
1273 self.this = this
1274 if not hasattr(self,"thisown"): self.thisown = 0
1275 self.__class__ = SplitterWindow
1276 _windows_.SplitterWindow_swigregister(SplitterWindowPtr)
1277 SplitterNameStr = cvar.SplitterNameStr
1278
1279 def PreSplitterWindow(*args, **kwargs):
1280 """
1281 PreSplitterWindow() -> SplitterWindow
1282
1283 Precreate a SplitterWindow for 2-phase creation.
1284 """
1285 val = _windows_.new_PreSplitterWindow(*args, **kwargs)
1286 val.thisown = 1
1287 return val
1288
1289 def SplitterWindow_GetClassDefaultAttributes(*args, **kwargs):
1290 """
1291 SplitterWindow_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1292
1293 Get the default attributes for this class. This is useful if you want
1294 to use the same font or colour in your own control as in a standard
1295 control -- which is a much better idea than hard coding specific
1296 colours or fonts which might look completely out of place on the
1297 user's system, especially if it uses themes.
1298
1299 The variant parameter is only relevant under Mac currently and is
1300 ignore under other platforms. Under Mac, it will change the size of
1301 the returned font. See `wx.Window.SetWindowVariant` for more about
1302 this.
1303 """
1304 return _windows_.SplitterWindow_GetClassDefaultAttributes(*args, **kwargs)
1305
1306 class SplitterEvent(_core.NotifyEvent):
1307 """This class represents the events generated by a splitter control."""
1308 def __repr__(self):
1309 return "<%s.%s; proxy of C++ wxSplitterEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1310 def __init__(self, *args, **kwargs):
1311 """
1312 __init__(self, wxEventType type=wxEVT_NULL, SplitterWindow splitter=(wxSplitterWindow *) NULL) -> SplitterEvent
1313
1314 This class represents the events generated by a splitter control.
1315 """
1316 newobj = _windows_.new_SplitterEvent(*args, **kwargs)
1317 self.this = newobj.this
1318 self.thisown = 1
1319 del newobj.thisown
1320 def SetSashPosition(*args, **kwargs):
1321 """
1322 SetSashPosition(self, int pos)
1323
1324 This function is only meaningful during EVT_SPLITTER_SASH_POS_CHANGING
1325 and EVT_SPLITTER_SASH_POS_CHANGED events. In the case of _CHANGED
1326 events, sets the the new sash position. In the case of _CHANGING
1327 events, sets the new tracking bar position so visual feedback during
1328 dragging will represent that change that will actually take place. Set
1329 to -1 from the event handler code to prevent repositioning.
1330 """
1331 return _windows_.SplitterEvent_SetSashPosition(*args, **kwargs)
1332
1333 def GetSashPosition(*args, **kwargs):
1334 """
1335 GetSashPosition(self) -> int
1336
1337 Returns the new sash position while in EVT_SPLITTER_SASH_POS_CHANGING
1338 and EVT_SPLITTER_SASH_POS_CHANGED events.
1339 """
1340 return _windows_.SplitterEvent_GetSashPosition(*args, **kwargs)
1341
1342 def GetWindowBeingRemoved(*args, **kwargs):
1343 """
1344 GetWindowBeingRemoved(self) -> Window
1345
1346 Returns a pointer to the window being removed when a splitter window
1347 is unsplit.
1348 """
1349 return _windows_.SplitterEvent_GetWindowBeingRemoved(*args, **kwargs)
1350
1351 def GetX(*args, **kwargs):
1352 """
1353 GetX(self) -> int
1354
1355 Returns the x coordinate of the double-click point in a
1356 EVT_SPLITTER_DCLICK event.
1357 """
1358 return _windows_.SplitterEvent_GetX(*args, **kwargs)
1359
1360 def GetY(*args, **kwargs):
1361 """
1362 GetY(self) -> int
1363
1364 Returns the y coordinate of the double-click point in a
1365 EVT_SPLITTER_DCLICK event.
1366 """
1367 return _windows_.SplitterEvent_GetY(*args, **kwargs)
1368
1369
1370 class SplitterEventPtr(SplitterEvent):
1371 def __init__(self, this):
1372 self.this = this
1373 if not hasattr(self,"thisown"): self.thisown = 0
1374 self.__class__ = SplitterEvent
1375 _windows_.SplitterEvent_swigregister(SplitterEventPtr)
1376
1377 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED = _windows_.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
1378 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING = _windows_.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
1379 wxEVT_COMMAND_SPLITTER_DOUBLECLICKED = _windows_.wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
1380 wxEVT_COMMAND_SPLITTER_UNSPLIT = _windows_.wxEVT_COMMAND_SPLITTER_UNSPLIT
1381 EVT_SPLITTER_SASH_POS_CHANGED = wx.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED, 1 )
1382 EVT_SPLITTER_SASH_POS_CHANGING = wx.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING, 1 )
1383 EVT_SPLITTER_DOUBLECLICKED = wx.PyEventBinder( wxEVT_COMMAND_SPLITTER_DOUBLECLICKED, 1 )
1384 EVT_SPLITTER_UNSPLIT = wx.PyEventBinder( wxEVT_COMMAND_SPLITTER_UNSPLIT, 1 )
1385 EVT_SPLITTER_DCLICK = EVT_SPLITTER_DOUBLECLICKED
1386
1387 #---------------------------------------------------------------------------
1388
1389 SASH_DRAG_NONE = _windows_.SASH_DRAG_NONE
1390 SASH_DRAG_DRAGGING = _windows_.SASH_DRAG_DRAGGING
1391 SASH_DRAG_LEFT_DOWN = _windows_.SASH_DRAG_LEFT_DOWN
1392 SW_NOBORDER = _windows_.SW_NOBORDER
1393 SW_BORDER = _windows_.SW_BORDER
1394 SW_3DSASH = _windows_.SW_3DSASH
1395 SW_3DBORDER = _windows_.SW_3DBORDER
1396 SW_3D = _windows_.SW_3D
1397 SASH_TOP = _windows_.SASH_TOP
1398 SASH_RIGHT = _windows_.SASH_RIGHT
1399 SASH_BOTTOM = _windows_.SASH_BOTTOM
1400 SASH_LEFT = _windows_.SASH_LEFT
1401 SASH_NONE = _windows_.SASH_NONE
1402 class SashWindow(_core.Window):
1403 """Proxy of C++ SashWindow class"""
1404 def __repr__(self):
1405 return "<%s.%s; proxy of C++ wxSashWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1406 def __init__(self, *args, **kwargs):
1407 """
1408 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1409 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1410 String name=SashNameStr) -> SashWindow
1411 """
1412 newobj = _windows_.new_SashWindow(*args, **kwargs)
1413 self.this = newobj.this
1414 self.thisown = 1
1415 del newobj.thisown
1416 self._setOORInfo(self)
1417
1418 def Create(*args, **kwargs):
1419 """
1420 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1421 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1422 String name=SashNameStr) -> bool
1423 """
1424 return _windows_.SashWindow_Create(*args, **kwargs)
1425
1426 def SetSashVisible(*args, **kwargs):
1427 """SetSashVisible(self, int edge, bool sash)"""
1428 return _windows_.SashWindow_SetSashVisible(*args, **kwargs)
1429
1430 def GetSashVisible(*args, **kwargs):
1431 """GetSashVisible(self, int edge) -> bool"""
1432 return _windows_.SashWindow_GetSashVisible(*args, **kwargs)
1433
1434 def SetSashBorder(*args, **kwargs):
1435 """SetSashBorder(self, int edge, bool border)"""
1436 return _windows_.SashWindow_SetSashBorder(*args, **kwargs)
1437
1438 def HasBorder(*args, **kwargs):
1439 """HasBorder(self, int edge) -> bool"""
1440 return _windows_.SashWindow_HasBorder(*args, **kwargs)
1441
1442 def GetEdgeMargin(*args, **kwargs):
1443 """GetEdgeMargin(self, int edge) -> int"""
1444 return _windows_.SashWindow_GetEdgeMargin(*args, **kwargs)
1445
1446 def SetDefaultBorderSize(*args, **kwargs):
1447 """SetDefaultBorderSize(self, int width)"""
1448 return _windows_.SashWindow_SetDefaultBorderSize(*args, **kwargs)
1449
1450 def GetDefaultBorderSize(*args, **kwargs):
1451 """GetDefaultBorderSize(self) -> int"""
1452 return _windows_.SashWindow_GetDefaultBorderSize(*args, **kwargs)
1453
1454 def SetExtraBorderSize(*args, **kwargs):
1455 """SetExtraBorderSize(self, int width)"""
1456 return _windows_.SashWindow_SetExtraBorderSize(*args, **kwargs)
1457
1458 def GetExtraBorderSize(*args, **kwargs):
1459 """GetExtraBorderSize(self) -> int"""
1460 return _windows_.SashWindow_GetExtraBorderSize(*args, **kwargs)
1461
1462 def SetMinimumSizeX(*args, **kwargs):
1463 """SetMinimumSizeX(self, int min)"""
1464 return _windows_.SashWindow_SetMinimumSizeX(*args, **kwargs)
1465
1466 def SetMinimumSizeY(*args, **kwargs):
1467 """SetMinimumSizeY(self, int min)"""
1468 return _windows_.SashWindow_SetMinimumSizeY(*args, **kwargs)
1469
1470 def GetMinimumSizeX(*args, **kwargs):
1471 """GetMinimumSizeX(self) -> int"""
1472 return _windows_.SashWindow_GetMinimumSizeX(*args, **kwargs)
1473
1474 def GetMinimumSizeY(*args, **kwargs):
1475 """GetMinimumSizeY(self) -> int"""
1476 return _windows_.SashWindow_GetMinimumSizeY(*args, **kwargs)
1477
1478 def SetMaximumSizeX(*args, **kwargs):
1479 """SetMaximumSizeX(self, int max)"""
1480 return _windows_.SashWindow_SetMaximumSizeX(*args, **kwargs)
1481
1482 def SetMaximumSizeY(*args, **kwargs):
1483 """SetMaximumSizeY(self, int max)"""
1484 return _windows_.SashWindow_SetMaximumSizeY(*args, **kwargs)
1485
1486 def GetMaximumSizeX(*args, **kwargs):
1487 """GetMaximumSizeX(self) -> int"""
1488 return _windows_.SashWindow_GetMaximumSizeX(*args, **kwargs)
1489
1490 def GetMaximumSizeY(*args, **kwargs):
1491 """GetMaximumSizeY(self) -> int"""
1492 return _windows_.SashWindow_GetMaximumSizeY(*args, **kwargs)
1493
1494 def SashHitTest(*args, **kwargs):
1495 """SashHitTest(self, int x, int y, int tolerance=2) -> int"""
1496 return _windows_.SashWindow_SashHitTest(*args, **kwargs)
1497
1498 def SizeWindows(*args, **kwargs):
1499 """SizeWindows(self)"""
1500 return _windows_.SashWindow_SizeWindows(*args, **kwargs)
1501
1502
1503 class SashWindowPtr(SashWindow):
1504 def __init__(self, this):
1505 self.this = this
1506 if not hasattr(self,"thisown"): self.thisown = 0
1507 self.__class__ = SashWindow
1508 _windows_.SashWindow_swigregister(SashWindowPtr)
1509 SashNameStr = cvar.SashNameStr
1510 SashLayoutNameStr = cvar.SashLayoutNameStr
1511
1512 def PreSashWindow(*args, **kwargs):
1513 """PreSashWindow() -> SashWindow"""
1514 val = _windows_.new_PreSashWindow(*args, **kwargs)
1515 val.thisown = 1
1516 return val
1517
1518 SASH_STATUS_OK = _windows_.SASH_STATUS_OK
1519 SASH_STATUS_OUT_OF_RANGE = _windows_.SASH_STATUS_OUT_OF_RANGE
1520 class SashEvent(_core.CommandEvent):
1521 """Proxy of C++ SashEvent class"""
1522 def __repr__(self):
1523 return "<%s.%s; proxy of C++ wxSashEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1524 def __init__(self, *args, **kwargs):
1525 """__init__(self, int id=0, int edge=SASH_NONE) -> SashEvent"""
1526 newobj = _windows_.new_SashEvent(*args, **kwargs)
1527 self.this = newobj.this
1528 self.thisown = 1
1529 del newobj.thisown
1530 def SetEdge(*args, **kwargs):
1531 """SetEdge(self, int edge)"""
1532 return _windows_.SashEvent_SetEdge(*args, **kwargs)
1533
1534 def GetEdge(*args, **kwargs):
1535 """GetEdge(self) -> int"""
1536 return _windows_.SashEvent_GetEdge(*args, **kwargs)
1537
1538 def SetDragRect(*args, **kwargs):
1539 """SetDragRect(self, Rect rect)"""
1540 return _windows_.SashEvent_SetDragRect(*args, **kwargs)
1541
1542 def GetDragRect(*args, **kwargs):
1543 """GetDragRect(self) -> Rect"""
1544 return _windows_.SashEvent_GetDragRect(*args, **kwargs)
1545
1546 def SetDragStatus(*args, **kwargs):
1547 """SetDragStatus(self, int status)"""
1548 return _windows_.SashEvent_SetDragStatus(*args, **kwargs)
1549
1550 def GetDragStatus(*args, **kwargs):
1551 """GetDragStatus(self) -> int"""
1552 return _windows_.SashEvent_GetDragStatus(*args, **kwargs)
1553
1554
1555 class SashEventPtr(SashEvent):
1556 def __init__(self, this):
1557 self.this = this
1558 if not hasattr(self,"thisown"): self.thisown = 0
1559 self.__class__ = SashEvent
1560 _windows_.SashEvent_swigregister(SashEventPtr)
1561
1562 wxEVT_SASH_DRAGGED = _windows_.wxEVT_SASH_DRAGGED
1563 EVT_SASH_DRAGGED = wx.PyEventBinder( wxEVT_SASH_DRAGGED, 1 )
1564 EVT_SASH_DRAGGED_RANGE = wx.PyEventBinder( wxEVT_SASH_DRAGGED, 2 )
1565
1566 #---------------------------------------------------------------------------
1567
1568 LAYOUT_HORIZONTAL = _windows_.LAYOUT_HORIZONTAL
1569 LAYOUT_VERTICAL = _windows_.LAYOUT_VERTICAL
1570 LAYOUT_NONE = _windows_.LAYOUT_NONE
1571 LAYOUT_TOP = _windows_.LAYOUT_TOP
1572 LAYOUT_LEFT = _windows_.LAYOUT_LEFT
1573 LAYOUT_RIGHT = _windows_.LAYOUT_RIGHT
1574 LAYOUT_BOTTOM = _windows_.LAYOUT_BOTTOM
1575 LAYOUT_LENGTH_Y = _windows_.LAYOUT_LENGTH_Y
1576 LAYOUT_LENGTH_X = _windows_.LAYOUT_LENGTH_X
1577 LAYOUT_MRU_LENGTH = _windows_.LAYOUT_MRU_LENGTH
1578 LAYOUT_QUERY = _windows_.LAYOUT_QUERY
1579 wxEVT_QUERY_LAYOUT_INFO = _windows_.wxEVT_QUERY_LAYOUT_INFO
1580 wxEVT_CALCULATE_LAYOUT = _windows_.wxEVT_CALCULATE_LAYOUT
1581 class QueryLayoutInfoEvent(_core.Event):
1582 """Proxy of C++ QueryLayoutInfoEvent class"""
1583 def __repr__(self):
1584 return "<%s.%s; proxy of C++ wxQueryLayoutInfoEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1585 def __init__(self, *args, **kwargs):
1586 """__init__(self, int id=0) -> QueryLayoutInfoEvent"""
1587 newobj = _windows_.new_QueryLayoutInfoEvent(*args, **kwargs)
1588 self.this = newobj.this
1589 self.thisown = 1
1590 del newobj.thisown
1591 def SetRequestedLength(*args, **kwargs):
1592 """SetRequestedLength(self, int length)"""
1593 return _windows_.QueryLayoutInfoEvent_SetRequestedLength(*args, **kwargs)
1594
1595 def GetRequestedLength(*args, **kwargs):
1596 """GetRequestedLength(self) -> int"""
1597 return _windows_.QueryLayoutInfoEvent_GetRequestedLength(*args, **kwargs)
1598
1599 def SetFlags(*args, **kwargs):
1600 """SetFlags(self, int flags)"""
1601 return _windows_.QueryLayoutInfoEvent_SetFlags(*args, **kwargs)
1602
1603 def GetFlags(*args, **kwargs):
1604 """GetFlags(self) -> int"""
1605 return _windows_.QueryLayoutInfoEvent_GetFlags(*args, **kwargs)
1606
1607 def SetSize(*args, **kwargs):
1608 """SetSize(self, Size size)"""
1609 return _windows_.QueryLayoutInfoEvent_SetSize(*args, **kwargs)
1610
1611 def GetSize(*args, **kwargs):
1612 """GetSize(self) -> Size"""
1613 return _windows_.QueryLayoutInfoEvent_GetSize(*args, **kwargs)
1614
1615 def SetOrientation(*args, **kwargs):
1616 """SetOrientation(self, int orient)"""
1617 return _windows_.QueryLayoutInfoEvent_SetOrientation(*args, **kwargs)
1618
1619 def GetOrientation(*args, **kwargs):
1620 """GetOrientation(self) -> int"""
1621 return _windows_.QueryLayoutInfoEvent_GetOrientation(*args, **kwargs)
1622
1623 def SetAlignment(*args, **kwargs):
1624 """SetAlignment(self, int align)"""
1625 return _windows_.QueryLayoutInfoEvent_SetAlignment(*args, **kwargs)
1626
1627 def GetAlignment(*args, **kwargs):
1628 """GetAlignment(self) -> int"""
1629 return _windows_.QueryLayoutInfoEvent_GetAlignment(*args, **kwargs)
1630
1631
1632 class QueryLayoutInfoEventPtr(QueryLayoutInfoEvent):
1633 def __init__(self, this):
1634 self.this = this
1635 if not hasattr(self,"thisown"): self.thisown = 0
1636 self.__class__ = QueryLayoutInfoEvent
1637 _windows_.QueryLayoutInfoEvent_swigregister(QueryLayoutInfoEventPtr)
1638
1639 class CalculateLayoutEvent(_core.Event):
1640 """Proxy of C++ CalculateLayoutEvent class"""
1641 def __repr__(self):
1642 return "<%s.%s; proxy of C++ wxCalculateLayoutEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1643 def __init__(self, *args, **kwargs):
1644 """__init__(self, int id=0) -> CalculateLayoutEvent"""
1645 newobj = _windows_.new_CalculateLayoutEvent(*args, **kwargs)
1646 self.this = newobj.this
1647 self.thisown = 1
1648 del newobj.thisown
1649 def SetFlags(*args, **kwargs):
1650 """SetFlags(self, int flags)"""
1651 return _windows_.CalculateLayoutEvent_SetFlags(*args, **kwargs)
1652
1653 def GetFlags(*args, **kwargs):
1654 """GetFlags(self) -> int"""
1655 return _windows_.CalculateLayoutEvent_GetFlags(*args, **kwargs)
1656
1657 def SetRect(*args, **kwargs):
1658 """SetRect(self, Rect rect)"""
1659 return _windows_.CalculateLayoutEvent_SetRect(*args, **kwargs)
1660
1661 def GetRect(*args, **kwargs):
1662 """GetRect(self) -> Rect"""
1663 return _windows_.CalculateLayoutEvent_GetRect(*args, **kwargs)
1664
1665
1666 class CalculateLayoutEventPtr(CalculateLayoutEvent):
1667 def __init__(self, this):
1668 self.this = this
1669 if not hasattr(self,"thisown"): self.thisown = 0
1670 self.__class__ = CalculateLayoutEvent
1671 _windows_.CalculateLayoutEvent_swigregister(CalculateLayoutEventPtr)
1672
1673 EVT_QUERY_LAYOUT_INFO = wx.PyEventBinder( wxEVT_QUERY_LAYOUT_INFO )
1674 EVT_CALCULATE_LAYOUT = wx.PyEventBinder( wxEVT_CALCULATE_LAYOUT )
1675
1676 class SashLayoutWindow(SashWindow):
1677 """Proxy of C++ SashLayoutWindow class"""
1678 def __repr__(self):
1679 return "<%s.%s; proxy of C++ wxSashLayoutWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1680 def __init__(self, *args, **kwargs):
1681 """
1682 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1683 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1684 String name=SashLayoutNameStr) -> SashLayoutWindow
1685 """
1686 newobj = _windows_.new_SashLayoutWindow(*args, **kwargs)
1687 self.this = newobj.this
1688 self.thisown = 1
1689 del newobj.thisown
1690 self._setOORInfo(self)
1691
1692 def Create(*args, **kwargs):
1693 """
1694 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1695 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1696 String name=SashLayoutNameStr) -> bool
1697 """
1698 return _windows_.SashLayoutWindow_Create(*args, **kwargs)
1699
1700 def GetAlignment(*args, **kwargs):
1701 """GetAlignment(self) -> int"""
1702 return _windows_.SashLayoutWindow_GetAlignment(*args, **kwargs)
1703
1704 def GetOrientation(*args, **kwargs):
1705 """GetOrientation(self) -> int"""
1706 return _windows_.SashLayoutWindow_GetOrientation(*args, **kwargs)
1707
1708 def SetAlignment(*args, **kwargs):
1709 """SetAlignment(self, int alignment)"""
1710 return _windows_.SashLayoutWindow_SetAlignment(*args, **kwargs)
1711
1712 def SetDefaultSize(*args, **kwargs):
1713 """SetDefaultSize(self, Size size)"""
1714 return _windows_.SashLayoutWindow_SetDefaultSize(*args, **kwargs)
1715
1716 def SetOrientation(*args, **kwargs):
1717 """SetOrientation(self, int orientation)"""
1718 return _windows_.SashLayoutWindow_SetOrientation(*args, **kwargs)
1719
1720
1721 class SashLayoutWindowPtr(SashLayoutWindow):
1722 def __init__(self, this):
1723 self.this = this
1724 if not hasattr(self,"thisown"): self.thisown = 0
1725 self.__class__ = SashLayoutWindow
1726 _windows_.SashLayoutWindow_swigregister(SashLayoutWindowPtr)
1727
1728 def PreSashLayoutWindow(*args, **kwargs):
1729 """PreSashLayoutWindow() -> SashLayoutWindow"""
1730 val = _windows_.new_PreSashLayoutWindow(*args, **kwargs)
1731 val.thisown = 1
1732 return val
1733
1734 class LayoutAlgorithm(_core.Object):
1735 """Proxy of C++ LayoutAlgorithm class"""
1736 def __repr__(self):
1737 return "<%s.%s; proxy of C++ wxLayoutAlgorithm instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1738 def __init__(self, *args, **kwargs):
1739 """__init__(self) -> LayoutAlgorithm"""
1740 newobj = _windows_.new_LayoutAlgorithm(*args, **kwargs)
1741 self.this = newobj.this
1742 self.thisown = 1
1743 del newobj.thisown
1744 def __del__(self, destroy=_windows_.delete_LayoutAlgorithm):
1745 """__del__(self)"""
1746 try:
1747 if self.thisown: destroy(self)
1748 except: pass
1749
1750 def LayoutMDIFrame(*args, **kwargs):
1751 """LayoutMDIFrame(self, MDIParentFrame frame, Rect rect=None) -> bool"""
1752 return _windows_.LayoutAlgorithm_LayoutMDIFrame(*args, **kwargs)
1753
1754 def LayoutFrame(*args, **kwargs):
1755 """LayoutFrame(self, Frame frame, Window mainWindow=None) -> bool"""
1756 return _windows_.LayoutAlgorithm_LayoutFrame(*args, **kwargs)
1757
1758 def LayoutWindow(*args, **kwargs):
1759 """LayoutWindow(self, Window parent, Window mainWindow=None) -> bool"""
1760 return _windows_.LayoutAlgorithm_LayoutWindow(*args, **kwargs)
1761
1762
1763 class LayoutAlgorithmPtr(LayoutAlgorithm):
1764 def __init__(self, this):
1765 self.this = this
1766 if not hasattr(self,"thisown"): self.thisown = 0
1767 self.__class__ = LayoutAlgorithm
1768 _windows_.LayoutAlgorithm_swigregister(LayoutAlgorithmPtr)
1769
1770 class PopupWindow(_core.Window):
1771 """Proxy of C++ PopupWindow class"""
1772 def __repr__(self):
1773 return "<%s.%s; proxy of C++ wxPopupWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1774 def __init__(self, *args, **kwargs):
1775 """__init__(self, Window parent, int flags=BORDER_NONE) -> PopupWindow"""
1776 newobj = _windows_.new_PopupWindow(*args, **kwargs)
1777 self.this = newobj.this
1778 self.thisown = 1
1779 del newobj.thisown
1780
1781 class PopupWindowPtr(PopupWindow):
1782 def __init__(self, this):
1783 self.this = this
1784 if not hasattr(self,"thisown"): self.thisown = 0
1785 self.__class__ = PopupWindow
1786 _windows_.PopupWindow_swigregister(PopupWindowPtr)
1787
1788 def PrePopupWindow(*args, **kwargs):
1789 """PrePopupWindow() -> PopupWindow"""
1790 val = _windows_.new_PrePopupWindow(*args, **kwargs)
1791 val.thisown = 1
1792 return val
1793
1794 class PopupTransientWindow(PopupWindow):
1795 """Proxy of C++ PopupTransientWindow class"""
1796 def __repr__(self):
1797 return "<%s.%s; proxy of C++ wxPyPopupTransientWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1798 def __init__(self, *args, **kwargs):
1799 """__init__(self, Window parent, int style=BORDER_NONE) -> PopupTransientWindow"""
1800 newobj = _windows_.new_PopupTransientWindow(*args, **kwargs)
1801 self.this = newobj.this
1802 self.thisown = 1
1803 del newobj.thisown
1804
1805 class PopupTransientWindowPtr(PopupTransientWindow):
1806 def __init__(self, this):
1807 self.this = this
1808 if not hasattr(self,"thisown"): self.thisown = 0
1809 self.__class__ = PopupTransientWindow
1810 _windows_.PopupTransientWindow_swigregister(PopupTransientWindowPtr)
1811
1812 def PrePopupTransientWindow(*args, **kwargs):
1813 """PrePopupTransientWindow() -> PopupTransientWindow"""
1814 val = _windows_.new_PrePopupTransientWindow(*args, **kwargs)
1815 val.thisown = 1
1816 return val
1817
1818 #---------------------------------------------------------------------------
1819
1820 class TipWindow(Frame):
1821 """Proxy of C++ TipWindow class"""
1822 def __repr__(self):
1823 return "<%s.%s; proxy of C++ wxTipWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1824 def __init__(self, *args, **kwargs):
1825 """__init__(self, Window parent, String text, int maxLength=100, Rect rectBound=None) -> TipWindow"""
1826 newobj = _windows_.new_TipWindow(*args, **kwargs)
1827 self.this = newobj.this
1828 self.thisown = 1
1829 del newobj.thisown
1830 self._setOORInfo(self)
1831
1832 def SetBoundingRect(*args, **kwargs):
1833 """SetBoundingRect(self, Rect rectBound)"""
1834 return _windows_.TipWindow_SetBoundingRect(*args, **kwargs)
1835
1836 def Close(*args, **kwargs):
1837 """
1838 Close(self)
1839
1840 This function simply generates a EVT_CLOSE event whose handler usually
1841 tries to close the window. It doesn't close the window itself,
1842 however. If force is False (the default) then the window's close
1843 handler will be allowed to veto the destruction of the window.
1844 """
1845 return _windows_.TipWindow_Close(*args, **kwargs)
1846
1847
1848 class TipWindowPtr(TipWindow):
1849 def __init__(self, this):
1850 self.this = this
1851 if not hasattr(self,"thisown"): self.thisown = 0
1852 self.__class__ = TipWindow
1853 _windows_.TipWindow_swigregister(TipWindowPtr)
1854
1855 #---------------------------------------------------------------------------
1856
1857 class VScrolledWindow(Panel):
1858 """Proxy of C++ VScrolledWindow class"""
1859 def __repr__(self):
1860 return "<%s.%s; proxy of C++ wxPyVScrolledWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1861 def __init__(self, *args, **kwargs):
1862 """
1863 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1864 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> VScrolledWindow
1865 """
1866 newobj = _windows_.new_VScrolledWindow(*args, **kwargs)
1867 self.this = newobj.this
1868 self.thisown = 1
1869 del newobj.thisown
1870 self._setOORInfo(self); self._setCallbackInfo(self, VScrolledWindow)
1871
1872 def _setCallbackInfo(*args, **kwargs):
1873 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1874 return _windows_.VScrolledWindow__setCallbackInfo(*args, **kwargs)
1875
1876 def Create(*args, **kwargs):
1877 """
1878 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1879 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> bool
1880 """
1881 return _windows_.VScrolledWindow_Create(*args, **kwargs)
1882
1883 def SetLineCount(*args, **kwargs):
1884 """SetLineCount(self, size_t count)"""
1885 return _windows_.VScrolledWindow_SetLineCount(*args, **kwargs)
1886
1887 def ScrollToLine(*args, **kwargs):
1888 """ScrollToLine(self, size_t line) -> bool"""
1889 return _windows_.VScrolledWindow_ScrollToLine(*args, **kwargs)
1890
1891 def ScrollLines(*args, **kwargs):
1892 """
1893 ScrollLines(self, int lines) -> bool
1894
1895 If the platform and window class supports it, scrolls the window by
1896 the given number of lines down, if lines is positive, or up if lines
1897 is negative. Returns True if the window was scrolled, False if it was
1898 already on top/bottom and nothing was done.
1899 """
1900 return _windows_.VScrolledWindow_ScrollLines(*args, **kwargs)
1901
1902 def ScrollPages(*args, **kwargs):
1903 """
1904 ScrollPages(self, int pages) -> bool
1905
1906 If the platform and window class supports it, scrolls the window by
1907 the given number of pages down, if pages is positive, or up if pages
1908 is negative. Returns True if the window was scrolled, False if it was
1909 already on top/bottom and nothing was done.
1910 """
1911 return _windows_.VScrolledWindow_ScrollPages(*args, **kwargs)
1912
1913 def RefreshLine(*args, **kwargs):
1914 """RefreshLine(self, size_t line)"""
1915 return _windows_.VScrolledWindow_RefreshLine(*args, **kwargs)
1916
1917 def RefreshLines(*args, **kwargs):
1918 """RefreshLines(self, size_t from, size_t to)"""
1919 return _windows_.VScrolledWindow_RefreshLines(*args, **kwargs)
1920
1921 def HitTestXY(*args, **kwargs):
1922 """
1923 HitTestXY(self, int x, int y) -> int
1924
1925 Test where the given (in client coords) point lies
1926 """
1927 return _windows_.VScrolledWindow_HitTestXY(*args, **kwargs)
1928
1929 def HitTest(*args, **kwargs):
1930 """
1931 HitTest(self, Point pt) -> int
1932
1933 Test where the given (in client coords) point lies
1934 """
1935 return _windows_.VScrolledWindow_HitTest(*args, **kwargs)
1936
1937 def RefreshAll(*args, **kwargs):
1938 """RefreshAll(self)"""
1939 return _windows_.VScrolledWindow_RefreshAll(*args, **kwargs)
1940
1941 def GetLineCount(*args, **kwargs):
1942 """GetLineCount(self) -> size_t"""
1943 return _windows_.VScrolledWindow_GetLineCount(*args, **kwargs)
1944
1945 def GetVisibleBegin(*args, **kwargs):
1946 """GetVisibleBegin(self) -> size_t"""
1947 return _windows_.VScrolledWindow_GetVisibleBegin(*args, **kwargs)
1948
1949 def GetVisibleEnd(*args, **kwargs):
1950 """GetVisibleEnd(self) -> size_t"""
1951 return _windows_.VScrolledWindow_GetVisibleEnd(*args, **kwargs)
1952
1953 def IsVisible(*args, **kwargs):
1954 """IsVisible(self, size_t line) -> bool"""
1955 return _windows_.VScrolledWindow_IsVisible(*args, **kwargs)
1956
1957 def GetFirstVisibleLine(*args, **kwargs):
1958 """GetFirstVisibleLine(self) -> size_t"""
1959 return _windows_.VScrolledWindow_GetFirstVisibleLine(*args, **kwargs)
1960
1961 def GetLastVisibleLine(*args, **kwargs):
1962 """GetLastVisibleLine(self) -> size_t"""
1963 return _windows_.VScrolledWindow_GetLastVisibleLine(*args, **kwargs)
1964
1965
1966 class VScrolledWindowPtr(VScrolledWindow):
1967 def __init__(self, this):
1968 self.this = this
1969 if not hasattr(self,"thisown"): self.thisown = 0
1970 self.__class__ = VScrolledWindow
1971 _windows_.VScrolledWindow_swigregister(VScrolledWindowPtr)
1972
1973 def PreVScrolledWindow(*args, **kwargs):
1974 """PreVScrolledWindow() -> VScrolledWindow"""
1975 val = _windows_.new_PreVScrolledWindow(*args, **kwargs)
1976 val.thisown = 1
1977 return val
1978
1979 class VListBox(VScrolledWindow):
1980 """Proxy of C++ VListBox class"""
1981 def __repr__(self):
1982 return "<%s.%s; proxy of C++ wxPyVListBox instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1983 def __init__(self, *args, **kwargs):
1984 """
1985 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1986 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> VListBox
1987 """
1988 newobj = _windows_.new_VListBox(*args, **kwargs)
1989 self.this = newobj.this
1990 self.thisown = 1
1991 del newobj.thisown
1992 self._setOORInfo(self);self._setCallbackInfo(self, VListBox)
1993
1994 def _setCallbackInfo(*args, **kwargs):
1995 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1996 return _windows_.VListBox__setCallbackInfo(*args, **kwargs)
1997
1998 def Create(*args, **kwargs):
1999 """
2000 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
2001 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
2002 """
2003 return _windows_.VListBox_Create(*args, **kwargs)
2004
2005 def GetItemCount(*args, **kwargs):
2006 """GetItemCount(self) -> size_t"""
2007 return _windows_.VListBox_GetItemCount(*args, **kwargs)
2008
2009 def HasMultipleSelection(*args, **kwargs):
2010 """HasMultipleSelection(self) -> bool"""
2011 return _windows_.VListBox_HasMultipleSelection(*args, **kwargs)
2012
2013 def GetSelection(*args, **kwargs):
2014 """GetSelection(self) -> int"""
2015 return _windows_.VListBox_GetSelection(*args, **kwargs)
2016
2017 def IsCurrent(*args, **kwargs):
2018 """IsCurrent(self, size_t item) -> bool"""
2019 return _windows_.VListBox_IsCurrent(*args, **kwargs)
2020
2021 def IsSelected(*args, **kwargs):
2022 """IsSelected(self, size_t item) -> bool"""
2023 return _windows_.VListBox_IsSelected(*args, **kwargs)
2024
2025 def GetSelectedCount(*args, **kwargs):
2026 """GetSelectedCount(self) -> size_t"""
2027 return _windows_.VListBox_GetSelectedCount(*args, **kwargs)
2028
2029 def GetFirstSelected(*args, **kwargs):
2030 """GetFirstSelected(self) -> PyObject"""
2031 return _windows_.VListBox_GetFirstSelected(*args, **kwargs)
2032
2033 def GetNextSelected(*args, **kwargs):
2034 """GetNextSelected(self, unsigned long cookie) -> PyObject"""
2035 return _windows_.VListBox_GetNextSelected(*args, **kwargs)
2036
2037 def GetMargins(*args, **kwargs):
2038 """GetMargins(self) -> Point"""
2039 return _windows_.VListBox_GetMargins(*args, **kwargs)
2040
2041 def GetSelectionBackground(*args, **kwargs):
2042 """GetSelectionBackground(self) -> Colour"""
2043 return _windows_.VListBox_GetSelectionBackground(*args, **kwargs)
2044
2045 def SetItemCount(*args, **kwargs):
2046 """SetItemCount(self, size_t count)"""
2047 return _windows_.VListBox_SetItemCount(*args, **kwargs)
2048
2049 def Clear(*args, **kwargs):
2050 """Clear(self)"""
2051 return _windows_.VListBox_Clear(*args, **kwargs)
2052
2053 def SetSelection(*args, **kwargs):
2054 """SetSelection(self, int selection)"""
2055 return _windows_.VListBox_SetSelection(*args, **kwargs)
2056
2057 def Select(*args, **kwargs):
2058 """Select(self, size_t item, bool select=True) -> bool"""
2059 return _windows_.VListBox_Select(*args, **kwargs)
2060
2061 def SelectRange(*args, **kwargs):
2062 """SelectRange(self, size_t from, size_t to) -> bool"""
2063 return _windows_.VListBox_SelectRange(*args, **kwargs)
2064
2065 def Toggle(*args, **kwargs):
2066 """Toggle(self, size_t item)"""
2067 return _windows_.VListBox_Toggle(*args, **kwargs)
2068
2069 def SelectAll(*args, **kwargs):
2070 """SelectAll(self) -> bool"""
2071 return _windows_.VListBox_SelectAll(*args, **kwargs)
2072
2073 def DeselectAll(*args, **kwargs):
2074 """DeselectAll(self) -> bool"""
2075 return _windows_.VListBox_DeselectAll(*args, **kwargs)
2076
2077 def SetMargins(*args, **kwargs):
2078 """SetMargins(self, Point pt)"""
2079 return _windows_.VListBox_SetMargins(*args, **kwargs)
2080
2081 def SetMarginsXY(*args, **kwargs):
2082 """SetMarginsXY(self, int x, int y)"""
2083 return _windows_.VListBox_SetMarginsXY(*args, **kwargs)
2084
2085 def SetSelectionBackground(*args, **kwargs):
2086 """SetSelectionBackground(self, Colour col)"""
2087 return _windows_.VListBox_SetSelectionBackground(*args, **kwargs)
2088
2089
2090 class VListBoxPtr(VListBox):
2091 def __init__(self, this):
2092 self.this = this
2093 if not hasattr(self,"thisown"): self.thisown = 0
2094 self.__class__ = VListBox
2095 _windows_.VListBox_swigregister(VListBoxPtr)
2096 VListBoxNameStr = cvar.VListBoxNameStr
2097
2098 def PreVListBox(*args, **kwargs):
2099 """PreVListBox() -> VListBox"""
2100 val = _windows_.new_PreVListBox(*args, **kwargs)
2101 val.thisown = 1
2102 return val
2103
2104 class HtmlListBox(VListBox):
2105 """Proxy of C++ HtmlListBox class"""
2106 def __repr__(self):
2107 return "<%s.%s; proxy of C++ wxPyHtmlListBox instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2108 def __init__(self, *args, **kwargs):
2109 """
2110 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
2111 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> HtmlListBox
2112 """
2113 newobj = _windows_.new_HtmlListBox(*args, **kwargs)
2114 self.this = newobj.this
2115 self.thisown = 1
2116 del newobj.thisown
2117 self._setOORInfo(self);self._setCallbackInfo(self, HtmlListBox)
2118
2119 def _setCallbackInfo(*args, **kwargs):
2120 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
2121 return _windows_.HtmlListBox__setCallbackInfo(*args, **kwargs)
2122
2123 def Create(*args, **kwargs):
2124 """
2125 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
2126 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
2127 """
2128 return _windows_.HtmlListBox_Create(*args, **kwargs)
2129
2130 def RefreshAll(*args, **kwargs):
2131 """RefreshAll(self)"""
2132 return _windows_.HtmlListBox_RefreshAll(*args, **kwargs)
2133
2134 def SetItemCount(*args, **kwargs):
2135 """SetItemCount(self, size_t count)"""
2136 return _windows_.HtmlListBox_SetItemCount(*args, **kwargs)
2137
2138 def GetFileSystem(*args, **kwargs):
2139 """GetFileSystem(self) -> FileSystem"""
2140 return _windows_.HtmlListBox_GetFileSystem(*args, **kwargs)
2141
2142
2143 class HtmlListBoxPtr(HtmlListBox):
2144 def __init__(self, this):
2145 self.this = this
2146 if not hasattr(self,"thisown"): self.thisown = 0
2147 self.__class__ = HtmlListBox
2148 _windows_.HtmlListBox_swigregister(HtmlListBoxPtr)
2149
2150 def PreHtmlListBox(*args, **kwargs):
2151 """PreHtmlListBox() -> HtmlListBox"""
2152 val = _windows_.new_PreHtmlListBox(*args, **kwargs)
2153 val.thisown = 1
2154 return val
2155
2156 #---------------------------------------------------------------------------
2157
2158 class TaskBarIcon(_core.EvtHandler):
2159 """Proxy of C++ TaskBarIcon class"""
2160 def __repr__(self):
2161 return "<%s.%s; proxy of C++ wxPyTaskBarIcon instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2162 def __init__(self, *args, **kwargs):
2163 """__init__(self) -> TaskBarIcon"""
2164 newobj = _windows_.new_TaskBarIcon(*args, **kwargs)
2165 self.this = newobj.this
2166 self.thisown = 1
2167 del newobj.thisown
2168 self._setCallbackInfo(self, TaskBarIcon, 0)
2169
2170 def __del__(self, destroy=_windows_.delete_TaskBarIcon):
2171 """__del__(self)"""
2172 try:
2173 if self.thisown: destroy(self)
2174 except: pass
2175
2176 def _setCallbackInfo(*args, **kwargs):
2177 """_setCallbackInfo(self, PyObject self, PyObject _class, int incref)"""
2178 return _windows_.TaskBarIcon__setCallbackInfo(*args, **kwargs)
2179
2180 def Destroy(*args, **kwargs):
2181 """
2182 Destroy(self)
2183
2184 Deletes the C++ object this Python object is a proxy for.
2185 """
2186 val = _windows_.TaskBarIcon_Destroy(*args, **kwargs)
2187 args[0].thisown = 0
2188 return val
2189
2190 def IsOk(*args, **kwargs):
2191 """IsOk(self) -> bool"""
2192 return _windows_.TaskBarIcon_IsOk(*args, **kwargs)
2193
2194 def __nonzero__(self): return self.IsOk()
2195 def IsIconInstalled(*args, **kwargs):
2196 """IsIconInstalled(self) -> bool"""
2197 return _windows_.TaskBarIcon_IsIconInstalled(*args, **kwargs)
2198
2199 def SetIcon(*args, **kwargs):
2200 """SetIcon(self, Icon icon, String tooltip=EmptyString) -> bool"""
2201 return _windows_.TaskBarIcon_SetIcon(*args, **kwargs)
2202
2203 def RemoveIcon(*args, **kwargs):
2204 """RemoveIcon(self) -> bool"""
2205 return _windows_.TaskBarIcon_RemoveIcon(*args, **kwargs)
2206
2207 def PopupMenu(*args, **kwargs):
2208 """PopupMenu(self, Menu menu) -> bool"""
2209 return _windows_.TaskBarIcon_PopupMenu(*args, **kwargs)
2210
2211
2212 class TaskBarIconPtr(TaskBarIcon):
2213 def __init__(self, this):
2214 self.this = this
2215 if not hasattr(self,"thisown"): self.thisown = 0
2216 self.__class__ = TaskBarIcon
2217 _windows_.TaskBarIcon_swigregister(TaskBarIconPtr)
2218
2219 class TaskBarIconEvent(_core.Event):
2220 """Proxy of C++ TaskBarIconEvent class"""
2221 def __repr__(self):
2222 return "<%s.%s; proxy of C++ wxTaskBarIconEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2223 def __init__(self, *args, **kwargs):
2224 """__init__(self, wxEventType evtType, wxTaskBarIcon tbIcon) -> TaskBarIconEvent"""
2225 newobj = _windows_.new_TaskBarIconEvent(*args, **kwargs)
2226 self.this = newobj.this
2227 self.thisown = 1
2228 del newobj.thisown
2229
2230 class TaskBarIconEventPtr(TaskBarIconEvent):
2231 def __init__(self, this):
2232 self.this = this
2233 if not hasattr(self,"thisown"): self.thisown = 0
2234 self.__class__ = TaskBarIconEvent
2235 _windows_.TaskBarIconEvent_swigregister(TaskBarIconEventPtr)
2236
2237 wxEVT_TASKBAR_MOVE = _windows_.wxEVT_TASKBAR_MOVE
2238 wxEVT_TASKBAR_LEFT_DOWN = _windows_.wxEVT_TASKBAR_LEFT_DOWN
2239 wxEVT_TASKBAR_LEFT_UP = _windows_.wxEVT_TASKBAR_LEFT_UP
2240 wxEVT_TASKBAR_RIGHT_DOWN = _windows_.wxEVT_TASKBAR_RIGHT_DOWN
2241 wxEVT_TASKBAR_RIGHT_UP = _windows_.wxEVT_TASKBAR_RIGHT_UP
2242 wxEVT_TASKBAR_LEFT_DCLICK = _windows_.wxEVT_TASKBAR_LEFT_DCLICK
2243 wxEVT_TASKBAR_RIGHT_DCLICK = _windows_.wxEVT_TASKBAR_RIGHT_DCLICK
2244 EVT_TASKBAR_MOVE = wx.PyEventBinder ( wxEVT_TASKBAR_MOVE )
2245 EVT_TASKBAR_LEFT_DOWN = wx.PyEventBinder ( wxEVT_TASKBAR_LEFT_DOWN )
2246 EVT_TASKBAR_LEFT_UP = wx.PyEventBinder ( wxEVT_TASKBAR_LEFT_UP )
2247 EVT_TASKBAR_RIGHT_DOWN = wx.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DOWN )
2248 EVT_TASKBAR_RIGHT_UP = wx.PyEventBinder ( wxEVT_TASKBAR_RIGHT_UP )
2249 EVT_TASKBAR_LEFT_DCLICK = wx.PyEventBinder ( wxEVT_TASKBAR_LEFT_DCLICK )
2250 EVT_TASKBAR_RIGHT_DCLICK = wx.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DCLICK )
2251
2252 #---------------------------------------------------------------------------
2253
2254 class ColourData(_core.Object):
2255 """
2256 This class holds a variety of information related to the colour
2257 chooser dialog, used to transfer settings and results to and from the
2258 `wx.ColourDialog`.
2259 """
2260 def __repr__(self):
2261 return "<%s.%s; proxy of C++ wxColourData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2262 def __init__(self, *args, **kwargs):
2263 """
2264 __init__(self) -> ColourData
2265
2266 Constructor, sets default values.
2267 """
2268 newobj = _windows_.new_ColourData(*args, **kwargs)
2269 self.this = newobj.this
2270 self.thisown = 1
2271 del newobj.thisown
2272 def __del__(self, destroy=_windows_.delete_ColourData):
2273 """__del__(self)"""
2274 try:
2275 if self.thisown: destroy(self)
2276 except: pass
2277
2278 def GetChooseFull(*args, **kwargs):
2279 """
2280 GetChooseFull(self) -> bool
2281
2282 Under Windows, determines whether the Windows colour dialog will
2283 display the full dialog with custom colour selection controls. Has no
2284 meaning under other platforms. The default value is true.
2285 """
2286 return _windows_.ColourData_GetChooseFull(*args, **kwargs)
2287
2288 def GetColour(*args, **kwargs):
2289 """
2290 GetColour(self) -> Colour
2291
2292 Gets the colour (pre)selected by the dialog.
2293 """
2294 return _windows_.ColourData_GetColour(*args, **kwargs)
2295
2296 def GetCustomColour(*args, **kwargs):
2297 """
2298 GetCustomColour(self, int i) -> Colour
2299
2300 Gets the i'th custom colour associated with the colour dialog. i
2301 should be an integer between 0 and 15. The default custom colours are
2302 all invalid colours.
2303 """
2304 return _windows_.ColourData_GetCustomColour(*args, **kwargs)
2305
2306 def SetChooseFull(*args, **kwargs):
2307 """
2308 SetChooseFull(self, int flag)
2309
2310 Under Windows, tells the Windows colour dialog to display the full
2311 dialog with custom colour selection controls. Under other platforms,
2312 has no effect. The default value is true.
2313 """
2314 return _windows_.ColourData_SetChooseFull(*args, **kwargs)
2315
2316 def SetColour(*args, **kwargs):
2317 """
2318 SetColour(self, Colour colour)
2319
2320 Sets the default colour for the colour dialog. The default colour is
2321 black.
2322 """
2323 return _windows_.ColourData_SetColour(*args, **kwargs)
2324
2325 def SetCustomColour(*args, **kwargs):
2326 """
2327 SetCustomColour(self, int i, Colour colour)
2328
2329 Sets the i'th custom colour for the colour dialog. i should be an
2330 integer between 0 and 15. The default custom colours are all invalid colours.
2331 """
2332 return _windows_.ColourData_SetCustomColour(*args, **kwargs)
2333
2334
2335 class ColourDataPtr(ColourData):
2336 def __init__(self, this):
2337 self.this = this
2338 if not hasattr(self,"thisown"): self.thisown = 0
2339 self.__class__ = ColourData
2340 _windows_.ColourData_swigregister(ColourDataPtr)
2341 FileSelectorPromptStr = cvar.FileSelectorPromptStr
2342 DirSelectorPromptStr = cvar.DirSelectorPromptStr
2343 DirDialogNameStr = cvar.DirDialogNameStr
2344 FileSelectorDefaultWildcardStr = cvar.FileSelectorDefaultWildcardStr
2345 GetTextFromUserPromptStr = cvar.GetTextFromUserPromptStr
2346 MessageBoxCaptionStr = cvar.MessageBoxCaptionStr
2347
2348 class ColourDialog(Dialog):
2349 """This class represents the colour chooser dialog."""
2350 def __repr__(self):
2351 return "<%s.%s; proxy of C++ wxColourDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2352 def __init__(self, *args, **kwargs):
2353 """
2354 __init__(self, Window parent, ColourData data=None) -> ColourDialog
2355
2356 Constructor. Pass a parent window, and optionally a `wx.ColourData`,
2357 which will be copied to the colour dialog's internal ColourData
2358 instance.
2359 """
2360 newobj = _windows_.new_ColourDialog(*args, **kwargs)
2361 self.this = newobj.this
2362 self.thisown = 1
2363 del newobj.thisown
2364 self._setOORInfo(self)
2365
2366 def GetColourData(*args, **kwargs):
2367 """
2368 GetColourData(self) -> ColourData
2369
2370 Returns a reference to the `wx.ColourData` used by the dialog.
2371 """
2372 return _windows_.ColourDialog_GetColourData(*args, **kwargs)
2373
2374
2375 class ColourDialogPtr(ColourDialog):
2376 def __init__(self, this):
2377 self.this = this
2378 if not hasattr(self,"thisown"): self.thisown = 0
2379 self.__class__ = ColourDialog
2380 _windows_.ColourDialog_swigregister(ColourDialogPtr)
2381
2382
2383 def GetColourFromUser(*args, **kwargs):
2384 """
2385 GetColourFromUser(Window parent=(wxWindow *) NULL, Colour colInit=wxNullColour,
2386 String caption=EmptyString) -> Colour
2387 """
2388 return _windows_.GetColourFromUser(*args, **kwargs)
2389 class DirDialog(Dialog):
2390 """
2391 wx.DirDialog allows the user to select a directory by browising the
2392 file system.
2393 """
2394 def __repr__(self):
2395 return "<%s.%s; proxy of C++ wxDirDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2396 def __init__(self, *args, **kwargs):
2397 """
2398 __init__(self, Window parent, String message=DirSelectorPromptStr,
2399 String defaultPath=EmptyString, long style=0,
2400 Point pos=DefaultPosition, Size size=DefaultSize,
2401 String name=DirDialogNameStr) -> DirDialog
2402
2403 Constructor. Use ShowModal method to show the dialog.
2404 """
2405 newobj = _windows_.new_DirDialog(*args, **kwargs)
2406 self.this = newobj.this
2407 self.thisown = 1
2408 del newobj.thisown
2409 self._setOORInfo(self)
2410
2411 def GetPath(*args, **kwargs):
2412 """
2413 GetPath(self) -> String
2414
2415 Returns the default or user-selected path.
2416 """
2417 return _windows_.DirDialog_GetPath(*args, **kwargs)
2418
2419 def GetMessage(*args, **kwargs):
2420 """
2421 GetMessage(self) -> String
2422
2423 Returns the message that will be displayed on the dialog.
2424 """
2425 return _windows_.DirDialog_GetMessage(*args, **kwargs)
2426
2427 def GetStyle(*args, **kwargs):
2428 """
2429 GetStyle(self) -> long
2430
2431 Returns the dialog style.
2432 """
2433 return _windows_.DirDialog_GetStyle(*args, **kwargs)
2434
2435 def SetMessage(*args, **kwargs):
2436 """
2437 SetMessage(self, String message)
2438
2439 Sets the message that will be displayed on the dialog.
2440 """
2441 return _windows_.DirDialog_SetMessage(*args, **kwargs)
2442
2443 def SetPath(*args, **kwargs):
2444 """
2445 SetPath(self, String path)
2446
2447 Sets the default path.
2448 """
2449 return _windows_.DirDialog_SetPath(*args, **kwargs)
2450
2451
2452 class DirDialogPtr(DirDialog):
2453 def __init__(self, this):
2454 self.this = this
2455 if not hasattr(self,"thisown"): self.thisown = 0
2456 self.__class__ = DirDialog
2457 _windows_.DirDialog_swigregister(DirDialogPtr)
2458
2459 class FileDialog(Dialog):
2460 """
2461 wx.FileDialog allows the user to select one or more files from the
2462 filesystem.
2463 """
2464 def __repr__(self):
2465 return "<%s.%s; proxy of C++ wxFileDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2466 def __init__(self, *args, **kwargs):
2467 """
2468 __init__(self, Window parent, String message=FileSelectorPromptStr,
2469 String defaultDir=EmptyString, String defaultFile=EmptyString,
2470 String wildcard=FileSelectorDefaultWildcardStr,
2471 long style=0, Point pos=DefaultPosition) -> FileDialog
2472
2473 Constructor. Use ShowModal method to show the dialog.
2474 """
2475 newobj = _windows_.new_FileDialog(*args, **kwargs)
2476 self.this = newobj.this
2477 self.thisown = 1
2478 del newobj.thisown
2479 self._setOORInfo(self)
2480
2481 def SetMessage(*args, **kwargs):
2482 """
2483 SetMessage(self, String message)
2484
2485 Sets the message that will be displayed on the dialog.
2486 """
2487 return _windows_.FileDialog_SetMessage(*args, **kwargs)
2488
2489 def SetPath(*args, **kwargs):
2490 """
2491 SetPath(self, String path)
2492
2493 Sets the path (the combined directory and filename that will be
2494 returned when the dialog is dismissed).
2495 """
2496 return _windows_.FileDialog_SetPath(*args, **kwargs)
2497
2498 def SetDirectory(*args, **kwargs):
2499 """
2500 SetDirectory(self, String dir)
2501
2502 Sets the default directory.
2503 """
2504 return _windows_.FileDialog_SetDirectory(*args, **kwargs)
2505
2506 def SetFilename(*args, **kwargs):
2507 """
2508 SetFilename(self, String name)
2509
2510 Sets the default filename.
2511 """
2512 return _windows_.FileDialog_SetFilename(*args, **kwargs)
2513
2514 def SetWildcard(*args, **kwargs):
2515 """
2516 SetWildcard(self, String wildCard)
2517
2518 Sets the wildcard, which can contain multiple file types, for
2519 example::
2520
2521 "BMP files (*.bmp)|*.bmp|GIF files (*.gif)|*.gif"
2522
2523 """
2524 return _windows_.FileDialog_SetWildcard(*args, **kwargs)
2525
2526 def SetStyle(*args, **kwargs):
2527 """
2528 SetStyle(self, long style)
2529
2530 Sets the dialog style.
2531 """
2532 return _windows_.FileDialog_SetStyle(*args, **kwargs)
2533
2534 def SetFilterIndex(*args, **kwargs):
2535 """
2536 SetFilterIndex(self, int filterIndex)
2537
2538 Sets the default filter index, starting from zero.
2539 """
2540 return _windows_.FileDialog_SetFilterIndex(*args, **kwargs)
2541
2542 def GetMessage(*args, **kwargs):
2543 """
2544 GetMessage(self) -> String
2545
2546 Returns the message that will be displayed on the dialog.
2547 """
2548 return _windows_.FileDialog_GetMessage(*args, **kwargs)
2549
2550 def GetPath(*args, **kwargs):
2551 """
2552 GetPath(self) -> String
2553
2554 Returns the full path (directory and filename) of the selected file.
2555 """
2556 return _windows_.FileDialog_GetPath(*args, **kwargs)
2557
2558 def GetDirectory(*args, **kwargs):
2559 """
2560 GetDirectory(self) -> String
2561
2562 Returns the default directory.
2563 """
2564 return _windows_.FileDialog_GetDirectory(*args, **kwargs)
2565
2566 def GetFilename(*args, **kwargs):
2567 """
2568 GetFilename(self) -> String
2569
2570 Returns the default filename.
2571 """
2572 return _windows_.FileDialog_GetFilename(*args, **kwargs)
2573
2574 def GetWildcard(*args, **kwargs):
2575 """
2576 GetWildcard(self) -> String
2577
2578 Returns the file dialog wildcard.
2579 """
2580 return _windows_.FileDialog_GetWildcard(*args, **kwargs)
2581
2582 def GetStyle(*args, **kwargs):
2583 """
2584 GetStyle(self) -> long
2585
2586 Returns the dialog style.
2587 """
2588 return _windows_.FileDialog_GetStyle(*args, **kwargs)
2589
2590 def GetFilterIndex(*args, **kwargs):
2591 """
2592 GetFilterIndex(self) -> int
2593
2594 Returns the index into the list of filters supplied, optionally, in
2595 the wildcard parameter. Before the dialog is shown, this is the index
2596 which will be used when the dialog is first displayed. After the
2597 dialog is shown, this is the index selected by the user.
2598 """
2599 return _windows_.FileDialog_GetFilterIndex(*args, **kwargs)
2600
2601 def GetFilenames(*args, **kwargs):
2602 """
2603 GetFilenames(self) -> PyObject
2604
2605 Returns a list of filenames chosen in the dialog. This function
2606 should only be used with the dialogs which have wx.MULTIPLE style, use
2607 GetFilename for the others.
2608 """
2609 return _windows_.FileDialog_GetFilenames(*args, **kwargs)
2610
2611 def GetPaths(*args, **kwargs):
2612 """
2613 GetPaths(self) -> PyObject
2614
2615 Fills the array paths with the full paths of the files chosen. This
2616 function should only be used with the dialogs which have wx.MULTIPLE
2617 style, use GetPath for the others.
2618 """
2619 return _windows_.FileDialog_GetPaths(*args, **kwargs)
2620
2621
2622 class FileDialogPtr(FileDialog):
2623 def __init__(self, this):
2624 self.this = this
2625 if not hasattr(self,"thisown"): self.thisown = 0
2626 self.__class__ = FileDialog
2627 _windows_.FileDialog_swigregister(FileDialogPtr)
2628
2629 CHOICEDLG_STYLE = _windows_.CHOICEDLG_STYLE
2630 class MultiChoiceDialog(Dialog):
2631 """A simple dialog with a multi selection listbox."""
2632 def __repr__(self):
2633 return "<%s.%s; proxy of C++ wxMultiChoiceDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2634 def __init__(self, *args, **kwargs):
2635 """
2636 __init__(self, Window parent, String message, String caption,
2637 List choices=EmptyList, long style=CHOICEDLG_STYLE,
2638 Point pos=DefaultPosition) -> MultiChoiceDialog
2639
2640 Constructor. Use the `ShowModal` method to show the dialog.
2641
2642 :param parent: The parent window.
2643 :param message: Text to display above the list of selections.
2644 :param caption: Text to use in the title bar of the dialog.
2645 :param choices: A list of strings or unicode objects that the
2646 user is allowed to choose from.
2647 :param style: Styles to apply to the dialog. The default value is
2648 equivallent to wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER|wx.OK|wx.CANCEL|wx.CENTER.
2649 :param pos: Where to position the dialog (not used on Windows)
2650
2651
2652 """
2653 newobj = _windows_.new_MultiChoiceDialog(*args, **kwargs)
2654 self.this = newobj.this
2655 self.thisown = 1
2656 del newobj.thisown
2657 self._setOORInfo(self)
2658
2659 def SetSelections(*args, **kwargs):
2660 """
2661 SetSelections(List selections)
2662
2663 Specify the items in the list that should be selected, using a list of
2664 integers. The list should specify the indexes of the items that
2665 should be selected.
2666 """
2667 return _windows_.MultiChoiceDialog_SetSelections(*args, **kwargs)
2668
2669 def GetSelections(*args, **kwargs):
2670 """
2671 GetSelections() -> [selections]
2672
2673 Returns a list of integers representing the items that are selected.
2674 If an item is selected then its index will appear in the list.
2675 """
2676 return _windows_.MultiChoiceDialog_GetSelections(*args, **kwargs)
2677
2678
2679 class MultiChoiceDialogPtr(MultiChoiceDialog):
2680 def __init__(self, this):
2681 self.this = this
2682 if not hasattr(self,"thisown"): self.thisown = 0
2683 self.__class__ = MultiChoiceDialog
2684 _windows_.MultiChoiceDialog_swigregister(MultiChoiceDialogPtr)
2685
2686 class SingleChoiceDialog(Dialog):
2687 """A simple dialog with a single selection listbox."""
2688 def __repr__(self):
2689 return "<%s.%s; proxy of C++ wxSingleChoiceDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2690 def __init__(self, *args, **kwargs):
2691 """
2692 __init__(Window parent, String message, String caption,
2693 List choices=EmptyList, long style=CHOICEDLG_STYLE,
2694 Point pos=DefaultPosition) -> SingleChoiceDialog
2695
2696 Constructor. Use ShowModal method to show the dialog.
2697 """
2698 newobj = _windows_.new_SingleChoiceDialog(*args, **kwargs)
2699 self.this = newobj.this
2700 self.thisown = 1
2701 del newobj.thisown
2702 self._setOORInfo(self)
2703
2704 def GetSelection(*args, **kwargs):
2705 """
2706 GetSelection(self) -> int
2707
2708 Get the index of teh currently selected item.
2709 """
2710 return _windows_.SingleChoiceDialog_GetSelection(*args, **kwargs)
2711
2712 def GetStringSelection(*args, **kwargs):
2713 """
2714 GetStringSelection(self) -> String
2715
2716 Returns the string value of the currently selected item
2717 """
2718 return _windows_.SingleChoiceDialog_GetStringSelection(*args, **kwargs)
2719
2720 def SetSelection(*args, **kwargs):
2721 """
2722 SetSelection(self, int sel)
2723
2724 Set the current selected item to sel
2725 """
2726 return _windows_.SingleChoiceDialog_SetSelection(*args, **kwargs)
2727
2728
2729 class SingleChoiceDialogPtr(SingleChoiceDialog):
2730 def __init__(self, this):
2731 self.this = this
2732 if not hasattr(self,"thisown"): self.thisown = 0
2733 self.__class__ = SingleChoiceDialog
2734 _windows_.SingleChoiceDialog_swigregister(SingleChoiceDialogPtr)
2735
2736 TextEntryDialogStyle = _windows_.TextEntryDialogStyle
2737 class TextEntryDialog(Dialog):
2738 """A dialog with text control, [ok] and [cancel] buttons"""
2739 def __repr__(self):
2740 return "<%s.%s; proxy of C++ wxTextEntryDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2741 def __init__(self, *args, **kwargs):
2742 """
2743 __init__(self, Window parent, String message, String caption=GetTextFromUserPromptStr,
2744 String defaultValue=EmptyString,
2745 long style=TextEntryDialogStyle, Point pos=DefaultPosition) -> TextEntryDialog
2746
2747 Constructor. Use ShowModal method to show the dialog.
2748 """
2749 newobj = _windows_.new_TextEntryDialog(*args, **kwargs)
2750 self.this = newobj.this
2751 self.thisown = 1
2752 del newobj.thisown
2753 self._setOORInfo(self)
2754
2755 def GetValue(*args, **kwargs):
2756 """
2757 GetValue(self) -> String
2758
2759 Returns the text that the user has entered if the user has pressed OK,
2760 or the original value if the user has pressed Cancel.
2761 """
2762 return _windows_.TextEntryDialog_GetValue(*args, **kwargs)
2763
2764 def SetValue(*args, **kwargs):
2765 """
2766 SetValue(self, String value)
2767
2768 Sets the default text value.
2769 """
2770 return _windows_.TextEntryDialog_SetValue(*args, **kwargs)
2771
2772
2773 class TextEntryDialogPtr(TextEntryDialog):
2774 def __init__(self, this):
2775 self.this = this
2776 if not hasattr(self,"thisown"): self.thisown = 0
2777 self.__class__ = TextEntryDialog
2778 _windows_.TextEntryDialog_swigregister(TextEntryDialogPtr)
2779
2780 class PasswordEntryDialog(TextEntryDialog):
2781 """Proxy of C++ PasswordEntryDialog class"""
2782 def __repr__(self):
2783 return "<%s.%s; proxy of C++ wxPasswordEntryDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2784 def __init__(self, *args, **kwargs):
2785 """
2786 __init__(self, Window parent, String message, String caption=GetPasswordFromUserPromptStr,
2787 String value=EmptyString,
2788 long style=TextEntryDialogStyle, Point pos=DefaultPosition) -> PasswordEntryDialog
2789 """
2790 newobj = _windows_.new_PasswordEntryDialog(*args, **kwargs)
2791 self.this = newobj.this
2792 self.thisown = 1
2793 del newobj.thisown
2794
2795 class PasswordEntryDialogPtr(PasswordEntryDialog):
2796 def __init__(self, this):
2797 self.this = this
2798 if not hasattr(self,"thisown"): self.thisown = 0
2799 self.__class__ = PasswordEntryDialog
2800 _windows_.PasswordEntryDialog_swigregister(PasswordEntryDialogPtr)
2801 GetPasswordFromUserPromptStr = cvar.GetPasswordFromUserPromptStr
2802
2803 class FontData(_core.Object):
2804 """
2805 This class holds a variety of information related to font dialogs and
2806 is used to transfer settings to and results from a `wx.FontDialog`.
2807 """
2808 def __repr__(self):
2809 return "<%s.%s; proxy of C++ wxFontData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2810 def __init__(self, *args, **kwargs):
2811 """
2812 __init__(self) -> FontData
2813
2814 This class holds a variety of information related to font dialogs and
2815 is used to transfer settings to and results from a `wx.FontDialog`.
2816 """
2817 newobj = _windows_.new_FontData(*args, **kwargs)
2818 self.this = newobj.this
2819 self.thisown = 1
2820 del newobj.thisown
2821 def __del__(self, destroy=_windows_.delete_FontData):
2822 """__del__(self)"""
2823 try:
2824 if self.thisown: destroy(self)
2825 except: pass
2826
2827 def EnableEffects(*args, **kwargs):
2828 """
2829 EnableEffects(self, bool enable)
2830
2831 Enables or disables 'effects' under MS Windows only. This refers to
2832 the controls for manipulating colour, strikeout and underline
2833 properties. The default value is true.
2834 """
2835 return _windows_.FontData_EnableEffects(*args, **kwargs)
2836
2837 def GetAllowSymbols(*args, **kwargs):
2838 """
2839 GetAllowSymbols(self) -> bool
2840
2841 Under MS Windows, returns a flag determining whether symbol fonts can
2842 be selected. Has no effect on other platforms. The default value is
2843 true.
2844 """
2845 return _windows_.FontData_GetAllowSymbols(*args, **kwargs)
2846
2847 def GetColour(*args, **kwargs):
2848 """
2849 GetColour(self) -> Colour
2850
2851 Gets the colour associated with the font dialog. The default value is
2852 black.
2853 """
2854 return _windows_.FontData_GetColour(*args, **kwargs)
2855
2856 def GetChosenFont(*args, **kwargs):
2857 """
2858 GetChosenFont(self) -> Font
2859
2860 Gets the font chosen by the user.
2861 """
2862 return _windows_.FontData_GetChosenFont(*args, **kwargs)
2863
2864 def GetEnableEffects(*args, **kwargs):
2865 """
2866 GetEnableEffects(self) -> bool
2867
2868 Determines whether 'effects' are enabled under Windows.
2869 """
2870 return _windows_.FontData_GetEnableEffects(*args, **kwargs)
2871
2872 def GetInitialFont(*args, **kwargs):
2873 """
2874 GetInitialFont(self) -> Font
2875
2876 Gets the font that will be initially used by the font dialog. This
2877 should have previously been set by the application.
2878 """
2879 return _windows_.FontData_GetInitialFont(*args, **kwargs)
2880
2881 def GetShowHelp(*args, **kwargs):
2882 """
2883 GetShowHelp(self) -> bool
2884
2885 Returns true if the Help button will be shown (Windows only). The
2886 default value is false.
2887 """
2888 return _windows_.FontData_GetShowHelp(*args, **kwargs)
2889
2890 def SetAllowSymbols(*args, **kwargs):
2891 """
2892 SetAllowSymbols(self, bool allowSymbols)
2893
2894 Under MS Windows, determines whether symbol fonts can be selected. Has
2895 no effect on other platforms. The default value is true.
2896 """
2897 return _windows_.FontData_SetAllowSymbols(*args, **kwargs)
2898
2899 def SetChosenFont(*args, **kwargs):
2900 """
2901 SetChosenFont(self, Font font)
2902
2903 Sets the font that will be returned to the user (normally for internal
2904 use only).
2905 """
2906 return _windows_.FontData_SetChosenFont(*args, **kwargs)
2907
2908 def SetColour(*args, **kwargs):
2909 """
2910 SetColour(self, Colour colour)
2911
2912 Sets the colour that will be used for the font foreground colour. The
2913 default colour is black.
2914 """
2915 return _windows_.FontData_SetColour(*args, **kwargs)
2916
2917 def SetInitialFont(*args, **kwargs):
2918 """
2919 SetInitialFont(self, Font font)
2920
2921 Sets the font that will be initially used by the font dialog.
2922 """
2923 return _windows_.FontData_SetInitialFont(*args, **kwargs)
2924
2925 def SetRange(*args, **kwargs):
2926 """
2927 SetRange(self, int min, int max)
2928
2929 Sets the valid range for the font point size (Windows only). The
2930 default is 0, 0 (unrestricted range).
2931 """
2932 return _windows_.FontData_SetRange(*args, **kwargs)
2933
2934 def SetShowHelp(*args, **kwargs):
2935 """
2936 SetShowHelp(self, bool showHelp)
2937
2938 Determines whether the Help button will be displayed in the font
2939 dialog (Windows only). The default value is false.
2940 """
2941 return _windows_.FontData_SetShowHelp(*args, **kwargs)
2942
2943
2944 class FontDataPtr(FontData):
2945 def __init__(self, this):
2946 self.this = this
2947 if not hasattr(self,"thisown"): self.thisown = 0
2948 self.__class__ = FontData
2949 _windows_.FontData_swigregister(FontDataPtr)
2950
2951 class FontDialog(Dialog):
2952 """
2953 wx.FontDialog allows the user to select a system font and its attributes.
2954
2955 :see: `wx.FontData`
2956
2957 """
2958 def __repr__(self):
2959 return "<%s.%s; proxy of C++ wxFontDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2960 def __init__(self, *args, **kwargs):
2961 """
2962 __init__(self, Window parent, FontData data) -> FontDialog
2963
2964 Constructor. Pass a parent window and the `wx.FontData` object to be
2965 used to initialize the dialog controls. Call `ShowModal` to display
2966 the dialog. If ShowModal returns ``wx.ID_OK`` then you can fetch the
2967 results with via the `wx.FontData` returned by `GetFontData`.
2968 """
2969 newobj = _windows_.new_FontDialog(*args, **kwargs)
2970 self.this = newobj.this
2971 self.thisown = 1
2972 del newobj.thisown
2973 self._setOORInfo(self)
2974
2975 def GetFontData(*args, **kwargs):
2976 """
2977 GetFontData(self) -> FontData
2978
2979 Returns a reference to the internal `wx.FontData` used by the
2980 wx.FontDialog.
2981 """
2982 return _windows_.FontDialog_GetFontData(*args, **kwargs)
2983
2984
2985 class FontDialogPtr(FontDialog):
2986 def __init__(self, this):
2987 self.this = this
2988 if not hasattr(self,"thisown"): self.thisown = 0
2989 self.__class__ = FontDialog
2990 _windows_.FontDialog_swigregister(FontDialogPtr)
2991
2992
2993 def GetFontFromUser(*args, **kwargs):
2994 """GetFontFromUser(Window parent=None, Font fontInit=wxNullFont, String caption=EmptyString) -> Font"""
2995 return _windows_.GetFontFromUser(*args, **kwargs)
2996 class MessageDialog(Dialog):
2997 """
2998 This class provides a simple dialog that shows a single or multi-line
2999 message, with a choice of OK, Yes, No and/or Cancel buttons.
3000 """
3001 def __repr__(self):
3002 return "<%s.%s; proxy of C++ wxMessageDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
3003 def __init__(self, *args, **kwargs):
3004 """
3005 __init__(self, Window parent, String message, String caption=MessageBoxCaptionStr,
3006 long style=wxOK|wxCANCEL|wxCENTRE,
3007 Point pos=DefaultPosition) -> MessageDialog
3008
3009 Constructor, use `ShowModal` to display the dialog.
3010 """
3011 newobj = _windows_.new_MessageDialog(*args, **kwargs)
3012 self.this = newobj.this
3013 self.thisown = 1
3014 del newobj.thisown
3015 self._setOORInfo(self)
3016
3017
3018 class MessageDialogPtr(MessageDialog):
3019 def __init__(self, this):
3020 self.this = this
3021 if not hasattr(self,"thisown"): self.thisown = 0
3022 self.__class__ = MessageDialog
3023 _windows_.MessageDialog_swigregister(MessageDialogPtr)
3024
3025 class ProgressDialog(Frame):
3026 """
3027 A dialog that shows a short message and a progress bar. Optionally, it
3028 can display an ABORT button.
3029 """
3030 def __repr__(self):
3031 return "<%s.%s; proxy of C++ wxProgressDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
3032 def __init__(self, *args, **kwargs):
3033 """
3034 __init__(self, String title, String message, int maximum=100, Window parent=None,
3035 int style=wxPD_AUTO_HIDE|wxPD_APP_MODAL) -> ProgressDialog
3036
3037 Constructor. Creates the dialog, displays it and disables user input
3038 for other windows, or, if wx.PD_APP_MODAL flag is not given, for its
3039 parent window only.
3040 """
3041 newobj = _windows_.new_ProgressDialog(*args, **kwargs)
3042 self.this = newobj.this
3043 self.thisown = 1
3044 del newobj.thisown
3045 self._setOORInfo(self)
3046
3047 def Update(*args, **kwargs):
3048 """
3049 Update(self, int value, String newmsg=EmptyString) -> bool
3050
3051 Updates the dialog, setting the progress bar to the new value and, if
3052 given changes the message above it. The value given should be less
3053 than or equal to the maximum value given to the constructor and the
3054 dialog is closed if it is equal to the maximum. Returns True unless
3055 the Cancel button has been pressed.
3056
3057 If false is returned, the application can either immediately destroy
3058 the dialog or ask the user for the confirmation and if the abort is
3059 not confirmed the dialog may be resumed with Resume function.
3060 """
3061 return _windows_.ProgressDialog_Update(*args, **kwargs)
3062
3063 def Resume(*args, **kwargs):
3064 """
3065 Resume(self)
3066
3067 Can be used to continue with the dialog, after the user had chosen to
3068 abort.
3069 """
3070 return _windows_.ProgressDialog_Resume(*args, **kwargs)
3071
3072
3073 class ProgressDialogPtr(ProgressDialog):
3074 def __init__(self, this):
3075 self.this = this
3076 if not hasattr(self,"thisown"): self.thisown = 0
3077 self.__class__ = ProgressDialog
3078 _windows_.ProgressDialog_swigregister(ProgressDialogPtr)
3079
3080 FR_DOWN = _windows_.FR_DOWN
3081 FR_WHOLEWORD = _windows_.FR_WHOLEWORD
3082 FR_MATCHCASE = _windows_.FR_MATCHCASE
3083 FR_REPLACEDIALOG = _windows_.FR_REPLACEDIALOG
3084 FR_NOUPDOWN = _windows_.FR_NOUPDOWN
3085 FR_NOMATCHCASE = _windows_.FR_NOMATCHCASE
3086 FR_NOWHOLEWORD = _windows_.FR_NOWHOLEWORD
3087 wxEVT_COMMAND_FIND = _windows_.wxEVT_COMMAND_FIND
3088 wxEVT_COMMAND_FIND_NEXT = _windows_.wxEVT_COMMAND_FIND_NEXT
3089 wxEVT_COMMAND_FIND_REPLACE = _windows_.wxEVT_COMMAND_FIND_REPLACE
3090 wxEVT_COMMAND_FIND_REPLACE_ALL = _windows_.wxEVT_COMMAND_FIND_REPLACE_ALL
3091 wxEVT_COMMAND_FIND_CLOSE = _windows_.wxEVT_COMMAND_FIND_CLOSE
3092 EVT_FIND = wx.PyEventBinder( wxEVT_COMMAND_FIND, 1 )
3093 EVT_FIND_NEXT = wx.PyEventBinder( wxEVT_COMMAND_FIND_NEXT, 1 )
3094 EVT_FIND_REPLACE = wx.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE, 1 )
3095 EVT_FIND_REPLACE_ALL = wx.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE_ALL, 1 )
3096 EVT_FIND_CLOSE = wx.PyEventBinder( wxEVT_COMMAND_FIND_CLOSE, 1 )
3097
3098 # For backwards compatibility. Should they be removed?
3099 EVT_COMMAND_FIND = EVT_FIND
3100 EVT_COMMAND_FIND_NEXT = EVT_FIND_NEXT
3101 EVT_COMMAND_FIND_REPLACE = EVT_FIND_REPLACE
3102 EVT_COMMAND_FIND_REPLACE_ALL = EVT_FIND_REPLACE_ALL
3103 EVT_COMMAND_FIND_CLOSE = EVT_FIND_CLOSE
3104
3105 class FindDialogEvent(_core.CommandEvent):
3106 """Events for the FindReplaceDialog"""
3107 def __repr__(self):
3108 return "<%s.%s; proxy of C++ wxFindDialogEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
3109 def __init__(self, *args, **kwargs):
3110 """
3111 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0) -> FindDialogEvent
3112
3113 Events for the FindReplaceDialog
3114 """
3115 newobj = _windows_.new_FindDialogEvent(*args, **kwargs)
3116 self.this = newobj.this
3117 self.thisown = 1
3118 del newobj.thisown
3119 def GetFlags(*args, **kwargs):
3120 """
3121 GetFlags(self) -> int
3122
3123 Get the currently selected flags: this is the combination of
3124 wx.FR_DOWN, wx.FR_WHOLEWORD and wx.FR_MATCHCASE flags.
3125 """
3126 return _windows_.FindDialogEvent_GetFlags(*args, **kwargs)
3127
3128 def GetFindString(*args, **kwargs):
3129 """
3130 GetFindString(self) -> String
3131
3132 Return the string to find (never empty).
3133 """
3134 return _windows_.FindDialogEvent_GetFindString(*args, **kwargs)
3135
3136 def GetReplaceString(*args, **kwargs):
3137 """
3138 GetReplaceString(self) -> String
3139
3140 Return the string to replace the search string with (only for replace
3141 and replace all events).
3142 """
3143 return _windows_.FindDialogEvent_GetReplaceString(*args, **kwargs)
3144
3145 def GetDialog(*args, **kwargs):
3146 """
3147 GetDialog(self) -> FindReplaceDialog
3148
3149 Return the pointer to the dialog which generated this event.
3150 """
3151 return _windows_.FindDialogEvent_GetDialog(*args, **kwargs)
3152
3153 def SetFlags(*args, **kwargs):
3154 """SetFlags(self, int flags)"""
3155 return _windows_.FindDialogEvent_SetFlags(*args, **kwargs)
3156
3157 def SetFindString(*args, **kwargs):
3158 """SetFindString(self, String str)"""
3159 return _windows_.FindDialogEvent_SetFindString(*args, **kwargs)
3160
3161 def SetReplaceString(*args, **kwargs):
3162 """SetReplaceString(self, String str)"""
3163 return _windows_.FindDialogEvent_SetReplaceString(*args, **kwargs)
3164
3165
3166 class FindDialogEventPtr(FindDialogEvent):
3167 def __init__(self, this):
3168 self.this = this
3169 if not hasattr(self,"thisown"): self.thisown = 0
3170 self.__class__ = FindDialogEvent
3171 _windows_.FindDialogEvent_swigregister(FindDialogEventPtr)
3172
3173 class FindReplaceData(_core.Object):
3174 """
3175 wx.FindReplaceData holds the data for wx.FindReplaceDialog. It is used
3176 to initialize the dialog with the default values and will keep the
3177 last values from the dialog when it is closed. It is also updated each
3178 time a `wx.FindDialogEvent` is generated so instead of using the
3179 `wx.FindDialogEvent` methods you can also directly query this object.
3180
3181 Note that all SetXXX() methods may only be called before showing the
3182 dialog and calling them has no effect later.
3183 """
3184 def __repr__(self):
3185 return "<%s.%s; proxy of C++ wxFindReplaceData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
3186 def __init__(self, *args, **kwargs):
3187 """
3188 __init__(self, int flags=0) -> FindReplaceData
3189
3190 Constuctor initializes the flags to default value (0).
3191 """
3192 newobj = _windows_.new_FindReplaceData(*args, **kwargs)
3193 self.this = newobj.this
3194 self.thisown = 1
3195 del newobj.thisown
3196 def __del__(self, destroy=_windows_.delete_FindReplaceData):
3197 """__del__(self)"""
3198 try:
3199 if self.thisown: destroy(self)
3200 except: pass
3201
3202 def GetFindString(*args, **kwargs):
3203 """
3204 GetFindString(self) -> String
3205
3206 Get the string to find.
3207 """
3208 return _windows_.FindReplaceData_GetFindString(*args, **kwargs)
3209
3210 def GetReplaceString(*args, **kwargs):
3211 """
3212 GetReplaceString(self) -> String
3213
3214 Get the replacement string.
3215 """
3216 return _windows_.FindReplaceData_GetReplaceString(*args, **kwargs)
3217
3218 def GetFlags(*args, **kwargs):
3219 """
3220 GetFlags(self) -> int
3221
3222 Get the combination of flag values.
3223 """
3224 return _windows_.FindReplaceData_GetFlags(*args, **kwargs)
3225
3226 def SetFlags(*args, **kwargs):
3227 """
3228 SetFlags(self, int flags)
3229
3230 Set the flags to use to initialize the controls of the dialog.
3231 """
3232 return _windows_.FindReplaceData_SetFlags(*args, **kwargs)
3233
3234 def SetFindString(*args, **kwargs):
3235 """
3236 SetFindString(self, String str)
3237
3238 Set the string to find (used as initial value by the dialog).
3239 """
3240 return _windows_.FindReplaceData_SetFindString(*args, **kwargs)
3241
3242 def SetReplaceString(*args, **kwargs):
3243 """
3244 SetReplaceString(self, String str)
3245
3246 Set the replacement string (used as initial value by the dialog).
3247 """
3248 return _windows_.FindReplaceData_SetReplaceString(*args, **kwargs)
3249
3250
3251 class FindReplaceDataPtr(FindReplaceData):
3252 def __init__(self, this):
3253 self.this = this
3254 if not hasattr(self,"thisown"): self.thisown = 0
3255 self.__class__ = FindReplaceData
3256 _windows_.FindReplaceData_swigregister(FindReplaceDataPtr)
3257
3258 class FindReplaceDialog(Dialog):
3259 """
3260 wx.FindReplaceDialog is a standard modeless dialog which is used to
3261 allow the user to search for some text (and possibly replace it with
3262 something else). The actual searching is supposed to be done in the
3263 owner window which is the parent of this dialog. Note that it means
3264 that unlike for the other standard dialogs this one must have a parent
3265 window. Also note that there is no way to use this dialog in a modal
3266 way; it is always, by design and implementation, modeless.
3267 """
3268 def __repr__(self):
3269 return "<%s.%s; proxy of C++ wxFindReplaceDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
3270 def __init__(self, *args, **kwargs):
3271 """
3272 __init__(self, Window parent, FindReplaceData data, String title,
3273 int style=0) -> FindReplaceDialog
3274
3275 Create a FindReplaceDialog. The parent and data parameters must be
3276 non-None. Use Show to display the dialog.
3277 """
3278 newobj = _windows_.new_FindReplaceDialog(*args, **kwargs)
3279 self.this = newobj.this
3280 self.thisown = 1
3281 del newobj.thisown
3282 self._setOORInfo(self)
3283
3284 def Create(*args, **kwargs):
3285 """
3286 Create(self, Window parent, FindReplaceData data, String title,
3287 int style=0) -> bool
3288
3289 Create the dialog, for 2-phase create.
3290 """
3291 return _windows_.FindReplaceDialog_Create(*args, **kwargs)
3292
3293 def GetData(*args, **kwargs):
3294 """
3295 GetData(self) -> FindReplaceData
3296
3297 Get the FindReplaceData object used by this dialog.
3298 """
3299 return _windows_.FindReplaceDialog_GetData(*args, **kwargs)
3300
3301 def SetData(*args, **kwargs):
3302 """
3303 SetData(self, FindReplaceData data)
3304
3305 Set the FindReplaceData object used by this dialog.
3306 """
3307 return _windows_.FindReplaceDialog_SetData(*args, **kwargs)
3308
3309
3310 class FindReplaceDialogPtr(FindReplaceDialog):
3311 def __init__(self, this):
3312 self.this = this
3313 if not hasattr(self,"thisown"): self.thisown = 0
3314 self.__class__ = FindReplaceDialog
3315 _windows_.FindReplaceDialog_swigregister(FindReplaceDialogPtr)
3316
3317 def PreFindReplaceDialog(*args, **kwargs):
3318 """
3319 PreFindReplaceDialog() -> FindReplaceDialog
3320
3321 Precreate a FindReplaceDialog for 2-phase creation
3322 """
3323 val = _windows_.new_PreFindReplaceDialog(*args, **kwargs)
3324 val.thisown = 1
3325 return val
3326
3327 #---------------------------------------------------------------------------
3328
3329 IDM_WINDOWTILE = _windows_.IDM_WINDOWTILE
3330 IDM_WINDOWTILEHOR = _windows_.IDM_WINDOWTILEHOR
3331 IDM_WINDOWCASCADE = _windows_.IDM_WINDOWCASCADE
3332 IDM_WINDOWICONS = _windows_.IDM_WINDOWICONS
3333 IDM_WINDOWNEXT = _windows_.IDM_WINDOWNEXT
3334 IDM_WINDOWTILEVERT = _windows_.IDM_WINDOWTILEVERT
3335 IDM_WINDOWPREV = _windows_.IDM_WINDOWPREV
3336 FIRST_MDI_CHILD = _windows_.FIRST_MDI_CHILD
3337 LAST_MDI_CHILD = _windows_.LAST_MDI_CHILD
3338 class MDIParentFrame(Frame):
3339 """Proxy of C++ MDIParentFrame class"""
3340 def __repr__(self):
3341 return "<%s.%s; proxy of C++ wxMDIParentFrame instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
3342 def __init__(self, *args, **kwargs):
3343 """
3344 __init__(self, Window parent, int id=-1, String title=EmptyString,
3345 Point pos=DefaultPosition, Size size=DefaultSize,
3346 long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
3347 String name=FrameNameStr) -> MDIParentFrame
3348 """
3349 newobj = _windows_.new_MDIParentFrame(*args, **kwargs)
3350 self.this = newobj.this
3351 self.thisown = 1
3352 del newobj.thisown
3353 self._setOORInfo(self)
3354
3355 def Create(*args, **kwargs):
3356 """
3357 Create(self, Window parent, int id=-1, String title=EmptyString,
3358 Point pos=DefaultPosition, Size size=DefaultSize,
3359 long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
3360 String name=FrameNameStr) -> bool
3361 """
3362 return _windows_.MDIParentFrame_Create(*args, **kwargs)
3363
3364 def ActivateNext(*args, **kwargs):
3365 """ActivateNext(self)"""
3366 return _windows_.MDIParentFrame_ActivateNext(*args, **kwargs)
3367
3368 def ActivatePrevious(*args, **kwargs):
3369 """ActivatePrevious(self)"""
3370 return _windows_.MDIParentFrame_ActivatePrevious(*args, **kwargs)
3371
3372 def ArrangeIcons(*args, **kwargs):
3373 """ArrangeIcons(self)"""
3374 return _windows_.MDIParentFrame_ArrangeIcons(*args, **kwargs)
3375
3376 def Cascade(*args, **kwargs):
3377 """Cascade(self)"""
3378 return _windows_.MDIParentFrame_Cascade(*args, **kwargs)
3379
3380 def GetActiveChild(*args, **kwargs):
3381 """GetActiveChild(self) -> MDIChildFrame"""
3382 return _windows_.MDIParentFrame_GetActiveChild(*args, **kwargs)
3383
3384 def GetClientWindow(*args, **kwargs):
3385 """GetClientWindow(self) -> MDIClientWindow"""
3386 return _windows_.MDIParentFrame_GetClientWindow(*args, **kwargs)
3387
3388 def GetToolBar(*args, **kwargs):
3389 """GetToolBar(self) -> Window"""
3390 return _windows_.MDIParentFrame_GetToolBar(*args, **kwargs)
3391
3392 def Tile(*args, **kwargs):
3393 """Tile(self, int orient=HORIZONTAL)"""
3394 return _windows_.MDIParentFrame_Tile(*args, **kwargs)
3395
3396
3397 class MDIParentFramePtr(MDIParentFrame):
3398 def __init__(self, this):
3399 self.this = this
3400 if not hasattr(self,"thisown"): self.thisown = 0
3401 self.__class__ = MDIParentFrame
3402 _windows_.MDIParentFrame_swigregister(MDIParentFramePtr)
3403
3404 def PreMDIParentFrame(*args, **kwargs):
3405 """PreMDIParentFrame() -> MDIParentFrame"""
3406 val = _windows_.new_PreMDIParentFrame(*args, **kwargs)
3407 val.thisown = 1
3408 return val
3409
3410 class MDIChildFrame(Frame):
3411 """Proxy of C++ MDIChildFrame class"""
3412 def __repr__(self):
3413 return "<%s.%s; proxy of C++ wxMDIChildFrame instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
3414 def __init__(self, *args, **kwargs):
3415 """
3416 __init__(self, MDIParentFrame parent, int id=-1, String title=EmptyString,
3417 Point pos=DefaultPosition, Size size=DefaultSize,
3418 long style=DEFAULT_FRAME_STYLE,
3419 String name=FrameNameStr) -> MDIChildFrame
3420 """
3421 newobj = _windows_.new_MDIChildFrame(*args, **kwargs)
3422 self.this = newobj.this
3423 self.thisown = 1
3424 del newobj.thisown
3425 self._setOORInfo(self)
3426
3427 def Create(*args, **kwargs):
3428 """
3429 Create(self, MDIParentFrame parent, int id=-1, String title=EmptyString,
3430 Point pos=DefaultPosition, Size size=DefaultSize,
3431 long style=DEFAULT_FRAME_STYLE,
3432 String name=FrameNameStr) -> bool
3433 """
3434 return _windows_.MDIChildFrame_Create(*args, **kwargs)
3435
3436 def Activate(*args, **kwargs):
3437 """Activate(self)"""
3438 return _windows_.MDIChildFrame_Activate(*args, **kwargs)
3439
3440 def Maximize(*args, **kwargs):
3441 """Maximize(self, bool maximize=True)"""
3442 return _windows_.MDIChildFrame_Maximize(*args, **kwargs)
3443
3444 def Restore(*args, **kwargs):
3445 """Restore(self)"""
3446 return _windows_.MDIChildFrame_Restore(*args, **kwargs)
3447
3448
3449 class MDIChildFramePtr(MDIChildFrame):
3450 def __init__(self, this):
3451 self.this = this
3452 if not hasattr(self,"thisown"): self.thisown = 0
3453 self.__class__ = MDIChildFrame
3454 _windows_.MDIChildFrame_swigregister(MDIChildFramePtr)
3455
3456 def PreMDIChildFrame(*args, **kwargs):
3457 """PreMDIChildFrame() -> MDIChildFrame"""
3458 val = _windows_.new_PreMDIChildFrame(*args, **kwargs)
3459 val.thisown = 1
3460 return val
3461
3462 class MDIClientWindow(_core.Window):
3463 """Proxy of C++ MDIClientWindow class"""
3464 def __repr__(self):
3465 return "<%s.%s; proxy of C++ wxMDIClientWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
3466 def __init__(self, *args, **kwargs):
3467 """__init__(self, MDIParentFrame parent, long style=0) -> MDIClientWindow"""
3468 newobj = _windows_.new_MDIClientWindow(*args, **kwargs)
3469 self.this = newobj.this
3470 self.thisown = 1
3471 del newobj.thisown
3472 self._setOORInfo(self)
3473
3474 def Create(*args, **kwargs):
3475 """Create(self, MDIParentFrame parent, long style=0) -> bool"""
3476 return _windows_.MDIClientWindow_Create(*args, **kwargs)
3477
3478
3479 class MDIClientWindowPtr(MDIClientWindow):
3480 def __init__(self, this):
3481 self.this = this
3482 if not hasattr(self,"thisown"): self.thisown = 0
3483 self.__class__ = MDIClientWindow
3484 _windows_.MDIClientWindow_swigregister(MDIClientWindowPtr)
3485
3486 def PreMDIClientWindow(*args, **kwargs):
3487 """PreMDIClientWindow() -> MDIClientWindow"""
3488 val = _windows_.new_PreMDIClientWindow(*args, **kwargs)
3489 val.thisown = 1
3490 return val
3491
3492 #---------------------------------------------------------------------------
3493
3494 class PyWindow(_core.Window):
3495 """Proxy of C++ PyWindow class"""
3496 def __repr__(self):
3497 return "<%s.%s; proxy of C++ wxPyWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
3498 def __init__(self, *args, **kwargs):
3499 """
3500 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3501 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyWindow
3502 """
3503 newobj = _windows_.new_PyWindow(*args, **kwargs)
3504 self.this = newobj.this
3505 self.thisown = 1
3506 del newobj.thisown
3507 self._setOORInfo(self); self._setCallbackInfo(self, PyWindow)
3508
3509 def _setCallbackInfo(*args, **kwargs):
3510 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3511 return _windows_.PyWindow__setCallbackInfo(*args, **kwargs)
3512
3513 def SetBestSize(*args, **kwargs):
3514 """SetBestSize(self, Size size)"""
3515 return _windows_.PyWindow_SetBestSize(*args, **kwargs)
3516
3517 def DoEraseBackground(*args, **kwargs):
3518 """DoEraseBackground(self, DC dc) -> bool"""
3519 return _windows_.PyWindow_DoEraseBackground(*args, **kwargs)
3520
3521 def DoMoveWindow(*args, **kwargs):
3522 """DoMoveWindow(self, int x, int y, int width, int height)"""
3523 return _windows_.PyWindow_DoMoveWindow(*args, **kwargs)
3524
3525 def DoSetSize(*args, **kwargs):
3526 """DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3527 return _windows_.PyWindow_DoSetSize(*args, **kwargs)
3528
3529 def DoSetClientSize(*args, **kwargs):
3530 """DoSetClientSize(self, int width, int height)"""
3531 return _windows_.PyWindow_DoSetClientSize(*args, **kwargs)
3532
3533 def DoSetVirtualSize(*args, **kwargs):
3534 """DoSetVirtualSize(self, int x, int y)"""
3535 return _windows_.PyWindow_DoSetVirtualSize(*args, **kwargs)
3536
3537 def DoGetSize(*args, **kwargs):
3538 """DoGetSize() -> (width, height)"""
3539 return _windows_.PyWindow_DoGetSize(*args, **kwargs)
3540
3541 def DoGetClientSize(*args, **kwargs):
3542 """DoGetClientSize() -> (width, height)"""
3543 return _windows_.PyWindow_DoGetClientSize(*args, **kwargs)
3544
3545 def DoGetPosition(*args, **kwargs):
3546 """DoGetPosition() -> (x,y)"""
3547 return _windows_.PyWindow_DoGetPosition(*args, **kwargs)
3548
3549 def DoGetVirtualSize(*args, **kwargs):
3550 """DoGetVirtualSize(self) -> Size"""
3551 return _windows_.PyWindow_DoGetVirtualSize(*args, **kwargs)
3552
3553 def DoGetBestSize(*args, **kwargs):
3554 """DoGetBestSize(self) -> Size"""
3555 return _windows_.PyWindow_DoGetBestSize(*args, **kwargs)
3556
3557 def InitDialog(*args, **kwargs):
3558 """
3559 InitDialog(self)
3560
3561 Sends an EVT_INIT_DIALOG event, whose handler usually transfers data
3562 to the dialog via validators.
3563 """
3564 return _windows_.PyWindow_InitDialog(*args, **kwargs)
3565
3566 def TransferDataToWindow(*args, **kwargs):
3567 """
3568 TransferDataToWindow(self) -> bool
3569
3570 Transfers values to child controls from data areas specified by their
3571 validators. If the window has wx.WS_EX_VALIDATE_RECURSIVELY extra
3572 style flag set, the method will also call TransferDataToWindow() of
3573 all child windows.
3574 """
3575 return _windows_.PyWindow_TransferDataToWindow(*args, **kwargs)
3576
3577 def TransferDataFromWindow(*args, **kwargs):
3578 """
3579 TransferDataFromWindow(self) -> bool
3580
3581 Transfers values from child controls to data areas specified by their
3582 validators. Returns false if a transfer failed. If the window has
3583 wx.WS_EX_VALIDATE_RECURSIVELY extra style flag set, the method will
3584 also call TransferDataFromWindow() of all child windows.
3585 """
3586 return _windows_.PyWindow_TransferDataFromWindow(*args, **kwargs)
3587
3588 def Validate(*args, **kwargs):
3589 """
3590 Validate(self) -> bool
3591
3592 Validates the current values of the child controls using their
3593 validators. If the window has wx.WS_EX_VALIDATE_RECURSIVELY extra
3594 style flag set, the method will also call Validate() of all child
3595 windows. Returns false if any of the validations failed.
3596 """
3597 return _windows_.PyWindow_Validate(*args, **kwargs)
3598
3599 def AcceptsFocus(*args, **kwargs):
3600 """
3601 AcceptsFocus(self) -> bool
3602
3603 Can this window have focus?
3604 """
3605 return _windows_.PyWindow_AcceptsFocus(*args, **kwargs)
3606
3607 def AcceptsFocusFromKeyboard(*args, **kwargs):
3608 """
3609 AcceptsFocusFromKeyboard(self) -> bool
3610
3611 Can this window be given focus by keyboard navigation? if not, the
3612 only way to give it focus (provided it accepts it at all) is to click
3613 it.
3614 """
3615 return _windows_.PyWindow_AcceptsFocusFromKeyboard(*args, **kwargs)
3616
3617 def GetMaxSize(*args, **kwargs):
3618 """GetMaxSize(self) -> Size"""
3619 return _windows_.PyWindow_GetMaxSize(*args, **kwargs)
3620
3621 def AddChild(*args, **kwargs):
3622 """
3623 AddChild(self, Window child)
3624
3625 Adds a child window. This is called automatically by window creation
3626 functions so should not be required by the application programmer.
3627 """
3628 return _windows_.PyWindow_AddChild(*args, **kwargs)
3629
3630 def RemoveChild(*args, **kwargs):
3631 """
3632 RemoveChild(self, Window child)
3633
3634 Removes a child window. This is called automatically by window
3635 deletion functions so should not be required by the application
3636 programmer.
3637 """
3638 return _windows_.PyWindow_RemoveChild(*args, **kwargs)
3639
3640 def ShouldInheritColours(*args, **kwargs):
3641 """
3642 ShouldInheritColours(self) -> bool
3643
3644 Return true from here to allow the colours of this window to be
3645 changed by InheritAttributes, returning false forbids inheriting them
3646 from the parent window.
3647
3648 The base class version returns false, but this method is overridden in
3649 wxControl where it returns true.
3650 """
3651 return _windows_.PyWindow_ShouldInheritColours(*args, **kwargs)
3652
3653 def GetDefaultAttributes(*args, **kwargs):
3654 """GetDefaultAttributes(self) -> VisualAttributes"""
3655 return _windows_.PyWindow_GetDefaultAttributes(*args, **kwargs)
3656
3657 def OnInternalIdle(*args, **kwargs):
3658 """OnInternalIdle(self)"""
3659 return _windows_.PyWindow_OnInternalIdle(*args, **kwargs)
3660
3661 def base_DoMoveWindow(*args, **kw):
3662 return PyWindow.DoMoveWindow(*args, **kw)
3663 base_DoMoveWindow = wx._deprecated(base_DoMoveWindow,
3664 "Please use PyWindow.DoMoveWindow instead.")
3665
3666 def base_DoSetSize(*args, **kw):
3667 return PyWindow.DoSetSize(*args, **kw)
3668 base_DoSetSize = wx._deprecated(base_DoSetSize,
3669 "Please use PyWindow.DoSetSize instead.")
3670
3671 def base_DoSetClientSize(*args, **kw):
3672 return PyWindow.DoSetClientSize(*args, **kw)
3673 base_DoSetClientSize = wx._deprecated(base_DoSetClientSize,
3674 "Please use PyWindow.DoSetClientSize instead.")
3675
3676 def base_DoSetVirtualSize(*args, **kw):
3677 return PyWindow.DoSetVirtualSize(*args, **kw)
3678 base_DoSetVirtualSize = wx._deprecated(base_DoSetVirtualSize,
3679 "Please use PyWindow.DoSetVirtualSize instead.")
3680
3681 def base_DoGetSize(*args, **kw):
3682 return PyWindow.DoGetSize(*args, **kw)
3683 base_DoGetSize = wx._deprecated(base_DoGetSize,
3684 "Please use PyWindow.DoGetSize instead.")
3685
3686 def base_DoGetClientSize(*args, **kw):
3687 return PyWindow.DoGetClientSize(*args, **kw)
3688 base_DoGetClientSize = wx._deprecated(base_DoGetClientSize,
3689 "Please use PyWindow.DoGetClientSize instead.")
3690
3691 def base_DoGetPosition(*args, **kw):
3692 return PyWindow.DoGetPosition(*args, **kw)
3693 base_DoGetPosition = wx._deprecated(base_DoGetPosition,
3694 "Please use PyWindow.DoGetPosition instead.")
3695
3696 def base_DoGetVirtualSize(*args, **kw):
3697 return PyWindow.DoGetVirtualSize(*args, **kw)
3698 base_DoGetVirtualSize = wx._deprecated(base_DoGetVirtualSize,
3699 "Please use PyWindow.DoGetVirtualSize instead.")
3700
3701 def base_DoGetBestSize(*args, **kw):
3702 return PyWindow.DoGetBestSize(*args, **kw)
3703 base_DoGetBestSize = wx._deprecated(base_DoGetBestSize,
3704 "Please use PyWindow.DoGetBestSize instead.")
3705
3706 def base_InitDialog(*args, **kw):
3707 return PyWindow.InitDialog(*args, **kw)
3708 base_InitDialog = wx._deprecated(base_InitDialog,
3709 "Please use PyWindow.InitDialog instead.")
3710
3711 def base_TransferDataToWindow(*args, **kw):
3712 return PyWindow.TransferDataToWindow(*args, **kw)
3713 base_TransferDataToWindow = wx._deprecated(base_TransferDataToWindow,
3714 "Please use PyWindow.TransferDataToWindow instead.")
3715
3716 def base_TransferDataFromWindow(*args, **kw):
3717 return PyWindow.TransferDataFromWindow(*args, **kw)
3718 base_TransferDataFromWindow = wx._deprecated(base_TransferDataFromWindow,
3719 "Please use PyWindow.TransferDataFromWindow instead.")
3720
3721 def base_Validate(*args, **kw):
3722 return PyWindow.Validate(*args, **kw)
3723 base_Validate = wx._deprecated(base_Validate,
3724 "Please use PyWindow.Validate instead.")
3725
3726 def base_AcceptsFocus(*args, **kw):
3727 return PyWindow.AcceptsFocus(*args, **kw)
3728 base_AcceptsFocus = wx._deprecated(base_AcceptsFocus,
3729 "Please use PyWindow.AcceptsFocus instead.")
3730
3731 def base_AcceptsFocusFromKeyboard(*args, **kw):
3732 return PyWindow.AcceptsFocusFromKeyboard(*args, **kw)
3733 base_AcceptsFocusFromKeyboard = wx._deprecated(base_AcceptsFocusFromKeyboard,
3734 "Please use PyWindow.AcceptsFocusFromKeyboard instead.")
3735
3736 def base_GetMaxSize(*args, **kw):
3737 return PyWindow.GetMaxSize(*args, **kw)
3738 base_GetMaxSize = wx._deprecated(base_GetMaxSize,
3739 "Please use PyWindow.GetMaxSize instead.")
3740
3741 def base_AddChild(*args, **kw):
3742 return PyWindow.AddChild(*args, **kw)
3743 base_AddChild = wx._deprecated(base_AddChild,
3744 "Please use PyWindow.AddChild instead.")
3745
3746 def base_RemoveChild(*args, **kw):
3747 return PyWindow.RemoveChild(*args, **kw)
3748 base_RemoveChild = wx._deprecated(base_RemoveChild,
3749 "Please use PyWindow.RemoveChild instead.")
3750
3751 def base_ShouldInheritColours(*args, **kw):
3752 return PyWindow.ShouldInheritColours(*args, **kw)
3753 base_ShouldInheritColours = wx._deprecated(base_ShouldInheritColours,
3754 "Please use PyWindow.ShouldInheritColours instead.")
3755
3756 def base_GetDefaultAttributes(*args, **kw):
3757 return PyWindow.GetDefaultAttributes(*args, **kw)
3758 base_GetDefaultAttributes = wx._deprecated(base_GetDefaultAttributes,
3759 "Please use PyWindow.GetDefaultAttributes instead.")
3760
3761 def base_OnInternalIdle(*args, **kw):
3762 return PyWindow.OnInternalIdle(*args, **kw)
3763 base_OnInternalIdle = wx._deprecated(base_OnInternalIdle,
3764 "Please use PyWindow.OnInternalIdle instead.")
3765
3766
3767 class PyWindowPtr(PyWindow):
3768 def __init__(self, this):
3769 self.this = this
3770 if not hasattr(self,"thisown"): self.thisown = 0
3771 self.__class__ = PyWindow
3772 _windows_.PyWindow_swigregister(PyWindowPtr)
3773
3774 def PrePyWindow(*args, **kwargs):
3775 """PrePyWindow() -> PyWindow"""
3776 val = _windows_.new_PrePyWindow(*args, **kwargs)
3777 val.thisown = 1
3778 return val
3779
3780 class PyPanel(Panel):
3781 """Proxy of C++ PyPanel class"""
3782 def __repr__(self):
3783 return "<%s.%s; proxy of C++ wxPyPanel instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
3784 def __init__(self, *args, **kwargs):
3785 """
3786 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3787 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyPanel
3788 """
3789 newobj = _windows_.new_PyPanel(*args, **kwargs)
3790 self.this = newobj.this
3791 self.thisown = 1
3792 del newobj.thisown
3793 self._setOORInfo(self); self._setCallbackInfo(self, PyPanel)
3794
3795 def _setCallbackInfo(*args, **kwargs):
3796 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3797 return _windows_.PyPanel__setCallbackInfo(*args, **kwargs)
3798
3799 def SetBestSize(*args, **kwargs):
3800 """SetBestSize(self, Size size)"""
3801 return _windows_.PyPanel_SetBestSize(*args, **kwargs)
3802
3803 def DoEraseBackground(*args, **kwargs):
3804 """DoEraseBackground(self, DC dc) -> bool"""
3805 return _windows_.PyPanel_DoEraseBackground(*args, **kwargs)
3806
3807 def DoMoveWindow(*args, **kwargs):
3808 """DoMoveWindow(self, int x, int y, int width, int height)"""
3809 return _windows_.PyPanel_DoMoveWindow(*args, **kwargs)
3810
3811 def DoSetSize(*args, **kwargs):
3812 """DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3813 return _windows_.PyPanel_DoSetSize(*args, **kwargs)
3814
3815 def DoSetClientSize(*args, **kwargs):
3816 """DoSetClientSize(self, int width, int height)"""
3817 return _windows_.PyPanel_DoSetClientSize(*args, **kwargs)
3818
3819 def DoSetVirtualSize(*args, **kwargs):
3820 """DoSetVirtualSize(self, int x, int y)"""
3821 return _windows_.PyPanel_DoSetVirtualSize(*args, **kwargs)
3822
3823 def DoGetSize(*args, **kwargs):
3824 """DoGetSize() -> (width, height)"""
3825 return _windows_.PyPanel_DoGetSize(*args, **kwargs)
3826
3827 def DoGetClientSize(*args, **kwargs):
3828 """DoGetClientSize() -> (width, height)"""
3829 return _windows_.PyPanel_DoGetClientSize(*args, **kwargs)
3830
3831 def DoGetPosition(*args, **kwargs):
3832 """DoGetPosition() -> (x,y)"""
3833 return _windows_.PyPanel_DoGetPosition(*args, **kwargs)
3834
3835 def DoGetVirtualSize(*args, **kwargs):
3836 """DoGetVirtualSize(self) -> Size"""
3837 return _windows_.PyPanel_DoGetVirtualSize(*args, **kwargs)
3838
3839 def DoGetBestSize(*args, **kwargs):
3840 """DoGetBestSize(self) -> Size"""
3841 return _windows_.PyPanel_DoGetBestSize(*args, **kwargs)
3842
3843 def InitDialog(*args, **kwargs):
3844 """
3845 InitDialog(self)
3846
3847 Sends an EVT_INIT_DIALOG event, whose handler usually transfers data
3848 to the dialog via validators.
3849 """
3850 return _windows_.PyPanel_InitDialog(*args, **kwargs)
3851
3852 def TransferDataToWindow(*args, **kwargs):
3853 """
3854 TransferDataToWindow(self) -> bool
3855
3856 Transfers values to child controls from data areas specified by their
3857 validators. If the window has wx.WS_EX_VALIDATE_RECURSIVELY extra
3858 style flag set, the method will also call TransferDataToWindow() of
3859 all child windows.
3860 """
3861 return _windows_.PyPanel_TransferDataToWindow(*args, **kwargs)
3862
3863 def TransferDataFromWindow(*args, **kwargs):
3864 """
3865 TransferDataFromWindow(self) -> bool
3866
3867 Transfers values from child controls to data areas specified by their
3868 validators. Returns false if a transfer failed. If the window has
3869 wx.WS_EX_VALIDATE_RECURSIVELY extra style flag set, the method will
3870 also call TransferDataFromWindow() of all child windows.
3871 """
3872 return _windows_.PyPanel_TransferDataFromWindow(*args, **kwargs)
3873
3874 def Validate(*args, **kwargs):
3875 """
3876 Validate(self) -> bool
3877
3878 Validates the current values of the child controls using their
3879 validators. If the window has wx.WS_EX_VALIDATE_RECURSIVELY extra
3880 style flag set, the method will also call Validate() of all child
3881 windows. Returns false if any of the validations failed.
3882 """
3883 return _windows_.PyPanel_Validate(*args, **kwargs)
3884
3885 def AcceptsFocus(*args, **kwargs):
3886 """
3887 AcceptsFocus(self) -> bool
3888
3889 Can this window have focus?
3890 """
3891 return _windows_.PyPanel_AcceptsFocus(*args, **kwargs)
3892
3893 def AcceptsFocusFromKeyboard(*args, **kwargs):
3894 """
3895 AcceptsFocusFromKeyboard(self) -> bool
3896
3897 Can this window be given focus by keyboard navigation? if not, the
3898 only way to give it focus (provided it accepts it at all) is to click
3899 it.
3900 """
3901 return _windows_.PyPanel_AcceptsFocusFromKeyboard(*args, **kwargs)
3902
3903 def GetMaxSize(*args, **kwargs):
3904 """GetMaxSize(self) -> Size"""
3905 return _windows_.PyPanel_GetMaxSize(*args, **kwargs)
3906
3907 def AddChild(*args, **kwargs):
3908 """
3909 AddChild(self, Window child)
3910
3911 Adds a child window. This is called automatically by window creation
3912 functions so should not be required by the application programmer.
3913 """
3914 return _windows_.PyPanel_AddChild(*args, **kwargs)
3915
3916 def RemoveChild(*args, **kwargs):
3917 """
3918 RemoveChild(self, Window child)
3919
3920 Removes a child window. This is called automatically by window
3921 deletion functions so should not be required by the application
3922 programmer.
3923 """
3924 return _windows_.PyPanel_RemoveChild(*args, **kwargs)
3925
3926 def ShouldInheritColours(*args, **kwargs):
3927 """
3928 ShouldInheritColours(self) -> bool
3929
3930 Return true from here to allow the colours of this window to be
3931 changed by InheritAttributes, returning false forbids inheriting them
3932 from the parent window.
3933
3934 The base class version returns false, but this method is overridden in
3935 wxControl where it returns true.
3936 """
3937 return _windows_.PyPanel_ShouldInheritColours(*args, **kwargs)
3938
3939 def GetDefaultAttributes(*args, **kwargs):
3940 """GetDefaultAttributes(self) -> VisualAttributes"""
3941 return _windows_.PyPanel_GetDefaultAttributes(*args, **kwargs)
3942
3943 def OnInternalIdle(*args, **kwargs):
3944 """OnInternalIdle(self)"""
3945 return _windows_.PyPanel_OnInternalIdle(*args, **kwargs)
3946
3947 def base_DoMoveWindow(*args, **kw):
3948 return PyPanel.DoMoveWindow(*args, **kw)
3949 base_DoMoveWindow = wx._deprecated(base_DoMoveWindow,
3950 "Please use PyPanel.DoMoveWindow instead.")
3951
3952 def base_DoSetSize(*args, **kw):
3953 return PyPanel.DoSetSize(*args, **kw)
3954 base_DoSetSize = wx._deprecated(base_DoSetSize,
3955 "Please use PyPanel.DoSetSize instead.")
3956
3957 def base_DoSetClientSize(*args, **kw):
3958 return PyPanel.DoSetClientSize(*args, **kw)
3959 base_DoSetClientSize = wx._deprecated(base_DoSetClientSize,
3960 "Please use PyPanel.DoSetClientSize instead.")
3961
3962 def base_DoSetVirtualSize(*args, **kw):
3963 return PyPanel.DoSetVirtualSize(*args, **kw)
3964 base_DoSetVirtualSize = wx._deprecated(base_DoSetVirtualSize,
3965 "Please use PyPanel.DoSetVirtualSize instead.")
3966
3967 def base_DoGetSize(*args, **kw):
3968 return PyPanel.DoGetSize(*args, **kw)
3969 base_DoGetSize = wx._deprecated(base_DoGetSize,
3970 "Please use PyPanel.DoGetSize instead.")
3971
3972 def base_DoGetClientSize(*args, **kw):
3973 return PyPanel.DoGetClientSize(*args, **kw)
3974 base_DoGetClientSize = wx._deprecated(base_DoGetClientSize,
3975 "Please use PyPanel.DoGetClientSize instead.")
3976
3977 def base_DoGetPosition(*args, **kw):
3978 return PyPanel.DoGetPosition(*args, **kw)
3979 base_DoGetPosition = wx._deprecated(base_DoGetPosition,
3980 "Please use PyPanel.DoGetPosition instead.")
3981
3982 def base_DoGetVirtualSize(*args, **kw):
3983 return PyPanel.DoGetVirtualSize(*args, **kw)
3984 base_DoGetVirtualSize = wx._deprecated(base_DoGetVirtualSize,
3985 "Please use PyPanel.DoGetVirtualSize instead.")
3986
3987 def base_DoGetBestSize(*args, **kw):
3988 return PyPanel.DoGetBestSize(*args, **kw)
3989 base_DoGetBestSize = wx._deprecated(base_DoGetBestSize,
3990 "Please use PyPanel.DoGetBestSize instead.")
3991
3992 def base_InitDialog(*args, **kw):
3993 return PyPanel.InitDialog(*args, **kw)
3994 base_InitDialog = wx._deprecated(base_InitDialog,
3995 "Please use PyPanel.InitDialog instead.")
3996
3997 def base_TransferDataToWindow(*args, **kw):
3998 return PyPanel.TransferDataToWindow(*args, **kw)
3999 base_TransferDataToWindow = wx._deprecated(base_TransferDataToWindow,
4000 "Please use PyPanel.TransferDataToWindow instead.")
4001
4002 def base_TransferDataFromWindow(*args, **kw):
4003 return PyPanel.TransferDataFromWindow(*args, **kw)
4004 base_TransferDataFromWindow = wx._deprecated(base_TransferDataFromWindow,
4005 "Please use PyPanel.TransferDataFromWindow instead.")
4006
4007 def base_Validate(*args, **kw):
4008 return PyPanel.Validate(*args, **kw)
4009 base_Validate = wx._deprecated(base_Validate,
4010 "Please use PyPanel.Validate instead.")
4011
4012 def base_AcceptsFocus(*args, **kw):
4013 return PyPanel.AcceptsFocus(*args, **kw)
4014 base_AcceptsFocus = wx._deprecated(base_AcceptsFocus,
4015 "Please use PyPanel.AcceptsFocus instead.")
4016
4017 def base_AcceptsFocusFromKeyboard(*args, **kw):
4018 return PyPanel.AcceptsFocusFromKeyboard(*args, **kw)
4019 base_AcceptsFocusFromKeyboard = wx._deprecated(base_AcceptsFocusFromKeyboard,
4020 "Please use PyPanel.AcceptsFocusFromKeyboard instead.")
4021
4022 def base_GetMaxSize(*args, **kw):
4023 return PyPanel.GetMaxSize(*args, **kw)
4024 base_GetMaxSize = wx._deprecated(base_GetMaxSize,
4025 "Please use PyPanel.GetMaxSize instead.")
4026
4027 def base_AddChild(*args, **kw):
4028 return PyPanel.AddChild(*args, **kw)
4029 base_AddChild = wx._deprecated(base_AddChild,
4030 "Please use PyPanel.AddChild instead.")
4031
4032 def base_RemoveChild(*args, **kw):
4033 return PyPanel.RemoveChild(*args, **kw)
4034 base_RemoveChild = wx._deprecated(base_RemoveChild,
4035 "Please use PyPanel.RemoveChild instead.")
4036
4037 def base_ShouldInheritColours(*args, **kw):
4038 return PyPanel.ShouldInheritColours(*args, **kw)
4039 base_ShouldInheritColours = wx._deprecated(base_ShouldInheritColours,
4040 "Please use PyPanel.ShouldInheritColours instead.")
4041
4042 def base_GetDefaultAttributes(*args, **kw):
4043 return PyPanel.GetDefaultAttributes(*args, **kw)
4044 base_GetDefaultAttributes = wx._deprecated(base_GetDefaultAttributes,
4045 "Please use PyPanel.GetDefaultAttributes instead.")
4046
4047 def base_OnInternalIdle(*args, **kw):
4048 return PyPanel.OnInternalIdle(*args, **kw)
4049 base_OnInternalIdle = wx._deprecated(base_OnInternalIdle,
4050 "Please use PyPanel.OnInternalIdle instead.")
4051
4052
4053 class PyPanelPtr(PyPanel):
4054 def __init__(self, this):
4055 self.this = this
4056 if not hasattr(self,"thisown"): self.thisown = 0
4057 self.__class__ = PyPanel
4058 _windows_.PyPanel_swigregister(PyPanelPtr)
4059
4060 def PrePyPanel(*args, **kwargs):
4061 """PrePyPanel() -> PyPanel"""
4062 val = _windows_.new_PrePyPanel(*args, **kwargs)
4063 val.thisown = 1
4064 return val
4065
4066 class PyScrolledWindow(ScrolledWindow):
4067 """Proxy of C++ PyScrolledWindow class"""
4068 def __repr__(self):
4069 return "<%s.%s; proxy of C++ wxPyScrolledWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
4070 def __init__(self, *args, **kwargs):
4071 """
4072 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
4073 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyScrolledWindow
4074 """
4075 newobj = _windows_.new_PyScrolledWindow(*args, **kwargs)
4076 self.this = newobj.this
4077 self.thisown = 1
4078 del newobj.thisown
4079 self._setOORInfo(self); self._setCallbackInfo(self, PyScrolledWindow)
4080
4081 def _setCallbackInfo(*args, **kwargs):
4082 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4083 return _windows_.PyScrolledWindow__setCallbackInfo(*args, **kwargs)
4084
4085 def SetBestSize(*args, **kwargs):
4086 """SetBestSize(self, Size size)"""
4087 return _windows_.PyScrolledWindow_SetBestSize(*args, **kwargs)
4088
4089 def DoEraseBackground(*args, **kwargs):
4090 """DoEraseBackground(self, DC dc) -> bool"""
4091 return _windows_.PyScrolledWindow_DoEraseBackground(*args, **kwargs)
4092
4093 def DoMoveWindow(*args, **kwargs):
4094 """DoMoveWindow(self, int x, int y, int width, int height)"""
4095 return _windows_.PyScrolledWindow_DoMoveWindow(*args, **kwargs)
4096
4097 def DoSetSize(*args, **kwargs):
4098 """DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
4099 return _windows_.PyScrolledWindow_DoSetSize(*args, **kwargs)
4100
4101 def DoSetClientSize(*args, **kwargs):
4102 """DoSetClientSize(self, int width, int height)"""
4103 return _windows_.PyScrolledWindow_DoSetClientSize(*args, **kwargs)
4104
4105 def DoSetVirtualSize(*args, **kwargs):
4106 """DoSetVirtualSize(self, int x, int y)"""
4107 return _windows_.PyScrolledWindow_DoSetVirtualSize(*args, **kwargs)
4108
4109 def DoGetSize(*args, **kwargs):
4110 """DoGetSize() -> (width, height)"""
4111 return _windows_.PyScrolledWindow_DoGetSize(*args, **kwargs)
4112
4113 def DoGetClientSize(*args, **kwargs):
4114 """DoGetClientSize() -> (width, height)"""
4115 return _windows_.PyScrolledWindow_DoGetClientSize(*args, **kwargs)
4116
4117 def DoGetPosition(*args, **kwargs):
4118 """DoGetPosition() -> (x,y)"""
4119 return _windows_.PyScrolledWindow_DoGetPosition(*args, **kwargs)
4120
4121 def DoGetVirtualSize(*args, **kwargs):
4122 """DoGetVirtualSize(self) -> Size"""
4123 return _windows_.PyScrolledWindow_DoGetVirtualSize(*args, **kwargs)
4124
4125 def DoGetBestSize(*args, **kwargs):
4126 """DoGetBestSize(self) -> Size"""
4127 return _windows_.PyScrolledWindow_DoGetBestSize(*args, **kwargs)
4128
4129 def InitDialog(*args, **kwargs):
4130 """
4131 InitDialog(self)
4132
4133 Sends an EVT_INIT_DIALOG event, whose handler usually transfers data
4134 to the dialog via validators.
4135 """
4136 return _windows_.PyScrolledWindow_InitDialog(*args, **kwargs)
4137
4138 def TransferDataToWindow(*args, **kwargs):
4139 """
4140 TransferDataToWindow(self) -> bool
4141
4142 Transfers values to child controls from data areas specified by their
4143 validators. If the window has wx.WS_EX_VALIDATE_RECURSIVELY extra
4144 style flag set, the method will also call TransferDataToWindow() of
4145 all child windows.
4146 """
4147 return _windows_.PyScrolledWindow_TransferDataToWindow(*args, **kwargs)
4148
4149 def TransferDataFromWindow(*args, **kwargs):
4150 """
4151 TransferDataFromWindow(self) -> bool
4152
4153 Transfers values from child controls to data areas specified by their
4154 validators. Returns false if a transfer failed. If the window has
4155 wx.WS_EX_VALIDATE_RECURSIVELY extra style flag set, the method will
4156 also call TransferDataFromWindow() of all child windows.
4157 """
4158 return _windows_.PyScrolledWindow_TransferDataFromWindow(*args, **kwargs)
4159
4160 def Validate(*args, **kwargs):
4161 """
4162 Validate(self) -> bool
4163
4164 Validates the current values of the child controls using their
4165 validators. If the window has wx.WS_EX_VALIDATE_RECURSIVELY extra
4166 style flag set, the method will also call Validate() of all child
4167 windows. Returns false if any of the validations failed.
4168 """
4169 return _windows_.PyScrolledWindow_Validate(*args, **kwargs)
4170
4171 def AcceptsFocus(*args, **kwargs):
4172 """
4173 AcceptsFocus(self) -> bool
4174
4175 Can this window have focus?
4176 """
4177 return _windows_.PyScrolledWindow_AcceptsFocus(*args, **kwargs)
4178
4179 def AcceptsFocusFromKeyboard(*args, **kwargs):
4180 """
4181 AcceptsFocusFromKeyboard(self) -> bool
4182
4183 Can this window be given focus by keyboard navigation? if not, the
4184 only way to give it focus (provided it accepts it at all) is to click
4185 it.
4186 """
4187 return _windows_.PyScrolledWindow_AcceptsFocusFromKeyboard(*args, **kwargs)
4188
4189 def GetMaxSize(*args, **kwargs):
4190 """GetMaxSize(self) -> Size"""
4191 return _windows_.PyScrolledWindow_GetMaxSize(*args, **kwargs)
4192
4193 def AddChild(*args, **kwargs):
4194 """
4195 AddChild(self, Window child)
4196
4197 Adds a child window. This is called automatically by window creation
4198 functions so should not be required by the application programmer.
4199 """
4200 return _windows_.PyScrolledWindow_AddChild(*args, **kwargs)
4201
4202 def RemoveChild(*args, **kwargs):
4203 """
4204 RemoveChild(self, Window child)
4205
4206 Removes a child window. This is called automatically by window
4207 deletion functions so should not be required by the application
4208 programmer.
4209 """
4210 return _windows_.PyScrolledWindow_RemoveChild(*args, **kwargs)
4211
4212 def ShouldInheritColours(*args, **kwargs):
4213 """
4214 ShouldInheritColours(self) -> bool
4215
4216 Return true from here to allow the colours of this window to be
4217 changed by InheritAttributes, returning false forbids inheriting them
4218 from the parent window.
4219
4220 The base class version returns false, but this method is overridden in
4221 wxControl where it returns true.
4222 """
4223 return _windows_.PyScrolledWindow_ShouldInheritColours(*args, **kwargs)
4224
4225 def GetDefaultAttributes(*args, **kwargs):
4226 """GetDefaultAttributes(self) -> VisualAttributes"""
4227 return _windows_.PyScrolledWindow_GetDefaultAttributes(*args, **kwargs)
4228
4229 def OnInternalIdle(*args, **kwargs):
4230 """OnInternalIdle(self)"""
4231 return _windows_.PyScrolledWindow_OnInternalIdle(*args, **kwargs)
4232
4233 def base_DoMoveWindow(*args, **kw):
4234 return PyScrolledWindow.DoMoveWindow(*args, **kw)
4235 base_DoMoveWindow = wx._deprecated(base_DoMoveWindow,
4236 "Please use PyScrolledWindow.DoMoveWindow instead.")
4237
4238 def base_DoSetSize(*args, **kw):
4239 return PyScrolledWindow.DoSetSize(*args, **kw)
4240 base_DoSetSize = wx._deprecated(base_DoSetSize,
4241 "Please use PyScrolledWindow.DoSetSize instead.")
4242
4243 def base_DoSetClientSize(*args, **kw):
4244 return PyScrolledWindow.DoSetClientSize(*args, **kw)
4245 base_DoSetClientSize = wx._deprecated(base_DoSetClientSize,
4246 "Please use PyScrolledWindow.DoSetClientSize instead.")
4247
4248 def base_DoSetVirtualSize(*args, **kw):
4249 return PyScrolledWindow.DoSetVirtualSize(*args, **kw)
4250 base_DoSetVirtualSize = wx._deprecated(base_DoSetVirtualSize,
4251 "Please use PyScrolledWindow.DoSetVirtualSize instead.")
4252
4253 def base_DoGetSize(*args, **kw):
4254 return PyScrolledWindow.DoGetSize(*args, **kw)
4255 base_DoGetSize = wx._deprecated(base_DoGetSize,
4256 "Please use PyScrolledWindow.DoGetSize instead.")
4257
4258 def base_DoGetClientSize(*args, **kw):
4259 return PyScrolledWindow.DoGetClientSize(*args, **kw)
4260 base_DoGetClientSize = wx._deprecated(base_DoGetClientSize,
4261 "Please use PyScrolledWindow.DoGetClientSize instead.")
4262
4263 def base_DoGetPosition(*args, **kw):
4264 return PyScrolledWindow.DoGetPosition(*args, **kw)
4265 base_DoGetPosition = wx._deprecated(base_DoGetPosition,
4266 "Please use PyScrolledWindow.DoGetPosition instead.")
4267
4268 def base_DoGetVirtualSize(*args, **kw):
4269 return PyScrolledWindow.DoGetVirtualSize(*args, **kw)
4270 base_DoGetVirtualSize = wx._deprecated(base_DoGetVirtualSize,
4271 "Please use PyScrolledWindow.DoGetVirtualSize instead.")
4272
4273 def base_DoGetBestSize(*args, **kw):
4274 return PyScrolledWindow.DoGetBestSize(*args, **kw)
4275 base_DoGetBestSize = wx._deprecated(base_DoGetBestSize,
4276 "Please use PyScrolledWindow.DoGetBestSize instead.")
4277
4278 def base_InitDialog(*args, **kw):
4279 return PyScrolledWindow.InitDialog(*args, **kw)
4280 base_InitDialog = wx._deprecated(base_InitDialog,
4281 "Please use PyScrolledWindow.InitDialog instead.")
4282
4283 def base_TransferDataToWindow(*args, **kw):
4284 return PyScrolledWindow.TransferDataToWindow(*args, **kw)
4285 base_TransferDataToWindow = wx._deprecated(base_TransferDataToWindow,
4286 "Please use PyScrolledWindow.TransferDataToWindow instead.")
4287
4288 def base_TransferDataFromWindow(*args, **kw):
4289 return PyScrolledWindow.TransferDataFromWindow(*args, **kw)
4290 base_TransferDataFromWindow = wx._deprecated(base_TransferDataFromWindow,
4291 "Please use PyScrolledWindow.TransferDataFromWindow instead.")
4292
4293 def base_Validate(*args, **kw):
4294 return PyScrolledWindow.Validate(*args, **kw)
4295 base_Validate = wx._deprecated(base_Validate,
4296 "Please use PyScrolledWindow.Validate instead.")
4297
4298 def base_AcceptsFocus(*args, **kw):
4299 return PyScrolledWindow.AcceptsFocus(*args, **kw)
4300 base_AcceptsFocus = wx._deprecated(base_AcceptsFocus,
4301 "Please use PyScrolledWindow.AcceptsFocus instead.")
4302
4303 def base_AcceptsFocusFromKeyboard(*args, **kw):
4304 return PyScrolledWindow.AcceptsFocusFromKeyboard(*args, **kw)
4305 base_AcceptsFocusFromKeyboard = wx._deprecated(base_AcceptsFocusFromKeyboard,
4306 "Please use PyScrolledWindow.AcceptsFocusFromKeyboard instead.")
4307
4308 def base_GetMaxSize(*args, **kw):
4309 return PyScrolledWindow.GetMaxSize(*args, **kw)
4310 base_GetMaxSize = wx._deprecated(base_GetMaxSize,
4311 "Please use PyScrolledWindow.GetMaxSize instead.")
4312
4313 def base_AddChild(*args, **kw):
4314 return PyScrolledWindow.AddChild(*args, **kw)
4315 base_AddChild = wx._deprecated(base_AddChild,
4316 "Please use PyScrolledWindow.AddChild instead.")
4317
4318 def base_RemoveChild(*args, **kw):
4319 return PyScrolledWindow.RemoveChild(*args, **kw)
4320 base_RemoveChild = wx._deprecated(base_RemoveChild,
4321 "Please use PyScrolledWindow.RemoveChild instead.")
4322
4323 def base_ShouldInheritColours(*args, **kw):
4324 return PyScrolledWindow.ShouldInheritColours(*args, **kw)
4325 base_ShouldInheritColours = wx._deprecated(base_ShouldInheritColours,
4326 "Please use PyScrolledWindow.ShouldInheritColours instead.")
4327
4328 def base_GetDefaultAttributes(*args, **kw):
4329 return PyScrolledWindow.GetDefaultAttributes(*args, **kw)
4330 base_GetDefaultAttributes = wx._deprecated(base_GetDefaultAttributes,
4331 "Please use PyScrolledWindow.GetDefaultAttributes instead.")
4332
4333 def base_OnInternalIdle(*args, **kw):
4334 return PyScrolledWindow.OnInternalIdle(*args, **kw)
4335 base_OnInternalIdle = wx._deprecated(base_OnInternalIdle,
4336 "Please use PyScrolledWindow.OnInternalIdle instead.")
4337
4338
4339 class PyScrolledWindowPtr(PyScrolledWindow):
4340 def __init__(self, this):
4341 self.this = this
4342 if not hasattr(self,"thisown"): self.thisown = 0
4343 self.__class__ = PyScrolledWindow
4344 _windows_.PyScrolledWindow_swigregister(PyScrolledWindowPtr)
4345
4346 def PrePyScrolledWindow(*args, **kwargs):
4347 """PrePyScrolledWindow() -> PyScrolledWindow"""
4348 val = _windows_.new_PrePyScrolledWindow(*args, **kwargs)
4349 val.thisown = 1
4350 return val
4351
4352 #---------------------------------------------------------------------------
4353
4354 PRINT_MODE_NONE = _windows_.PRINT_MODE_NONE
4355 PRINT_MODE_PREVIEW = _windows_.PRINT_MODE_PREVIEW
4356 PRINT_MODE_FILE = _windows_.PRINT_MODE_FILE
4357 PRINT_MODE_PRINTER = _windows_.PRINT_MODE_PRINTER
4358 PRINT_MODE_STREAM = _windows_.PRINT_MODE_STREAM
4359 PRINTBIN_DEFAULT = _windows_.PRINTBIN_DEFAULT
4360 PRINTBIN_ONLYONE = _windows_.PRINTBIN_ONLYONE
4361 PRINTBIN_LOWER = _windows_.PRINTBIN_LOWER
4362 PRINTBIN_MIDDLE = _windows_.PRINTBIN_MIDDLE
4363 PRINTBIN_MANUAL = _windows_.PRINTBIN_MANUAL
4364 PRINTBIN_ENVELOPE = _windows_.PRINTBIN_ENVELOPE
4365 PRINTBIN_ENVMANUAL = _windows_.PRINTBIN_ENVMANUAL
4366 PRINTBIN_AUTO = _windows_.PRINTBIN_AUTO
4367 PRINTBIN_TRACTOR = _windows_.PRINTBIN_TRACTOR
4368 PRINTBIN_SMALLFMT = _windows_.PRINTBIN_SMALLFMT
4369 PRINTBIN_LARGEFMT = _windows_.PRINTBIN_LARGEFMT
4370 PRINTBIN_LARGECAPACITY = _windows_.PRINTBIN_LARGECAPACITY
4371 PRINTBIN_CASSETTE = _windows_.PRINTBIN_CASSETTE
4372 PRINTBIN_FORMSOURCE = _windows_.PRINTBIN_FORMSOURCE
4373 PRINTBIN_USER = _windows_.PRINTBIN_USER
4374 class PrintData(_core.Object):
4375 """Proxy of C++ PrintData class"""
4376 def __repr__(self):
4377 return "<%s.%s; proxy of C++ wxPrintData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
4378 def __init__(self, *args):
4379 """
4380 __init__(self) -> PrintData
4381 __init__(self, PrintData data) -> PrintData
4382 """
4383 newobj = _windows_.new_PrintData(*args)
4384 self.this = newobj.this
4385 self.thisown = 1
4386 del newobj.thisown
4387 def __del__(self, destroy=_windows_.delete_PrintData):
4388 """__del__(self)"""
4389 try:
4390 if self.thisown: destroy(self)
4391 except: pass
4392
4393 def GetNoCopies(*args, **kwargs):
4394 """GetNoCopies(self) -> int"""
4395 return _windows_.PrintData_GetNoCopies(*args, **kwargs)
4396
4397 def GetCollate(*args, **kwargs):
4398 """GetCollate(self) -> bool"""
4399 return _windows_.PrintData_GetCollate(*args, **kwargs)
4400
4401 def GetOrientation(*args, **kwargs):
4402 """GetOrientation(self) -> int"""
4403 return _windows_.PrintData_GetOrientation(*args, **kwargs)
4404
4405 def Ok(*args, **kwargs):
4406 """Ok(self) -> bool"""
4407 return _windows_.PrintData_Ok(*args, **kwargs)
4408
4409 def GetPrinterName(*args, **kwargs):
4410 """GetPrinterName(self) -> String"""
4411 return _windows_.PrintData_GetPrinterName(*args, **kwargs)
4412
4413 def GetColour(*args, **kwargs):
4414 """GetColour(self) -> bool"""
4415 return _windows_.PrintData_GetColour(*args, **kwargs)
4416
4417 def GetDuplex(*args, **kwargs):
4418 """GetDuplex(self) -> int"""
4419 return _windows_.PrintData_GetDuplex(*args, **kwargs)
4420
4421 def GetPaperId(*args, **kwargs):
4422 """GetPaperId(self) -> int"""
4423 return _windows_.PrintData_GetPaperId(*args, **kwargs)
4424
4425 def GetPaperSize(*args, **kwargs):
4426 """GetPaperSize(self) -> Size"""
4427 return _windows_.PrintData_GetPaperSize(*args, **kwargs)
4428
4429 def GetQuality(*args, **kwargs):
4430 """GetQuality(self) -> int"""
4431 return _windows_.PrintData_GetQuality(*args, **kwargs)
4432
4433 def GetBin(*args, **kwargs):
4434 """GetBin(self) -> int"""
4435 return _windows_.PrintData_GetBin(*args, **kwargs)
4436
4437 def GetPrintMode(*args, **kwargs):
4438 """GetPrintMode(self) -> int"""
4439 return _windows_.PrintData_GetPrintMode(*args, **kwargs)
4440
4441 def SetNoCopies(*args, **kwargs):
4442 """SetNoCopies(self, int v)"""
4443 return _windows_.PrintData_SetNoCopies(*args, **kwargs)
4444
4445 def SetCollate(*args, **kwargs):
4446 """SetCollate(self, bool flag)"""
4447 return _windows_.PrintData_SetCollate(*args, **kwargs)
4448
4449 def SetOrientation(*args, **kwargs):
4450 """SetOrientation(self, int orient)"""
4451 return _windows_.PrintData_SetOrientation(*args, **kwargs)
4452
4453 def SetPrinterName(*args, **kwargs):
4454 """SetPrinterName(self, String name)"""
4455 return _windows_.PrintData_SetPrinterName(*args, **kwargs)
4456
4457 def SetColour(*args, **kwargs):
4458 """SetColour(self, bool colour)"""
4459 return _windows_.PrintData_SetColour(*args, **kwargs)
4460
4461 def SetDuplex(*args, **kwargs):
4462 """SetDuplex(self, int duplex)"""
4463 return _windows_.PrintData_SetDuplex(*args, **kwargs)
4464
4465 def SetPaperId(*args, **kwargs):
4466 """SetPaperId(self, int sizeId)"""
4467 return _windows_.PrintData_SetPaperId(*args, **kwargs)
4468
4469 def SetPaperSize(*args, **kwargs):
4470 """SetPaperSize(self, Size sz)"""
4471 return _windows_.PrintData_SetPaperSize(*args, **kwargs)
4472
4473 def SetQuality(*args, **kwargs):
4474 """SetQuality(self, int quality)"""
4475 return _windows_.PrintData_SetQuality(*args, **kwargs)
4476
4477 def SetBin(*args, **kwargs):
4478 """SetBin(self, int bin)"""
4479 return _windows_.PrintData_SetBin(*args, **kwargs)
4480
4481 def SetPrintMode(*args, **kwargs):
4482 """SetPrintMode(self, int printMode)"""
4483 return _windows_.PrintData_SetPrintMode(*args, **kwargs)
4484
4485 def GetFilename(*args, **kwargs):
4486 """GetFilename(self) -> String"""
4487 return _windows_.PrintData_GetFilename(*args, **kwargs)
4488
4489 def SetFilename(*args, **kwargs):
4490 """SetFilename(self, String filename)"""
4491 return _windows_.PrintData_SetFilename(*args, **kwargs)
4492
4493 def __nonzero__(self): return self.Ok()
4494 def GetPrivData(*args, **kwargs):
4495 """GetPrivData(self) -> PyObject"""
4496 return _windows_.PrintData_GetPrivData(*args, **kwargs)
4497
4498 def SetPrivData(*args, **kwargs):
4499 """SetPrivData(self, PyObject data)"""
4500 return _windows_.PrintData_SetPrivData(*args, **kwargs)
4501
4502
4503 class PrintDataPtr(PrintData):
4504 def __init__(self, this):
4505 self.this = this
4506 if not hasattr(self,"thisown"): self.thisown = 0
4507 self.__class__ = PrintData
4508 _windows_.PrintData_swigregister(PrintDataPtr)
4509 PrintoutTitleStr = cvar.PrintoutTitleStr
4510 PreviewCanvasNameStr = cvar.PreviewCanvasNameStr
4511
4512 class PageSetupDialogData(_core.Object):
4513 """Proxy of C++ PageSetupDialogData class"""
4514 def __repr__(self):
4515 return "<%s.%s; proxy of C++ wxPageSetupDialogData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
4516 def __init__(self, *args):
4517 """
4518 __init__(self) -> PageSetupDialogData
4519 __init__(self, PageSetupDialogData data) -> PageSetupDialogData
4520 __init__(self, PrintData data) -> PageSetupDialogData
4521 """
4522 newobj = _windows_.new_PageSetupDialogData(*args)
4523 self.this = newobj.this
4524 self.thisown = 1
4525 del newobj.thisown
4526 def __del__(self, destroy=_windows_.delete_PageSetupDialogData):
4527 """__del__(self)"""
4528 try:
4529 if self.thisown: destroy(self)
4530 except: pass
4531
4532 def EnableHelp(*args, **kwargs):
4533 """EnableHelp(self, bool flag)"""
4534 return _windows_.PageSetupDialogData_EnableHelp(*args, **kwargs)
4535
4536 def EnableMargins(*args, **kwargs):
4537 """EnableMargins(self, bool flag)"""
4538 return _windows_.PageSetupDialogData_EnableMargins(*args, **kwargs)
4539
4540 def EnableOrientation(*args, **kwargs):
4541 """EnableOrientation(self, bool flag)"""
4542 return _windows_.PageSetupDialogData_EnableOrientation(*args, **kwargs)
4543
4544 def EnablePaper(*args, **kwargs):
4545 """EnablePaper(self, bool flag)"""
4546 return _windows_.PageSetupDialogData_EnablePaper(*args, **kwargs)
4547
4548 def EnablePrinter(*args, **kwargs):
4549 """EnablePrinter(self, bool flag)"""
4550 return _windows_.PageSetupDialogData_EnablePrinter(*args, **kwargs)
4551
4552 def GetDefaultMinMargins(*args, **kwargs):
4553 """GetDefaultMinMargins(self) -> bool"""
4554 return _windows_.PageSetupDialogData_GetDefaultMinMargins(*args, **kwargs)
4555
4556 def GetEnableMargins(*args, **kwargs):
4557 """GetEnableMargins(self) -> bool"""
4558 return _windows_.PageSetupDialogData_GetEnableMargins(*args, **kwargs)
4559
4560 def GetEnableOrientation(*args, **kwargs):
4561 """GetEnableOrientation(self) -> bool"""
4562 return _windows_.PageSetupDialogData_GetEnableOrientation(*args, **kwargs)
4563
4564 def GetEnablePaper(*args, **kwargs):
4565 """GetEnablePaper(self) -> bool"""
4566 return _windows_.PageSetupDialogData_GetEnablePaper(*args, **kwargs)
4567
4568 def GetEnablePrinter(*args, **kwargs):
4569 """GetEnablePrinter(self) -> bool"""
4570 return _windows_.PageSetupDialogData_GetEnablePrinter(*args, **kwargs)
4571
4572 def GetEnableHelp(*args, **kwargs):
4573 """GetEnableHelp(self) -> bool"""
4574 return _windows_.PageSetupDialogData_GetEnableHelp(*args, **kwargs)
4575
4576 def GetDefaultInfo(*args, **kwargs):
4577 """GetDefaultInfo(self) -> bool"""
4578 return _windows_.PageSetupDialogData_GetDefaultInfo(*args, **kwargs)
4579
4580 def GetMarginTopLeft(*args, **kwargs):
4581 """GetMarginTopLeft(self) -> Point"""
4582 return _windows_.PageSetupDialogData_GetMarginTopLeft(*args, **kwargs)
4583
4584 def GetMarginBottomRight(*args, **kwargs):
4585 """GetMarginBottomRight(self) -> Point"""
4586 return _windows_.PageSetupDialogData_GetMarginBottomRight(*args, **kwargs)
4587
4588 def GetMinMarginTopLeft(*args, **kwargs):
4589 """GetMinMarginTopLeft(self) -> Point"""
4590 return _windows_.PageSetupDialogData_GetMinMarginTopLeft(*args, **kwargs)
4591
4592 def GetMinMarginBottomRight(*args, **kwargs):
4593 """GetMinMarginBottomRight(self) -> Point"""
4594 return _windows_.PageSetupDialogData_GetMinMarginBottomRight(*args, **kwargs)
4595
4596 def GetPaperId(*args, **kwargs):
4597 """GetPaperId(self) -> int"""
4598 return _windows_.PageSetupDialogData_GetPaperId(*args, **kwargs)
4599
4600 def GetPaperSize(*args, **kwargs):
4601 """GetPaperSize(self) -> Size"""
4602 return _windows_.PageSetupDialogData_GetPaperSize(*args, **kwargs)
4603
4604 def GetPrintData(*args, **kwargs):
4605 """GetPrintData(self) -> PrintData"""
4606 return _windows_.PageSetupDialogData_GetPrintData(*args, **kwargs)
4607
4608 def Ok(*args, **kwargs):
4609 """Ok(self) -> bool"""
4610 return _windows_.PageSetupDialogData_Ok(*args, **kwargs)
4611
4612 def SetDefaultInfo(*args, **kwargs):
4613 """SetDefaultInfo(self, bool flag)"""
4614 return _windows_.PageSetupDialogData_SetDefaultInfo(*args, **kwargs)
4615
4616 def SetDefaultMinMargins(*args, **kwargs):
4617 """SetDefaultMinMargins(self, bool flag)"""
4618 return _windows_.PageSetupDialogData_SetDefaultMinMargins(*args, **kwargs)
4619
4620 def SetMarginTopLeft(*args, **kwargs):
4621 """SetMarginTopLeft(self, Point pt)"""
4622 return _windows_.PageSetupDialogData_SetMarginTopLeft(*args, **kwargs)
4623
4624 def SetMarginBottomRight(*args, **kwargs):
4625 """SetMarginBottomRight(self, Point pt)"""
4626 return _windows_.PageSetupDialogData_SetMarginBottomRight(*args, **kwargs)
4627
4628 def SetMinMarginTopLeft(*args, **kwargs):
4629 """SetMinMarginTopLeft(self, Point pt)"""
4630 return _windows_.PageSetupDialogData_SetMinMarginTopLeft(*args, **kwargs)
4631
4632 def SetMinMarginBottomRight(*args, **kwargs):
4633 """SetMinMarginBottomRight(self, Point pt)"""
4634 return _windows_.PageSetupDialogData_SetMinMarginBottomRight(*args, **kwargs)
4635
4636 def SetPaperId(*args, **kwargs):
4637 """SetPaperId(self, int id)"""
4638 return _windows_.PageSetupDialogData_SetPaperId(*args, **kwargs)
4639
4640 def SetPaperSize(*args, **kwargs):
4641 """SetPaperSize(self, Size size)"""
4642 return _windows_.PageSetupDialogData_SetPaperSize(*args, **kwargs)
4643
4644 def SetPrintData(*args, **kwargs):
4645 """SetPrintData(self, PrintData printData)"""
4646 return _windows_.PageSetupDialogData_SetPrintData(*args, **kwargs)
4647
4648 def CalculateIdFromPaperSize(*args, **kwargs):
4649 """CalculateIdFromPaperSize(self)"""
4650 return _windows_.PageSetupDialogData_CalculateIdFromPaperSize(*args, **kwargs)
4651
4652 def CalculatePaperSizeFromId(*args, **kwargs):
4653 """CalculatePaperSizeFromId(self)"""
4654 return _windows_.PageSetupDialogData_CalculatePaperSizeFromId(*args, **kwargs)
4655
4656 def __nonzero__(self): return self.Ok()
4657
4658 class PageSetupDialogDataPtr(PageSetupDialogData):
4659 def __init__(self, this):
4660 self.this = this
4661 if not hasattr(self,"thisown"): self.thisown = 0
4662 self.__class__ = PageSetupDialogData
4663 _windows_.PageSetupDialogData_swigregister(PageSetupDialogDataPtr)
4664
4665 class PageSetupDialog(_core.Object):
4666 """Proxy of C++ PageSetupDialog class"""
4667 def __repr__(self):
4668 return "<%s.%s; proxy of C++ wxPageSetupDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
4669 def __init__(self, *args, **kwargs):
4670 """__init__(self, Window parent, PageSetupDialogData data=None) -> PageSetupDialog"""
4671 newobj = _windows_.new_PageSetupDialog(*args, **kwargs)
4672 self.this = newobj.this
4673 self.thisown = 1
4674 del newobj.thisown
4675 def GetPageSetupData(*args, **kwargs):
4676 """GetPageSetupData(self) -> PageSetupDialogData"""
4677 return _windows_.PageSetupDialog_GetPageSetupData(*args, **kwargs)
4678
4679 def GetPageSetupDialogData(*args, **kwargs):
4680 """GetPageSetupDialogData(self) -> PageSetupDialogData"""
4681 return _windows_.PageSetupDialog_GetPageSetupDialogData(*args, **kwargs)
4682
4683 def ShowModal(*args, **kwargs):
4684 """ShowModal(self) -> int"""
4685 return _windows_.PageSetupDialog_ShowModal(*args, **kwargs)
4686
4687
4688 class PageSetupDialogPtr(PageSetupDialog):
4689 def __init__(self, this):
4690 self.this = this
4691 if not hasattr(self,"thisown"): self.thisown = 0
4692 self.__class__ = PageSetupDialog
4693 _windows_.PageSetupDialog_swigregister(PageSetupDialogPtr)
4694
4695 class PrintDialogData(_core.Object):
4696 """Proxy of C++ PrintDialogData class"""
4697 def __repr__(self):
4698 return "<%s.%s; proxy of C++ wxPrintDialogData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
4699 def __init__(self, *args):
4700 """
4701 __init__(self) -> PrintDialogData
4702 __init__(self, PrintData printData) -> PrintDialogData
4703 __init__(self, PrintDialogData printData) -> PrintDialogData
4704 """
4705 newobj = _windows_.new_PrintDialogData(*args)
4706 self.this = newobj.this
4707 self.thisown = 1
4708 del newobj.thisown
4709 def __del__(self, destroy=_windows_.delete_PrintDialogData):
4710 """__del__(self)"""
4711 try:
4712 if self.thisown: destroy(self)
4713 except: pass
4714
4715 def GetFromPage(*args, **kwargs):
4716 """GetFromPage(self) -> int"""
4717 return _windows_.PrintDialogData_GetFromPage(*args, **kwargs)
4718
4719 def GetToPage(*args, **kwargs):
4720 """GetToPage(self) -> int"""
4721 return _windows_.PrintDialogData_GetToPage(*args, **kwargs)
4722
4723 def GetMinPage(*args, **kwargs):
4724 """GetMinPage(self) -> int"""
4725 return _windows_.PrintDialogData_GetMinPage(*args, **kwargs)
4726
4727 def GetMaxPage(*args, **kwargs):
4728 """GetMaxPage(self) -> int"""
4729 return _windows_.PrintDialogData_GetMaxPage(*args, **kwargs)
4730
4731 def GetNoCopies(*args, **kwargs):
4732 """GetNoCopies(self) -> int"""
4733 return _windows_.PrintDialogData_GetNoCopies(*args, **kwargs)
4734
4735 def GetAllPages(*args, **kwargs):
4736 """GetAllPages(self) -> bool"""
4737 return _windows_.PrintDialogData_GetAllPages(*args, **kwargs)
4738
4739 def GetSelection(*args, **kwargs):
4740 """GetSelection(self) -> bool"""
4741 return _windows_.PrintDialogData_GetSelection(*args, **kwargs)
4742
4743 def GetCollate(*args, **kwargs):
4744 """GetCollate(self) -> bool"""
4745 return _windows_.PrintDialogData_GetCollate(*args, **kwargs)
4746
4747 def GetPrintToFile(*args, **kwargs):
4748 """GetPrintToFile(self) -> bool"""
4749 return _windows_.PrintDialogData_GetPrintToFile(*args, **kwargs)
4750
4751 def SetFromPage(*args, **kwargs):
4752 """SetFromPage(self, int v)"""
4753 return _windows_.PrintDialogData_SetFromPage(*args, **kwargs)
4754
4755 def SetToPage(*args, **kwargs):
4756 """SetToPage(self, int v)"""
4757 return _windows_.PrintDialogData_SetToPage(*args, **kwargs)
4758
4759 def SetMinPage(*args, **kwargs):
4760 """SetMinPage(self, int v)"""
4761 return _windows_.PrintDialogData_SetMinPage(*args, **kwargs)
4762
4763 def SetMaxPage(*args, **kwargs):
4764 """SetMaxPage(self, int v)"""
4765 return _windows_.PrintDialogData_SetMaxPage(*args, **kwargs)
4766
4767 def SetNoCopies(*args, **kwargs):
4768 """SetNoCopies(self, int v)"""
4769 return _windows_.PrintDialogData_SetNoCopies(*args, **kwargs)
4770
4771 def SetAllPages(*args, **kwargs):
4772 """SetAllPages(self, bool flag)"""
4773 return _windows_.PrintDialogData_SetAllPages(*args, **kwargs)
4774
4775 def SetSelection(*args, **kwargs):
4776 """SetSelection(self, bool flag)"""
4777 return _windows_.PrintDialogData_SetSelection(*args, **kwargs)
4778
4779 def SetCollate(*args, **kwargs):
4780 """SetCollate(self, bool flag)"""
4781 return _windows_.PrintDialogData_SetCollate(*args, **kwargs)
4782
4783 def SetPrintToFile(*args, **kwargs):
4784 """SetPrintToFile(self, bool flag)"""
4785 return _windows_.PrintDialogData_SetPrintToFile(*args, **kwargs)
4786
4787 def EnablePrintToFile(*args, **kwargs):
4788 """EnablePrintToFile(self, bool flag)"""
4789 return _windows_.PrintDialogData_EnablePrintToFile(*args, **kwargs)
4790
4791 def EnableSelection(*args, **kwargs):
4792 """EnableSelection(self, bool flag)"""
4793 return _windows_.PrintDialogData_EnableSelection(*args, **kwargs)
4794
4795 def EnablePageNumbers(*args, **kwargs):
4796 """EnablePageNumbers(self, bool flag)"""
4797 return _windows_.PrintDialogData_EnablePageNumbers(*args, **kwargs)
4798
4799 def EnableHelp(*args, **kwargs):
4800 """EnableHelp(self, bool flag)"""
4801 return _windows_.PrintDialogData_EnableHelp(*args, **kwargs)
4802
4803 def GetEnablePrintToFile(*args, **kwargs):
4804 """GetEnablePrintToFile(self) -> bool"""
4805 return _windows_.PrintDialogData_GetEnablePrintToFile(*args, **kwargs)
4806
4807 def GetEnableSelection(*args, **kwargs):
4808 """GetEnableSelection(self) -> bool"""
4809 return _windows_.PrintDialogData_GetEnableSelection(*args, **kwargs)
4810
4811 def GetEnablePageNumbers(*args, **kwargs):
4812 """GetEnablePageNumbers(self) -> bool"""
4813 return _windows_.PrintDialogData_GetEnablePageNumbers(*args, **kwargs)
4814
4815 def GetEnableHelp(*args, **kwargs):
4816 """GetEnableHelp(self) -> bool"""
4817 return _windows_.PrintDialogData_GetEnableHelp(*args, **kwargs)
4818
4819 def Ok(*args, **kwargs):
4820 """Ok(self) -> bool"""
4821 return _windows_.PrintDialogData_Ok(*args, **kwargs)
4822
4823 def GetPrintData(*args, **kwargs):
4824 """GetPrintData(self) -> PrintData"""
4825 return _windows_.PrintDialogData_GetPrintData(*args, **kwargs)
4826
4827 def SetPrintData(*args, **kwargs):
4828 """SetPrintData(self, PrintData printData)"""
4829 return _windows_.PrintDialogData_SetPrintData(*args, **kwargs)
4830
4831 def __nonzero__(self): return self.Ok()
4832
4833 class PrintDialogDataPtr(PrintDialogData):
4834 def __init__(self, this):
4835 self.this = this
4836 if not hasattr(self,"thisown"): self.thisown = 0
4837 self.__class__ = PrintDialogData
4838 _windows_.PrintDialogData_swigregister(PrintDialogDataPtr)
4839
4840 class PrintDialog(_core.Object):
4841 """Proxy of C++ PrintDialog class"""
4842 def __repr__(self):
4843 return "<%s.%s; proxy of C++ wxPrintDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
4844 def __init__(self, *args, **kwargs):
4845 """__init__(self, Window parent, PrintDialogData data=None) -> PrintDialog"""
4846 newobj = _windows_.new_PrintDialog(*args, **kwargs)
4847 self.this = newobj.this
4848 self.thisown = 1
4849 del newobj.thisown
4850 def ShowModal(*args, **kwargs):
4851 """ShowModal(self) -> int"""
4852 return _windows_.PrintDialog_ShowModal(*args, **kwargs)
4853
4854 def GetPrintDialogData(*args, **kwargs):
4855 """GetPrintDialogData(self) -> PrintDialogData"""
4856 return _windows_.PrintDialog_GetPrintDialogData(*args, **kwargs)
4857
4858 def GetPrintData(*args, **kwargs):
4859 """GetPrintData(self) -> PrintData"""
4860 return _windows_.PrintDialog_GetPrintData(*args, **kwargs)
4861
4862 def GetPrintDC(*args, **kwargs):
4863 """GetPrintDC(self) -> DC"""
4864 return _windows_.PrintDialog_GetPrintDC(*args, **kwargs)
4865
4866
4867 class PrintDialogPtr(PrintDialog):
4868 def __init__(self, this):
4869 self.this = this
4870 if not hasattr(self,"thisown"): self.thisown = 0
4871 self.__class__ = PrintDialog
4872 _windows_.PrintDialog_swigregister(PrintDialogPtr)
4873
4874 PRINTER_NO_ERROR = _windows_.PRINTER_NO_ERROR
4875 PRINTER_CANCELLED = _windows_.PRINTER_CANCELLED
4876 PRINTER_ERROR = _windows_.PRINTER_ERROR
4877 class Printer(_core.Object):
4878 """Proxy of C++ Printer class"""
4879 def __repr__(self):
4880 return "<%s.%s; proxy of C++ wxPrinter instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
4881 def __init__(self, *args, **kwargs):
4882 """__init__(self, PrintDialogData data=None) -> Printer"""
4883 newobj = _windows_.new_Printer(*args, **kwargs)
4884 self.this = newobj.this
4885 self.thisown = 1
4886 del newobj.thisown
4887 def __del__(self, destroy=_windows_.delete_Printer):
4888 """__del__(self)"""
4889 try:
4890 if self.thisown: destroy(self)
4891 except: pass
4892
4893 def CreateAbortWindow(*args, **kwargs):
4894 """CreateAbortWindow(self, Window parent, Printout printout) -> Window"""
4895 return _windows_.Printer_CreateAbortWindow(*args, **kwargs)
4896
4897 def ReportError(*args, **kwargs):
4898 """ReportError(self, Window parent, Printout printout, String message)"""
4899 return _windows_.Printer_ReportError(*args, **kwargs)
4900
4901 def Setup(*args, **kwargs):
4902 """Setup(self, Window parent) -> bool"""
4903 return _windows_.Printer_Setup(*args, **kwargs)
4904
4905 def Print(*args, **kwargs):
4906 """Print(self, Window parent, Printout printout, bool prompt=True) -> bool"""
4907 return _windows_.Printer_Print(*args, **kwargs)
4908
4909 def PrintDialog(*args, **kwargs):
4910 """PrintDialog(self, Window parent) -> DC"""
4911 return _windows_.Printer_PrintDialog(*args, **kwargs)
4912
4913 def GetPrintDialogData(*args, **kwargs):
4914 """GetPrintDialogData(self) -> PrintDialogData"""
4915 return _windows_.Printer_GetPrintDialogData(*args, **kwargs)
4916
4917 def GetAbort(*args, **kwargs):
4918 """GetAbort(self) -> bool"""
4919 return _windows_.Printer_GetAbort(*args, **kwargs)
4920
4921 def GetLastError(*args, **kwargs):
4922 """GetLastError() -> int"""
4923 return _windows_.Printer_GetLastError(*args, **kwargs)
4924
4925 GetLastError = staticmethod(GetLastError)
4926
4927 class PrinterPtr(Printer):
4928 def __init__(self, this):
4929 self.this = this
4930 if not hasattr(self,"thisown"): self.thisown = 0
4931 self.__class__ = Printer
4932 _windows_.Printer_swigregister(PrinterPtr)
4933
4934 def Printer_GetLastError(*args, **kwargs):
4935 """Printer_GetLastError() -> int"""
4936 return _windows_.Printer_GetLastError(*args, **kwargs)
4937
4938 class Printout(_core.Object):
4939 """Proxy of C++ Printout class"""
4940 def __repr__(self):
4941 return "<%s.%s; proxy of C++ wxPyPrintout instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
4942 def __init__(self, *args, **kwargs):
4943 """__init__(self, String title=PrintoutTitleStr) -> Printout"""
4944 newobj = _windows_.new_Printout(*args, **kwargs)
4945 self.this = newobj.this
4946 self.thisown = 1
4947 del newobj.thisown
4948 self._setCallbackInfo(self, Printout)
4949
4950 def _setCallbackInfo(*args, **kwargs):
4951 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4952 return _windows_.Printout__setCallbackInfo(*args, **kwargs)
4953
4954 def GetTitle(*args, **kwargs):
4955 """GetTitle(self) -> String"""
4956 return _windows_.Printout_GetTitle(*args, **kwargs)
4957
4958 def GetDC(*args, **kwargs):
4959 """GetDC(self) -> DC"""
4960 return _windows_.Printout_GetDC(*args, **kwargs)
4961
4962 def SetDC(*args, **kwargs):
4963 """SetDC(self, DC dc)"""
4964 return _windows_.Printout_SetDC(*args, **kwargs)
4965
4966 def SetPageSizePixels(*args, **kwargs):
4967 """SetPageSizePixels(self, int w, int h)"""
4968 return _windows_.Printout_SetPageSizePixels(*args, **kwargs)
4969
4970 def GetPageSizePixels(*args, **kwargs):
4971 """GetPageSizePixels() -> (w, h)"""
4972 return _windows_.Printout_GetPageSizePixels(*args, **kwargs)
4973
4974 def SetPageSizeMM(*args, **kwargs):
4975 """SetPageSizeMM(self, int w, int h)"""
4976 return _windows_.Printout_SetPageSizeMM(*args, **kwargs)
4977
4978 def GetPageSizeMM(*args, **kwargs):
4979 """GetPageSizeMM() -> (w, h)"""
4980 return _windows_.Printout_GetPageSizeMM(*args, **kwargs)
4981
4982 def SetPPIScreen(*args, **kwargs):
4983 """SetPPIScreen(self, int x, int y)"""
4984 return _windows_.Printout_SetPPIScreen(*args, **kwargs)
4985
4986 def GetPPIScreen(*args, **kwargs):
4987 """GetPPIScreen() -> (x,y)"""
4988 return _windows_.Printout_GetPPIScreen(*args, **kwargs)
4989
4990 def SetPPIPrinter(*args, **kwargs):
4991 """SetPPIPrinter(self, int x, int y)"""
4992 return _windows_.Printout_SetPPIPrinter(*args, **kwargs)
4993
4994 def GetPPIPrinter(*args, **kwargs):
4995 """GetPPIPrinter() -> (x,y)"""
4996 return _windows_.Printout_GetPPIPrinter(*args, **kwargs)
4997
4998 def IsPreview(*args, **kwargs):
4999 """IsPreview(self) -> bool"""
5000 return _windows_.Printout_IsPreview(*args, **kwargs)
5001
5002 def SetIsPreview(*args, **kwargs):
5003 """SetIsPreview(self, bool p)"""
5004 return _windows_.Printout_SetIsPreview(*args, **kwargs)
5005
5006 def OnBeginDocument(*args, **kwargs):
5007 """OnBeginDocument(self, int startPage, int endPage) -> bool"""
5008 return _windows_.Printout_OnBeginDocument(*args, **kwargs)
5009
5010 def OnEndDocument(*args, **kwargs):
5011 """OnEndDocument(self)"""
5012 return _windows_.Printout_OnEndDocument(*args, **kwargs)
5013
5014 def OnBeginPrinting(*args, **kwargs):
5015 """OnBeginPrinting(self)"""
5016 return _windows_.Printout_OnBeginPrinting(*args, **kwargs)
5017
5018 def OnEndPrinting(*args, **kwargs):
5019 """OnEndPrinting(self)"""
5020 return _windows_.Printout_OnEndPrinting(*args, **kwargs)
5021
5022 def OnPreparePrinting(*args, **kwargs):
5023 """OnPreparePrinting(self)"""
5024 return _windows_.Printout_OnPreparePrinting(*args, **kwargs)
5025
5026 def HasPage(*args, **kwargs):
5027 """HasPage(self, int page) -> bool"""
5028 return _windows_.Printout_HasPage(*args, **kwargs)
5029
5030 def GetPageInfo(*args, **kwargs):
5031 """GetPageInfo() -> (minPage, maxPage, pageFrom, pageTo)"""
5032 return _windows_.Printout_GetPageInfo(*args, **kwargs)
5033
5034 def base_OnBeginDocument(*args, **kw):
5035 return Printout.OnBeginDocument(*args, **kw)
5036 base_OnBeginDocument = wx._deprecated(base_OnBeginDocument,
5037 "Please use Printout.OnBeginDocument instead.")
5038
5039 def base_OnEndDocument(*args, **kw):
5040 return Printout.OnEndDocument(*args, **kw)
5041 base_OnEndDocument = wx._deprecated(base_OnEndDocument,
5042 "Please use Printout.OnEndDocument instead.")
5043
5044 def base_OnBeginPrinting(*args, **kw):
5045 return Printout.OnBeginPrinting(*args, **kw)
5046 base_OnBeginPrinting = wx._deprecated(base_OnBeginPrinting,
5047 "Please use Printout.OnBeginPrinting instead.")
5048
5049 def base_OnEndPrinting(*args, **kw):
5050 return Printout.OnEndPrinting(*args, **kw)
5051 base_OnEndPrinting = wx._deprecated(base_OnEndPrinting,
5052 "Please use Printout.OnEndPrinting instead.")
5053
5054 def base_OnPreparePrinting(*args, **kw):
5055 return Printout.OnPreparePrinting(*args, **kw)
5056 base_OnPreparePrinting = wx._deprecated(base_OnPreparePrinting,
5057 "Please use Printout.OnPreparePrinting instead.")
5058
5059 def base_GetPageInfo(*args, **kw):
5060 return Printout.GetPageInfo(*args, **kw)
5061 base_GetPageInfo = wx._deprecated(base_GetPageInfo,
5062 "Please use Printout.GetPageInfo instead.")
5063
5064
5065 class PrintoutPtr(Printout):
5066 def __init__(self, this):
5067 self.this = this
5068 if not hasattr(self,"thisown"): self.thisown = 0
5069 self.__class__ = Printout
5070 _windows_.Printout_swigregister(PrintoutPtr)
5071
5072 class PreviewCanvas(ScrolledWindow):
5073 """Proxy of C++ PreviewCanvas class"""
5074 def __repr__(self):
5075 return "<%s.%s; proxy of C++ wxPreviewCanvas instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
5076 def __init__(self, *args, **kwargs):
5077 """
5078 __init__(self, PrintPreview preview, Window parent, Point pos=DefaultPosition,
5079 Size size=DefaultSize, long style=0,
5080 String name=PreviewCanvasNameStr) -> PreviewCanvas
5081 """
5082 newobj = _windows_.new_PreviewCanvas(*args, **kwargs)
5083 self.this = newobj.this
5084 self.thisown = 1
5085 del newobj.thisown
5086 self._setOORInfo(self)
5087
5088
5089 class PreviewCanvasPtr(PreviewCanvas):
5090 def __init__(self, this):
5091 self.this = this
5092 if not hasattr(self,"thisown"): self.thisown = 0
5093 self.__class__ = PreviewCanvas
5094 _windows_.PreviewCanvas_swigregister(PreviewCanvasPtr)
5095
5096 class PreviewFrame(Frame):
5097 """Proxy of C++ PreviewFrame class"""
5098 def __repr__(self):
5099 return "<%s.%s; proxy of C++ wxPreviewFrame instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
5100 def __init__(self, *args, **kwargs):
5101 """
5102 __init__(self, PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
5103 Size size=DefaultSize,
5104 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PreviewFrame
5105 """
5106 newobj = _windows_.new_PreviewFrame(*args, **kwargs)
5107 self.this = newobj.this
5108 self.thisown = 1
5109 del newobj.thisown
5110 self._setOORInfo(self)
5111
5112 def Initialize(*args, **kwargs):
5113 """Initialize(self)"""
5114 return _windows_.PreviewFrame_Initialize(*args, **kwargs)
5115
5116 def CreateControlBar(*args, **kwargs):
5117 """CreateControlBar(self)"""
5118 return _windows_.PreviewFrame_CreateControlBar(*args, **kwargs)
5119
5120 def CreateCanvas(*args, **kwargs):
5121 """CreateCanvas(self)"""
5122 return _windows_.PreviewFrame_CreateCanvas(*args, **kwargs)
5123
5124 def GetControlBar(*args, **kwargs):
5125 """GetControlBar(self) -> PreviewControlBar"""
5126 return _windows_.PreviewFrame_GetControlBar(*args, **kwargs)
5127
5128
5129 class PreviewFramePtr(PreviewFrame):
5130 def __init__(self, this):
5131 self.this = this
5132 if not hasattr(self,"thisown"): self.thisown = 0
5133 self.__class__ = PreviewFrame
5134 _windows_.PreviewFrame_swigregister(PreviewFramePtr)
5135
5136 PREVIEW_PRINT = _windows_.PREVIEW_PRINT
5137 PREVIEW_PREVIOUS = _windows_.PREVIEW_PREVIOUS
5138 PREVIEW_NEXT = _windows_.PREVIEW_NEXT
5139 PREVIEW_ZOOM = _windows_.PREVIEW_ZOOM
5140 PREVIEW_FIRST = _windows_.PREVIEW_FIRST
5141 PREVIEW_LAST = _windows_.PREVIEW_LAST
5142 PREVIEW_GOTO = _windows_.PREVIEW_GOTO
5143 PREVIEW_DEFAULT = _windows_.PREVIEW_DEFAULT
5144 ID_PREVIEW_CLOSE = _windows_.ID_PREVIEW_CLOSE
5145 ID_PREVIEW_NEXT = _windows_.ID_PREVIEW_NEXT
5146 ID_PREVIEW_PREVIOUS = _windows_.ID_PREVIEW_PREVIOUS
5147 ID_PREVIEW_PRINT = _windows_.ID_PREVIEW_PRINT
5148 ID_PREVIEW_ZOOM = _windows_.ID_PREVIEW_ZOOM
5149 ID_PREVIEW_FIRST = _windows_.ID_PREVIEW_FIRST
5150 ID_PREVIEW_LAST = _windows_.ID_PREVIEW_LAST
5151 ID_PREVIEW_GOTO = _windows_.ID_PREVIEW_GOTO
5152 class PreviewControlBar(Panel):
5153 """Proxy of C++ PreviewControlBar class"""
5154 def __repr__(self):
5155 return "<%s.%s; proxy of C++ wxPreviewControlBar instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
5156 def __init__(self, *args, **kwargs):
5157 """
5158 __init__(self, PrintPreview preview, long buttons, Window parent,
5159 Point pos=DefaultPosition, Size size=DefaultSize,
5160 long style=TAB_TRAVERSAL, String name=PanelNameStr) -> PreviewControlBar
5161 """
5162 newobj = _windows_.new_PreviewControlBar(*args, **kwargs)
5163 self.this = newobj.this
5164 self.thisown = 1
5165 del newobj.thisown
5166 self._setOORInfo(self)
5167
5168 def GetZoomControl(*args, **kwargs):
5169 """GetZoomControl(self) -> int"""
5170 return _windows_.PreviewControlBar_GetZoomControl(*args, **kwargs)
5171
5172 def SetZoomControl(*args, **kwargs):
5173 """SetZoomControl(self, int zoom)"""
5174 return _windows_.PreviewControlBar_SetZoomControl(*args, **kwargs)
5175
5176 def GetPrintPreview(*args, **kwargs):
5177 """GetPrintPreview(self) -> PrintPreview"""
5178 return _windows_.PreviewControlBar_GetPrintPreview(*args, **kwargs)
5179
5180 def OnNext(*args, **kwargs):
5181 """OnNext(self)"""
5182 return _windows_.PreviewControlBar_OnNext(*args, **kwargs)
5183
5184 def OnPrevious(*args, **kwargs):
5185 """OnPrevious(self)"""
5186 return _windows_.PreviewControlBar_OnPrevious(*args, **kwargs)
5187
5188 def OnFirst(*args, **kwargs):
5189 """OnFirst(self)"""
5190 return _windows_.PreviewControlBar_OnFirst(*args, **kwargs)
5191
5192 def OnLast(*args, **kwargs):
5193 """OnLast(self)"""
5194 return _windows_.PreviewControlBar_OnLast(*args, **kwargs)
5195
5196 def OnGoto(*args, **kwargs):
5197 """OnGoto(self)"""
5198 return _windows_.PreviewControlBar_OnGoto(*args, **kwargs)
5199
5200
5201 class PreviewControlBarPtr(PreviewControlBar):
5202 def __init__(self, this):
5203 self.this = this
5204 if not hasattr(self,"thisown"): self.thisown = 0
5205 self.__class__ = PreviewControlBar
5206 _windows_.PreviewControlBar_swigregister(PreviewControlBarPtr)
5207
5208 class PrintPreview(_core.Object):
5209 """Proxy of C++ PrintPreview class"""
5210 def __repr__(self):
5211 return "<%s.%s; proxy of C++ wxPrintPreview instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
5212 def __init__(self, *args):
5213 """
5214 __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PrintPreview
5215 __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PrintPreview
5216 """
5217 newobj = _windows_.new_PrintPreview(*args)
5218 self.this = newobj.this
5219 self.thisown = 1
5220 del newobj.thisown
5221 def SetCurrentPage(*args, **kwargs):
5222 """SetCurrentPage(self, int pageNum) -> bool"""
5223 return _windows_.PrintPreview_SetCurrentPage(*args, **kwargs)
5224
5225 def GetCurrentPage(*args, **kwargs):
5226 """GetCurrentPage(self) -> int"""
5227 return _windows_.PrintPreview_GetCurrentPage(*args, **kwargs)
5228
5229 def SetPrintout(*args, **kwargs):
5230 """SetPrintout(self, Printout printout)"""
5231 return _windows_.PrintPreview_SetPrintout(*args, **kwargs)
5232
5233 def GetPrintout(*args, **kwargs):
5234 """GetPrintout(self) -> Printout"""
5235 return _windows_.PrintPreview_GetPrintout(*args, **kwargs)
5236
5237 def GetPrintoutForPrinting(*args, **kwargs):
5238 """GetPrintoutForPrinting(self) -> Printout"""
5239 return _windows_.PrintPreview_GetPrintoutForPrinting(*args, **kwargs)
5240
5241 def SetFrame(*args, **kwargs):
5242 """SetFrame(self, Frame frame)"""
5243 return _windows_.PrintPreview_SetFrame(*args, **kwargs)
5244
5245 def SetCanvas(*args, **kwargs):
5246 """SetCanvas(self, PreviewCanvas canvas)"""
5247 return _windows_.PrintPreview_SetCanvas(*args, **kwargs)
5248
5249 def GetFrame(*args, **kwargs):
5250 """GetFrame(self) -> Frame"""
5251 return _windows_.PrintPreview_GetFrame(*args, **kwargs)
5252
5253 def GetCanvas(*args, **kwargs):
5254 """GetCanvas(self) -> PreviewCanvas"""
5255 return _windows_.PrintPreview_GetCanvas(*args, **kwargs)
5256
5257 def PaintPage(*args, **kwargs):
5258 """PaintPage(self, PreviewCanvas canvas, DC dc) -> bool"""
5259 return _windows_.PrintPreview_PaintPage(*args, **kwargs)
5260
5261 def DrawBlankPage(*args, **kwargs):
5262 """DrawBlankPage(self, PreviewCanvas canvas, DC dc) -> bool"""
5263 return _windows_.PrintPreview_DrawBlankPage(*args, **kwargs)
5264
5265 def RenderPage(*args, **kwargs):
5266 """RenderPage(self, int pageNum) -> bool"""
5267 return _windows_.PrintPreview_RenderPage(*args, **kwargs)
5268
5269 def AdjustScrollbars(*args, **kwargs):
5270 """AdjustScrollbars(self, PreviewCanvas canvas)"""
5271 return _windows_.PrintPreview_AdjustScrollbars(*args, **kwargs)
5272
5273 def GetPrintDialogData(*args, **kwargs):
5274 """GetPrintDialogData(self) -> PrintDialogData"""
5275 return _windows_.PrintPreview_GetPrintDialogData(*args, **kwargs)
5276
5277 def SetZoom(*args, **kwargs):
5278 """SetZoom(self, int percent)"""
5279 return _windows_.PrintPreview_SetZoom(*args, **kwargs)
5280
5281 def GetZoom(*args, **kwargs):
5282 """GetZoom(self) -> int"""
5283 return _windows_.PrintPreview_GetZoom(*args, **kwargs)
5284
5285 def GetMaxPage(*args, **kwargs):
5286 """GetMaxPage(self) -> int"""
5287 return _windows_.PrintPreview_GetMaxPage(*args, **kwargs)
5288
5289 def GetMinPage(*args, **kwargs):
5290 """GetMinPage(self) -> int"""
5291 return _windows_.PrintPreview_GetMinPage(*args, **kwargs)
5292
5293 def Ok(*args, **kwargs):
5294 """Ok(self) -> bool"""
5295 return _windows_.PrintPreview_Ok(*args, **kwargs)
5296
5297 def SetOk(*args, **kwargs):
5298 """SetOk(self, bool ok)"""
5299 return _windows_.PrintPreview_SetOk(*args, **kwargs)
5300
5301 def Print(*args, **kwargs):
5302 """Print(self, bool interactive) -> bool"""
5303 return _windows_.PrintPreview_Print(*args, **kwargs)
5304
5305 def DetermineScaling(*args, **kwargs):
5306 """DetermineScaling(self)"""
5307 return _windows_.PrintPreview_DetermineScaling(*args, **kwargs)
5308
5309 def __nonzero__(self): return self.Ok()
5310
5311 class PrintPreviewPtr(PrintPreview):
5312 def __init__(self, this):
5313 self.this = this
5314 if not hasattr(self,"thisown"): self.thisown = 0
5315 self.__class__ = PrintPreview
5316 _windows_.PrintPreview_swigregister(PrintPreviewPtr)
5317
5318 class PyPrintPreview(PrintPreview):
5319 """Proxy of C++ PyPrintPreview class"""
5320 def __repr__(self):
5321 return "<%s.%s; proxy of C++ wxPyPrintPreview instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
5322 def __init__(self, *args):
5323 """
5324 __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PyPrintPreview
5325 __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PyPrintPreview
5326 """
5327 newobj = _windows_.new_PyPrintPreview(*args)
5328 self.this = newobj.this
5329 self.thisown = 1
5330 del newobj.thisown
5331 self._setCallbackInfo(self, PyPrintPreview)
5332
5333 def _setCallbackInfo(*args, **kwargs):
5334 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
5335 return _windows_.PyPrintPreview__setCallbackInfo(*args, **kwargs)
5336
5337 def SetCurrentPage(*args, **kwargs):
5338 """SetCurrentPage(self, int pageNum) -> bool"""
5339 return _windows_.PyPrintPreview_SetCurrentPage(*args, **kwargs)
5340
5341 def PaintPage(*args, **kwargs):
5342 """PaintPage(self, PreviewCanvas canvas, DC dc) -> bool"""
5343 return _windows_.PyPrintPreview_PaintPage(*args, **kwargs)
5344
5345 def DrawBlankPage(*args, **kwargs):
5346 """DrawBlankPage(self, PreviewCanvas canvas, DC dc) -> bool"""
5347 return _windows_.PyPrintPreview_DrawBlankPage(*args, **kwargs)
5348
5349 def RenderPage(*args, **kwargs):
5350 """RenderPage(self, int pageNum) -> bool"""
5351 return _windows_.PyPrintPreview_RenderPage(*args, **kwargs)
5352
5353 def SetZoom(*args, **kwargs):
5354 """SetZoom(self, int percent)"""
5355 return _windows_.PyPrintPreview_SetZoom(*args, **kwargs)
5356
5357 def Print(*args, **kwargs):
5358 """Print(self, bool interactive) -> bool"""
5359 return _windows_.PyPrintPreview_Print(*args, **kwargs)
5360
5361 def DetermineScaling(*args, **kwargs):
5362 """DetermineScaling(self)"""
5363 return _windows_.PyPrintPreview_DetermineScaling(*args, **kwargs)
5364
5365 def base_SetCurrentPage(*args, **kw):
5366 return PyPrintPreview.SetCurrentPage(*args, **kw)
5367 base_SetCurrentPage = wx._deprecated(base_SetCurrentPage,
5368 "Please use PyPrintPreview.SetCurrentPage instead.")
5369
5370 def base_PaintPage(*args, **kw):
5371 return PyPrintPreview.PaintPage(*args, **kw)
5372 base_PaintPage = wx._deprecated(base_PaintPage,
5373 "Please use PyPrintPreview.PaintPage instead.")
5374
5375 def base_DrawBlankPage(*args, **kw):
5376 return PyPrintPreview.DrawBlankPage(*args, **kw)
5377 base_DrawBlankPage = wx._deprecated(base_DrawBlankPage,
5378 "Please use PyPrintPreview.DrawBlankPage instead.")
5379
5380 def base_RenderPage(*args, **kw):
5381 return PyPrintPreview.RenderPage(*args, **kw)
5382 base_RenderPage = wx._deprecated(base_RenderPage,
5383 "Please use PyPrintPreview.RenderPage instead.")
5384
5385 def base_SetZoom(*args, **kw):
5386 return PyPrintPreview.SetZoom(*args, **kw)
5387 base_SetZoom = wx._deprecated(base_SetZoom,
5388 "Please use PyPrintPreview.SetZoom instead.")
5389
5390 def base_Print(*args, **kw):
5391 return PyPrintPreview.Print(*args, **kw)
5392 base_Print = wx._deprecated(base_Print,
5393 "Please use PyPrintPreview.Print instead.")
5394
5395 def base_DetermineScaling(*args, **kw):
5396 return PyPrintPreview.DetermineScaling(*args, **kw)
5397 base_DetermineScaling = wx._deprecated(base_DetermineScaling,
5398 "Please use PyPrintPreview.DetermineScaling instead.")
5399
5400
5401 class PyPrintPreviewPtr(PyPrintPreview):
5402 def __init__(self, this):
5403 self.this = this
5404 if not hasattr(self,"thisown"): self.thisown = 0
5405 self.__class__ = PyPrintPreview
5406 _windows_.PyPrintPreview_swigregister(PyPrintPreviewPtr)
5407
5408 class PyPreviewFrame(PreviewFrame):
5409 """Proxy of C++ PyPreviewFrame class"""
5410 def __repr__(self):
5411 return "<%s.%s; proxy of C++ wxPyPreviewFrame instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
5412 def __init__(self, *args, **kwargs):
5413 """
5414 __init__(self, PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
5415 Size size=DefaultSize,
5416 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PyPreviewFrame
5417 """
5418 newobj = _windows_.new_PyPreviewFrame(*args, **kwargs)
5419 self.this = newobj.this
5420 self.thisown = 1
5421 del newobj.thisown
5422 self._setCallbackInfo(self, PyPreviewFrame); self._setOORInfo(self)
5423
5424 def _setCallbackInfo(*args, **kwargs):
5425 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
5426 return _windows_.PyPreviewFrame__setCallbackInfo(*args, **kwargs)
5427
5428 def SetPreviewCanvas(*args, **kwargs):
5429 """SetPreviewCanvas(self, PreviewCanvas canvas)"""
5430 return _windows_.PyPreviewFrame_SetPreviewCanvas(*args, **kwargs)
5431
5432 def SetControlBar(*args, **kwargs):
5433 """SetControlBar(self, PreviewControlBar bar)"""
5434 return _windows_.PyPreviewFrame_SetControlBar(*args, **kwargs)
5435
5436 def Initialize(*args, **kwargs):
5437 """Initialize(self)"""
5438 return _windows_.PyPreviewFrame_Initialize(*args, **kwargs)
5439
5440 def CreateCanvas(*args, **kwargs):
5441 """CreateCanvas(self)"""
5442 return _windows_.PyPreviewFrame_CreateCanvas(*args, **kwargs)
5443
5444 def CreateControlBar(*args, **kwargs):
5445 """CreateControlBar(self)"""
5446 return _windows_.PyPreviewFrame_CreateControlBar(*args, **kwargs)
5447
5448 def base_Initialize(*args, **kw):
5449 return PyPreviewFrame.Initialize(*args, **kw)
5450 base_Initialize = wx._deprecated(base_Initialize,
5451 "Please use PyPreviewFrame.Initialize instead.")
5452
5453 def base_CreateCanvas(*args, **kw):
5454 return PyPreviewFrame.CreateCanvas(*args, **kw)
5455 base_CreateCanvas = wx._deprecated(base_CreateCanvas,
5456 "Please use PyPreviewFrame.CreateCanvas instead.")
5457
5458 def base_CreateControlBar(*args, **kw):
5459 return PyPreviewFrame.CreateControlBar(*args, **kw)
5460 base_CreateControlBar = wx._deprecated(base_CreateControlBar,
5461 "Please use PyPreviewFrame.CreateControlBar instead.")
5462
5463
5464 class PyPreviewFramePtr(PyPreviewFrame):
5465 def __init__(self, this):
5466 self.this = this
5467 if not hasattr(self,"thisown"): self.thisown = 0
5468 self.__class__ = PyPreviewFrame
5469 _windows_.PyPreviewFrame_swigregister(PyPreviewFramePtr)
5470
5471 class PyPreviewControlBar(PreviewControlBar):
5472 """Proxy of C++ PyPreviewControlBar class"""
5473 def __repr__(self):
5474 return "<%s.%s; proxy of C++ wxPyPreviewControlBar instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
5475 def __init__(self, *args, **kwargs):
5476 """
5477 __init__(self, PrintPreview preview, long buttons, Window parent,
5478 Point pos=DefaultPosition, Size size=DefaultSize,
5479 long style=0, String name=PanelNameStr) -> PyPreviewControlBar
5480 """
5481 newobj = _windows_.new_PyPreviewControlBar(*args, **kwargs)
5482 self.this = newobj.this
5483 self.thisown = 1
5484 del newobj.thisown
5485 self._setCallbackInfo(self, PyPreviewControlBar); self._setOORInfo(self)
5486
5487 def _setCallbackInfo(*args, **kwargs):
5488 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
5489 return _windows_.PyPreviewControlBar__setCallbackInfo(*args, **kwargs)
5490
5491 def SetPrintPreview(*args, **kwargs):
5492 """SetPrintPreview(self, PrintPreview preview)"""
5493 return _windows_.PyPreviewControlBar_SetPrintPreview(*args, **kwargs)
5494
5495 def CreateButtons(*args, **kwargs):
5496 """CreateButtons(self)"""
5497 return _windows_.PyPreviewControlBar_CreateButtons(*args, **kwargs)
5498
5499 def SetZoomControl(*args, **kwargs):
5500 """SetZoomControl(self, int zoom)"""
5501 return _windows_.PyPreviewControlBar_SetZoomControl(*args, **kwargs)
5502
5503 def base_CreateButtons(*args, **kw):
5504 return PreviewControlBar.CreateButtons(*args, **kw)
5505 base_CreateButtons = wx._deprecated(base_CreateButtons,
5506 "Please use PreviewControlBar.CreateButtons instead.")
5507
5508 def base_SetZoomControl(*args, **kw):
5509 return PreviewControlBar.SetZoomControl(*args, **kw)
5510 base_SetZoomControl = wx._deprecated(base_SetZoomControl,
5511 "Please use PreviewControlBar.SetZoomControl instead.")
5512
5513
5514 class PyPreviewControlBarPtr(PyPreviewControlBar):
5515 def __init__(self, this):
5516 self.this = this
5517 if not hasattr(self,"thisown"): self.thisown = 0
5518 self.__class__ = PyPreviewControlBar
5519 _windows_.PyPreviewControlBar_swigregister(PyPreviewControlBarPtr)
5520
5521
5522