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