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