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