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