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