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