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