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