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