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