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