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