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