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