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