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