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