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