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