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