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