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