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