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