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