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