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