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