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