]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/mac/windows.py
Put a copy of the generated C++ docs back into the docs tree
[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 point=DefaultPosition,
662 Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> SplitterWindow
663 """
664 newobj = _windows.new_SplitterWindow(*args, **kwargs)
665 self.this = newobj.this
666 self.thisown = 1
667 del newobj.thisown
668 self._setOORInfo(self)
669
670 def Create(*args, **kwargs):
671 """
672 Create(Window parent, int id, Point point=DefaultPosition,
673 Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> bool
674 """
675 return _windows.SplitterWindow_Create(*args, **kwargs)
676
677 def GetWindow1(*args, **kwargs):
678 """GetWindow1() -> Window"""
679 return _windows.SplitterWindow_GetWindow1(*args, **kwargs)
680
681 def GetWindow2(*args, **kwargs):
682 """GetWindow2() -> Window"""
683 return _windows.SplitterWindow_GetWindow2(*args, **kwargs)
684
685 def SetSplitMode(*args, **kwargs):
686 """SetSplitMode(int mode)"""
687 return _windows.SplitterWindow_SetSplitMode(*args, **kwargs)
688
689 def GetSplitMode(*args, **kwargs):
690 """GetSplitMode() -> int"""
691 return _windows.SplitterWindow_GetSplitMode(*args, **kwargs)
692
693 def Initialize(*args, **kwargs):
694 """Initialize(Window window)"""
695 return _windows.SplitterWindow_Initialize(*args, **kwargs)
696
697 def SplitVertically(*args, **kwargs):
698 """SplitVertically(Window window1, Window window2, int sashPosition=0) -> bool"""
699 return _windows.SplitterWindow_SplitVertically(*args, **kwargs)
700
701 def SplitHorizontally(*args, **kwargs):
702 """SplitHorizontally(Window window1, Window window2, int sashPosition=0) -> bool"""
703 return _windows.SplitterWindow_SplitHorizontally(*args, **kwargs)
704
705 def Unsplit(*args, **kwargs):
706 """Unsplit(Window toRemove=None) -> bool"""
707 return _windows.SplitterWindow_Unsplit(*args, **kwargs)
708
709 def ReplaceWindow(*args, **kwargs):
710 """ReplaceWindow(Window winOld, Window winNew) -> bool"""
711 return _windows.SplitterWindow_ReplaceWindow(*args, **kwargs)
712
713 def IsSplit(*args, **kwargs):
714 """IsSplit() -> bool"""
715 return _windows.SplitterWindow_IsSplit(*args, **kwargs)
716
717 def SetSashSize(*args, **kwargs):
718 """SetSashSize(int width)"""
719 return _windows.SplitterWindow_SetSashSize(*args, **kwargs)
720
721 def SetBorderSize(*args, **kwargs):
722 """SetBorderSize(int width)"""
723 return _windows.SplitterWindow_SetBorderSize(*args, **kwargs)
724
725 def GetSashSize(*args, **kwargs):
726 """GetSashSize() -> int"""
727 return _windows.SplitterWindow_GetSashSize(*args, **kwargs)
728
729 def GetBorderSize(*args, **kwargs):
730 """GetBorderSize() -> int"""
731 return _windows.SplitterWindow_GetBorderSize(*args, **kwargs)
732
733 def SetSashPosition(*args, **kwargs):
734 """SetSashPosition(int position, bool redraw=True)"""
735 return _windows.SplitterWindow_SetSashPosition(*args, **kwargs)
736
737 def GetSashPosition(*args, **kwargs):
738 """GetSashPosition() -> int"""
739 return _windows.SplitterWindow_GetSashPosition(*args, **kwargs)
740
741 def SetMinimumPaneSize(*args, **kwargs):
742 """SetMinimumPaneSize(int min)"""
743 return _windows.SplitterWindow_SetMinimumPaneSize(*args, **kwargs)
744
745 def GetMinimumPaneSize(*args, **kwargs):
746 """GetMinimumPaneSize() -> int"""
747 return _windows.SplitterWindow_GetMinimumPaneSize(*args, **kwargs)
748
749 def SashHitTest(*args, **kwargs):
750 """SashHitTest(int x, int y, int tolerance=5) -> bool"""
751 return _windows.SplitterWindow_SashHitTest(*args, **kwargs)
752
753 def SizeWindows(*args, **kwargs):
754 """SizeWindows()"""
755 return _windows.SplitterWindow_SizeWindows(*args, **kwargs)
756
757 def SetNeedUpdating(*args, **kwargs):
758 """SetNeedUpdating(bool needUpdating)"""
759 return _windows.SplitterWindow_SetNeedUpdating(*args, **kwargs)
760
761 def GetNeedUpdating(*args, **kwargs):
762 """GetNeedUpdating() -> bool"""
763 return _windows.SplitterWindow_GetNeedUpdating(*args, **kwargs)
764
765
766 class SplitterWindowPtr(SplitterWindow):
767 def __init__(self, this):
768 self.this = this
769 if not hasattr(self,"thisown"): self.thisown = 0
770 self.__class__ = SplitterWindow
771 _windows.SplitterWindow_swigregister(SplitterWindowPtr)
772 SplitterNameStr = cvar.SplitterNameStr
773
774 def PreSplitterWindow(*args, **kwargs):
775 """PreSplitterWindow() -> SplitterWindow"""
776 val = _windows.new_PreSplitterWindow(*args, **kwargs)
777 val.thisown = 1
778 return val
779
780 class SplitterEvent(core.NotifyEvent):
781 def __repr__(self):
782 return "<%s.%s; proxy of C++ wxSplitterEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
783 def __init__(self, *args, **kwargs):
784 """__init__(wxEventType type=wxEVT_NULL, SplitterWindow splitter=(wxSplitterWindow *) NULL) -> SplitterEvent"""
785 newobj = _windows.new_SplitterEvent(*args, **kwargs)
786 self.this = newobj.this
787 self.thisown = 1
788 del newobj.thisown
789 def SetSashPosition(*args, **kwargs):
790 """SetSashPosition(int pos)"""
791 return _windows.SplitterEvent_SetSashPosition(*args, **kwargs)
792
793 def GetSashPosition(*args, **kwargs):
794 """GetSashPosition() -> int"""
795 return _windows.SplitterEvent_GetSashPosition(*args, **kwargs)
796
797 def GetWindowBeingRemoved(*args, **kwargs):
798 """GetWindowBeingRemoved() -> Window"""
799 return _windows.SplitterEvent_GetWindowBeingRemoved(*args, **kwargs)
800
801 def GetX(*args, **kwargs):
802 """GetX() -> int"""
803 return _windows.SplitterEvent_GetX(*args, **kwargs)
804
805 def GetY(*args, **kwargs):
806 """GetY() -> int"""
807 return _windows.SplitterEvent_GetY(*args, **kwargs)
808
809
810 class SplitterEventPtr(SplitterEvent):
811 def __init__(self, this):
812 self.this = this
813 if not hasattr(self,"thisown"): self.thisown = 0
814 self.__class__ = SplitterEvent
815 _windows.SplitterEvent_swigregister(SplitterEventPtr)
816
817 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED = _windows.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
818 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING = _windows.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
819 wxEVT_COMMAND_SPLITTER_DOUBLECLICKED = _windows.wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
820 wxEVT_COMMAND_SPLITTER_UNSPLIT = _windows.wxEVT_COMMAND_SPLITTER_UNSPLIT
821 EVT_SPLITTER_SASH_POS_CHANGED = wx.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED, 1 )
822 EVT_SPLITTER_SASH_POS_CHANGING = wx.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING, 1 )
823 EVT_SPLITTER_DOUBLECLICKED = wx.PyEventBinder( wxEVT_COMMAND_SPLITTER_DOUBLECLICKED, 1 )
824 EVT_SPLITTER_UNSPLIT = wx.PyEventBinder( wxEVT_COMMAND_SPLITTER_UNSPLIT, 1 )
825
826 #---------------------------------------------------------------------------
827
828 SASH_DRAG_NONE = _windows.SASH_DRAG_NONE
829 SASH_DRAG_DRAGGING = _windows.SASH_DRAG_DRAGGING
830 SASH_DRAG_LEFT_DOWN = _windows.SASH_DRAG_LEFT_DOWN
831 SW_NOBORDER = _windows.SW_NOBORDER
832 SW_BORDER = _windows.SW_BORDER
833 SW_3DSASH = _windows.SW_3DSASH
834 SW_3DBORDER = _windows.SW_3DBORDER
835 SW_3D = _windows.SW_3D
836 SASH_TOP = _windows.SASH_TOP
837 SASH_RIGHT = _windows.SASH_RIGHT
838 SASH_BOTTOM = _windows.SASH_BOTTOM
839 SASH_LEFT = _windows.SASH_LEFT
840 SASH_NONE = _windows.SASH_NONE
841 class SashWindow(core.Window):
842 def __repr__(self):
843 return "<%s.%s; proxy of C++ wxSashWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
844 def __init__(self, *args, **kwargs):
845 """
846 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
847 long style=wxCLIP_CHILDREN|wxSW_3D,
848 String name=SashNameStr) -> SashWindow
849 """
850 newobj = _windows.new_SashWindow(*args, **kwargs)
851 self.this = newobj.this
852 self.thisown = 1
853 del newobj.thisown
854 self._setOORInfo(self)
855
856 def Create(*args, **kwargs):
857 """
858 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
859 long style=wxCLIP_CHILDREN|wxSW_3D,
860 String name=SashNameStr) -> bool
861 """
862 return _windows.SashWindow_Create(*args, **kwargs)
863
864 def SetSashVisible(*args, **kwargs):
865 """SetSashVisible(int edge, bool sash)"""
866 return _windows.SashWindow_SetSashVisible(*args, **kwargs)
867
868 def GetSashVisible(*args, **kwargs):
869 """GetSashVisible(int edge) -> bool"""
870 return _windows.SashWindow_GetSashVisible(*args, **kwargs)
871
872 def SetSashBorder(*args, **kwargs):
873 """SetSashBorder(int edge, bool border)"""
874 return _windows.SashWindow_SetSashBorder(*args, **kwargs)
875
876 def HasBorder(*args, **kwargs):
877 """HasBorder(int edge) -> bool"""
878 return _windows.SashWindow_HasBorder(*args, **kwargs)
879
880 def GetEdgeMargin(*args, **kwargs):
881 """GetEdgeMargin(int edge) -> int"""
882 return _windows.SashWindow_GetEdgeMargin(*args, **kwargs)
883
884 def SetDefaultBorderSize(*args, **kwargs):
885 """SetDefaultBorderSize(int width)"""
886 return _windows.SashWindow_SetDefaultBorderSize(*args, **kwargs)
887
888 def GetDefaultBorderSize(*args, **kwargs):
889 """GetDefaultBorderSize() -> int"""
890 return _windows.SashWindow_GetDefaultBorderSize(*args, **kwargs)
891
892 def SetExtraBorderSize(*args, **kwargs):
893 """SetExtraBorderSize(int width)"""
894 return _windows.SashWindow_SetExtraBorderSize(*args, **kwargs)
895
896 def GetExtraBorderSize(*args, **kwargs):
897 """GetExtraBorderSize() -> int"""
898 return _windows.SashWindow_GetExtraBorderSize(*args, **kwargs)
899
900 def SetMinimumSizeX(*args, **kwargs):
901 """SetMinimumSizeX(int min)"""
902 return _windows.SashWindow_SetMinimumSizeX(*args, **kwargs)
903
904 def SetMinimumSizeY(*args, **kwargs):
905 """SetMinimumSizeY(int min)"""
906 return _windows.SashWindow_SetMinimumSizeY(*args, **kwargs)
907
908 def GetMinimumSizeX(*args, **kwargs):
909 """GetMinimumSizeX() -> int"""
910 return _windows.SashWindow_GetMinimumSizeX(*args, **kwargs)
911
912 def GetMinimumSizeY(*args, **kwargs):
913 """GetMinimumSizeY() -> int"""
914 return _windows.SashWindow_GetMinimumSizeY(*args, **kwargs)
915
916 def SetMaximumSizeX(*args, **kwargs):
917 """SetMaximumSizeX(int max)"""
918 return _windows.SashWindow_SetMaximumSizeX(*args, **kwargs)
919
920 def SetMaximumSizeY(*args, **kwargs):
921 """SetMaximumSizeY(int max)"""
922 return _windows.SashWindow_SetMaximumSizeY(*args, **kwargs)
923
924 def GetMaximumSizeX(*args, **kwargs):
925 """GetMaximumSizeX() -> int"""
926 return _windows.SashWindow_GetMaximumSizeX(*args, **kwargs)
927
928 def GetMaximumSizeY(*args, **kwargs):
929 """GetMaximumSizeY() -> int"""
930 return _windows.SashWindow_GetMaximumSizeY(*args, **kwargs)
931
932 def SashHitTest(*args, **kwargs):
933 """SashHitTest(int x, int y, int tolerance=2) -> int"""
934 return _windows.SashWindow_SashHitTest(*args, **kwargs)
935
936 def SizeWindows(*args, **kwargs):
937 """SizeWindows()"""
938 return _windows.SashWindow_SizeWindows(*args, **kwargs)
939
940
941 class SashWindowPtr(SashWindow):
942 def __init__(self, this):
943 self.this = this
944 if not hasattr(self,"thisown"): self.thisown = 0
945 self.__class__ = SashWindow
946 _windows.SashWindow_swigregister(SashWindowPtr)
947 SashNameStr = cvar.SashNameStr
948 SashLayoutNameStr = cvar.SashLayoutNameStr
949
950 def PreSashWindow(*args, **kwargs):
951 """PreSashWindow() -> SashWindow"""
952 val = _windows.new_PreSashWindow(*args, **kwargs)
953 val.thisown = 1
954 return val
955
956 SASH_STATUS_OK = _windows.SASH_STATUS_OK
957 SASH_STATUS_OUT_OF_RANGE = _windows.SASH_STATUS_OUT_OF_RANGE
958 class SashEvent(core.CommandEvent):
959 def __repr__(self):
960 return "<%s.%s; proxy of C++ wxSashEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
961 def __init__(self, *args, **kwargs):
962 """__init__(int id=0, int edge=SASH_NONE) -> SashEvent"""
963 newobj = _windows.new_SashEvent(*args, **kwargs)
964 self.this = newobj.this
965 self.thisown = 1
966 del newobj.thisown
967 def SetEdge(*args, **kwargs):
968 """SetEdge(int edge)"""
969 return _windows.SashEvent_SetEdge(*args, **kwargs)
970
971 def GetEdge(*args, **kwargs):
972 """GetEdge() -> int"""
973 return _windows.SashEvent_GetEdge(*args, **kwargs)
974
975 def SetDragRect(*args, **kwargs):
976 """SetDragRect(Rect rect)"""
977 return _windows.SashEvent_SetDragRect(*args, **kwargs)
978
979 def GetDragRect(*args, **kwargs):
980 """GetDragRect() -> Rect"""
981 return _windows.SashEvent_GetDragRect(*args, **kwargs)
982
983 def SetDragStatus(*args, **kwargs):
984 """SetDragStatus(int status)"""
985 return _windows.SashEvent_SetDragStatus(*args, **kwargs)
986
987 def GetDragStatus(*args, **kwargs):
988 """GetDragStatus() -> int"""
989 return _windows.SashEvent_GetDragStatus(*args, **kwargs)
990
991
992 class SashEventPtr(SashEvent):
993 def __init__(self, this):
994 self.this = this
995 if not hasattr(self,"thisown"): self.thisown = 0
996 self.__class__ = SashEvent
997 _windows.SashEvent_swigregister(SashEventPtr)
998
999 wxEVT_SASH_DRAGGED = _windows.wxEVT_SASH_DRAGGED
1000 EVT_SASH_DRAGGED = wx.PyEventBinder( wxEVT_SASH_DRAGGED, 1 )
1001 EVT_SASH_DRAGGED_RANGE = wx.PyEventBinder( wxEVT_SASH_DRAGGED, 2 )
1002
1003 #---------------------------------------------------------------------------
1004
1005 LAYOUT_HORIZONTAL = _windows.LAYOUT_HORIZONTAL
1006 LAYOUT_VERTICAL = _windows.LAYOUT_VERTICAL
1007 LAYOUT_NONE = _windows.LAYOUT_NONE
1008 LAYOUT_TOP = _windows.LAYOUT_TOP
1009 LAYOUT_LEFT = _windows.LAYOUT_LEFT
1010 LAYOUT_RIGHT = _windows.LAYOUT_RIGHT
1011 LAYOUT_BOTTOM = _windows.LAYOUT_BOTTOM
1012 LAYOUT_LENGTH_Y = _windows.LAYOUT_LENGTH_Y
1013 LAYOUT_LENGTH_X = _windows.LAYOUT_LENGTH_X
1014 LAYOUT_MRU_LENGTH = _windows.LAYOUT_MRU_LENGTH
1015 LAYOUT_QUERY = _windows.LAYOUT_QUERY
1016 wxEVT_QUERY_LAYOUT_INFO = _windows.wxEVT_QUERY_LAYOUT_INFO
1017 wxEVT_CALCULATE_LAYOUT = _windows.wxEVT_CALCULATE_LAYOUT
1018 class QueryLayoutInfoEvent(core.Event):
1019 def __repr__(self):
1020 return "<%s.%s; proxy of C++ wxQueryLayoutInfoEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1021 def __init__(self, *args, **kwargs):
1022 """__init__(int id=0) -> QueryLayoutInfoEvent"""
1023 newobj = _windows.new_QueryLayoutInfoEvent(*args, **kwargs)
1024 self.this = newobj.this
1025 self.thisown = 1
1026 del newobj.thisown
1027 def SetRequestedLength(*args, **kwargs):
1028 """SetRequestedLength(int length)"""
1029 return _windows.QueryLayoutInfoEvent_SetRequestedLength(*args, **kwargs)
1030
1031 def GetRequestedLength(*args, **kwargs):
1032 """GetRequestedLength() -> int"""
1033 return _windows.QueryLayoutInfoEvent_GetRequestedLength(*args, **kwargs)
1034
1035 def SetFlags(*args, **kwargs):
1036 """SetFlags(int flags)"""
1037 return _windows.QueryLayoutInfoEvent_SetFlags(*args, **kwargs)
1038
1039 def GetFlags(*args, **kwargs):
1040 """GetFlags() -> int"""
1041 return _windows.QueryLayoutInfoEvent_GetFlags(*args, **kwargs)
1042
1043 def SetSize(*args, **kwargs):
1044 """SetSize(Size size)"""
1045 return _windows.QueryLayoutInfoEvent_SetSize(*args, **kwargs)
1046
1047 def GetSize(*args, **kwargs):
1048 """GetSize() -> Size"""
1049 return _windows.QueryLayoutInfoEvent_GetSize(*args, **kwargs)
1050
1051 def SetOrientation(*args, **kwargs):
1052 """SetOrientation(int orient)"""
1053 return _windows.QueryLayoutInfoEvent_SetOrientation(*args, **kwargs)
1054
1055 def GetOrientation(*args, **kwargs):
1056 """GetOrientation() -> int"""
1057 return _windows.QueryLayoutInfoEvent_GetOrientation(*args, **kwargs)
1058
1059 def SetAlignment(*args, **kwargs):
1060 """SetAlignment(int align)"""
1061 return _windows.QueryLayoutInfoEvent_SetAlignment(*args, **kwargs)
1062
1063 def GetAlignment(*args, **kwargs):
1064 """GetAlignment() -> int"""
1065 return _windows.QueryLayoutInfoEvent_GetAlignment(*args, **kwargs)
1066
1067
1068 class QueryLayoutInfoEventPtr(QueryLayoutInfoEvent):
1069 def __init__(self, this):
1070 self.this = this
1071 if not hasattr(self,"thisown"): self.thisown = 0
1072 self.__class__ = QueryLayoutInfoEvent
1073 _windows.QueryLayoutInfoEvent_swigregister(QueryLayoutInfoEventPtr)
1074
1075 class CalculateLayoutEvent(core.Event):
1076 def __repr__(self):
1077 return "<%s.%s; proxy of C++ wxCalculateLayoutEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1078 def __init__(self, *args, **kwargs):
1079 """__init__(int id=0) -> CalculateLayoutEvent"""
1080 newobj = _windows.new_CalculateLayoutEvent(*args, **kwargs)
1081 self.this = newobj.this
1082 self.thisown = 1
1083 del newobj.thisown
1084 def SetFlags(*args, **kwargs):
1085 """SetFlags(int flags)"""
1086 return _windows.CalculateLayoutEvent_SetFlags(*args, **kwargs)
1087
1088 def GetFlags(*args, **kwargs):
1089 """GetFlags() -> int"""
1090 return _windows.CalculateLayoutEvent_GetFlags(*args, **kwargs)
1091
1092 def SetRect(*args, **kwargs):
1093 """SetRect(Rect rect)"""
1094 return _windows.CalculateLayoutEvent_SetRect(*args, **kwargs)
1095
1096 def GetRect(*args, **kwargs):
1097 """GetRect() -> Rect"""
1098 return _windows.CalculateLayoutEvent_GetRect(*args, **kwargs)
1099
1100
1101 class CalculateLayoutEventPtr(CalculateLayoutEvent):
1102 def __init__(self, this):
1103 self.this = this
1104 if not hasattr(self,"thisown"): self.thisown = 0
1105 self.__class__ = CalculateLayoutEvent
1106 _windows.CalculateLayoutEvent_swigregister(CalculateLayoutEventPtr)
1107
1108 EVT_QUERY_LAYOUT_INFO = wx.PyEventBinder( wxEVT_QUERY_LAYOUT_INFO )
1109 EVT_CALCULATE_LAYOUT = wx.PyEventBinder( wxEVT_CALCULATE_LAYOUT )
1110
1111 class SashLayoutWindow(SashWindow):
1112 def __repr__(self):
1113 return "<%s.%s; proxy of C++ wxSashLayoutWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1114 def __init__(self, *args, **kwargs):
1115 """
1116 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
1117 long style=wxCLIP_CHILDREN|wxSW_3D,
1118 String name=SashLayoutNameStr) -> SashLayoutWindow
1119 """
1120 newobj = _windows.new_SashLayoutWindow(*args, **kwargs)
1121 self.this = newobj.this
1122 self.thisown = 1
1123 del newobj.thisown
1124 self._setOORInfo(self)
1125
1126 def Create(*args, **kwargs):
1127 """
1128 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
1129 long style=wxCLIP_CHILDREN|wxSW_3D,
1130 String name=SashLayoutNameStr) -> bool
1131 """
1132 return _windows.SashLayoutWindow_Create(*args, **kwargs)
1133
1134 def GetAlignment(*args, **kwargs):
1135 """GetAlignment() -> int"""
1136 return _windows.SashLayoutWindow_GetAlignment(*args, **kwargs)
1137
1138 def GetOrientation(*args, **kwargs):
1139 """GetOrientation() -> int"""
1140 return _windows.SashLayoutWindow_GetOrientation(*args, **kwargs)
1141
1142 def SetAlignment(*args, **kwargs):
1143 """SetAlignment(int alignment)"""
1144 return _windows.SashLayoutWindow_SetAlignment(*args, **kwargs)
1145
1146 def SetDefaultSize(*args, **kwargs):
1147 """SetDefaultSize(Size size)"""
1148 return _windows.SashLayoutWindow_SetDefaultSize(*args, **kwargs)
1149
1150 def SetOrientation(*args, **kwargs):
1151 """SetOrientation(int orientation)"""
1152 return _windows.SashLayoutWindow_SetOrientation(*args, **kwargs)
1153
1154
1155 class SashLayoutWindowPtr(SashLayoutWindow):
1156 def __init__(self, this):
1157 self.this = this
1158 if not hasattr(self,"thisown"): self.thisown = 0
1159 self.__class__ = SashLayoutWindow
1160 _windows.SashLayoutWindow_swigregister(SashLayoutWindowPtr)
1161
1162 def PreSashLayoutWindow(*args, **kwargs):
1163 """PreSashLayoutWindow() -> SashLayoutWindow"""
1164 val = _windows.new_PreSashLayoutWindow(*args, **kwargs)
1165 val.thisown = 1
1166 return val
1167
1168 class LayoutAlgorithm(core.Object):
1169 def __repr__(self):
1170 return "<%s.%s; proxy of C++ wxLayoutAlgorithm instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1171 def __init__(self, *args, **kwargs):
1172 """__init__() -> LayoutAlgorithm"""
1173 newobj = _windows.new_LayoutAlgorithm(*args, **kwargs)
1174 self.this = newobj.this
1175 self.thisown = 1
1176 del newobj.thisown
1177 def __del__(self, destroy=_windows.delete_LayoutAlgorithm):
1178 """__del__()"""
1179 try:
1180 if self.thisown: destroy(self)
1181 except: pass
1182
1183 def LayoutMDIFrame(*args, **kwargs):
1184 """LayoutMDIFrame(MDIParentFrame frame, Rect rect=None) -> bool"""
1185 return _windows.LayoutAlgorithm_LayoutMDIFrame(*args, **kwargs)
1186
1187 def LayoutFrame(*args, **kwargs):
1188 """LayoutFrame(Frame frame, Window mainWindow=None) -> bool"""
1189 return _windows.LayoutAlgorithm_LayoutFrame(*args, **kwargs)
1190
1191 def LayoutWindow(*args, **kwargs):
1192 """LayoutWindow(Window parent, Window mainWindow=None) -> bool"""
1193 return _windows.LayoutAlgorithm_LayoutWindow(*args, **kwargs)
1194
1195
1196 class LayoutAlgorithmPtr(LayoutAlgorithm):
1197 def __init__(self, this):
1198 self.this = this
1199 if not hasattr(self,"thisown"): self.thisown = 0
1200 self.__class__ = LayoutAlgorithm
1201 _windows.LayoutAlgorithm_swigregister(LayoutAlgorithmPtr)
1202
1203 class PopupWindow(core.Window):
1204 def __repr__(self):
1205 return "<%s.%s; proxy of C++ wxPopupWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1206 def __init__(self, *args, **kwargs):
1207 """__init__(Window parent, int flags=BORDER_NONE) -> PopupWindow"""
1208 newobj = _windows.new_PopupWindow(*args, **kwargs)
1209 self.this = newobj.this
1210 self.thisown = 1
1211 del newobj.thisown
1212
1213 class PopupWindowPtr(PopupWindow):
1214 def __init__(self, this):
1215 self.this = this
1216 if not hasattr(self,"thisown"): self.thisown = 0
1217 self.__class__ = PopupWindow
1218 _windows.PopupWindow_swigregister(PopupWindowPtr)
1219
1220 def PrePopupWindow(*args, **kwargs):
1221 """PrePopupWindow() -> PopupWindow"""
1222 val = _windows.new_PrePopupWindow(*args, **kwargs)
1223 val.thisown = 1
1224 return val
1225
1226 class PopupTransientWindow(PopupWindow):
1227 def __repr__(self):
1228 return "<%s.%s; proxy of C++ wxPyPopupTransientWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1229 def __init__(self, *args, **kwargs):
1230 """__init__(Window parent, int style=BORDER_NONE) -> PopupTransientWindow"""
1231 newobj = _windows.new_PopupTransientWindow(*args, **kwargs)
1232 self.this = newobj.this
1233 self.thisown = 1
1234 del newobj.thisown
1235
1236 class PopupTransientWindowPtr(PopupTransientWindow):
1237 def __init__(self, this):
1238 self.this = this
1239 if not hasattr(self,"thisown"): self.thisown = 0
1240 self.__class__ = PopupTransientWindow
1241 _windows.PopupTransientWindow_swigregister(PopupTransientWindowPtr)
1242
1243 def PrePopupTransientWindow(*args, **kwargs):
1244 """PrePopupTransientWindow() -> PopupTransientWindow"""
1245 val = _windows.new_PrePopupTransientWindow(*args, **kwargs)
1246 val.thisown = 1
1247 return val
1248
1249 #---------------------------------------------------------------------------
1250
1251 class TipWindow(Frame):
1252 def __repr__(self):
1253 return "<%s.%s; proxy of C++ wxTipWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1254 def __init__(self, *args, **kwargs):
1255 """__init__(Window parent, String text, int maxLength=100, Rect rectBound=None) -> TipWindow"""
1256 newobj = _windows.new_TipWindow(*args, **kwargs)
1257 self.this = newobj.this
1258 self.thisown = 1
1259 del newobj.thisown
1260 self._setOORInfo(self)
1261
1262 def SetBoundingRect(*args, **kwargs):
1263 """SetBoundingRect(Rect rectBound)"""
1264 return _windows.TipWindow_SetBoundingRect(*args, **kwargs)
1265
1266 def Close(*args, **kwargs):
1267 """Close()"""
1268 return _windows.TipWindow_Close(*args, **kwargs)
1269
1270
1271 class TipWindowPtr(TipWindow):
1272 def __init__(self, this):
1273 self.this = this
1274 if not hasattr(self,"thisown"): self.thisown = 0
1275 self.__class__ = TipWindow
1276 _windows.TipWindow_swigregister(TipWindowPtr)
1277
1278 #---------------------------------------------------------------------------
1279
1280 class VScrolledWindow(Panel):
1281 def __repr__(self):
1282 return "<%s.%s; proxy of C++ wxPyVScrolledWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1283 def __init__(self, *args, **kwargs):
1284 """
1285 __init__(Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1286 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> VScrolledWindow
1287 """
1288 newobj = _windows.new_VScrolledWindow(*args, **kwargs)
1289 self.this = newobj.this
1290 self.thisown = 1
1291 del newobj.thisown
1292 self._setOORInfo(self); self._setCallbackInfo(self, VScrolledWindow)
1293
1294 def _setCallbackInfo(*args, **kwargs):
1295 """_setCallbackInfo(PyObject self, PyObject _class)"""
1296 return _windows.VScrolledWindow__setCallbackInfo(*args, **kwargs)
1297
1298 def Create(*args, **kwargs):
1299 """
1300 Create(Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1301 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> bool
1302 """
1303 return _windows.VScrolledWindow_Create(*args, **kwargs)
1304
1305 def SetLineCount(*args, **kwargs):
1306 """SetLineCount(size_t count)"""
1307 return _windows.VScrolledWindow_SetLineCount(*args, **kwargs)
1308
1309 def ScrollToLine(*args, **kwargs):
1310 """ScrollToLine(size_t line) -> bool"""
1311 return _windows.VScrolledWindow_ScrollToLine(*args, **kwargs)
1312
1313 def ScrollLines(*args, **kwargs):
1314 """ScrollLines(int lines) -> bool"""
1315 return _windows.VScrolledWindow_ScrollLines(*args, **kwargs)
1316
1317 def ScrollPages(*args, **kwargs):
1318 """ScrollPages(int pages) -> bool"""
1319 return _windows.VScrolledWindow_ScrollPages(*args, **kwargs)
1320
1321 def RefreshLine(*args, **kwargs):
1322 """RefreshLine(size_t line)"""
1323 return _windows.VScrolledWindow_RefreshLine(*args, **kwargs)
1324
1325 def RefreshLines(*args, **kwargs):
1326 """RefreshLines(size_t from, size_t to)"""
1327 return _windows.VScrolledWindow_RefreshLines(*args, **kwargs)
1328
1329 def HitTestXT(*args, **kwargs):
1330 """HitTestXT(int x, int y) -> int"""
1331 return _windows.VScrolledWindow_HitTestXT(*args, **kwargs)
1332
1333 def HitTest(*args, **kwargs):
1334 """HitTest(Point pt) -> int"""
1335 return _windows.VScrolledWindow_HitTest(*args, **kwargs)
1336
1337 def RefreshAll(*args, **kwargs):
1338 """RefreshAll()"""
1339 return _windows.VScrolledWindow_RefreshAll(*args, **kwargs)
1340
1341 def GetLineCount(*args, **kwargs):
1342 """GetLineCount() -> size_t"""
1343 return _windows.VScrolledWindow_GetLineCount(*args, **kwargs)
1344
1345 def GetFirstVisibleLine(*args, **kwargs):
1346 """GetFirstVisibleLine() -> size_t"""
1347 return _windows.VScrolledWindow_GetFirstVisibleLine(*args, **kwargs)
1348
1349 def GetLastVisibleLine(*args, **kwargs):
1350 """GetLastVisibleLine() -> size_t"""
1351 return _windows.VScrolledWindow_GetLastVisibleLine(*args, **kwargs)
1352
1353 def IsVisible(*args, **kwargs):
1354 """IsVisible(size_t line) -> bool"""
1355 return _windows.VScrolledWindow_IsVisible(*args, **kwargs)
1356
1357
1358 class VScrolledWindowPtr(VScrolledWindow):
1359 def __init__(self, this):
1360 self.this = this
1361 if not hasattr(self,"thisown"): self.thisown = 0
1362 self.__class__ = VScrolledWindow
1363 _windows.VScrolledWindow_swigregister(VScrolledWindowPtr)
1364
1365 def PreVScrolledWindow(*args, **kwargs):
1366 """PreVScrolledWindow() -> VScrolledWindow"""
1367 val = _windows.new_PreVScrolledWindow(*args, **kwargs)
1368 val.thisown = 1
1369 return val
1370
1371 class VListBox(VScrolledWindow):
1372 def __repr__(self):
1373 return "<%s.%s; proxy of C++ wxPyVListBox instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1374 def __init__(self, *args, **kwargs):
1375 """
1376 __init__(Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1377 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> VListBox
1378 """
1379 newobj = _windows.new_VListBox(*args, **kwargs)
1380 self.this = newobj.this
1381 self.thisown = 1
1382 del newobj.thisown
1383 self._setOORInfo(self);self._setCallbackInfo(self, VListBox)
1384
1385 def _setCallbackInfo(*args, **kwargs):
1386 """_setCallbackInfo(PyObject self, PyObject _class)"""
1387 return _windows.VListBox__setCallbackInfo(*args, **kwargs)
1388
1389 def Create(*args, **kwargs):
1390 """
1391 Create(Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1392 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
1393 """
1394 return _windows.VListBox_Create(*args, **kwargs)
1395
1396 def GetItemCount(*args, **kwargs):
1397 """GetItemCount() -> size_t"""
1398 return _windows.VListBox_GetItemCount(*args, **kwargs)
1399
1400 def HasMultipleSelection(*args, **kwargs):
1401 """HasMultipleSelection() -> bool"""
1402 return _windows.VListBox_HasMultipleSelection(*args, **kwargs)
1403
1404 def GetSelection(*args, **kwargs):
1405 """GetSelection() -> int"""
1406 return _windows.VListBox_GetSelection(*args, **kwargs)
1407
1408 def IsCurrent(*args, **kwargs):
1409 """IsCurrent(size_t item) -> bool"""
1410 return _windows.VListBox_IsCurrent(*args, **kwargs)
1411
1412 def IsSelected(*args, **kwargs):
1413 """IsSelected(size_t item) -> bool"""
1414 return _windows.VListBox_IsSelected(*args, **kwargs)
1415
1416 def GetSelectedCount(*args, **kwargs):
1417 """GetSelectedCount() -> size_t"""
1418 return _windows.VListBox_GetSelectedCount(*args, **kwargs)
1419
1420 def GetFirstSelected(*args, **kwargs):
1421 """GetFirstSelected(unsigned long cookie) -> int"""
1422 return _windows.VListBox_GetFirstSelected(*args, **kwargs)
1423
1424 def GetNextSelected(*args, **kwargs):
1425 """GetNextSelected(unsigned long cookie) -> int"""
1426 return _windows.VListBox_GetNextSelected(*args, **kwargs)
1427
1428 def GetMargins(*args, **kwargs):
1429 """GetMargins() -> Point"""
1430 return _windows.VListBox_GetMargins(*args, **kwargs)
1431
1432 def GetSelectionBackground(*args, **kwargs):
1433 """GetSelectionBackground() -> Colour"""
1434 return _windows.VListBox_GetSelectionBackground(*args, **kwargs)
1435
1436 def SetItemCount(*args, **kwargs):
1437 """SetItemCount(size_t count)"""
1438 return _windows.VListBox_SetItemCount(*args, **kwargs)
1439
1440 def Clear(*args, **kwargs):
1441 """Clear()"""
1442 return _windows.VListBox_Clear(*args, **kwargs)
1443
1444 def SetSelection(*args, **kwargs):
1445 """SetSelection(int selection)"""
1446 return _windows.VListBox_SetSelection(*args, **kwargs)
1447
1448 def Select(*args, **kwargs):
1449 """Select(size_t item, bool select=True) -> bool"""
1450 return _windows.VListBox_Select(*args, **kwargs)
1451
1452 def SelectRange(*args, **kwargs):
1453 """SelectRange(size_t from, size_t to) -> bool"""
1454 return _windows.VListBox_SelectRange(*args, **kwargs)
1455
1456 def Toggle(*args, **kwargs):
1457 """Toggle(size_t item)"""
1458 return _windows.VListBox_Toggle(*args, **kwargs)
1459
1460 def SelectAll(*args, **kwargs):
1461 """SelectAll() -> bool"""
1462 return _windows.VListBox_SelectAll(*args, **kwargs)
1463
1464 def DeselectAll(*args, **kwargs):
1465 """DeselectAll() -> bool"""
1466 return _windows.VListBox_DeselectAll(*args, **kwargs)
1467
1468 def SetMargins(*args, **kwargs):
1469 """SetMargins(Point pt)"""
1470 return _windows.VListBox_SetMargins(*args, **kwargs)
1471
1472 def SetMarginsXY(*args, **kwargs):
1473 """SetMarginsXY(int x, int y)"""
1474 return _windows.VListBox_SetMarginsXY(*args, **kwargs)
1475
1476 def SetSelectionBackground(*args, **kwargs):
1477 """SetSelectionBackground(Colour col)"""
1478 return _windows.VListBox_SetSelectionBackground(*args, **kwargs)
1479
1480
1481 class VListBoxPtr(VListBox):
1482 def __init__(self, this):
1483 self.this = this
1484 if not hasattr(self,"thisown"): self.thisown = 0
1485 self.__class__ = VListBox
1486 _windows.VListBox_swigregister(VListBoxPtr)
1487 VListBoxNameStr = cvar.VListBoxNameStr
1488
1489 def PreVListBox(*args, **kwargs):
1490 """PreVListBox() -> VListBox"""
1491 val = _windows.new_PreVListBox(*args, **kwargs)
1492 val.thisown = 1
1493 return val
1494
1495 class HtmlListBox(VListBox):
1496 def __repr__(self):
1497 return "<%s.%s; proxy of C++ wxPyHtmlListBox instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1498 def __init__(self, *args, **kwargs):
1499 """
1500 __init__(Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1501 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> HtmlListBox
1502 """
1503 newobj = _windows.new_HtmlListBox(*args, **kwargs)
1504 self.this = newobj.this
1505 self.thisown = 1
1506 del newobj.thisown
1507 self._setOORInfo(self);self._setCallbackInfo(self, HtmlListBox)
1508
1509 def _setCallbackInfo(*args, **kwargs):
1510 """_setCallbackInfo(PyObject self, PyObject _class)"""
1511 return _windows.HtmlListBox__setCallbackInfo(*args, **kwargs)
1512
1513 def Create(*args, **kwargs):
1514 """
1515 Create(Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1516 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
1517 """
1518 return _windows.HtmlListBox_Create(*args, **kwargs)
1519
1520 def RefreshAll(*args, **kwargs):
1521 """RefreshAll()"""
1522 return _windows.HtmlListBox_RefreshAll(*args, **kwargs)
1523
1524 def SetItemCount(*args, **kwargs):
1525 """SetItemCount(size_t count)"""
1526 return _windows.HtmlListBox_SetItemCount(*args, **kwargs)
1527
1528
1529 class HtmlListBoxPtr(HtmlListBox):
1530 def __init__(self, this):
1531 self.this = this
1532 if not hasattr(self,"thisown"): self.thisown = 0
1533 self.__class__ = HtmlListBox
1534 _windows.HtmlListBox_swigregister(HtmlListBoxPtr)
1535
1536 def PreHtmlListBox(*args, **kwargs):
1537 """PreHtmlListBox() -> HtmlListBox"""
1538 val = _windows.new_PreHtmlListBox(*args, **kwargs)
1539 val.thisown = 1
1540 return val
1541
1542 #---------------------------------------------------------------------------
1543
1544 class TaskBarIcon(core.EvtHandler):
1545 def __repr__(self):
1546 return "<%s.%s; proxy of C++ wxTaskBarIcon instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1547 def __init__(self, *args, **kwargs):
1548 """__init__() -> TaskBarIcon"""
1549 newobj = _windows.new_TaskBarIcon(*args, **kwargs)
1550 self.this = newobj.this
1551 self.thisown = 1
1552 del newobj.thisown
1553 def __del__(self, destroy=_windows.delete_TaskBarIcon):
1554 """__del__()"""
1555 try:
1556 if self.thisown: destroy(self)
1557 except: pass
1558
1559
1560 class TaskBarIconPtr(TaskBarIcon):
1561 def __init__(self, this):
1562 self.this = this
1563 if not hasattr(self,"thisown"): self.thisown = 0
1564 self.__class__ = TaskBarIcon
1565 _windows.TaskBarIcon_swigregister(TaskBarIconPtr)
1566
1567 class TaskBarIconEvent(core.Event):
1568 def __repr__(self):
1569 return "<%s.%s; proxy of C++ wxTaskBarIconEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1570 def __init__(self, *args, **kwargs):
1571 """__init__(wxEventType evtType, TaskBarIcon tbIcon) -> TaskBarIconEvent"""
1572 newobj = _windows.new_TaskBarIconEvent(*args, **kwargs)
1573 self.this = newobj.this
1574 self.thisown = 1
1575 del newobj.thisown
1576
1577 class TaskBarIconEventPtr(TaskBarIconEvent):
1578 def __init__(self, this):
1579 self.this = this
1580 if not hasattr(self,"thisown"): self.thisown = 0
1581 self.__class__ = TaskBarIconEvent
1582 _windows.TaskBarIconEvent_swigregister(TaskBarIconEventPtr)
1583
1584 wxEVT_TASKBAR_MOVE = _windows.wxEVT_TASKBAR_MOVE
1585 wxEVT_TASKBAR_LEFT_DOWN = _windows.wxEVT_TASKBAR_LEFT_DOWN
1586 wxEVT_TASKBAR_LEFT_UP = _windows.wxEVT_TASKBAR_LEFT_UP
1587 wxEVT_TASKBAR_RIGHT_DOWN = _windows.wxEVT_TASKBAR_RIGHT_DOWN
1588 wxEVT_TASKBAR_RIGHT_UP = _windows.wxEVT_TASKBAR_RIGHT_UP
1589 wxEVT_TASKBAR_LEFT_DCLICK = _windows.wxEVT_TASKBAR_LEFT_DCLICK
1590 wxEVT_TASKBAR_RIGHT_DCLICK = _windows.wxEVT_TASKBAR_RIGHT_DCLICK
1591 EVT_TASKBAR_MOVE = wx.PyEventBinder ( wxEVT_TASKBAR_MOVE )
1592 EVT_TASKBAR_LEFT_DOWN = wx.PyEventBinder ( wxEVT_TASKBAR_LEFT_DOWN )
1593 EVT_TASKBAR_LEFT_UP = wx.PyEventBinder ( wxEVT_TASKBAR_LEFT_UP )
1594 EVT_TASKBAR_RIGHT_DOWN = wx.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DOWN )
1595 EVT_TASKBAR_RIGHT_UP = wx.PyEventBinder ( wxEVT_TASKBAR_RIGHT_UP )
1596 EVT_TASKBAR_LEFT_DCLICK = wx.PyEventBinder ( wxEVT_TASKBAR_LEFT_DCLICK )
1597 EVT_TASKBAR_RIGHT_DCLICK = wx.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DCLICK )
1598
1599 #---------------------------------------------------------------------------
1600
1601 class ColourData(core.Object):
1602 def __repr__(self):
1603 return "<%s.%s; proxy of C++ wxColourData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1604 def __init__(self, *args, **kwargs):
1605 """__init__() -> ColourData"""
1606 newobj = _windows.new_ColourData(*args, **kwargs)
1607 self.this = newobj.this
1608 self.thisown = 1
1609 del newobj.thisown
1610 def __del__(self, destroy=_windows.delete_ColourData):
1611 """__del__()"""
1612 try:
1613 if self.thisown: destroy(self)
1614 except: pass
1615
1616 def GetChooseFull(*args, **kwargs):
1617 """GetChooseFull() -> bool"""
1618 return _windows.ColourData_GetChooseFull(*args, **kwargs)
1619
1620 def GetColour(*args, **kwargs):
1621 """GetColour() -> Colour"""
1622 return _windows.ColourData_GetColour(*args, **kwargs)
1623
1624 def GetCustomColour(*args, **kwargs):
1625 """GetCustomColour(int i) -> Colour"""
1626 return _windows.ColourData_GetCustomColour(*args, **kwargs)
1627
1628 def SetChooseFull(*args, **kwargs):
1629 """SetChooseFull(int flag)"""
1630 return _windows.ColourData_SetChooseFull(*args, **kwargs)
1631
1632 def SetColour(*args, **kwargs):
1633 """SetColour(Colour colour)"""
1634 return _windows.ColourData_SetColour(*args, **kwargs)
1635
1636 def SetCustomColour(*args, **kwargs):
1637 """SetCustomColour(int i, Colour colour)"""
1638 return _windows.ColourData_SetCustomColour(*args, **kwargs)
1639
1640
1641 class ColourDataPtr(ColourData):
1642 def __init__(self, this):
1643 self.this = this
1644 if not hasattr(self,"thisown"): self.thisown = 0
1645 self.__class__ = ColourData
1646 _windows.ColourData_swigregister(ColourDataPtr)
1647 FileSelectorPromptStr = cvar.FileSelectorPromptStr
1648 DirSelectorPromptStr = cvar.DirSelectorPromptStr
1649 DirDialogNameStr = cvar.DirDialogNameStr
1650 FileSelectorDefaultWildcardStr = cvar.FileSelectorDefaultWildcardStr
1651 GetTextFromUserPromptStr = cvar.GetTextFromUserPromptStr
1652 MessageBoxCaptionStr = cvar.MessageBoxCaptionStr
1653
1654 class ColourDialog(Dialog):
1655 def __repr__(self):
1656 return "<%s.%s; proxy of C++ wxColourDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1657 def __init__(self, *args, **kwargs):
1658 """__init__(Window parent, ColourData data=None) -> ColourDialog"""
1659 newobj = _windows.new_ColourDialog(*args, **kwargs)
1660 self.this = newobj.this
1661 self.thisown = 1
1662 del newobj.thisown
1663 self._setOORInfo(self)
1664
1665 def GetColourData(*args, **kwargs):
1666 """GetColourData() -> ColourData"""
1667 return _windows.ColourDialog_GetColourData(*args, **kwargs)
1668
1669 def ShowModal(*args, **kwargs):
1670 """ShowModal() -> int"""
1671 return _windows.ColourDialog_ShowModal(*args, **kwargs)
1672
1673
1674 class ColourDialogPtr(ColourDialog):
1675 def __init__(self, this):
1676 self.this = this
1677 if not hasattr(self,"thisown"): self.thisown = 0
1678 self.__class__ = ColourDialog
1679 _windows.ColourDialog_swigregister(ColourDialogPtr)
1680
1681 class DirDialog(Dialog):
1682 def __repr__(self):
1683 return "<%s.%s; proxy of C++ wxDirDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1684 def __init__(self, *args, **kwargs):
1685 """
1686 __init__(Window parent, String message=DirSelectorPromptStr,
1687 String defaultPath=EmptyString, long style=0,
1688 Point pos=DefaultPosition, Size size=DefaultSize,
1689 String name=DirDialogNameStr) -> DirDialog
1690 """
1691 newobj = _windows.new_DirDialog(*args, **kwargs)
1692 self.this = newobj.this
1693 self.thisown = 1
1694 del newobj.thisown
1695 self._setOORInfo(self)
1696
1697 def GetPath(*args, **kwargs):
1698 """GetPath() -> String"""
1699 return _windows.DirDialog_GetPath(*args, **kwargs)
1700
1701 def GetMessage(*args, **kwargs):
1702 """GetMessage() -> String"""
1703 return _windows.DirDialog_GetMessage(*args, **kwargs)
1704
1705 def GetStyle(*args, **kwargs):
1706 """GetStyle() -> long"""
1707 return _windows.DirDialog_GetStyle(*args, **kwargs)
1708
1709 def SetMessage(*args, **kwargs):
1710 """SetMessage(String message)"""
1711 return _windows.DirDialog_SetMessage(*args, **kwargs)
1712
1713 def SetPath(*args, **kwargs):
1714 """SetPath(String path)"""
1715 return _windows.DirDialog_SetPath(*args, **kwargs)
1716
1717 def ShowModal(*args, **kwargs):
1718 """ShowModal() -> int"""
1719 return _windows.DirDialog_ShowModal(*args, **kwargs)
1720
1721
1722 class DirDialogPtr(DirDialog):
1723 def __init__(self, this):
1724 self.this = this
1725 if not hasattr(self,"thisown"): self.thisown = 0
1726 self.__class__ = DirDialog
1727 _windows.DirDialog_swigregister(DirDialogPtr)
1728
1729 class FileDialog(Dialog):
1730 def __repr__(self):
1731 return "<%s.%s; proxy of C++ wxFileDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1732 def __init__(self, *args, **kwargs):
1733 """
1734 __init__(Window parent, String message=FileSelectorPromptStr,
1735 String defaultDir=EmptyString, String defaultFile=EmptyString,
1736 String wildcard=FileSelectorDefaultWildcardStr,
1737 long style=0, Point pos=DefaultPosition) -> FileDialog
1738 """
1739 newobj = _windows.new_FileDialog(*args, **kwargs)
1740 self.this = newobj.this
1741 self.thisown = 1
1742 del newobj.thisown
1743 self._setOORInfo(self)
1744
1745 def SetMessage(*args, **kwargs):
1746 """SetMessage(String message)"""
1747 return _windows.FileDialog_SetMessage(*args, **kwargs)
1748
1749 def SetPath(*args, **kwargs):
1750 """SetPath(String path)"""
1751 return _windows.FileDialog_SetPath(*args, **kwargs)
1752
1753 def SetDirectory(*args, **kwargs):
1754 """SetDirectory(String dir)"""
1755 return _windows.FileDialog_SetDirectory(*args, **kwargs)
1756
1757 def SetFilename(*args, **kwargs):
1758 """SetFilename(String name)"""
1759 return _windows.FileDialog_SetFilename(*args, **kwargs)
1760
1761 def SetWildcard(*args, **kwargs):
1762 """SetWildcard(String wildCard)"""
1763 return _windows.FileDialog_SetWildcard(*args, **kwargs)
1764
1765 def SetStyle(*args, **kwargs):
1766 """SetStyle(long style)"""
1767 return _windows.FileDialog_SetStyle(*args, **kwargs)
1768
1769 def SetFilterIndex(*args, **kwargs):
1770 """SetFilterIndex(int filterIndex)"""
1771 return _windows.FileDialog_SetFilterIndex(*args, **kwargs)
1772
1773 def GetMessage(*args, **kwargs):
1774 """GetMessage() -> String"""
1775 return _windows.FileDialog_GetMessage(*args, **kwargs)
1776
1777 def GetPath(*args, **kwargs):
1778 """GetPath() -> String"""
1779 return _windows.FileDialog_GetPath(*args, **kwargs)
1780
1781 def GetDirectory(*args, **kwargs):
1782 """GetDirectory() -> String"""
1783 return _windows.FileDialog_GetDirectory(*args, **kwargs)
1784
1785 def GetFilename(*args, **kwargs):
1786 """GetFilename() -> String"""
1787 return _windows.FileDialog_GetFilename(*args, **kwargs)
1788
1789 def GetWildcard(*args, **kwargs):
1790 """GetWildcard() -> String"""
1791 return _windows.FileDialog_GetWildcard(*args, **kwargs)
1792
1793 def GetStyle(*args, **kwargs):
1794 """GetStyle() -> long"""
1795 return _windows.FileDialog_GetStyle(*args, **kwargs)
1796
1797 def GetFilterIndex(*args, **kwargs):
1798 """GetFilterIndex() -> int"""
1799 return _windows.FileDialog_GetFilterIndex(*args, **kwargs)
1800
1801 def GetFilenames(*args, **kwargs):
1802 """GetFilenames() -> PyObject"""
1803 return _windows.FileDialog_GetFilenames(*args, **kwargs)
1804
1805 def GetPaths(*args, **kwargs):
1806 """GetPaths() -> PyObject"""
1807 return _windows.FileDialog_GetPaths(*args, **kwargs)
1808
1809
1810 class FileDialogPtr(FileDialog):
1811 def __init__(self, this):
1812 self.this = this
1813 if not hasattr(self,"thisown"): self.thisown = 0
1814 self.__class__ = FileDialog
1815 _windows.FileDialog_swigregister(FileDialogPtr)
1816
1817 CHOICEDLG_STYLE = _windows.CHOICEDLG_STYLE
1818 class MultiChoiceDialog(Dialog):
1819 def __repr__(self):
1820 return "<%s.%s; proxy of C++ wxMultiChoiceDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1821 def __init__(self, *args, **kwargs):
1822 """
1823 __init__(Window parent, String message, String caption, int LCOUNT,
1824 String choices, long style=CHOICEDLG_STYLE,
1825 Point pos=DefaultPosition) -> MultiChoiceDialog
1826 """
1827 newobj = _windows.new_MultiChoiceDialog(*args, **kwargs)
1828 self.this = newobj.this
1829 self.thisown = 1
1830 del newobj.thisown
1831 self._setOORInfo(self)
1832
1833 def SetSelections(*args, **kwargs):
1834 """SetSelections(wxArrayInt selections)"""
1835 return _windows.MultiChoiceDialog_SetSelections(*args, **kwargs)
1836
1837 def GetSelections(*args, **kwargs):
1838 """GetSelections() -> PyObject"""
1839 return _windows.MultiChoiceDialog_GetSelections(*args, **kwargs)
1840
1841
1842 class MultiChoiceDialogPtr(MultiChoiceDialog):
1843 def __init__(self, this):
1844 self.this = this
1845 if not hasattr(self,"thisown"): self.thisown = 0
1846 self.__class__ = MultiChoiceDialog
1847 _windows.MultiChoiceDialog_swigregister(MultiChoiceDialogPtr)
1848
1849 class SingleChoiceDialog(Dialog):
1850 def __repr__(self):
1851 return "<%s.%s; proxy of C++ wxSingleChoiceDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1852 def __init__(self, *args, **kwargs):
1853 """
1854 __init__(Window parent, String message, String caption, int choices,
1855 String choices_array, long style=CHOICEDLG_STYLE,
1856 Point pos=DefaultPosition) -> SingleChoiceDialog
1857 """
1858 newobj = _windows.new_SingleChoiceDialog(*args, **kwargs)
1859 self.this = newobj.this
1860 self.thisown = 1
1861 del newobj.thisown
1862 self._setOORInfo(self)
1863
1864 def GetSelection(*args, **kwargs):
1865 """GetSelection() -> int"""
1866 return _windows.SingleChoiceDialog_GetSelection(*args, **kwargs)
1867
1868 def GetStringSelection(*args, **kwargs):
1869 """GetStringSelection() -> String"""
1870 return _windows.SingleChoiceDialog_GetStringSelection(*args, **kwargs)
1871
1872 def SetSelection(*args, **kwargs):
1873 """SetSelection(int sel)"""
1874 return _windows.SingleChoiceDialog_SetSelection(*args, **kwargs)
1875
1876 def ShowModal(*args, **kwargs):
1877 """ShowModal() -> int"""
1878 return _windows.SingleChoiceDialog_ShowModal(*args, **kwargs)
1879
1880
1881 class SingleChoiceDialogPtr(SingleChoiceDialog):
1882 def __init__(self, this):
1883 self.this = this
1884 if not hasattr(self,"thisown"): self.thisown = 0
1885 self.__class__ = SingleChoiceDialog
1886 _windows.SingleChoiceDialog_swigregister(SingleChoiceDialogPtr)
1887
1888 class TextEntryDialog(Dialog):
1889 def __repr__(self):
1890 return "<%s.%s; proxy of C++ wxTextEntryDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1891 def __init__(self, *args, **kwargs):
1892 """
1893 __init__(Window parent, String message, String caption=GetTextFromUserPromptStr,
1894 String defaultValue=EmptyString,
1895 long style=wxOK|wxCANCEL|wxCENTRE, Point pos=DefaultPosition) -> TextEntryDialog
1896 """
1897 newobj = _windows.new_TextEntryDialog(*args, **kwargs)
1898 self.this = newobj.this
1899 self.thisown = 1
1900 del newobj.thisown
1901 self._setOORInfo(self)
1902
1903 def GetValue(*args, **kwargs):
1904 """GetValue() -> String"""
1905 return _windows.TextEntryDialog_GetValue(*args, **kwargs)
1906
1907 def SetValue(*args, **kwargs):
1908 """SetValue(String value)"""
1909 return _windows.TextEntryDialog_SetValue(*args, **kwargs)
1910
1911 def ShowModal(*args, **kwargs):
1912 """ShowModal() -> int"""
1913 return _windows.TextEntryDialog_ShowModal(*args, **kwargs)
1914
1915
1916 class TextEntryDialogPtr(TextEntryDialog):
1917 def __init__(self, this):
1918 self.this = this
1919 if not hasattr(self,"thisown"): self.thisown = 0
1920 self.__class__ = TextEntryDialog
1921 _windows.TextEntryDialog_swigregister(TextEntryDialogPtr)
1922
1923 class FontData(core.Object):
1924 def __repr__(self):
1925 return "<%s.%s; proxy of C++ wxFontData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1926 def __init__(self, *args, **kwargs):
1927 """__init__() -> FontData"""
1928 newobj = _windows.new_FontData(*args, **kwargs)
1929 self.this = newobj.this
1930 self.thisown = 1
1931 del newobj.thisown
1932 def __del__(self, destroy=_windows.delete_FontData):
1933 """__del__()"""
1934 try:
1935 if self.thisown: destroy(self)
1936 except: pass
1937
1938 def EnableEffects(*args, **kwargs):
1939 """EnableEffects(bool enable)"""
1940 return _windows.FontData_EnableEffects(*args, **kwargs)
1941
1942 def GetAllowSymbols(*args, **kwargs):
1943 """GetAllowSymbols() -> bool"""
1944 return _windows.FontData_GetAllowSymbols(*args, **kwargs)
1945
1946 def GetColour(*args, **kwargs):
1947 """GetColour() -> Colour"""
1948 return _windows.FontData_GetColour(*args, **kwargs)
1949
1950 def GetChosenFont(*args, **kwargs):
1951 """GetChosenFont() -> Font"""
1952 return _windows.FontData_GetChosenFont(*args, **kwargs)
1953
1954 def GetEnableEffects(*args, **kwargs):
1955 """GetEnableEffects() -> bool"""
1956 return _windows.FontData_GetEnableEffects(*args, **kwargs)
1957
1958 def GetInitialFont(*args, **kwargs):
1959 """GetInitialFont() -> Font"""
1960 return _windows.FontData_GetInitialFont(*args, **kwargs)
1961
1962 def GetShowHelp(*args, **kwargs):
1963 """GetShowHelp() -> bool"""
1964 return _windows.FontData_GetShowHelp(*args, **kwargs)
1965
1966 def SetAllowSymbols(*args, **kwargs):
1967 """SetAllowSymbols(bool allowSymbols)"""
1968 return _windows.FontData_SetAllowSymbols(*args, **kwargs)
1969
1970 def SetChosenFont(*args, **kwargs):
1971 """SetChosenFont(Font font)"""
1972 return _windows.FontData_SetChosenFont(*args, **kwargs)
1973
1974 def SetColour(*args, **kwargs):
1975 """SetColour(Colour colour)"""
1976 return _windows.FontData_SetColour(*args, **kwargs)
1977
1978 def SetInitialFont(*args, **kwargs):
1979 """SetInitialFont(Font font)"""
1980 return _windows.FontData_SetInitialFont(*args, **kwargs)
1981
1982 def SetRange(*args, **kwargs):
1983 """SetRange(int min, int max)"""
1984 return _windows.FontData_SetRange(*args, **kwargs)
1985
1986 def SetShowHelp(*args, **kwargs):
1987 """SetShowHelp(bool showHelp)"""
1988 return _windows.FontData_SetShowHelp(*args, **kwargs)
1989
1990
1991 class FontDataPtr(FontData):
1992 def __init__(self, this):
1993 self.this = this
1994 if not hasattr(self,"thisown"): self.thisown = 0
1995 self.__class__ = FontData
1996 _windows.FontData_swigregister(FontDataPtr)
1997
1998 class FontDialog(Dialog):
1999 def __repr__(self):
2000 return "<%s.%s; proxy of C++ wxFontDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2001 def __init__(self, *args, **kwargs):
2002 """__init__(Window parent, FontData data) -> FontDialog"""
2003 newobj = _windows.new_FontDialog(*args, **kwargs)
2004 self.this = newobj.this
2005 self.thisown = 1
2006 del newobj.thisown
2007 self._setOORInfo(self)
2008
2009 def GetFontData(*args, **kwargs):
2010 """GetFontData() -> FontData"""
2011 return _windows.FontDialog_GetFontData(*args, **kwargs)
2012
2013 def ShowModal(*args, **kwargs):
2014 """ShowModal() -> int"""
2015 return _windows.FontDialog_ShowModal(*args, **kwargs)
2016
2017
2018 class FontDialogPtr(FontDialog):
2019 def __init__(self, this):
2020 self.this = this
2021 if not hasattr(self,"thisown"): self.thisown = 0
2022 self.__class__ = FontDialog
2023 _windows.FontDialog_swigregister(FontDialogPtr)
2024
2025 class MessageDialog(Dialog):
2026 def __repr__(self):
2027 return "<%s.%s; proxy of C++ wxMessageDialog 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=MessageBoxCaptionStr,
2031 long style=wxOK|wxCANCEL|wxCENTRE,
2032 Point pos=DefaultPosition) -> MessageDialog
2033 """
2034 newobj = _windows.new_MessageDialog(*args, **kwargs)
2035 self.this = newobj.this
2036 self.thisown = 1
2037 del newobj.thisown
2038 self._setOORInfo(self)
2039
2040 def ShowModal(*args, **kwargs):
2041 """ShowModal() -> int"""
2042 return _windows.MessageDialog_ShowModal(*args, **kwargs)
2043
2044
2045 class MessageDialogPtr(MessageDialog):
2046 def __init__(self, this):
2047 self.this = this
2048 if not hasattr(self,"thisown"): self.thisown = 0
2049 self.__class__ = MessageDialog
2050 _windows.MessageDialog_swigregister(MessageDialogPtr)
2051
2052 class ProgressDialog(Frame):
2053 def __repr__(self):
2054 return "<%s.%s; proxy of C++ wxProgressDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2055 def __init__(self, *args, **kwargs):
2056 """
2057 __init__(String title, String message, int maximum=100, Window parent=None,
2058 int style=wxPD_AUTO_HIDE|wxPD_APP_MODAL) -> ProgressDialog
2059 """
2060 newobj = _windows.new_ProgressDialog(*args, **kwargs)
2061 self.this = newobj.this
2062 self.thisown = 1
2063 del newobj.thisown
2064 self._setOORInfo(self)
2065
2066 def Update(*args, **kwargs):
2067 """Update(int value, String newmsg=EmptyString) -> bool"""
2068 return _windows.ProgressDialog_Update(*args, **kwargs)
2069
2070 def Resume(*args, **kwargs):
2071 """Resume()"""
2072 return _windows.ProgressDialog_Resume(*args, **kwargs)
2073
2074
2075 class ProgressDialogPtr(ProgressDialog):
2076 def __init__(self, this):
2077 self.this = this
2078 if not hasattr(self,"thisown"): self.thisown = 0
2079 self.__class__ = ProgressDialog
2080 _windows.ProgressDialog_swigregister(ProgressDialogPtr)
2081
2082 FR_DOWN = _windows.FR_DOWN
2083 FR_WHOLEWORD = _windows.FR_WHOLEWORD
2084 FR_MATCHCASE = _windows.FR_MATCHCASE
2085 FR_REPLACEDIALOG = _windows.FR_REPLACEDIALOG
2086 FR_NOUPDOWN = _windows.FR_NOUPDOWN
2087 FR_NOMATCHCASE = _windows.FR_NOMATCHCASE
2088 FR_NOWHOLEWORD = _windows.FR_NOWHOLEWORD
2089 wxEVT_COMMAND_FIND = _windows.wxEVT_COMMAND_FIND
2090 wxEVT_COMMAND_FIND_NEXT = _windows.wxEVT_COMMAND_FIND_NEXT
2091 wxEVT_COMMAND_FIND_REPLACE = _windows.wxEVT_COMMAND_FIND_REPLACE
2092 wxEVT_COMMAND_FIND_REPLACE_ALL = _windows.wxEVT_COMMAND_FIND_REPLACE_ALL
2093 wxEVT_COMMAND_FIND_CLOSE = _windows.wxEVT_COMMAND_FIND_CLOSE
2094 EVT_FIND = wx.PyEventBinder( wxEVT_COMMAND_FIND, 1 )
2095 EVT_FIND_NEXT = wx.PyEventBinder( wxEVT_COMMAND_FIND_NEXT, 1 )
2096 EVT_FIND_REPLACE = wx.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE, 1 )
2097 EVT_FIND_REPLACE_ALL = wx.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE_ALL, 1 )
2098 EVT_FIND_CLOSE = wx.PyEventBinder( wxEVT_COMMAND_FIND_CLOSE, 1 )
2099
2100 # For backwards compatibility. Should they be removed?
2101 EVT_COMMAND_FIND = EVT_FIND
2102 EVT_COMMAND_FIND_NEXT = EVT_FIND_NEXT
2103 EVT_COMMAND_FIND_REPLACE = EVT_FIND_REPLACE
2104 EVT_COMMAND_FIND_REPLACE_ALL = EVT_FIND_REPLACE_ALL
2105 EVT_COMMAND_FIND_CLOSE = EVT_FIND_CLOSE
2106
2107 class FindDialogEvent(core.CommandEvent):
2108 def __repr__(self):
2109 return "<%s.%s; proxy of C++ wxFindDialogEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2110 def __init__(self, *args, **kwargs):
2111 """__init__(wxEventType commandType=wxEVT_NULL, int id=0) -> FindDialogEvent"""
2112 newobj = _windows.new_FindDialogEvent(*args, **kwargs)
2113 self.this = newobj.this
2114 self.thisown = 1
2115 del newobj.thisown
2116 def GetFlags(*args, **kwargs):
2117 """GetFlags() -> int"""
2118 return _windows.FindDialogEvent_GetFlags(*args, **kwargs)
2119
2120 def GetFindString(*args, **kwargs):
2121 """GetFindString() -> String"""
2122 return _windows.FindDialogEvent_GetFindString(*args, **kwargs)
2123
2124 def GetReplaceString(*args, **kwargs):
2125 """GetReplaceString() -> String"""
2126 return _windows.FindDialogEvent_GetReplaceString(*args, **kwargs)
2127
2128 def GetDialog(*args, **kwargs):
2129 """GetDialog() -> FindReplaceDialog"""
2130 return _windows.FindDialogEvent_GetDialog(*args, **kwargs)
2131
2132 def SetFlags(*args, **kwargs):
2133 """SetFlags(int flags)"""
2134 return _windows.FindDialogEvent_SetFlags(*args, **kwargs)
2135
2136 def SetFindString(*args, **kwargs):
2137 """SetFindString(String str)"""
2138 return _windows.FindDialogEvent_SetFindString(*args, **kwargs)
2139
2140 def SetReplaceString(*args, **kwargs):
2141 """SetReplaceString(String str)"""
2142 return _windows.FindDialogEvent_SetReplaceString(*args, **kwargs)
2143
2144
2145 class FindDialogEventPtr(FindDialogEvent):
2146 def __init__(self, this):
2147 self.this = this
2148 if not hasattr(self,"thisown"): self.thisown = 0
2149 self.__class__ = FindDialogEvent
2150 _windows.FindDialogEvent_swigregister(FindDialogEventPtr)
2151
2152 class FindReplaceData(core.Object):
2153 def __repr__(self):
2154 return "<%s.%s; proxy of C++ wxFindReplaceData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2155 def __init__(self, *args, **kwargs):
2156 """__init__(int flags=0) -> FindReplaceData"""
2157 newobj = _windows.new_FindReplaceData(*args, **kwargs)
2158 self.this = newobj.this
2159 self.thisown = 1
2160 del newobj.thisown
2161 def __del__(self, destroy=_windows.delete_FindReplaceData):
2162 """__del__()"""
2163 try:
2164 if self.thisown: destroy(self)
2165 except: pass
2166
2167 def GetFindString(*args, **kwargs):
2168 """GetFindString() -> String"""
2169 return _windows.FindReplaceData_GetFindString(*args, **kwargs)
2170
2171 def GetReplaceString(*args, **kwargs):
2172 """GetReplaceString() -> String"""
2173 return _windows.FindReplaceData_GetReplaceString(*args, **kwargs)
2174
2175 def GetFlags(*args, **kwargs):
2176 """GetFlags() -> int"""
2177 return _windows.FindReplaceData_GetFlags(*args, **kwargs)
2178
2179 def SetFlags(*args, **kwargs):
2180 """SetFlags(int flags)"""
2181 return _windows.FindReplaceData_SetFlags(*args, **kwargs)
2182
2183 def SetFindString(*args, **kwargs):
2184 """SetFindString(String str)"""
2185 return _windows.FindReplaceData_SetFindString(*args, **kwargs)
2186
2187 def SetReplaceString(*args, **kwargs):
2188 """SetReplaceString(String str)"""
2189 return _windows.FindReplaceData_SetReplaceString(*args, **kwargs)
2190
2191
2192 class FindReplaceDataPtr(FindReplaceData):
2193 def __init__(self, this):
2194 self.this = this
2195 if not hasattr(self,"thisown"): self.thisown = 0
2196 self.__class__ = FindReplaceData
2197 _windows.FindReplaceData_swigregister(FindReplaceDataPtr)
2198
2199 class FindReplaceDialog(Dialog):
2200 def __repr__(self):
2201 return "<%s.%s; proxy of C++ wxFindReplaceDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2202 def __init__(self, *args, **kwargs):
2203 """
2204 __init__(Window parent, FindReplaceData data, String title,
2205 int style=0) -> FindReplaceDialog
2206 """
2207 newobj = _windows.new_FindReplaceDialog(*args, **kwargs)
2208 self.this = newobj.this
2209 self.thisown = 1
2210 del newobj.thisown
2211 self._setOORInfo(self)
2212
2213 def Create(*args, **kwargs):
2214 """
2215 Create(Window parent, FindReplaceData data, String title,
2216 int style=0) -> bool
2217 """
2218 return _windows.FindReplaceDialog_Create(*args, **kwargs)
2219
2220 def GetData(*args, **kwargs):
2221 """GetData() -> FindReplaceData"""
2222 return _windows.FindReplaceDialog_GetData(*args, **kwargs)
2223
2224 def SetData(*args, **kwargs):
2225 """SetData(FindReplaceData data)"""
2226 return _windows.FindReplaceDialog_SetData(*args, **kwargs)
2227
2228
2229 class FindReplaceDialogPtr(FindReplaceDialog):
2230 def __init__(self, this):
2231 self.this = this
2232 if not hasattr(self,"thisown"): self.thisown = 0
2233 self.__class__ = FindReplaceDialog
2234 _windows.FindReplaceDialog_swigregister(FindReplaceDialogPtr)
2235
2236 def PreFindReplaceDialog(*args, **kwargs):
2237 """PreFindReplaceDialog() -> FindReplaceDialog"""
2238 val = _windows.new_PreFindReplaceDialog(*args, **kwargs)
2239 val.thisown = 1
2240 return val
2241
2242 #---------------------------------------------------------------------------
2243
2244 IDM_WINDOWTILE = _windows.IDM_WINDOWTILE
2245 IDM_WINDOWTILEHOR = _windows.IDM_WINDOWTILEHOR
2246 IDM_WINDOWCASCADE = _windows.IDM_WINDOWCASCADE
2247 IDM_WINDOWICONS = _windows.IDM_WINDOWICONS
2248 IDM_WINDOWNEXT = _windows.IDM_WINDOWNEXT
2249 IDM_WINDOWTILEVERT = _windows.IDM_WINDOWTILEVERT
2250 FIRST_MDI_CHILD = _windows.FIRST_MDI_CHILD
2251 LAST_MDI_CHILD = _windows.LAST_MDI_CHILD
2252 class MDIParentFrame(Frame):
2253 def __repr__(self):
2254 return "<%s.%s; proxy of C++ wxMDIParentFrame instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2255 def __init__(self, *args, **kwargs):
2256 """
2257 __init__(Window parent, int id, String title, Point pos=DefaultPosition,
2258 Size size=DefaultSize, long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
2259 String name=FrameNameStr) -> MDIParentFrame
2260 """
2261 newobj = _windows.new_MDIParentFrame(*args, **kwargs)
2262 self.this = newobj.this
2263 self.thisown = 1
2264 del newobj.thisown
2265 self._setOORInfo(self)
2266
2267 def Create(*args, **kwargs):
2268 """
2269 Create(Window parent, int id, String title, Point pos=DefaultPosition,
2270 Size size=DefaultSize, long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
2271 String name=FrameNameStr) -> bool
2272 """
2273 return _windows.MDIParentFrame_Create(*args, **kwargs)
2274
2275 def ActivateNext(*args, **kwargs):
2276 """ActivateNext()"""
2277 return _windows.MDIParentFrame_ActivateNext(*args, **kwargs)
2278
2279 def ActivatePrevious(*args, **kwargs):
2280 """ActivatePrevious()"""
2281 return _windows.MDIParentFrame_ActivatePrevious(*args, **kwargs)
2282
2283 def ArrangeIcons(*args, **kwargs):
2284 """ArrangeIcons()"""
2285 return _windows.MDIParentFrame_ArrangeIcons(*args, **kwargs)
2286
2287 def Cascade(*args, **kwargs):
2288 """Cascade()"""
2289 return _windows.MDIParentFrame_Cascade(*args, **kwargs)
2290
2291 def GetActiveChild(*args, **kwargs):
2292 """GetActiveChild() -> MDIChildFrame"""
2293 return _windows.MDIParentFrame_GetActiveChild(*args, **kwargs)
2294
2295 def GetClientWindow(*args, **kwargs):
2296 """GetClientWindow() -> MDIClientWindow"""
2297 return _windows.MDIParentFrame_GetClientWindow(*args, **kwargs)
2298
2299 def GetToolBar(*args, **kwargs):
2300 """GetToolBar() -> Window"""
2301 return _windows.MDIParentFrame_GetToolBar(*args, **kwargs)
2302
2303 def Tile(*args, **kwargs):
2304 """Tile()"""
2305 return _windows.MDIParentFrame_Tile(*args, **kwargs)
2306
2307
2308 class MDIParentFramePtr(MDIParentFrame):
2309 def __init__(self, this):
2310 self.this = this
2311 if not hasattr(self,"thisown"): self.thisown = 0
2312 self.__class__ = MDIParentFrame
2313 _windows.MDIParentFrame_swigregister(MDIParentFramePtr)
2314
2315 def PreMDIParentFrame(*args, **kwargs):
2316 """PreMDIParentFrame() -> MDIParentFrame"""
2317 val = _windows.new_PreMDIParentFrame(*args, **kwargs)
2318 val.thisown = 1
2319 return val
2320
2321 class MDIChildFrame(Frame):
2322 def __repr__(self):
2323 return "<%s.%s; proxy of C++ wxMDIChildFrame instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2324 def __init__(self, *args, **kwargs):
2325 """
2326 __init__(MDIParentFrame parent, int id, String title, Point pos=DefaultPosition,
2327 Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE,
2328 String name=FrameNameStr) -> MDIChildFrame
2329 """
2330 newobj = _windows.new_MDIChildFrame(*args, **kwargs)
2331 self.this = newobj.this
2332 self.thisown = 1
2333 del newobj.thisown
2334 self._setOORInfo(self)
2335
2336 def Create(*args, **kwargs):
2337 """
2338 Create(MDIParentFrame parent, int id, String title, Point pos=DefaultPosition,
2339 Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE,
2340 String name=FrameNameStr) -> bool
2341 """
2342 return _windows.MDIChildFrame_Create(*args, **kwargs)
2343
2344 def Activate(*args, **kwargs):
2345 """Activate()"""
2346 return _windows.MDIChildFrame_Activate(*args, **kwargs)
2347
2348 def Maximize(*args, **kwargs):
2349 """Maximize(bool maximize)"""
2350 return _windows.MDIChildFrame_Maximize(*args, **kwargs)
2351
2352 def Restore(*args, **kwargs):
2353 """Restore()"""
2354 return _windows.MDIChildFrame_Restore(*args, **kwargs)
2355
2356
2357 class MDIChildFramePtr(MDIChildFrame):
2358 def __init__(self, this):
2359 self.this = this
2360 if not hasattr(self,"thisown"): self.thisown = 0
2361 self.__class__ = MDIChildFrame
2362 _windows.MDIChildFrame_swigregister(MDIChildFramePtr)
2363
2364 def PreMDIChildFrame(*args, **kwargs):
2365 """PreMDIChildFrame() -> MDIChildFrame"""
2366 val = _windows.new_PreMDIChildFrame(*args, **kwargs)
2367 val.thisown = 1
2368 return val
2369
2370 class MDIClientWindow(core.Window):
2371 def __repr__(self):
2372 return "<%s.%s; proxy of C++ wxMDIClientWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2373 def __init__(self, *args, **kwargs):
2374 """__init__(MDIParentFrame parent, long style=0) -> MDIClientWindow"""
2375 newobj = _windows.new_MDIClientWindow(*args, **kwargs)
2376 self.this = newobj.this
2377 self.thisown = 1
2378 del newobj.thisown
2379 self._setOORInfo(self)
2380
2381 def Create(*args, **kwargs):
2382 """Create(MDIParentFrame parent, long style=0) -> bool"""
2383 return _windows.MDIClientWindow_Create(*args, **kwargs)
2384
2385
2386 class MDIClientWindowPtr(MDIClientWindow):
2387 def __init__(self, this):
2388 self.this = this
2389 if not hasattr(self,"thisown"): self.thisown = 0
2390 self.__class__ = MDIClientWindow
2391 _windows.MDIClientWindow_swigregister(MDIClientWindowPtr)
2392
2393 def PreMDIClientWindow(*args, **kwargs):
2394 """PreMDIClientWindow() -> MDIClientWindow"""
2395 val = _windows.new_PreMDIClientWindow(*args, **kwargs)
2396 val.thisown = 1
2397 return val
2398
2399 #---------------------------------------------------------------------------
2400
2401 class PyWindow(core.Window):
2402 def __repr__(self):
2403 return "<%s.%s; proxy of C++ wxPyWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2404 def __init__(self, *args, **kwargs):
2405 """
2406 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
2407 long style=0, String name=PanelNameStr) -> PyWindow
2408 """
2409 newobj = _windows.new_PyWindow(*args, **kwargs)
2410 self.this = newobj.this
2411 self.thisown = 1
2412 del newobj.thisown
2413 self._setOORInfo(self); self._setCallbackInfo(self, PyWindow)
2414
2415 def _setCallbackInfo(*args, **kwargs):
2416 """_setCallbackInfo(PyObject self, PyObject _class)"""
2417 return _windows.PyWindow__setCallbackInfo(*args, **kwargs)
2418
2419 def base_DoMoveWindow(*args, **kwargs):
2420 """base_DoMoveWindow(int x, int y, int width, int height)"""
2421 return _windows.PyWindow_base_DoMoveWindow(*args, **kwargs)
2422
2423 def base_DoSetSize(*args, **kwargs):
2424 """base_DoSetSize(int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
2425 return _windows.PyWindow_base_DoSetSize(*args, **kwargs)
2426
2427 def base_DoSetClientSize(*args, **kwargs):
2428 """base_DoSetClientSize(int width, int height)"""
2429 return _windows.PyWindow_base_DoSetClientSize(*args, **kwargs)
2430
2431 def base_DoSetVirtualSize(*args, **kwargs):
2432 """base_DoSetVirtualSize(int x, int y)"""
2433 return _windows.PyWindow_base_DoSetVirtualSize(*args, **kwargs)
2434
2435 def base_DoGetSize(*args, **kwargs):
2436 """base_DoGetSize() -> (width, height)"""
2437 return _windows.PyWindow_base_DoGetSize(*args, **kwargs)
2438
2439 def base_DoGetClientSize(*args, **kwargs):
2440 """base_DoGetClientSize() -> (width, height)"""
2441 return _windows.PyWindow_base_DoGetClientSize(*args, **kwargs)
2442
2443 def base_DoGetPosition(*args, **kwargs):
2444 """base_DoGetPosition() -> (x,y)"""
2445 return _windows.PyWindow_base_DoGetPosition(*args, **kwargs)
2446
2447 def base_DoGetVirtualSize(*args, **kwargs):
2448 """base_DoGetVirtualSize() -> Size"""
2449 return _windows.PyWindow_base_DoGetVirtualSize(*args, **kwargs)
2450
2451 def base_DoGetBestSize(*args, **kwargs):
2452 """base_DoGetBestSize() -> Size"""
2453 return _windows.PyWindow_base_DoGetBestSize(*args, **kwargs)
2454
2455 def base_InitDialog(*args, **kwargs):
2456 """base_InitDialog()"""
2457 return _windows.PyWindow_base_InitDialog(*args, **kwargs)
2458
2459 def base_TransferDataToWindow(*args, **kwargs):
2460 """base_TransferDataToWindow() -> bool"""
2461 return _windows.PyWindow_base_TransferDataToWindow(*args, **kwargs)
2462
2463 def base_TransferDataFromWindow(*args, **kwargs):
2464 """base_TransferDataFromWindow() -> bool"""
2465 return _windows.PyWindow_base_TransferDataFromWindow(*args, **kwargs)
2466
2467 def base_Validate(*args, **kwargs):
2468 """base_Validate() -> bool"""
2469 return _windows.PyWindow_base_Validate(*args, **kwargs)
2470
2471 def base_AcceptsFocus(*args, **kwargs):
2472 """base_AcceptsFocus() -> bool"""
2473 return _windows.PyWindow_base_AcceptsFocus(*args, **kwargs)
2474
2475 def base_AcceptsFocusFromKeyboard(*args, **kwargs):
2476 """base_AcceptsFocusFromKeyboard() -> bool"""
2477 return _windows.PyWindow_base_AcceptsFocusFromKeyboard(*args, **kwargs)
2478
2479 def base_GetMaxSize(*args, **kwargs):
2480 """base_GetMaxSize() -> Size"""
2481 return _windows.PyWindow_base_GetMaxSize(*args, **kwargs)
2482
2483 def base_AddChild(*args, **kwargs):
2484 """base_AddChild(Window child)"""
2485 return _windows.PyWindow_base_AddChild(*args, **kwargs)
2486
2487 def base_RemoveChild(*args, **kwargs):
2488 """base_RemoveChild(Window child)"""
2489 return _windows.PyWindow_base_RemoveChild(*args, **kwargs)
2490
2491
2492 class PyWindowPtr(PyWindow):
2493 def __init__(self, this):
2494 self.this = this
2495 if not hasattr(self,"thisown"): self.thisown = 0
2496 self.__class__ = PyWindow
2497 _windows.PyWindow_swigregister(PyWindowPtr)
2498
2499 class PyPanel(Panel):
2500 def __repr__(self):
2501 return "<%s.%s; proxy of C++ wxPyPanel instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2502 def __init__(self, *args, **kwargs):
2503 """
2504 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
2505 long style=0, String name=PanelNameStr) -> PyPanel
2506 """
2507 newobj = _windows.new_PyPanel(*args, **kwargs)
2508 self.this = newobj.this
2509 self.thisown = 1
2510 del newobj.thisown
2511 self._setOORInfo(self); self._setCallbackInfo(self, PyPanel)
2512
2513 def _setCallbackInfo(*args, **kwargs):
2514 """_setCallbackInfo(PyObject self, PyObject _class)"""
2515 return _windows.PyPanel__setCallbackInfo(*args, **kwargs)
2516
2517 def base_DoMoveWindow(*args, **kwargs):
2518 """base_DoMoveWindow(int x, int y, int width, int height)"""
2519 return _windows.PyPanel_base_DoMoveWindow(*args, **kwargs)
2520
2521 def base_DoSetSize(*args, **kwargs):
2522 """base_DoSetSize(int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
2523 return _windows.PyPanel_base_DoSetSize(*args, **kwargs)
2524
2525 def base_DoSetClientSize(*args, **kwargs):
2526 """base_DoSetClientSize(int width, int height)"""
2527 return _windows.PyPanel_base_DoSetClientSize(*args, **kwargs)
2528
2529 def base_DoSetVirtualSize(*args, **kwargs):
2530 """base_DoSetVirtualSize(int x, int y)"""
2531 return _windows.PyPanel_base_DoSetVirtualSize(*args, **kwargs)
2532
2533 def base_DoGetSize(*args, **kwargs):
2534 """base_DoGetSize() -> (width, height)"""
2535 return _windows.PyPanel_base_DoGetSize(*args, **kwargs)
2536
2537 def base_DoGetClientSize(*args, **kwargs):
2538 """base_DoGetClientSize() -> (width, height)"""
2539 return _windows.PyPanel_base_DoGetClientSize(*args, **kwargs)
2540
2541 def base_DoGetPosition(*args, **kwargs):
2542 """base_DoGetPosition() -> (x,y)"""
2543 return _windows.PyPanel_base_DoGetPosition(*args, **kwargs)
2544
2545 def base_DoGetVirtualSize(*args, **kwargs):
2546 """base_DoGetVirtualSize() -> Size"""
2547 return _windows.PyPanel_base_DoGetVirtualSize(*args, **kwargs)
2548
2549 def base_DoGetBestSize(*args, **kwargs):
2550 """base_DoGetBestSize() -> Size"""
2551 return _windows.PyPanel_base_DoGetBestSize(*args, **kwargs)
2552
2553 def base_InitDialog(*args, **kwargs):
2554 """base_InitDialog()"""
2555 return _windows.PyPanel_base_InitDialog(*args, **kwargs)
2556
2557 def base_TransferDataToWindow(*args, **kwargs):
2558 """base_TransferDataToWindow() -> bool"""
2559 return _windows.PyPanel_base_TransferDataToWindow(*args, **kwargs)
2560
2561 def base_TransferDataFromWindow(*args, **kwargs):
2562 """base_TransferDataFromWindow() -> bool"""
2563 return _windows.PyPanel_base_TransferDataFromWindow(*args, **kwargs)
2564
2565 def base_Validate(*args, **kwargs):
2566 """base_Validate() -> bool"""
2567 return _windows.PyPanel_base_Validate(*args, **kwargs)
2568
2569 def base_AcceptsFocus(*args, **kwargs):
2570 """base_AcceptsFocus() -> bool"""
2571 return _windows.PyPanel_base_AcceptsFocus(*args, **kwargs)
2572
2573 def base_AcceptsFocusFromKeyboard(*args, **kwargs):
2574 """base_AcceptsFocusFromKeyboard() -> bool"""
2575 return _windows.PyPanel_base_AcceptsFocusFromKeyboard(*args, **kwargs)
2576
2577 def base_GetMaxSize(*args, **kwargs):
2578 """base_GetMaxSize() -> Size"""
2579 return _windows.PyPanel_base_GetMaxSize(*args, **kwargs)
2580
2581 def base_AddChild(*args, **kwargs):
2582 """base_AddChild(Window child)"""
2583 return _windows.PyPanel_base_AddChild(*args, **kwargs)
2584
2585 def base_RemoveChild(*args, **kwargs):
2586 """base_RemoveChild(Window child)"""
2587 return _windows.PyPanel_base_RemoveChild(*args, **kwargs)
2588
2589
2590 class PyPanelPtr(PyPanel):
2591 def __init__(self, this):
2592 self.this = this
2593 if not hasattr(self,"thisown"): self.thisown = 0
2594 self.__class__ = PyPanel
2595 _windows.PyPanel_swigregister(PyPanelPtr)
2596
2597 #---------------------------------------------------------------------------
2598
2599 PRINT_MODE_NONE = _windows.PRINT_MODE_NONE
2600 PRINT_MODE_PREVIEW = _windows.PRINT_MODE_PREVIEW
2601 PRINT_MODE_FILE = _windows.PRINT_MODE_FILE
2602 PRINT_MODE_PRINTER = _windows.PRINT_MODE_PRINTER
2603 class PrintData(core.Object):
2604 def __repr__(self):
2605 return "<%s.%s; proxy of C++ wxPrintData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2606 def __init__(self, *args, **kwargs):
2607 """__init__() -> PrintData"""
2608 newobj = _windows.new_PrintData(*args, **kwargs)
2609 self.this = newobj.this
2610 self.thisown = 1
2611 del newobj.thisown
2612 def __del__(self, destroy=_windows.delete_PrintData):
2613 """__del__()"""
2614 try:
2615 if self.thisown: destroy(self)
2616 except: pass
2617
2618 def GetNoCopies(*args, **kwargs):
2619 """GetNoCopies() -> int"""
2620 return _windows.PrintData_GetNoCopies(*args, **kwargs)
2621
2622 def GetCollate(*args, **kwargs):
2623 """GetCollate() -> bool"""
2624 return _windows.PrintData_GetCollate(*args, **kwargs)
2625
2626 def GetOrientation(*args, **kwargs):
2627 """GetOrientation() -> int"""
2628 return _windows.PrintData_GetOrientation(*args, **kwargs)
2629
2630 def Ok(*args, **kwargs):
2631 """Ok() -> bool"""
2632 return _windows.PrintData_Ok(*args, **kwargs)
2633
2634 def GetPrinterName(*args, **kwargs):
2635 """GetPrinterName() -> String"""
2636 return _windows.PrintData_GetPrinterName(*args, **kwargs)
2637
2638 def GetColour(*args, **kwargs):
2639 """GetColour() -> bool"""
2640 return _windows.PrintData_GetColour(*args, **kwargs)
2641
2642 def GetDuplex(*args, **kwargs):
2643 """GetDuplex() -> int"""
2644 return _windows.PrintData_GetDuplex(*args, **kwargs)
2645
2646 def GetPaperId(*args, **kwargs):
2647 """GetPaperId() -> int"""
2648 return _windows.PrintData_GetPaperId(*args, **kwargs)
2649
2650 def GetPaperSize(*args, **kwargs):
2651 """GetPaperSize() -> Size"""
2652 return _windows.PrintData_GetPaperSize(*args, **kwargs)
2653
2654 def GetQuality(*args, **kwargs):
2655 """GetQuality() -> int"""
2656 return _windows.PrintData_GetQuality(*args, **kwargs)
2657
2658 def SetNoCopies(*args, **kwargs):
2659 """SetNoCopies(int v)"""
2660 return _windows.PrintData_SetNoCopies(*args, **kwargs)
2661
2662 def SetCollate(*args, **kwargs):
2663 """SetCollate(bool flag)"""
2664 return _windows.PrintData_SetCollate(*args, **kwargs)
2665
2666 def SetOrientation(*args, **kwargs):
2667 """SetOrientation(int orient)"""
2668 return _windows.PrintData_SetOrientation(*args, **kwargs)
2669
2670 def SetPrinterName(*args, **kwargs):
2671 """SetPrinterName(String name)"""
2672 return _windows.PrintData_SetPrinterName(*args, **kwargs)
2673
2674 def SetColour(*args, **kwargs):
2675 """SetColour(bool colour)"""
2676 return _windows.PrintData_SetColour(*args, **kwargs)
2677
2678 def SetDuplex(*args, **kwargs):
2679 """SetDuplex(int duplex)"""
2680 return _windows.PrintData_SetDuplex(*args, **kwargs)
2681
2682 def SetPaperId(*args, **kwargs):
2683 """SetPaperId(int sizeId)"""
2684 return _windows.PrintData_SetPaperId(*args, **kwargs)
2685
2686 def SetPaperSize(*args, **kwargs):
2687 """SetPaperSize(Size sz)"""
2688 return _windows.PrintData_SetPaperSize(*args, **kwargs)
2689
2690 def SetQuality(*args, **kwargs):
2691 """SetQuality(int quality)"""
2692 return _windows.PrintData_SetQuality(*args, **kwargs)
2693
2694 def GetPrinterCommand(*args, **kwargs):
2695 """GetPrinterCommand() -> String"""
2696 return _windows.PrintData_GetPrinterCommand(*args, **kwargs)
2697
2698 def GetPrinterOptions(*args, **kwargs):
2699 """GetPrinterOptions() -> String"""
2700 return _windows.PrintData_GetPrinterOptions(*args, **kwargs)
2701
2702 def GetPreviewCommand(*args, **kwargs):
2703 """GetPreviewCommand() -> String"""
2704 return _windows.PrintData_GetPreviewCommand(*args, **kwargs)
2705
2706 def GetFilename(*args, **kwargs):
2707 """GetFilename() -> String"""
2708 return _windows.PrintData_GetFilename(*args, **kwargs)
2709
2710 def GetFontMetricPath(*args, **kwargs):
2711 """GetFontMetricPath() -> String"""
2712 return _windows.PrintData_GetFontMetricPath(*args, **kwargs)
2713
2714 def GetPrinterScaleX(*args, **kwargs):
2715 """GetPrinterScaleX() -> double"""
2716 return _windows.PrintData_GetPrinterScaleX(*args, **kwargs)
2717
2718 def GetPrinterScaleY(*args, **kwargs):
2719 """GetPrinterScaleY() -> double"""
2720 return _windows.PrintData_GetPrinterScaleY(*args, **kwargs)
2721
2722 def GetPrinterTranslateX(*args, **kwargs):
2723 """GetPrinterTranslateX() -> long"""
2724 return _windows.PrintData_GetPrinterTranslateX(*args, **kwargs)
2725
2726 def GetPrinterTranslateY(*args, **kwargs):
2727 """GetPrinterTranslateY() -> long"""
2728 return _windows.PrintData_GetPrinterTranslateY(*args, **kwargs)
2729
2730 def GetPrintMode(*args, **kwargs):
2731 """GetPrintMode() -> int"""
2732 return _windows.PrintData_GetPrintMode(*args, **kwargs)
2733
2734 def SetPrinterCommand(*args, **kwargs):
2735 """SetPrinterCommand(String command)"""
2736 return _windows.PrintData_SetPrinterCommand(*args, **kwargs)
2737
2738 def SetPrinterOptions(*args, **kwargs):
2739 """SetPrinterOptions(String options)"""
2740 return _windows.PrintData_SetPrinterOptions(*args, **kwargs)
2741
2742 def SetPreviewCommand(*args, **kwargs):
2743 """SetPreviewCommand(String command)"""
2744 return _windows.PrintData_SetPreviewCommand(*args, **kwargs)
2745
2746 def SetFilename(*args, **kwargs):
2747 """SetFilename(String filename)"""
2748 return _windows.PrintData_SetFilename(*args, **kwargs)
2749
2750 def SetFontMetricPath(*args, **kwargs):
2751 """SetFontMetricPath(String path)"""
2752 return _windows.PrintData_SetFontMetricPath(*args, **kwargs)
2753
2754 def SetPrinterScaleX(*args, **kwargs):
2755 """SetPrinterScaleX(double x)"""
2756 return _windows.PrintData_SetPrinterScaleX(*args, **kwargs)
2757
2758 def SetPrinterScaleY(*args, **kwargs):
2759 """SetPrinterScaleY(double y)"""
2760 return _windows.PrintData_SetPrinterScaleY(*args, **kwargs)
2761
2762 def SetPrinterScaling(*args, **kwargs):
2763 """SetPrinterScaling(double x, double y)"""
2764 return _windows.PrintData_SetPrinterScaling(*args, **kwargs)
2765
2766 def SetPrinterTranslateX(*args, **kwargs):
2767 """SetPrinterTranslateX(long x)"""
2768 return _windows.PrintData_SetPrinterTranslateX(*args, **kwargs)
2769
2770 def SetPrinterTranslateY(*args, **kwargs):
2771 """SetPrinterTranslateY(long y)"""
2772 return _windows.PrintData_SetPrinterTranslateY(*args, **kwargs)
2773
2774 def SetPrinterTranslation(*args, **kwargs):
2775 """SetPrinterTranslation(long x, long y)"""
2776 return _windows.PrintData_SetPrinterTranslation(*args, **kwargs)
2777
2778 def SetPrintMode(*args, **kwargs):
2779 """SetPrintMode(int printMode)"""
2780 return _windows.PrintData_SetPrintMode(*args, **kwargs)
2781
2782 def __nonzero__(self): return self.Ok()
2783
2784 class PrintDataPtr(PrintData):
2785 def __init__(self, this):
2786 self.this = this
2787 if not hasattr(self,"thisown"): self.thisown = 0
2788 self.__class__ = PrintData
2789 _windows.PrintData_swigregister(PrintDataPtr)
2790 PrintoutTitleStr = cvar.PrintoutTitleStr
2791 PreviewCanvasNameStr = cvar.PreviewCanvasNameStr
2792
2793 class PageSetupDialogData(core.Object):
2794 def __repr__(self):
2795 return "<%s.%s; proxy of C++ wxPageSetupDialogData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2796 def __init__(self, *args, **kwargs):
2797 """__init__() -> PageSetupDialogData"""
2798 newobj = _windows.new_PageSetupDialogData(*args, **kwargs)
2799 self.this = newobj.this
2800 self.thisown = 1
2801 del newobj.thisown
2802 def __del__(self, destroy=_windows.delete_PageSetupDialogData):
2803 """__del__()"""
2804 try:
2805 if self.thisown: destroy(self)
2806 except: pass
2807
2808 def EnableHelp(*args, **kwargs):
2809 """EnableHelp(bool flag)"""
2810 return _windows.PageSetupDialogData_EnableHelp(*args, **kwargs)
2811
2812 def EnableMargins(*args, **kwargs):
2813 """EnableMargins(bool flag)"""
2814 return _windows.PageSetupDialogData_EnableMargins(*args, **kwargs)
2815
2816 def EnableOrientation(*args, **kwargs):
2817 """EnableOrientation(bool flag)"""
2818 return _windows.PageSetupDialogData_EnableOrientation(*args, **kwargs)
2819
2820 def EnablePaper(*args, **kwargs):
2821 """EnablePaper(bool flag)"""
2822 return _windows.PageSetupDialogData_EnablePaper(*args, **kwargs)
2823
2824 def EnablePrinter(*args, **kwargs):
2825 """EnablePrinter(bool flag)"""
2826 return _windows.PageSetupDialogData_EnablePrinter(*args, **kwargs)
2827
2828 def GetDefaultMinMargins(*args, **kwargs):
2829 """GetDefaultMinMargins() -> bool"""
2830 return _windows.PageSetupDialogData_GetDefaultMinMargins(*args, **kwargs)
2831
2832 def GetEnableMargins(*args, **kwargs):
2833 """GetEnableMargins() -> bool"""
2834 return _windows.PageSetupDialogData_GetEnableMargins(*args, **kwargs)
2835
2836 def GetEnableOrientation(*args, **kwargs):
2837 """GetEnableOrientation() -> bool"""
2838 return _windows.PageSetupDialogData_GetEnableOrientation(*args, **kwargs)
2839
2840 def GetEnablePaper(*args, **kwargs):
2841 """GetEnablePaper() -> bool"""
2842 return _windows.PageSetupDialogData_GetEnablePaper(*args, **kwargs)
2843
2844 def GetEnablePrinter(*args, **kwargs):
2845 """GetEnablePrinter() -> bool"""
2846 return _windows.PageSetupDialogData_GetEnablePrinter(*args, **kwargs)
2847
2848 def GetEnableHelp(*args, **kwargs):
2849 """GetEnableHelp() -> bool"""
2850 return _windows.PageSetupDialogData_GetEnableHelp(*args, **kwargs)
2851
2852 def GetDefaultInfo(*args, **kwargs):
2853 """GetDefaultInfo() -> bool"""
2854 return _windows.PageSetupDialogData_GetDefaultInfo(*args, **kwargs)
2855
2856 def GetMarginTopLeft(*args, **kwargs):
2857 """GetMarginTopLeft() -> Point"""
2858 return _windows.PageSetupDialogData_GetMarginTopLeft(*args, **kwargs)
2859
2860 def GetMarginBottomRight(*args, **kwargs):
2861 """GetMarginBottomRight() -> Point"""
2862 return _windows.PageSetupDialogData_GetMarginBottomRight(*args, **kwargs)
2863
2864 def GetMinMarginTopLeft(*args, **kwargs):
2865 """GetMinMarginTopLeft() -> Point"""
2866 return _windows.PageSetupDialogData_GetMinMarginTopLeft(*args, **kwargs)
2867
2868 def GetMinMarginBottomRight(*args, **kwargs):
2869 """GetMinMarginBottomRight() -> Point"""
2870 return _windows.PageSetupDialogData_GetMinMarginBottomRight(*args, **kwargs)
2871
2872 def GetPaperId(*args, **kwargs):
2873 """GetPaperId() -> int"""
2874 return _windows.PageSetupDialogData_GetPaperId(*args, **kwargs)
2875
2876 def GetPaperSize(*args, **kwargs):
2877 """GetPaperSize() -> Size"""
2878 return _windows.PageSetupDialogData_GetPaperSize(*args, **kwargs)
2879
2880 def GetPrintData(*args, **kwargs):
2881 """GetPrintData() -> PrintData"""
2882 return _windows.PageSetupDialogData_GetPrintData(*args, **kwargs)
2883
2884 def Ok(*args, **kwargs):
2885 """Ok() -> bool"""
2886 return _windows.PageSetupDialogData_Ok(*args, **kwargs)
2887
2888 def SetDefaultInfo(*args, **kwargs):
2889 """SetDefaultInfo(bool flag)"""
2890 return _windows.PageSetupDialogData_SetDefaultInfo(*args, **kwargs)
2891
2892 def SetDefaultMinMargins(*args, **kwargs):
2893 """SetDefaultMinMargins(bool flag)"""
2894 return _windows.PageSetupDialogData_SetDefaultMinMargins(*args, **kwargs)
2895
2896 def SetMarginTopLeft(*args, **kwargs):
2897 """SetMarginTopLeft(Point pt)"""
2898 return _windows.PageSetupDialogData_SetMarginTopLeft(*args, **kwargs)
2899
2900 def SetMarginBottomRight(*args, **kwargs):
2901 """SetMarginBottomRight(Point pt)"""
2902 return _windows.PageSetupDialogData_SetMarginBottomRight(*args, **kwargs)
2903
2904 def SetMinMarginTopLeft(*args, **kwargs):
2905 """SetMinMarginTopLeft(Point pt)"""
2906 return _windows.PageSetupDialogData_SetMinMarginTopLeft(*args, **kwargs)
2907
2908 def SetMinMarginBottomRight(*args, **kwargs):
2909 """SetMinMarginBottomRight(Point pt)"""
2910 return _windows.PageSetupDialogData_SetMinMarginBottomRight(*args, **kwargs)
2911
2912 def SetPaperId(*args, **kwargs):
2913 """SetPaperId(int id)"""
2914 return _windows.PageSetupDialogData_SetPaperId(*args, **kwargs)
2915
2916 def SetPaperSize(*args, **kwargs):
2917 """SetPaperSize(Size size)"""
2918 return _windows.PageSetupDialogData_SetPaperSize(*args, **kwargs)
2919
2920 def SetPrintData(*args, **kwargs):
2921 """SetPrintData(PrintData printData)"""
2922 return _windows.PageSetupDialogData_SetPrintData(*args, **kwargs)
2923
2924 def __nonzero__(self): return self.Ok()
2925
2926 class PageSetupDialogDataPtr(PageSetupDialogData):
2927 def __init__(self, this):
2928 self.this = this
2929 if not hasattr(self,"thisown"): self.thisown = 0
2930 self.__class__ = PageSetupDialogData
2931 _windows.PageSetupDialogData_swigregister(PageSetupDialogDataPtr)
2932
2933 class PageSetupDialog(Dialog):
2934 def __repr__(self):
2935 return "<%s.%s; proxy of C++ wxPageSetupDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2936 def __init__(self, *args, **kwargs):
2937 """__init__(Window parent, PageSetupDialogData data=None) -> PageSetupDialog"""
2938 newobj = _windows.new_PageSetupDialog(*args, **kwargs)
2939 self.this = newobj.this
2940 self.thisown = 1
2941 del newobj.thisown
2942 self._setOORInfo(self)
2943
2944 def GetPageSetupData(*args, **kwargs):
2945 """GetPageSetupData() -> PageSetupDialogData"""
2946 return _windows.PageSetupDialog_GetPageSetupData(*args, **kwargs)
2947
2948 def ShowModal(*args, **kwargs):
2949 """ShowModal() -> int"""
2950 return _windows.PageSetupDialog_ShowModal(*args, **kwargs)
2951
2952
2953 class PageSetupDialogPtr(PageSetupDialog):
2954 def __init__(self, this):
2955 self.this = this
2956 if not hasattr(self,"thisown"): self.thisown = 0
2957 self.__class__ = PageSetupDialog
2958 _windows.PageSetupDialog_swigregister(PageSetupDialogPtr)
2959
2960 class PrintDialogData(core.Object):
2961 def __repr__(self):
2962 return "<%s.%s; proxy of C++ wxPrintDialogData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2963 def __init__(self, *args, **kwargs):
2964 """__init__() -> PrintDialogData"""
2965 newobj = _windows.new_PrintDialogData(*args, **kwargs)
2966 self.this = newobj.this
2967 self.thisown = 1
2968 del newobj.thisown
2969 def __del__(self, destroy=_windows.delete_PrintDialogData):
2970 """__del__()"""
2971 try:
2972 if self.thisown: destroy(self)
2973 except: pass
2974
2975 def GetFromPage(*args, **kwargs):
2976 """GetFromPage() -> int"""
2977 return _windows.PrintDialogData_GetFromPage(*args, **kwargs)
2978
2979 def GetToPage(*args, **kwargs):
2980 """GetToPage() -> int"""
2981 return _windows.PrintDialogData_GetToPage(*args, **kwargs)
2982
2983 def GetMinPage(*args, **kwargs):
2984 """GetMinPage() -> int"""
2985 return _windows.PrintDialogData_GetMinPage(*args, **kwargs)
2986
2987 def GetMaxPage(*args, **kwargs):
2988 """GetMaxPage() -> int"""
2989 return _windows.PrintDialogData_GetMaxPage(*args, **kwargs)
2990
2991 def GetNoCopies(*args, **kwargs):
2992 """GetNoCopies() -> int"""
2993 return _windows.PrintDialogData_GetNoCopies(*args, **kwargs)
2994
2995 def GetAllPages(*args, **kwargs):
2996 """GetAllPages() -> bool"""
2997 return _windows.PrintDialogData_GetAllPages(*args, **kwargs)
2998
2999 def GetSelection(*args, **kwargs):
3000 """GetSelection() -> bool"""
3001 return _windows.PrintDialogData_GetSelection(*args, **kwargs)
3002
3003 def GetCollate(*args, **kwargs):
3004 """GetCollate() -> bool"""
3005 return _windows.PrintDialogData_GetCollate(*args, **kwargs)
3006
3007 def GetPrintToFile(*args, **kwargs):
3008 """GetPrintToFile() -> bool"""
3009 return _windows.PrintDialogData_GetPrintToFile(*args, **kwargs)
3010
3011 def GetSetupDialog(*args, **kwargs):
3012 """GetSetupDialog() -> bool"""
3013 return _windows.PrintDialogData_GetSetupDialog(*args, **kwargs)
3014
3015 def SetFromPage(*args, **kwargs):
3016 """SetFromPage(int v)"""
3017 return _windows.PrintDialogData_SetFromPage(*args, **kwargs)
3018
3019 def SetToPage(*args, **kwargs):
3020 """SetToPage(int v)"""
3021 return _windows.PrintDialogData_SetToPage(*args, **kwargs)
3022
3023 def SetMinPage(*args, **kwargs):
3024 """SetMinPage(int v)"""
3025 return _windows.PrintDialogData_SetMinPage(*args, **kwargs)
3026
3027 def SetMaxPage(*args, **kwargs):
3028 """SetMaxPage(int v)"""
3029 return _windows.PrintDialogData_SetMaxPage(*args, **kwargs)
3030
3031 def SetNoCopies(*args, **kwargs):
3032 """SetNoCopies(int v)"""
3033 return _windows.PrintDialogData_SetNoCopies(*args, **kwargs)
3034
3035 def SetAllPages(*args, **kwargs):
3036 """SetAllPages(bool flag)"""
3037 return _windows.PrintDialogData_SetAllPages(*args, **kwargs)
3038
3039 def SetSelection(*args, **kwargs):
3040 """SetSelection(bool flag)"""
3041 return _windows.PrintDialogData_SetSelection(*args, **kwargs)
3042
3043 def SetCollate(*args, **kwargs):
3044 """SetCollate(bool flag)"""
3045 return _windows.PrintDialogData_SetCollate(*args, **kwargs)
3046
3047 def SetPrintToFile(*args, **kwargs):
3048 """SetPrintToFile(bool flag)"""
3049 return _windows.PrintDialogData_SetPrintToFile(*args, **kwargs)
3050
3051 def SetSetupDialog(*args, **kwargs):
3052 """SetSetupDialog(bool flag)"""
3053 return _windows.PrintDialogData_SetSetupDialog(*args, **kwargs)
3054
3055 def EnablePrintToFile(*args, **kwargs):
3056 """EnablePrintToFile(bool flag)"""
3057 return _windows.PrintDialogData_EnablePrintToFile(*args, **kwargs)
3058
3059 def EnableSelection(*args, **kwargs):
3060 """EnableSelection(bool flag)"""
3061 return _windows.PrintDialogData_EnableSelection(*args, **kwargs)
3062
3063 def EnablePageNumbers(*args, **kwargs):
3064 """EnablePageNumbers(bool flag)"""
3065 return _windows.PrintDialogData_EnablePageNumbers(*args, **kwargs)
3066
3067 def EnableHelp(*args, **kwargs):
3068 """EnableHelp(bool flag)"""
3069 return _windows.PrintDialogData_EnableHelp(*args, **kwargs)
3070
3071 def GetEnablePrintToFile(*args, **kwargs):
3072 """GetEnablePrintToFile() -> bool"""
3073 return _windows.PrintDialogData_GetEnablePrintToFile(*args, **kwargs)
3074
3075 def GetEnableSelection(*args, **kwargs):
3076 """GetEnableSelection() -> bool"""
3077 return _windows.PrintDialogData_GetEnableSelection(*args, **kwargs)
3078
3079 def GetEnablePageNumbers(*args, **kwargs):
3080 """GetEnablePageNumbers() -> bool"""
3081 return _windows.PrintDialogData_GetEnablePageNumbers(*args, **kwargs)
3082
3083 def GetEnableHelp(*args, **kwargs):
3084 """GetEnableHelp() -> bool"""
3085 return _windows.PrintDialogData_GetEnableHelp(*args, **kwargs)
3086
3087 def Ok(*args, **kwargs):
3088 """Ok() -> bool"""
3089 return _windows.PrintDialogData_Ok(*args, **kwargs)
3090
3091 def GetPrintData(*args, **kwargs):
3092 """GetPrintData() -> PrintData"""
3093 return _windows.PrintDialogData_GetPrintData(*args, **kwargs)
3094
3095 def SetPrintData(*args, **kwargs):
3096 """SetPrintData(PrintData printData)"""
3097 return _windows.PrintDialogData_SetPrintData(*args, **kwargs)
3098
3099 def __nonzero__(self): return self.Ok()
3100
3101 class PrintDialogDataPtr(PrintDialogData):
3102 def __init__(self, this):
3103 self.this = this
3104 if not hasattr(self,"thisown"): self.thisown = 0
3105 self.__class__ = PrintDialogData
3106 _windows.PrintDialogData_swigregister(PrintDialogDataPtr)
3107
3108 class PrintDialog(Dialog):
3109 def __repr__(self):
3110 return "<%s.%s; proxy of C++ wxPrintDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
3111 def __init__(self, *args, **kwargs):
3112 """__init__(Window parent, PrintDialogData data=None) -> PrintDialog"""
3113 newobj = _windows.new_PrintDialog(*args, **kwargs)
3114 self.this = newobj.this
3115 self.thisown = 1
3116 del newobj.thisown
3117 self._setOORInfo(self)
3118
3119 def GetPrintDialogData(*args, **kwargs):
3120 """GetPrintDialogData() -> PrintDialogData"""
3121 return _windows.PrintDialog_GetPrintDialogData(*args, **kwargs)
3122
3123 def GetPrintDC(*args, **kwargs):
3124 """GetPrintDC() -> DC"""
3125 return _windows.PrintDialog_GetPrintDC(*args, **kwargs)
3126
3127 def ShowModal(*args, **kwargs):
3128 """ShowModal() -> int"""
3129 return _windows.PrintDialog_ShowModal(*args, **kwargs)
3130
3131
3132 class PrintDialogPtr(PrintDialog):
3133 def __init__(self, this):
3134 self.this = this
3135 if not hasattr(self,"thisown"): self.thisown = 0
3136 self.__class__ = PrintDialog
3137 _windows.PrintDialog_swigregister(PrintDialogPtr)
3138
3139 PRINTER_NO_ERROR = _windows.PRINTER_NO_ERROR
3140 PRINTER_CANCELLED = _windows.PRINTER_CANCELLED
3141 PRINTER_ERROR = _windows.PRINTER_ERROR
3142 class Printer(core.Object):
3143 def __repr__(self):
3144 return "<%s.%s; proxy of C++ wxPrinter instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
3145 def __init__(self, *args, **kwargs):
3146 """__init__(PrintDialogData data=None) -> Printer"""
3147 newobj = _windows.new_Printer(*args, **kwargs)
3148 self.this = newobj.this
3149 self.thisown = 1
3150 del newobj.thisown
3151 def __del__(self, destroy=_windows.delete_Printer):
3152 """__del__()"""
3153 try:
3154 if self.thisown: destroy(self)
3155 except: pass
3156
3157 def CreateAbortWindow(*args, **kwargs):
3158 """CreateAbortWindow(Window parent, Printout printout)"""
3159 return _windows.Printer_CreateAbortWindow(*args, **kwargs)
3160
3161 def GetPrintDialogData(*args, **kwargs):
3162 """GetPrintDialogData() -> PrintDialogData"""
3163 return _windows.Printer_GetPrintDialogData(*args, **kwargs)
3164
3165 def Print(*args, **kwargs):
3166 """Print(Window parent, Printout printout, int prompt=True) -> bool"""
3167 return _windows.Printer_Print(*args, **kwargs)
3168
3169 def PrintDialog(*args, **kwargs):
3170 """PrintDialog(Window parent) -> DC"""
3171 return _windows.Printer_PrintDialog(*args, **kwargs)
3172
3173 def ReportError(*args, **kwargs):
3174 """ReportError(Window parent, Printout printout, String message)"""
3175 return _windows.Printer_ReportError(*args, **kwargs)
3176
3177 def Setup(*args, **kwargs):
3178 """Setup(Window parent) -> bool"""
3179 return _windows.Printer_Setup(*args, **kwargs)
3180
3181 def GetAbort(*args, **kwargs):
3182 """GetAbort() -> bool"""
3183 return _windows.Printer_GetAbort(*args, **kwargs)
3184
3185 def GetLastError(*args, **kwargs):
3186 """Printer.GetLastError() -> int"""
3187 return _windows.Printer_GetLastError(*args, **kwargs)
3188
3189 GetLastError = staticmethod(GetLastError)
3190
3191 class PrinterPtr(Printer):
3192 def __init__(self, this):
3193 self.this = this
3194 if not hasattr(self,"thisown"): self.thisown = 0
3195 self.__class__ = Printer
3196 _windows.Printer_swigregister(PrinterPtr)
3197
3198 def Printer_GetLastError(*args, **kwargs):
3199 """Printer_GetLastError() -> int"""
3200 return _windows.Printer_GetLastError(*args, **kwargs)
3201
3202 class Printout(core.Object):
3203 def __repr__(self):
3204 return "<%s.%s; proxy of C++ wxPyPrintout instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
3205 def __init__(self, *args, **kwargs):
3206 """__init__(String title=PrintoutTitleStr) -> Printout"""
3207 newobj = _windows.new_Printout(*args, **kwargs)
3208 self.this = newobj.this
3209 self.thisown = 1
3210 del newobj.thisown
3211 self._setCallbackInfo(self, Printout)
3212
3213 def _setCallbackInfo(*args, **kwargs):
3214 """_setCallbackInfo(PyObject self, PyObject _class)"""
3215 return _windows.Printout__setCallbackInfo(*args, **kwargs)
3216
3217 def GetTitle(*args, **kwargs):
3218 """GetTitle() -> String"""
3219 return _windows.Printout_GetTitle(*args, **kwargs)
3220
3221 def GetDC(*args, **kwargs):
3222 """GetDC() -> DC"""
3223 return _windows.Printout_GetDC(*args, **kwargs)
3224
3225 def SetDC(*args, **kwargs):
3226 """SetDC(DC dc)"""
3227 return _windows.Printout_SetDC(*args, **kwargs)
3228
3229 def SetPageSizePixels(*args, **kwargs):
3230 """SetPageSizePixels(int w, int h)"""
3231 return _windows.Printout_SetPageSizePixels(*args, **kwargs)
3232
3233 def GetPageSizePixels(*args, **kwargs):
3234 """GetPageSizePixels() -> (w, h)"""
3235 return _windows.Printout_GetPageSizePixels(*args, **kwargs)
3236
3237 def SetPageSizeMM(*args, **kwargs):
3238 """SetPageSizeMM(int w, int h)"""
3239 return _windows.Printout_SetPageSizeMM(*args, **kwargs)
3240
3241 def GetPageSizeMM(*args, **kwargs):
3242 """GetPageSizeMM() -> (w, h)"""
3243 return _windows.Printout_GetPageSizeMM(*args, **kwargs)
3244
3245 def SetPPIScreen(*args, **kwargs):
3246 """SetPPIScreen(int x, int y)"""
3247 return _windows.Printout_SetPPIScreen(*args, **kwargs)
3248
3249 def GetPPIScreen(*args, **kwargs):
3250 """GetPPIScreen() -> (x,y)"""
3251 return _windows.Printout_GetPPIScreen(*args, **kwargs)
3252
3253 def SetPPIPrinter(*args, **kwargs):
3254 """SetPPIPrinter(int x, int y)"""
3255 return _windows.Printout_SetPPIPrinter(*args, **kwargs)
3256
3257 def GetPPIPrinter(*args, **kwargs):
3258 """GetPPIPrinter() -> (x,y)"""
3259 return _windows.Printout_GetPPIPrinter(*args, **kwargs)
3260
3261 def IsPreview(*args, **kwargs):
3262 """IsPreview() -> bool"""
3263 return _windows.Printout_IsPreview(*args, **kwargs)
3264
3265 def SetIsPreview(*args, **kwargs):
3266 """SetIsPreview(bool p)"""
3267 return _windows.Printout_SetIsPreview(*args, **kwargs)
3268
3269 def base_OnBeginDocument(*args, **kwargs):
3270 """base_OnBeginDocument(int startPage, int endPage) -> bool"""
3271 return _windows.Printout_base_OnBeginDocument(*args, **kwargs)
3272
3273 def base_OnEndDocument(*args, **kwargs):
3274 """base_OnEndDocument()"""
3275 return _windows.Printout_base_OnEndDocument(*args, **kwargs)
3276
3277 def base_OnBeginPrinting(*args, **kwargs):
3278 """base_OnBeginPrinting()"""
3279 return _windows.Printout_base_OnBeginPrinting(*args, **kwargs)
3280
3281 def base_OnEndPrinting(*args, **kwargs):
3282 """base_OnEndPrinting()"""
3283 return _windows.Printout_base_OnEndPrinting(*args, **kwargs)
3284
3285 def base_OnPreparePrinting(*args, **kwargs):
3286 """base_OnPreparePrinting()"""
3287 return _windows.Printout_base_OnPreparePrinting(*args, **kwargs)
3288
3289 def base_HasPage(*args, **kwargs):
3290 """base_HasPage(int page) -> bool"""
3291 return _windows.Printout_base_HasPage(*args, **kwargs)
3292
3293 def base_GetPageInfo(*args, **kwargs):
3294 """base_GetPageInfo() -> (minPage, maxPage, pageFrom, pageTo)"""
3295 return _windows.Printout_base_GetPageInfo(*args, **kwargs)
3296
3297
3298 class PrintoutPtr(Printout):
3299 def __init__(self, this):
3300 self.this = this
3301 if not hasattr(self,"thisown"): self.thisown = 0
3302 self.__class__ = Printout
3303 _windows.Printout_swigregister(PrintoutPtr)
3304
3305 class PreviewCanvas(ScrolledWindow):
3306 def __repr__(self):
3307 return "<%s.%s; proxy of C++ wxPreviewCanvas instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
3308 def __init__(self, *args, **kwargs):
3309 """
3310 __init__(PrintPreview preview, Window parent, Point pos=DefaultPosition,
3311 Size size=DefaultSize, long style=0,
3312 String name=PreviewCanvasNameStr) -> PreviewCanvas
3313 """
3314 newobj = _windows.new_PreviewCanvas(*args, **kwargs)
3315 self.this = newobj.this
3316 self.thisown = 1
3317 del newobj.thisown
3318 self._setOORInfo(self)
3319
3320
3321 class PreviewCanvasPtr(PreviewCanvas):
3322 def __init__(self, this):
3323 self.this = this
3324 if not hasattr(self,"thisown"): self.thisown = 0
3325 self.__class__ = PreviewCanvas
3326 _windows.PreviewCanvas_swigregister(PreviewCanvasPtr)
3327
3328 class PreviewFrame(Frame):
3329 def __repr__(self):
3330 return "<%s.%s; proxy of C++ wxPreviewFrame instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
3331 def __init__(self, *args, **kwargs):
3332 """
3333 __init__(PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
3334 Size size=DefaultSize,
3335 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PreviewFrame
3336 """
3337 newobj = _windows.new_PreviewFrame(*args, **kwargs)
3338 self.this = newobj.this
3339 self.thisown = 1
3340 del newobj.thisown
3341 self._setOORInfo(self)
3342
3343 def Initialize(*args, **kwargs):
3344 """Initialize()"""
3345 return _windows.PreviewFrame_Initialize(*args, **kwargs)
3346
3347 def CreateControlBar(*args, **kwargs):
3348 """CreateControlBar()"""
3349 return _windows.PreviewFrame_CreateControlBar(*args, **kwargs)
3350
3351 def CreateCanvas(*args, **kwargs):
3352 """CreateCanvas()"""
3353 return _windows.PreviewFrame_CreateCanvas(*args, **kwargs)
3354
3355 def GetControlBar(*args, **kwargs):
3356 """GetControlBar() -> PreviewControlBar"""
3357 return _windows.PreviewFrame_GetControlBar(*args, **kwargs)
3358
3359
3360 class PreviewFramePtr(PreviewFrame):
3361 def __init__(self, this):
3362 self.this = this
3363 if not hasattr(self,"thisown"): self.thisown = 0
3364 self.__class__ = PreviewFrame
3365 _windows.PreviewFrame_swigregister(PreviewFramePtr)
3366
3367 PREVIEW_PRINT = _windows.PREVIEW_PRINT
3368 PREVIEW_PREVIOUS = _windows.PREVIEW_PREVIOUS
3369 PREVIEW_NEXT = _windows.PREVIEW_NEXT
3370 PREVIEW_ZOOM = _windows.PREVIEW_ZOOM
3371 PREVIEW_FIRST = _windows.PREVIEW_FIRST
3372 PREVIEW_LAST = _windows.PREVIEW_LAST
3373 PREVIEW_GOTO = _windows.PREVIEW_GOTO
3374 PREVIEW_DEFAULT = _windows.PREVIEW_DEFAULT
3375 ID_PREVIEW_CLOSE = _windows.ID_PREVIEW_CLOSE
3376 ID_PREVIEW_NEXT = _windows.ID_PREVIEW_NEXT
3377 ID_PREVIEW_PREVIOUS = _windows.ID_PREVIEW_PREVIOUS
3378 ID_PREVIEW_PRINT = _windows.ID_PREVIEW_PRINT
3379 ID_PREVIEW_ZOOM = _windows.ID_PREVIEW_ZOOM
3380 ID_PREVIEW_FIRST = _windows.ID_PREVIEW_FIRST
3381 ID_PREVIEW_LAST = _windows.ID_PREVIEW_LAST
3382 ID_PREVIEW_GOTO = _windows.ID_PREVIEW_GOTO
3383 class PreviewControlBar(Panel):
3384 def __repr__(self):
3385 return "<%s.%s; proxy of C++ wxPreviewControlBar instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
3386 def __init__(self, *args, **kwargs):
3387 """
3388 __init__(PrintPreview preview, long buttons, Window parent,
3389 Point pos=DefaultPosition, Size size=DefaultSize,
3390 long style=TAB_TRAVERSAL, String name=PanelNameStr) -> PreviewControlBar
3391 """
3392 newobj = _windows.new_PreviewControlBar(*args, **kwargs)
3393 self.this = newobj.this
3394 self.thisown = 1
3395 del newobj.thisown
3396 self._setOORInfo(self)
3397
3398 def GetZoomControl(*args, **kwargs):
3399 """GetZoomControl() -> int"""
3400 return _windows.PreviewControlBar_GetZoomControl(*args, **kwargs)
3401
3402 def SetZoomControl(*args, **kwargs):
3403 """SetZoomControl(int zoom)"""
3404 return _windows.PreviewControlBar_SetZoomControl(*args, **kwargs)
3405
3406 def GetPrintPreview(*args, **kwargs):
3407 """GetPrintPreview() -> PrintPreview"""
3408 return _windows.PreviewControlBar_GetPrintPreview(*args, **kwargs)
3409
3410 def OnNext(*args, **kwargs):
3411 """OnNext()"""
3412 return _windows.PreviewControlBar_OnNext(*args, **kwargs)
3413
3414 def OnPrevious(*args, **kwargs):
3415 """OnPrevious()"""
3416 return _windows.PreviewControlBar_OnPrevious(*args, **kwargs)
3417
3418 def OnFirst(*args, **kwargs):
3419 """OnFirst()"""
3420 return _windows.PreviewControlBar_OnFirst(*args, **kwargs)
3421
3422 def OnLast(*args, **kwargs):
3423 """OnLast()"""
3424 return _windows.PreviewControlBar_OnLast(*args, **kwargs)
3425
3426 def OnGoto(*args, **kwargs):
3427 """OnGoto()"""
3428 return _windows.PreviewControlBar_OnGoto(*args, **kwargs)
3429
3430
3431 class PreviewControlBarPtr(PreviewControlBar):
3432 def __init__(self, this):
3433 self.this = this
3434 if not hasattr(self,"thisown"): self.thisown = 0
3435 self.__class__ = PreviewControlBar
3436 _windows.PreviewControlBar_swigregister(PreviewControlBarPtr)
3437
3438 class PrintPreview(core.Object):
3439 def __repr__(self):
3440 return "<%s.%s; proxy of C++ wxPrintPreview instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
3441 def __init__(self, *args, **kwargs):
3442 """__init__(Printout printout, Printout printoutForPrinting, PrintData data=None) -> PrintPreview"""
3443 newobj = _windows.new_PrintPreview(*args, **kwargs)
3444 self.this = newobj.this
3445 self.thisown = 1
3446 del newobj.thisown
3447 def SetCurrentPage(*args, **kwargs):
3448 """SetCurrentPage(int pageNum) -> bool"""
3449 return _windows.PrintPreview_SetCurrentPage(*args, **kwargs)
3450
3451 def GetCurrentPage(*args, **kwargs):
3452 """GetCurrentPage() -> int"""
3453 return _windows.PrintPreview_GetCurrentPage(*args, **kwargs)
3454
3455 def SetPrintout(*args, **kwargs):
3456 """SetPrintout(Printout printout)"""
3457 return _windows.PrintPreview_SetPrintout(*args, **kwargs)
3458
3459 def GetPrintout(*args, **kwargs):
3460 """GetPrintout() -> Printout"""
3461 return _windows.PrintPreview_GetPrintout(*args, **kwargs)
3462
3463 def GetPrintoutForPrinting(*args, **kwargs):
3464 """GetPrintoutForPrinting() -> Printout"""
3465 return _windows.PrintPreview_GetPrintoutForPrinting(*args, **kwargs)
3466
3467 def SetFrame(*args, **kwargs):
3468 """SetFrame(Frame frame)"""
3469 return _windows.PrintPreview_SetFrame(*args, **kwargs)
3470
3471 def SetCanvas(*args, **kwargs):
3472 """SetCanvas(PreviewCanvas canvas)"""
3473 return _windows.PrintPreview_SetCanvas(*args, **kwargs)
3474
3475 def GetFrame(*args, **kwargs):
3476 """GetFrame() -> Frame"""
3477 return _windows.PrintPreview_GetFrame(*args, **kwargs)
3478
3479 def GetCanvas(*args, **kwargs):
3480 """GetCanvas() -> PreviewCanvas"""
3481 return _windows.PrintPreview_GetCanvas(*args, **kwargs)
3482
3483 def PaintPage(*args, **kwargs):
3484 """PaintPage(PreviewCanvas canvas, DC dc) -> bool"""
3485 return _windows.PrintPreview_PaintPage(*args, **kwargs)
3486
3487 def DrawBlankPage(*args, **kwargs):
3488 """DrawBlankPage(PreviewCanvas canvas, DC dc) -> bool"""
3489 return _windows.PrintPreview_DrawBlankPage(*args, **kwargs)
3490
3491 def RenderPage(*args, **kwargs):
3492 """RenderPage(int pageNum) -> bool"""
3493 return _windows.PrintPreview_RenderPage(*args, **kwargs)
3494
3495 def AdjustScrollbars(*args, **kwargs):
3496 """AdjustScrollbars(PreviewCanvas canvas)"""
3497 return _windows.PrintPreview_AdjustScrollbars(*args, **kwargs)
3498
3499 def GetPrintDialogData(*args, **kwargs):
3500 """GetPrintDialogData() -> PrintDialogData"""
3501 return _windows.PrintPreview_GetPrintDialogData(*args, **kwargs)
3502
3503 def SetZoom(*args, **kwargs):
3504 """SetZoom(int percent)"""
3505 return _windows.PrintPreview_SetZoom(*args, **kwargs)
3506
3507 def GetZoom(*args, **kwargs):
3508 """GetZoom() -> int"""
3509 return _windows.PrintPreview_GetZoom(*args, **kwargs)
3510
3511 def GetMaxPage(*args, **kwargs):
3512 """GetMaxPage() -> int"""
3513 return _windows.PrintPreview_GetMaxPage(*args, **kwargs)
3514
3515 def GetMinPage(*args, **kwargs):
3516 """GetMinPage() -> int"""
3517 return _windows.PrintPreview_GetMinPage(*args, **kwargs)
3518
3519 def Ok(*args, **kwargs):
3520 """Ok() -> bool"""
3521 return _windows.PrintPreview_Ok(*args, **kwargs)
3522
3523 def SetOk(*args, **kwargs):
3524 """SetOk(bool ok)"""
3525 return _windows.PrintPreview_SetOk(*args, **kwargs)
3526
3527 def Print(*args, **kwargs):
3528 """Print(bool interactive) -> bool"""
3529 return _windows.PrintPreview_Print(*args, **kwargs)
3530
3531 def DetermineScaling(*args, **kwargs):
3532 """DetermineScaling()"""
3533 return _windows.PrintPreview_DetermineScaling(*args, **kwargs)
3534
3535 def __nonzero__(self): return self.Ok()
3536
3537 class PrintPreviewPtr(PrintPreview):
3538 def __init__(self, this):
3539 self.this = this
3540 if not hasattr(self,"thisown"): self.thisown = 0
3541 self.__class__ = PrintPreview
3542 _windows.PrintPreview_swigregister(PrintPreviewPtr)
3543
3544 class PyPrintPreview(PrintPreview):
3545 def __repr__(self):
3546 return "<%s.%s; proxy of C++ wxPyPrintPreview instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
3547 def __init__(self, *args, **kwargs):
3548 """__init__(Printout printout, Printout printoutForPrinting, PrintData data=None) -> PyPrintPreview"""
3549 newobj = _windows.new_PyPrintPreview(*args, **kwargs)
3550 self.this = newobj.this
3551 self.thisown = 1
3552 del newobj.thisown
3553 self._setCallbackInfo(self, PyPrintPreview)
3554
3555 def _setCallbackInfo(*args, **kwargs):
3556 """_setCallbackInfo(PyObject self, PyObject _class)"""
3557 return _windows.PyPrintPreview__setCallbackInfo(*args, **kwargs)
3558
3559 def base_SetCurrentPage(*args, **kwargs):
3560 """base_SetCurrentPage(int pageNum) -> bool"""
3561 return _windows.PyPrintPreview_base_SetCurrentPage(*args, **kwargs)
3562
3563 def base_PaintPage(*args, **kwargs):
3564 """base_PaintPage(PreviewCanvas canvas, DC dc) -> bool"""
3565 return _windows.PyPrintPreview_base_PaintPage(*args, **kwargs)
3566
3567 def base_DrawBlankPage(*args, **kwargs):
3568 """base_DrawBlankPage(PreviewCanvas canvas, DC dc) -> bool"""
3569 return _windows.PyPrintPreview_base_DrawBlankPage(*args, **kwargs)
3570
3571 def base_RenderPage(*args, **kwargs):
3572 """base_RenderPage(int pageNum) -> bool"""
3573 return _windows.PyPrintPreview_base_RenderPage(*args, **kwargs)
3574
3575 def base_SetZoom(*args, **kwargs):
3576 """base_SetZoom(int percent)"""
3577 return _windows.PyPrintPreview_base_SetZoom(*args, **kwargs)
3578
3579 def base_Print(*args, **kwargs):
3580 """base_Print(bool interactive) -> bool"""
3581 return _windows.PyPrintPreview_base_Print(*args, **kwargs)
3582
3583 def base_DetermineScaling(*args, **kwargs):
3584 """base_DetermineScaling()"""
3585 return _windows.PyPrintPreview_base_DetermineScaling(*args, **kwargs)
3586
3587
3588 class PyPrintPreviewPtr(PyPrintPreview):
3589 def __init__(self, this):
3590 self.this = this
3591 if not hasattr(self,"thisown"): self.thisown = 0
3592 self.__class__ = PyPrintPreview
3593 _windows.PyPrintPreview_swigregister(PyPrintPreviewPtr)
3594
3595 class PyPreviewFrame(PreviewFrame):
3596 def __repr__(self):
3597 return "<%s.%s; proxy of C++ wxPyPreviewFrame instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
3598 def __init__(self, *args, **kwargs):
3599 """
3600 __init__(PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
3601 Size size=DefaultSize,
3602 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PyPreviewFrame
3603 """
3604 newobj = _windows.new_PyPreviewFrame(*args, **kwargs)
3605 self.this = newobj.this
3606 self.thisown = 1
3607 del newobj.thisown
3608 self._setCallbackInfo(self, PyPreviewFrame); self._setOORInfo(self)
3609
3610 def _setCallbackInfo(*args, **kwargs):
3611 """_setCallbackInfo(PyObject self, PyObject _class)"""
3612 return _windows.PyPreviewFrame__setCallbackInfo(*args, **kwargs)
3613
3614 def SetPreviewCanvas(*args, **kwargs):
3615 """SetPreviewCanvas(PreviewCanvas canvas)"""
3616 return _windows.PyPreviewFrame_SetPreviewCanvas(*args, **kwargs)
3617
3618 def SetControlBar(*args, **kwargs):
3619 """SetControlBar(PreviewControlBar bar)"""
3620 return _windows.PyPreviewFrame_SetControlBar(*args, **kwargs)
3621
3622 def base_Initialize(*args, **kwargs):
3623 """base_Initialize()"""
3624 return _windows.PyPreviewFrame_base_Initialize(*args, **kwargs)
3625
3626 def base_CreateCanvas(*args, **kwargs):
3627 """base_CreateCanvas()"""
3628 return _windows.PyPreviewFrame_base_CreateCanvas(*args, **kwargs)
3629
3630 def base_CreateControlBar(*args, **kwargs):
3631 """base_CreateControlBar()"""
3632 return _windows.PyPreviewFrame_base_CreateControlBar(*args, **kwargs)
3633
3634
3635 class PyPreviewFramePtr(PyPreviewFrame):
3636 def __init__(self, this):
3637 self.this = this
3638 if not hasattr(self,"thisown"): self.thisown = 0
3639 self.__class__ = PyPreviewFrame
3640 _windows.PyPreviewFrame_swigregister(PyPreviewFramePtr)
3641
3642 class PyPreviewControlBar(PreviewControlBar):
3643 def __repr__(self):
3644 return "<%s.%s; proxy of C++ wxPyPreviewControlBar instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
3645 def __init__(self, *args, **kwargs):
3646 """
3647 __init__(PrintPreview preview, long buttons, Window parent,
3648 Point pos=DefaultPosition, Size size=DefaultSize,
3649 long style=0, String name=PanelNameStr) -> PyPreviewControlBar
3650 """
3651 newobj = _windows.new_PyPreviewControlBar(*args, **kwargs)
3652 self.this = newobj.this
3653 self.thisown = 1
3654 del newobj.thisown
3655 self._setCallbackInfo(self, PyPreviewControlBar); self._setOORInfo(self)
3656
3657 def _setCallbackInfo(*args, **kwargs):
3658 """_setCallbackInfo(PyObject self, PyObject _class)"""
3659 return _windows.PyPreviewControlBar__setCallbackInfo(*args, **kwargs)
3660
3661 def SetPrintPreview(*args, **kwargs):
3662 """SetPrintPreview(PrintPreview preview)"""
3663 return _windows.PyPreviewControlBar_SetPrintPreview(*args, **kwargs)
3664
3665 def base_CreateButtons(*args, **kwargs):
3666 """base_CreateButtons()"""
3667 return _windows.PyPreviewControlBar_base_CreateButtons(*args, **kwargs)
3668
3669 def base_SetZoomControl(*args, **kwargs):
3670 """base_SetZoomControl(int zoom)"""
3671 return _windows.PyPreviewControlBar_base_SetZoomControl(*args, **kwargs)
3672
3673
3674 class PyPreviewControlBarPtr(PyPreviewControlBar):
3675 def __init__(self, this):
3676 self.this = this
3677 if not hasattr(self,"thisown"): self.thisown = 0
3678 self.__class__ = PyPreviewControlBar
3679 _windows.PyPreviewControlBar_swigregister(PyPreviewControlBarPtr)
3680
3681