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