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