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