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