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