]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/mac/windows.py
Add a set for wxMac too
[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 )
fbc46b20 845EVT_SPLITTER_DCLICK = EVT_SPLITTER_DOUBLECLICKED
d14a1e28
RD
846
847#---------------------------------------------------------------------------
848
849SASH_DRAG_NONE = _windows.SASH_DRAG_NONE
850SASH_DRAG_DRAGGING = _windows.SASH_DRAG_DRAGGING
851SASH_DRAG_LEFT_DOWN = _windows.SASH_DRAG_LEFT_DOWN
852SW_NOBORDER = _windows.SW_NOBORDER
853SW_BORDER = _windows.SW_BORDER
854SW_3DSASH = _windows.SW_3DSASH
855SW_3DBORDER = _windows.SW_3DBORDER
856SW_3D = _windows.SW_3D
857SASH_TOP = _windows.SASH_TOP
858SASH_RIGHT = _windows.SASH_RIGHT
859SASH_BOTTOM = _windows.SASH_BOTTOM
860SASH_LEFT = _windows.SASH_LEFT
861SASH_NONE = _windows.SASH_NONE
862class SashWindow(core.Window):
423f194a
RD
863 def __repr__(self):
864 return "<%s.%s; proxy of C++ wxSashWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 865 def __init__(self, *args, **kwargs):
41f1cec7
RD
866 """
867 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
868 long style=wxCLIP_CHILDREN|wxSW_3D,
cbd72d4f 869 String name=SashNameStr) -> SashWindow
41f1cec7 870 """
d14a1e28
RD
871 newobj = _windows.new_SashWindow(*args, **kwargs)
872 self.this = newobj.this
e6056257 873 self.thisown = 1
d14a1e28 874 del newobj.thisown
e6056257 875 self._setOORInfo(self)
423f194a
RD
876
877 def Create(*args, **kwargs):
41f1cec7
RD
878 """
879 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
880 long style=wxCLIP_CHILDREN|wxSW_3D,
cbd72d4f 881 String name=SashNameStr) -> bool
41f1cec7 882 """
423f194a
RD
883 return _windows.SashWindow_Create(*args, **kwargs)
884
885 def SetSashVisible(*args, **kwargs):
cbd72d4f 886 """SetSashVisible(int edge, bool sash)"""
423f194a
RD
887 return _windows.SashWindow_SetSashVisible(*args, **kwargs)
888
889 def GetSashVisible(*args, **kwargs):
cbd72d4f 890 """GetSashVisible(int edge) -> bool"""
423f194a
RD
891 return _windows.SashWindow_GetSashVisible(*args, **kwargs)
892
893 def SetSashBorder(*args, **kwargs):
cbd72d4f 894 """SetSashBorder(int edge, bool border)"""
423f194a
RD
895 return _windows.SashWindow_SetSashBorder(*args, **kwargs)
896
897 def HasBorder(*args, **kwargs):
cbd72d4f 898 """HasBorder(int edge) -> bool"""
423f194a
RD
899 return _windows.SashWindow_HasBorder(*args, **kwargs)
900
901 def GetEdgeMargin(*args, **kwargs):
cbd72d4f 902 """GetEdgeMargin(int edge) -> int"""
423f194a
RD
903 return _windows.SashWindow_GetEdgeMargin(*args, **kwargs)
904
905 def SetDefaultBorderSize(*args, **kwargs):
906 """SetDefaultBorderSize(int width)"""
907 return _windows.SashWindow_SetDefaultBorderSize(*args, **kwargs)
908
909 def GetDefaultBorderSize(*args, **kwargs):
910 """GetDefaultBorderSize() -> int"""
911 return _windows.SashWindow_GetDefaultBorderSize(*args, **kwargs)
912
913 def SetExtraBorderSize(*args, **kwargs):
914 """SetExtraBorderSize(int width)"""
915 return _windows.SashWindow_SetExtraBorderSize(*args, **kwargs)
916
917 def GetExtraBorderSize(*args, **kwargs):
918 """GetExtraBorderSize() -> int"""
919 return _windows.SashWindow_GetExtraBorderSize(*args, **kwargs)
920
921 def SetMinimumSizeX(*args, **kwargs):
922 """SetMinimumSizeX(int min)"""
923 return _windows.SashWindow_SetMinimumSizeX(*args, **kwargs)
924
925 def SetMinimumSizeY(*args, **kwargs):
926 """SetMinimumSizeY(int min)"""
927 return _windows.SashWindow_SetMinimumSizeY(*args, **kwargs)
928
929 def GetMinimumSizeX(*args, **kwargs):
930 """GetMinimumSizeX() -> int"""
931 return _windows.SashWindow_GetMinimumSizeX(*args, **kwargs)
932
933 def GetMinimumSizeY(*args, **kwargs):
934 """GetMinimumSizeY() -> int"""
935 return _windows.SashWindow_GetMinimumSizeY(*args, **kwargs)
936
937 def SetMaximumSizeX(*args, **kwargs):
938 """SetMaximumSizeX(int max)"""
939 return _windows.SashWindow_SetMaximumSizeX(*args, **kwargs)
940
941 def SetMaximumSizeY(*args, **kwargs):
942 """SetMaximumSizeY(int max)"""
943 return _windows.SashWindow_SetMaximumSizeY(*args, **kwargs)
944
945 def GetMaximumSizeX(*args, **kwargs):
946 """GetMaximumSizeX() -> int"""
947 return _windows.SashWindow_GetMaximumSizeX(*args, **kwargs)
948
949 def GetMaximumSizeY(*args, **kwargs):
950 """GetMaximumSizeY() -> int"""
951 return _windows.SashWindow_GetMaximumSizeY(*args, **kwargs)
952
953 def SashHitTest(*args, **kwargs):
cbd72d4f 954 """SashHitTest(int x, int y, int tolerance=2) -> int"""
423f194a
RD
955 return _windows.SashWindow_SashHitTest(*args, **kwargs)
956
957 def SizeWindows(*args, **kwargs):
958 """SizeWindows()"""
959 return _windows.SashWindow_SizeWindows(*args, **kwargs)
960
e6056257 961
d14a1e28
RD
962class SashWindowPtr(SashWindow):
963 def __init__(self, this):
964 self.this = this
965 if not hasattr(self,"thisown"): self.thisown = 0
966 self.__class__ = SashWindow
967_windows.SashWindow_swigregister(SashWindowPtr)
cbd72d4f
RD
968SashNameStr = cvar.SashNameStr
969SashLayoutNameStr = cvar.SashLayoutNameStr
e6056257 970
d14a1e28 971def PreSashWindow(*args, **kwargs):
423f194a 972 """PreSashWindow() -> SashWindow"""
d14a1e28 973 val = _windows.new_PreSashWindow(*args, **kwargs)
e6056257 974 val.thisown = 1
e6056257
RD
975 return val
976
d14a1e28
RD
977SASH_STATUS_OK = _windows.SASH_STATUS_OK
978SASH_STATUS_OUT_OF_RANGE = _windows.SASH_STATUS_OUT_OF_RANGE
979class SashEvent(core.CommandEvent):
423f194a
RD
980 def __repr__(self):
981 return "<%s.%s; proxy of C++ wxSashEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 982 def __init__(self, *args, **kwargs):
cbd72d4f 983 """__init__(int id=0, int edge=SASH_NONE) -> SashEvent"""
d14a1e28
RD
984 newobj = _windows.new_SashEvent(*args, **kwargs)
985 self.this = newobj.this
986 self.thisown = 1
987 del newobj.thisown
423f194a 988 def SetEdge(*args, **kwargs):
cbd72d4f 989 """SetEdge(int edge)"""
423f194a
RD
990 return _windows.SashEvent_SetEdge(*args, **kwargs)
991
992 def GetEdge(*args, **kwargs):
cbd72d4f 993 """GetEdge() -> int"""
423f194a
RD
994 return _windows.SashEvent_GetEdge(*args, **kwargs)
995
996 def SetDragRect(*args, **kwargs):
997 """SetDragRect(Rect rect)"""
998 return _windows.SashEvent_SetDragRect(*args, **kwargs)
999
1000 def GetDragRect(*args, **kwargs):
1001 """GetDragRect() -> Rect"""
1002 return _windows.SashEvent_GetDragRect(*args, **kwargs)
1003
1004 def SetDragStatus(*args, **kwargs):
cbd72d4f 1005 """SetDragStatus(int status)"""
423f194a
RD
1006 return _windows.SashEvent_SetDragStatus(*args, **kwargs)
1007
1008 def GetDragStatus(*args, **kwargs):
cbd72d4f 1009 """GetDragStatus() -> int"""
423f194a
RD
1010 return _windows.SashEvent_GetDragStatus(*args, **kwargs)
1011
e6056257 1012
d14a1e28
RD
1013class SashEventPtr(SashEvent):
1014 def __init__(self, this):
e6056257 1015 self.this = this
d14a1e28
RD
1016 if not hasattr(self,"thisown"): self.thisown = 0
1017 self.__class__ = SashEvent
1018_windows.SashEvent_swigregister(SashEventPtr)
1019
1020wxEVT_SASH_DRAGGED = _windows.wxEVT_SASH_DRAGGED
1021EVT_SASH_DRAGGED = wx.PyEventBinder( wxEVT_SASH_DRAGGED, 1 )
1022EVT_SASH_DRAGGED_RANGE = wx.PyEventBinder( wxEVT_SASH_DRAGGED, 2 )
1023
1024#---------------------------------------------------------------------------
1025
1026LAYOUT_HORIZONTAL = _windows.LAYOUT_HORIZONTAL
1027LAYOUT_VERTICAL = _windows.LAYOUT_VERTICAL
1028LAYOUT_NONE = _windows.LAYOUT_NONE
1029LAYOUT_TOP = _windows.LAYOUT_TOP
1030LAYOUT_LEFT = _windows.LAYOUT_LEFT
1031LAYOUT_RIGHT = _windows.LAYOUT_RIGHT
1032LAYOUT_BOTTOM = _windows.LAYOUT_BOTTOM
1033LAYOUT_LENGTH_Y = _windows.LAYOUT_LENGTH_Y
1034LAYOUT_LENGTH_X = _windows.LAYOUT_LENGTH_X
1035LAYOUT_MRU_LENGTH = _windows.LAYOUT_MRU_LENGTH
1036LAYOUT_QUERY = _windows.LAYOUT_QUERY
1037wxEVT_QUERY_LAYOUT_INFO = _windows.wxEVT_QUERY_LAYOUT_INFO
1038wxEVT_CALCULATE_LAYOUT = _windows.wxEVT_CALCULATE_LAYOUT
1039class QueryLayoutInfoEvent(core.Event):
423f194a
RD
1040 def __repr__(self):
1041 return "<%s.%s; proxy of C++ wxQueryLayoutInfoEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 1042 def __init__(self, *args, **kwargs):
423f194a 1043 """__init__(int id=0) -> QueryLayoutInfoEvent"""
d14a1e28
RD
1044 newobj = _windows.new_QueryLayoutInfoEvent(*args, **kwargs)
1045 self.this = newobj.this
1046 self.thisown = 1
1047 del newobj.thisown
423f194a
RD
1048 def SetRequestedLength(*args, **kwargs):
1049 """SetRequestedLength(int length)"""
1050 return _windows.QueryLayoutInfoEvent_SetRequestedLength(*args, **kwargs)
1051
1052 def GetRequestedLength(*args, **kwargs):
1053 """GetRequestedLength() -> int"""
1054 return _windows.QueryLayoutInfoEvent_GetRequestedLength(*args, **kwargs)
1055
1056 def SetFlags(*args, **kwargs):
1057 """SetFlags(int flags)"""
1058 return _windows.QueryLayoutInfoEvent_SetFlags(*args, **kwargs)
1059
1060 def GetFlags(*args, **kwargs):
1061 """GetFlags() -> int"""
1062 return _windows.QueryLayoutInfoEvent_GetFlags(*args, **kwargs)
1063
1064 def SetSize(*args, **kwargs):
1065 """SetSize(Size size)"""
1066 return _windows.QueryLayoutInfoEvent_SetSize(*args, **kwargs)
1067
1068 def GetSize(*args, **kwargs):
1069 """GetSize() -> Size"""
1070 return _windows.QueryLayoutInfoEvent_GetSize(*args, **kwargs)
1071
1072 def SetOrientation(*args, **kwargs):
cbd72d4f 1073 """SetOrientation(int orient)"""
423f194a
RD
1074 return _windows.QueryLayoutInfoEvent_SetOrientation(*args, **kwargs)
1075
1076 def GetOrientation(*args, **kwargs):
cbd72d4f 1077 """GetOrientation() -> int"""
423f194a
RD
1078 return _windows.QueryLayoutInfoEvent_GetOrientation(*args, **kwargs)
1079
1080 def SetAlignment(*args, **kwargs):
cbd72d4f 1081 """SetAlignment(int align)"""
423f194a
RD
1082 return _windows.QueryLayoutInfoEvent_SetAlignment(*args, **kwargs)
1083
1084 def GetAlignment(*args, **kwargs):
cbd72d4f 1085 """GetAlignment() -> int"""
423f194a
RD
1086 return _windows.QueryLayoutInfoEvent_GetAlignment(*args, **kwargs)
1087
d14a1e28
RD
1088
1089class QueryLayoutInfoEventPtr(QueryLayoutInfoEvent):
1090 def __init__(self, this):
1091 self.this = this
1092 if not hasattr(self,"thisown"): self.thisown = 0
1093 self.__class__ = QueryLayoutInfoEvent
1094_windows.QueryLayoutInfoEvent_swigregister(QueryLayoutInfoEventPtr)
1095
1096class CalculateLayoutEvent(core.Event):
423f194a
RD
1097 def __repr__(self):
1098 return "<%s.%s; proxy of C++ wxCalculateLayoutEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 1099 def __init__(self, *args, **kwargs):
423f194a 1100 """__init__(int id=0) -> CalculateLayoutEvent"""
d14a1e28
RD
1101 newobj = _windows.new_CalculateLayoutEvent(*args, **kwargs)
1102 self.this = newobj.this
e6056257 1103 self.thisown = 1
d14a1e28 1104 del newobj.thisown
423f194a
RD
1105 def SetFlags(*args, **kwargs):
1106 """SetFlags(int flags)"""
1107 return _windows.CalculateLayoutEvent_SetFlags(*args, **kwargs)
1108
1109 def GetFlags(*args, **kwargs):
1110 """GetFlags() -> int"""
1111 return _windows.CalculateLayoutEvent_GetFlags(*args, **kwargs)
1112
1113 def SetRect(*args, **kwargs):
1114 """SetRect(Rect rect)"""
1115 return _windows.CalculateLayoutEvent_SetRect(*args, **kwargs)
1116
1117 def GetRect(*args, **kwargs):
1118 """GetRect() -> Rect"""
1119 return _windows.CalculateLayoutEvent_GetRect(*args, **kwargs)
1120
d14a1e28
RD
1121
1122class CalculateLayoutEventPtr(CalculateLayoutEvent):
1123 def __init__(self, this):
1124 self.this = this
1125 if not hasattr(self,"thisown"): self.thisown = 0
1126 self.__class__ = CalculateLayoutEvent
1127_windows.CalculateLayoutEvent_swigregister(CalculateLayoutEventPtr)
e6056257 1128
d14a1e28
RD
1129EVT_QUERY_LAYOUT_INFO = wx.PyEventBinder( wxEVT_QUERY_LAYOUT_INFO )
1130EVT_CALCULATE_LAYOUT = wx.PyEventBinder( wxEVT_CALCULATE_LAYOUT )
e6056257 1131
d14a1e28 1132class SashLayoutWindow(SashWindow):
423f194a
RD
1133 def __repr__(self):
1134 return "<%s.%s; proxy of C++ wxSashLayoutWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 1135 def __init__(self, *args, **kwargs):
41f1cec7
RD
1136 """
1137 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
1138 long style=wxCLIP_CHILDREN|wxSW_3D,
cbd72d4f 1139 String name=SashLayoutNameStr) -> SashLayoutWindow
41f1cec7 1140 """
d14a1e28
RD
1141 newobj = _windows.new_SashLayoutWindow(*args, **kwargs)
1142 self.this = newobj.this
1143 self.thisown = 1
1144 del newobj.thisown
1145 self._setOORInfo(self)
423f194a
RD
1146
1147 def Create(*args, **kwargs):
41f1cec7
RD
1148 """
1149 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
1150 long style=wxCLIP_CHILDREN|wxSW_3D,
cbd72d4f 1151 String name=SashLayoutNameStr) -> bool
41f1cec7 1152 """
423f194a
RD
1153 return _windows.SashLayoutWindow_Create(*args, **kwargs)
1154
1155 def GetAlignment(*args, **kwargs):
cbd72d4f 1156 """GetAlignment() -> int"""
423f194a
RD
1157 return _windows.SashLayoutWindow_GetAlignment(*args, **kwargs)
1158
1159 def GetOrientation(*args, **kwargs):
cbd72d4f 1160 """GetOrientation() -> int"""
423f194a
RD
1161 return _windows.SashLayoutWindow_GetOrientation(*args, **kwargs)
1162
1163 def SetAlignment(*args, **kwargs):
cbd72d4f 1164 """SetAlignment(int alignment)"""
423f194a
RD
1165 return _windows.SashLayoutWindow_SetAlignment(*args, **kwargs)
1166
1167 def SetDefaultSize(*args, **kwargs):
1168 """SetDefaultSize(Size size)"""
1169 return _windows.SashLayoutWindow_SetDefaultSize(*args, **kwargs)
1170
1171 def SetOrientation(*args, **kwargs):
cbd72d4f 1172 """SetOrientation(int orientation)"""
423f194a
RD
1173 return _windows.SashLayoutWindow_SetOrientation(*args, **kwargs)
1174
e6056257 1175
d14a1e28
RD
1176class SashLayoutWindowPtr(SashLayoutWindow):
1177 def __init__(self, this):
1178 self.this = this
1179 if not hasattr(self,"thisown"): self.thisown = 0
1180 self.__class__ = SashLayoutWindow
1181_windows.SashLayoutWindow_swigregister(SashLayoutWindowPtr)
1182
1183def PreSashLayoutWindow(*args, **kwargs):
423f194a 1184 """PreSashLayoutWindow() -> SashLayoutWindow"""
d14a1e28 1185 val = _windows.new_PreSashLayoutWindow(*args, **kwargs)
e6056257
RD
1186 val.thisown = 1
1187 return val
1188
d14a1e28 1189class LayoutAlgorithm(core.Object):
423f194a
RD
1190 def __repr__(self):
1191 return "<%s.%s; proxy of C++ wxLayoutAlgorithm instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 1192 def __init__(self, *args, **kwargs):
423f194a 1193 """__init__() -> LayoutAlgorithm"""
d14a1e28
RD
1194 newobj = _windows.new_LayoutAlgorithm(*args, **kwargs)
1195 self.this = newobj.this
1196 self.thisown = 1
1197 del newobj.thisown
1198 def __del__(self, destroy=_windows.delete_LayoutAlgorithm):
423f194a 1199 """__del__()"""
d14a1e28
RD
1200 try:
1201 if self.thisown: destroy(self)
1202 except: pass
423f194a
RD
1203
1204 def LayoutMDIFrame(*args, **kwargs):
1205 """LayoutMDIFrame(MDIParentFrame frame, Rect rect=None) -> bool"""
1206 return _windows.LayoutAlgorithm_LayoutMDIFrame(*args, **kwargs)
1207
1208 def LayoutFrame(*args, **kwargs):
1209 """LayoutFrame(Frame frame, Window mainWindow=None) -> bool"""
1210 return _windows.LayoutAlgorithm_LayoutFrame(*args, **kwargs)
1211
1212 def LayoutWindow(*args, **kwargs):
1213 """LayoutWindow(Window parent, Window mainWindow=None) -> bool"""
1214 return _windows.LayoutAlgorithm_LayoutWindow(*args, **kwargs)
1215
e6056257 1216
d14a1e28
RD
1217class LayoutAlgorithmPtr(LayoutAlgorithm):
1218 def __init__(self, this):
e6056257 1219 self.this = this
d14a1e28
RD
1220 if not hasattr(self,"thisown"): self.thisown = 0
1221 self.__class__ = LayoutAlgorithm
1222_windows.LayoutAlgorithm_swigregister(LayoutAlgorithmPtr)
1223
1224class PopupWindow(core.Window):
423f194a
RD
1225 def __repr__(self):
1226 return "<%s.%s; proxy of C++ wxPopupWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1227 def __init__(self, *args, **kwargs):
1228 """__init__(Window parent, int flags=BORDER_NONE) -> PopupWindow"""
d14a1e28
RD
1229 newobj = _windows.new_PopupWindow(*args, **kwargs)
1230 self.this = newobj.this
1231 self.thisown = 1
1232 del newobj.thisown
d14a1e28
RD
1233
1234class PopupWindowPtr(PopupWindow):
1235 def __init__(self, this):
1236 self.this = this
1237 if not hasattr(self,"thisown"): self.thisown = 0
1238 self.__class__ = PopupWindow
1239_windows.PopupWindow_swigregister(PopupWindowPtr)
1240
1241def PrePopupWindow(*args, **kwargs):
423f194a 1242 """PrePopupWindow() -> PopupWindow"""
d14a1e28
RD
1243 val = _windows.new_PrePopupWindow(*args, **kwargs)
1244 val.thisown = 1
1245 return val
1246
1247class PopupTransientWindow(PopupWindow):
423f194a
RD
1248 def __repr__(self):
1249 return "<%s.%s; proxy of C++ wxPyPopupTransientWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 1250 def __init__(self, *args, **kwargs):
423f194a 1251 """__init__(Window parent, int style=BORDER_NONE) -> PopupTransientWindow"""
d14a1e28
RD
1252 newobj = _windows.new_PopupTransientWindow(*args, **kwargs)
1253 self.this = newobj.this
e6056257 1254 self.thisown = 1
d14a1e28 1255 del newobj.thisown
d14a1e28
RD
1256
1257class PopupTransientWindowPtr(PopupTransientWindow):
1258 def __init__(self, this):
1259 self.this = this
1260 if not hasattr(self,"thisown"): self.thisown = 0
1261 self.__class__ = PopupTransientWindow
1262_windows.PopupTransientWindow_swigregister(PopupTransientWindowPtr)
1263
1264def PrePopupTransientWindow(*args, **kwargs):
423f194a 1265 """PrePopupTransientWindow() -> PopupTransientWindow"""
d14a1e28
RD
1266 val = _windows.new_PrePopupTransientWindow(*args, **kwargs)
1267 val.thisown = 1
1268 return val
1269
1270#---------------------------------------------------------------------------
1271
1272class TipWindow(Frame):
423f194a
RD
1273 def __repr__(self):
1274 return "<%s.%s; proxy of C++ wxTipWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 1275 def __init__(self, *args, **kwargs):
cbd72d4f 1276 """__init__(Window parent, String text, int maxLength=100, Rect rectBound=None) -> TipWindow"""
d14a1e28
RD
1277 newobj = _windows.new_TipWindow(*args, **kwargs)
1278 self.this = newobj.this
1279 self.thisown = 1
1280 del newobj.thisown
e6056257 1281 self._setOORInfo(self)
423f194a
RD
1282
1283 def SetBoundingRect(*args, **kwargs):
1284 """SetBoundingRect(Rect rectBound)"""
1285 return _windows.TipWindow_SetBoundingRect(*args, **kwargs)
1286
1287 def Close(*args, **kwargs):
1288 """Close()"""
1289 return _windows.TipWindow_Close(*args, **kwargs)
1290
d14a1e28
RD
1291
1292class TipWindowPtr(TipWindow):
1293 def __init__(self, this):
1294 self.this = this
1295 if not hasattr(self,"thisown"): self.thisown = 0
1296 self.__class__ = TipWindow
1297_windows.TipWindow_swigregister(TipWindowPtr)
1298
1299#---------------------------------------------------------------------------
e6056257 1300
d14a1e28 1301class VScrolledWindow(Panel):
423f194a
RD
1302 def __repr__(self):
1303 return "<%s.%s; proxy of C++ wxPyVScrolledWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 1304 def __init__(self, *args, **kwargs):
41f1cec7
RD
1305 """
1306 __init__(Window parent, int id=ID_ANY, Point pos=DefaultPosition,
cbd72d4f 1307 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> VScrolledWindow
41f1cec7 1308 """
d14a1e28
RD
1309 newobj = _windows.new_VScrolledWindow(*args, **kwargs)
1310 self.this = newobj.this
1311 self.thisown = 1
1312 del newobj.thisown
1313 self._setOORInfo(self); self._setCallbackInfo(self, VScrolledWindow)
423f194a
RD
1314
1315 def _setCallbackInfo(*args, **kwargs):
1316 """_setCallbackInfo(PyObject self, PyObject _class)"""
1317 return _windows.VScrolledWindow__setCallbackInfo(*args, **kwargs)
1318
1319 def Create(*args, **kwargs):
41f1cec7
RD
1320 """
1321 Create(Window parent, int id=ID_ANY, Point pos=DefaultPosition,
cbd72d4f 1322 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> bool
41f1cec7 1323 """
423f194a
RD
1324 return _windows.VScrolledWindow_Create(*args, **kwargs)
1325
1326 def SetLineCount(*args, **kwargs):
1327 """SetLineCount(size_t count)"""
1328 return _windows.VScrolledWindow_SetLineCount(*args, **kwargs)
1329
1330 def ScrollToLine(*args, **kwargs):
1331 """ScrollToLine(size_t line) -> bool"""
1332 return _windows.VScrolledWindow_ScrollToLine(*args, **kwargs)
1333
1334 def ScrollLines(*args, **kwargs):
ce7284bd
RD
1335 """
1336 ScrollLines(int lines) -> bool
1337
1338 If the platform and window class supports it, scrolls the window by
1339 the given number of lines down, if lines is positive, or up if lines
1340 is negative. Returns True if the window was scrolled, False if it was
1341 already on top/bottom and nothing was done.
1342 """
423f194a
RD
1343 return _windows.VScrolledWindow_ScrollLines(*args, **kwargs)
1344
1345 def ScrollPages(*args, **kwargs):
ce7284bd
RD
1346 """
1347 ScrollPages(int pages) -> bool
1348
1349 If the platform and window class supports it, scrolls the window by
1350 the given number of pages down, if pages is positive, or up if pages
1351 is negative. Returns True if the window was scrolled, False if it was
1352 already on top/bottom and nothing was done.
1353 """
423f194a
RD
1354 return _windows.VScrolledWindow_ScrollPages(*args, **kwargs)
1355
1356 def RefreshLine(*args, **kwargs):
1357 """RefreshLine(size_t line)"""
1358 return _windows.VScrolledWindow_RefreshLine(*args, **kwargs)
1359
1360 def RefreshLines(*args, **kwargs):
1361 """RefreshLines(size_t from, size_t to)"""
1362 return _windows.VScrolledWindow_RefreshLines(*args, **kwargs)
1363
1364 def HitTestXT(*args, **kwargs):
ce7284bd
RD
1365 """
1366 HitTestXT(int x, int y) -> int
1367
1368 Test where the given (in client coords) point lies
1369 """
423f194a
RD
1370 return _windows.VScrolledWindow_HitTestXT(*args, **kwargs)
1371
1372 def HitTest(*args, **kwargs):
ce7284bd
RD
1373 """
1374 HitTest(Point pt) -> int
1375
1376 Test where the given (in client coords) point lies
1377 """
423f194a
RD
1378 return _windows.VScrolledWindow_HitTest(*args, **kwargs)
1379
1380 def RefreshAll(*args, **kwargs):
1381 """RefreshAll()"""
1382 return _windows.VScrolledWindow_RefreshAll(*args, **kwargs)
1383
1384 def GetLineCount(*args, **kwargs):
1385 """GetLineCount() -> size_t"""
1386 return _windows.VScrolledWindow_GetLineCount(*args, **kwargs)
1387
1388 def GetFirstVisibleLine(*args, **kwargs):
1389 """GetFirstVisibleLine() -> size_t"""
1390 return _windows.VScrolledWindow_GetFirstVisibleLine(*args, **kwargs)
1391
1392 def GetLastVisibleLine(*args, **kwargs):
1393 """GetLastVisibleLine() -> size_t"""
1394 return _windows.VScrolledWindow_GetLastVisibleLine(*args, **kwargs)
1395
1396 def IsVisible(*args, **kwargs):
1397 """IsVisible(size_t line) -> bool"""
1398 return _windows.VScrolledWindow_IsVisible(*args, **kwargs)
1399
e6056257 1400
d14a1e28
RD
1401class VScrolledWindowPtr(VScrolledWindow):
1402 def __init__(self, this):
1403 self.this = this
1404 if not hasattr(self,"thisown"): self.thisown = 0
1405 self.__class__ = VScrolledWindow
1406_windows.VScrolledWindow_swigregister(VScrolledWindowPtr)
e6056257 1407
d14a1e28 1408def PreVScrolledWindow(*args, **kwargs):
423f194a 1409 """PreVScrolledWindow() -> VScrolledWindow"""
d14a1e28 1410 val = _windows.new_PreVScrolledWindow(*args, **kwargs)
e6056257 1411 val.thisown = 1
e6056257
RD
1412 return val
1413
d14a1e28 1414class VListBox(VScrolledWindow):
423f194a
RD
1415 def __repr__(self):
1416 return "<%s.%s; proxy of C++ wxPyVListBox instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 1417 def __init__(self, *args, **kwargs):
41f1cec7
RD
1418 """
1419 __init__(Window parent, int id=ID_ANY, Point pos=DefaultPosition,
cbd72d4f 1420 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> VListBox
41f1cec7 1421 """
d14a1e28
RD
1422 newobj = _windows.new_VListBox(*args, **kwargs)
1423 self.this = newobj.this
1424 self.thisown = 1
1425 del newobj.thisown
1426 self._setOORInfo(self);self._setCallbackInfo(self, VListBox)
423f194a
RD
1427
1428 def _setCallbackInfo(*args, **kwargs):
1429 """_setCallbackInfo(PyObject self, PyObject _class)"""
1430 return _windows.VListBox__setCallbackInfo(*args, **kwargs)
1431
1432 def Create(*args, **kwargs):
41f1cec7
RD
1433 """
1434 Create(Window parent, int id=ID_ANY, Point pos=DefaultPosition,
cbd72d4f 1435 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
41f1cec7 1436 """
423f194a
RD
1437 return _windows.VListBox_Create(*args, **kwargs)
1438
1439 def GetItemCount(*args, **kwargs):
1440 """GetItemCount() -> size_t"""
1441 return _windows.VListBox_GetItemCount(*args, **kwargs)
1442
1443 def HasMultipleSelection(*args, **kwargs):
1444 """HasMultipleSelection() -> bool"""
1445 return _windows.VListBox_HasMultipleSelection(*args, **kwargs)
1446
1447 def GetSelection(*args, **kwargs):
1448 """GetSelection() -> int"""
1449 return _windows.VListBox_GetSelection(*args, **kwargs)
1450
1451 def IsCurrent(*args, **kwargs):
1452 """IsCurrent(size_t item) -> bool"""
1453 return _windows.VListBox_IsCurrent(*args, **kwargs)
1454
1455 def IsSelected(*args, **kwargs):
1456 """IsSelected(size_t item) -> bool"""
1457 return _windows.VListBox_IsSelected(*args, **kwargs)
1458
1459 def GetSelectedCount(*args, **kwargs):
1460 """GetSelectedCount() -> size_t"""
1461 return _windows.VListBox_GetSelectedCount(*args, **kwargs)
1462
1463 def GetFirstSelected(*args, **kwargs):
1464 """GetFirstSelected(unsigned long cookie) -> int"""
1465 return _windows.VListBox_GetFirstSelected(*args, **kwargs)
1466
1467 def GetNextSelected(*args, **kwargs):
1468 """GetNextSelected(unsigned long cookie) -> int"""
1469 return _windows.VListBox_GetNextSelected(*args, **kwargs)
1470
1471 def GetMargins(*args, **kwargs):
1472 """GetMargins() -> Point"""
1473 return _windows.VListBox_GetMargins(*args, **kwargs)
1474
1475 def GetSelectionBackground(*args, **kwargs):
cbd72d4f 1476 """GetSelectionBackground() -> Colour"""
423f194a
RD
1477 return _windows.VListBox_GetSelectionBackground(*args, **kwargs)
1478
1479 def SetItemCount(*args, **kwargs):
1480 """SetItemCount(size_t count)"""
1481 return _windows.VListBox_SetItemCount(*args, **kwargs)
1482
1483 def Clear(*args, **kwargs):
1484 """Clear()"""
1485 return _windows.VListBox_Clear(*args, **kwargs)
1486
1487 def SetSelection(*args, **kwargs):
1488 """SetSelection(int selection)"""
1489 return _windows.VListBox_SetSelection(*args, **kwargs)
1490
1491 def Select(*args, **kwargs):
1492 """Select(size_t item, bool select=True) -> bool"""
1493 return _windows.VListBox_Select(*args, **kwargs)
1494
1495 def SelectRange(*args, **kwargs):
1496 """SelectRange(size_t from, size_t to) -> bool"""
1497 return _windows.VListBox_SelectRange(*args, **kwargs)
1498
1499 def Toggle(*args, **kwargs):
1500 """Toggle(size_t item)"""
1501 return _windows.VListBox_Toggle(*args, **kwargs)
1502
1503 def SelectAll(*args, **kwargs):
1504 """SelectAll() -> bool"""
1505 return _windows.VListBox_SelectAll(*args, **kwargs)
1506
1507 def DeselectAll(*args, **kwargs):
1508 """DeselectAll() -> bool"""
1509 return _windows.VListBox_DeselectAll(*args, **kwargs)
1510
1511 def SetMargins(*args, **kwargs):
1512 """SetMargins(Point pt)"""
1513 return _windows.VListBox_SetMargins(*args, **kwargs)
1514
1515 def SetMarginsXY(*args, **kwargs):
1516 """SetMarginsXY(int x, int y)"""
1517 return _windows.VListBox_SetMarginsXY(*args, **kwargs)
1518
1519 def SetSelectionBackground(*args, **kwargs):
cbd72d4f 1520 """SetSelectionBackground(Colour col)"""
423f194a
RD
1521 return _windows.VListBox_SetSelectionBackground(*args, **kwargs)
1522
e6056257 1523
d14a1e28
RD
1524class VListBoxPtr(VListBox):
1525 def __init__(self, this):
e6056257 1526 self.this = this
d14a1e28
RD
1527 if not hasattr(self,"thisown"): self.thisown = 0
1528 self.__class__ = VListBox
1529_windows.VListBox_swigregister(VListBoxPtr)
cbd72d4f 1530VListBoxNameStr = cvar.VListBoxNameStr
d14a1e28
RD
1531
1532def PreVListBox(*args, **kwargs):
423f194a 1533 """PreVListBox() -> VListBox"""
d14a1e28
RD
1534 val = _windows.new_PreVListBox(*args, **kwargs)
1535 val.thisown = 1
1536 return val
1537
1538class HtmlListBox(VListBox):
423f194a
RD
1539 def __repr__(self):
1540 return "<%s.%s; proxy of C++ wxPyHtmlListBox instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 1541 def __init__(self, *args, **kwargs):
41f1cec7
RD
1542 """
1543 __init__(Window parent, int id=ID_ANY, Point pos=DefaultPosition,
cbd72d4f 1544 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> HtmlListBox
41f1cec7 1545 """
d14a1e28
RD
1546 newobj = _windows.new_HtmlListBox(*args, **kwargs)
1547 self.this = newobj.this
1548 self.thisown = 1
1549 del newobj.thisown
1550 self._setOORInfo(self);self._setCallbackInfo(self, HtmlListBox)
423f194a
RD
1551
1552 def _setCallbackInfo(*args, **kwargs):
1553 """_setCallbackInfo(PyObject self, PyObject _class)"""
1554 return _windows.HtmlListBox__setCallbackInfo(*args, **kwargs)
1555
1556 def Create(*args, **kwargs):
41f1cec7
RD
1557 """
1558 Create(Window parent, int id=ID_ANY, Point pos=DefaultPosition,
cbd72d4f 1559 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
41f1cec7 1560 """
423f194a
RD
1561 return _windows.HtmlListBox_Create(*args, **kwargs)
1562
1563 def RefreshAll(*args, **kwargs):
1564 """RefreshAll()"""
1565 return _windows.HtmlListBox_RefreshAll(*args, **kwargs)
1566
1567 def SetItemCount(*args, **kwargs):
1568 """SetItemCount(size_t count)"""
1569 return _windows.HtmlListBox_SetItemCount(*args, **kwargs)
1570
d14a1e28
RD
1571
1572class HtmlListBoxPtr(HtmlListBox):
1573 def __init__(self, this):
1574 self.this = this
1575 if not hasattr(self,"thisown"): self.thisown = 0
1576 self.__class__ = HtmlListBox
1577_windows.HtmlListBox_swigregister(HtmlListBoxPtr)
1578
1579def PreHtmlListBox(*args, **kwargs):
423f194a 1580 """PreHtmlListBox() -> HtmlListBox"""
d14a1e28
RD
1581 val = _windows.new_PreHtmlListBox(*args, **kwargs)
1582 val.thisown = 1
1583 return val
1584
1585#---------------------------------------------------------------------------
1586
1587class TaskBarIcon(core.EvtHandler):
423f194a
RD
1588 def __repr__(self):
1589 return "<%s.%s; proxy of C++ wxTaskBarIcon instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 1590 def __init__(self, *args, **kwargs):
423f194a 1591 """__init__() -> TaskBarIcon"""
d14a1e28
RD
1592 newobj = _windows.new_TaskBarIcon(*args, **kwargs)
1593 self.this = newobj.this
e6056257 1594 self.thisown = 1
d14a1e28
RD
1595 del newobj.thisown
1596 def __del__(self, destroy=_windows.delete_TaskBarIcon):
423f194a 1597 """__del__()"""
d14a1e28
RD
1598 try:
1599 if self.thisown: destroy(self)
1600 except: pass
423f194a 1601
e6056257 1602
d14a1e28
RD
1603class TaskBarIconPtr(TaskBarIcon):
1604 def __init__(self, this):
1605 self.this = this
1606 if not hasattr(self,"thisown"): self.thisown = 0
1607 self.__class__ = TaskBarIcon
1608_windows.TaskBarIcon_swigregister(TaskBarIconPtr)
1609
1610class TaskBarIconEvent(core.Event):
423f194a
RD
1611 def __repr__(self):
1612 return "<%s.%s; proxy of C++ wxTaskBarIconEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 1613 def __init__(self, *args, **kwargs):
423f194a 1614 """__init__(wxEventType evtType, TaskBarIcon tbIcon) -> TaskBarIconEvent"""
d14a1e28
RD
1615 newobj = _windows.new_TaskBarIconEvent(*args, **kwargs)
1616 self.this = newobj.this
1617 self.thisown = 1
1618 del newobj.thisown
e6056257 1619
d14a1e28
RD
1620class TaskBarIconEventPtr(TaskBarIconEvent):
1621 def __init__(self, this):
1622 self.this = this
1623 if not hasattr(self,"thisown"): self.thisown = 0
1624 self.__class__ = TaskBarIconEvent
1625_windows.TaskBarIconEvent_swigregister(TaskBarIconEventPtr)
1626
1627wxEVT_TASKBAR_MOVE = _windows.wxEVT_TASKBAR_MOVE
1628wxEVT_TASKBAR_LEFT_DOWN = _windows.wxEVT_TASKBAR_LEFT_DOWN
1629wxEVT_TASKBAR_LEFT_UP = _windows.wxEVT_TASKBAR_LEFT_UP
1630wxEVT_TASKBAR_RIGHT_DOWN = _windows.wxEVT_TASKBAR_RIGHT_DOWN
1631wxEVT_TASKBAR_RIGHT_UP = _windows.wxEVT_TASKBAR_RIGHT_UP
1632wxEVT_TASKBAR_LEFT_DCLICK = _windows.wxEVT_TASKBAR_LEFT_DCLICK
1633wxEVT_TASKBAR_RIGHT_DCLICK = _windows.wxEVT_TASKBAR_RIGHT_DCLICK
1634EVT_TASKBAR_MOVE = wx.PyEventBinder ( wxEVT_TASKBAR_MOVE )
1635EVT_TASKBAR_LEFT_DOWN = wx.PyEventBinder ( wxEVT_TASKBAR_LEFT_DOWN )
1636EVT_TASKBAR_LEFT_UP = wx.PyEventBinder ( wxEVT_TASKBAR_LEFT_UP )
1637EVT_TASKBAR_RIGHT_DOWN = wx.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DOWN )
1638EVT_TASKBAR_RIGHT_UP = wx.PyEventBinder ( wxEVT_TASKBAR_RIGHT_UP )
1639EVT_TASKBAR_LEFT_DCLICK = wx.PyEventBinder ( wxEVT_TASKBAR_LEFT_DCLICK )
1640EVT_TASKBAR_RIGHT_DCLICK = wx.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DCLICK )
1641
1642#---------------------------------------------------------------------------
1643
1644class ColourData(core.Object):
1f05e33b 1645 """This class holds a variety of information related to colour dialogs."""
423f194a
RD
1646 def __repr__(self):
1647 return "<%s.%s; proxy of C++ wxColourData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 1648 def __init__(self, *args, **kwargs):
1f05e33b
RD
1649 """
1650 __init__() -> ColourData
1651
1652 Constructor, sets default values.
1653 """
d14a1e28
RD
1654 newobj = _windows.new_ColourData(*args, **kwargs)
1655 self.this = newobj.this
1656 self.thisown = 1
1657 del newobj.thisown
1658 def __del__(self, destroy=_windows.delete_ColourData):
423f194a 1659 """__del__()"""
d14a1e28
RD
1660 try:
1661 if self.thisown: destroy(self)
1662 except: pass
423f194a
RD
1663
1664 def GetChooseFull(*args, **kwargs):
1f05e33b
RD
1665 """
1666 GetChooseFull() -> bool
1667
1668 Under Windows, determines whether the Windows colour dialog will display
1669 the full dialog with custom colour selection controls. Has no meaning
1670 under other platforms. The default value is true.
1671 """
423f194a
RD
1672 return _windows.ColourData_GetChooseFull(*args, **kwargs)
1673
1674 def GetColour(*args, **kwargs):
1f05e33b
RD
1675 """
1676 GetColour() -> Colour
1677
1678 Gets the colour (pre)selected by the dialog.
1679 """
423f194a
RD
1680 return _windows.ColourData_GetColour(*args, **kwargs)
1681
1682 def GetCustomColour(*args, **kwargs):
1f05e33b
RD
1683 """
1684 GetCustomColour(int i) -> Colour
1685
1686 Gets the i'th custom colour associated with the colour dialog. i should
1687 be an integer between 0 and 15. The default custom colours are all white.
1688 """
423f194a
RD
1689 return _windows.ColourData_GetCustomColour(*args, **kwargs)
1690
1691 def SetChooseFull(*args, **kwargs):
1f05e33b
RD
1692 """
1693 SetChooseFull(int flag)
1694
1695 Under Windows, tells the Windows colour dialog to display the full dialog
1696 with custom colour selection controls. Under other platforms, has no effect.
1697 The default value is true.
1698 """
423f194a
RD
1699 return _windows.ColourData_SetChooseFull(*args, **kwargs)
1700
1701 def SetColour(*args, **kwargs):
1f05e33b
RD
1702 """
1703 SetColour(Colour colour)
1704
1705 Sets the default colour for the colour dialog. The default colour is black.
1706 """
423f194a
RD
1707 return _windows.ColourData_SetColour(*args, **kwargs)
1708
1709 def SetCustomColour(*args, **kwargs):
1f05e33b
RD
1710 """
1711 SetCustomColour(int i, Colour colour)
1712
1713 Sets the i'th custom colour for the colour dialog. i should be an integer
1714 between 0 and 15. The default custom colours are all white.
1715 """
423f194a
RD
1716 return _windows.ColourData_SetCustomColour(*args, **kwargs)
1717
e6056257 1718
d14a1e28
RD
1719class ColourDataPtr(ColourData):
1720 def __init__(self, this):
1721 self.this = this
1722 if not hasattr(self,"thisown"): self.thisown = 0
1723 self.__class__ = ColourData
1724_windows.ColourData_swigregister(ColourDataPtr)
cbd72d4f
RD
1725FileSelectorPromptStr = cvar.FileSelectorPromptStr
1726DirSelectorPromptStr = cvar.DirSelectorPromptStr
1727DirDialogNameStr = cvar.DirDialogNameStr
1728FileSelectorDefaultWildcardStr = cvar.FileSelectorDefaultWildcardStr
1729GetTextFromUserPromptStr = cvar.GetTextFromUserPromptStr
1730MessageBoxCaptionStr = cvar.MessageBoxCaptionStr
d14a1e28
RD
1731
1732class ColourDialog(Dialog):
1f05e33b 1733 """This class represents the colour chooser dialog."""
423f194a
RD
1734 def __repr__(self):
1735 return "<%s.%s; proxy of C++ wxColourDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 1736 def __init__(self, *args, **kwargs):
1f05e33b
RD
1737 """
1738 __init__(Window parent, ColourData data=None) -> ColourDialog
1739
1740 Constructor. Pass a parent window, and optionally a ColourData, which
1741 will be copied to the colour dialog's internal ColourData instance.
1742 """
d14a1e28
RD
1743 newobj = _windows.new_ColourDialog(*args, **kwargs)
1744 self.this = newobj.this
1745 self.thisown = 1
1746 del newobj.thisown
1747 self._setOORInfo(self)
423f194a
RD
1748
1749 def GetColourData(*args, **kwargs):
1f05e33b
RD
1750 """
1751 GetColourData() -> ColourData
423f194a 1752
1f05e33b
RD
1753 Returns a reference to the ColourData used by the dialog.
1754 """
1755 return _windows.ColourDialog_GetColourData(*args, **kwargs)
423f194a 1756
e6056257 1757
d14a1e28
RD
1758class ColourDialogPtr(ColourDialog):
1759 def __init__(self, this):
e6056257 1760 self.this = this
d14a1e28
RD
1761 if not hasattr(self,"thisown"): self.thisown = 0
1762 self.__class__ = ColourDialog
1763_windows.ColourDialog_swigregister(ColourDialogPtr)
1764
1765class DirDialog(Dialog):
1f05e33b 1766 """This class represents the directory chooser dialog."""
423f194a
RD
1767 def __repr__(self):
1768 return "<%s.%s; proxy of C++ wxDirDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 1769 def __init__(self, *args, **kwargs):
41f1cec7 1770 """
cbd72d4f
RD
1771 __init__(Window parent, String message=DirSelectorPromptStr,
1772 String defaultPath=EmptyString, long style=0,
1773 Point pos=DefaultPosition, Size size=DefaultSize,
1774 String name=DirDialogNameStr) -> DirDialog
1f05e33b
RD
1775
1776 Constructor. Use ShowModal method to show the dialog.
41f1cec7 1777 """
d14a1e28
RD
1778 newobj = _windows.new_DirDialog(*args, **kwargs)
1779 self.this = newobj.this
1780 self.thisown = 1
1781 del newobj.thisown
1782 self._setOORInfo(self)
423f194a
RD
1783
1784 def GetPath(*args, **kwargs):
1f05e33b
RD
1785 """
1786 GetPath() -> String
1787
1788 Returns the default or user-selected path.
1789 """
423f194a
RD
1790 return _windows.DirDialog_GetPath(*args, **kwargs)
1791
1792 def GetMessage(*args, **kwargs):
1f05e33b
RD
1793 """
1794 GetMessage() -> String
1795
1796 Returns the message that will be displayed on the dialog.
1797 """
423f194a
RD
1798 return _windows.DirDialog_GetMessage(*args, **kwargs)
1799
1800 def GetStyle(*args, **kwargs):
1f05e33b
RD
1801 """
1802 GetStyle() -> long
1803
1804 Returns the dialog style.
1805 """
423f194a
RD
1806 return _windows.DirDialog_GetStyle(*args, **kwargs)
1807
1808 def SetMessage(*args, **kwargs):
1f05e33b
RD
1809 """
1810 SetMessage(String message)
1811
1812 Sets the message that will be displayed on the dialog.
1813 """
423f194a
RD
1814 return _windows.DirDialog_SetMessage(*args, **kwargs)
1815
1816 def SetPath(*args, **kwargs):
1f05e33b
RD
1817 """
1818 SetPath(String path)
423f194a 1819
1f05e33b
RD
1820 Sets the default path.
1821 """
1822 return _windows.DirDialog_SetPath(*args, **kwargs)
423f194a 1823
d14a1e28
RD
1824
1825class DirDialogPtr(DirDialog):
1826 def __init__(self, this):
1827 self.this = this
1828 if not hasattr(self,"thisown"): self.thisown = 0
1829 self.__class__ = DirDialog
1830_windows.DirDialog_swigregister(DirDialogPtr)
1831
1832class FileDialog(Dialog):
1f05e33b 1833 """This class represents the file chooser dialog."""
423f194a
RD
1834 def __repr__(self):
1835 return "<%s.%s; proxy of C++ wxFileDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 1836 def __init__(self, *args, **kwargs):
41f1cec7 1837 """
cbd72d4f
RD
1838 __init__(Window parent, String message=FileSelectorPromptStr,
1839 String defaultDir=EmptyString, String defaultFile=EmptyString,
1840 String wildcard=FileSelectorDefaultWildcardStr,
1841 long style=0, Point pos=DefaultPosition) -> FileDialog
1f05e33b
RD
1842
1843 Constructor. Use ShowModal method to show the dialog.
41f1cec7 1844 """
d14a1e28
RD
1845 newobj = _windows.new_FileDialog(*args, **kwargs)
1846 self.this = newobj.this
e6056257 1847 self.thisown = 1
d14a1e28 1848 del newobj.thisown
e6056257 1849 self._setOORInfo(self)
423f194a
RD
1850
1851 def SetMessage(*args, **kwargs):
1f05e33b
RD
1852 """
1853 SetMessage(String message)
1854
1855 Sets the message that will be displayed on the dialog.
1856 """
423f194a
RD
1857 return _windows.FileDialog_SetMessage(*args, **kwargs)
1858
1859 def SetPath(*args, **kwargs):
1f05e33b
RD
1860 """
1861 SetPath(String path)
1862
1863 Sets the path (the combined directory and filename that will
1864 be returned when the dialog is dismissed).
1865 """
423f194a
RD
1866 return _windows.FileDialog_SetPath(*args, **kwargs)
1867
1868 def SetDirectory(*args, **kwargs):
1f05e33b
RD
1869 """
1870 SetDirectory(String dir)
1871
1872 Sets the default directory.
1873 """
423f194a
RD
1874 return _windows.FileDialog_SetDirectory(*args, **kwargs)
1875
1876 def SetFilename(*args, **kwargs):
1f05e33b
RD
1877 """
1878 SetFilename(String name)
1879
1880 Sets the default filename.
1881 """
423f194a
RD
1882 return _windows.FileDialog_SetFilename(*args, **kwargs)
1883
1884 def SetWildcard(*args, **kwargs):
1f05e33b
RD
1885 """
1886 SetWildcard(String wildCard)
1887
1888 Sets the wildcard, which can contain multiple file types, for example:
1889 "BMP files (*.bmp)|*.bmp|GIF files (*.gif)|*.gif"
1890 """
423f194a
RD
1891 return _windows.FileDialog_SetWildcard(*args, **kwargs)
1892
1893 def SetStyle(*args, **kwargs):
1f05e33b
RD
1894 """
1895 SetStyle(long style)
1896
1897 Sets the dialog style.
1898 """
423f194a
RD
1899 return _windows.FileDialog_SetStyle(*args, **kwargs)
1900
1901 def SetFilterIndex(*args, **kwargs):
1f05e33b
RD
1902 """
1903 SetFilterIndex(int filterIndex)
1904
1905 Sets the default filter index, starting from zero.
1906 """
423f194a
RD
1907 return _windows.FileDialog_SetFilterIndex(*args, **kwargs)
1908
1909 def GetMessage(*args, **kwargs):
1f05e33b
RD
1910 """
1911 GetMessage() -> String
1912
1913 Returns the message that will be displayed on the dialog.
1914 """
423f194a
RD
1915 return _windows.FileDialog_GetMessage(*args, **kwargs)
1916
1917 def GetPath(*args, **kwargs):
1f05e33b
RD
1918 """
1919 GetPath() -> String
1920
1921 Returns the full path (directory and filename) of the selected file.
1922 """
423f194a
RD
1923 return _windows.FileDialog_GetPath(*args, **kwargs)
1924
1925 def GetDirectory(*args, **kwargs):
1f05e33b
RD
1926 """
1927 GetDirectory() -> String
1928
1929 Returns the default directory.
1930 """
423f194a
RD
1931 return _windows.FileDialog_GetDirectory(*args, **kwargs)
1932
1933 def GetFilename(*args, **kwargs):
1f05e33b
RD
1934 """
1935 GetFilename() -> String
1936
1937 Returns the default filename.
1938 """
423f194a
RD
1939 return _windows.FileDialog_GetFilename(*args, **kwargs)
1940
1941 def GetWildcard(*args, **kwargs):
1f05e33b
RD
1942 """
1943 GetWildcard() -> String
1944
1945 Returns the file dialog wildcard.
1946 """
423f194a
RD
1947 return _windows.FileDialog_GetWildcard(*args, **kwargs)
1948
1949 def GetStyle(*args, **kwargs):
1f05e33b
RD
1950 """
1951 GetStyle() -> long
1952
1953 Returns the dialog style.
1954 """
423f194a
RD
1955 return _windows.FileDialog_GetStyle(*args, **kwargs)
1956
1957 def GetFilterIndex(*args, **kwargs):
1f05e33b
RD
1958 """
1959 GetFilterIndex() -> int
1960
1961 Returns the index into the list of filters supplied, optionally, in
1962 the wildcard parameter. Before the dialog is shown, this is the index
1963 which will be used when the dialog is first displayed. After the dialog
1964 is shown, this is the index selected by the user.
1965 """
423f194a
RD
1966 return _windows.FileDialog_GetFilterIndex(*args, **kwargs)
1967
1968 def GetFilenames(*args, **kwargs):
1f05e33b
RD
1969 """
1970 GetFilenames() -> PyObject
1971
1972 Returns a list of filenames chosen in the dialog. This function should
1973 only be used with the dialogs which have wx.MULTIPLE style, use
1974 GetFilename for the others.
1975 """
423f194a
RD
1976 return _windows.FileDialog_GetFilenames(*args, **kwargs)
1977
1978 def GetPaths(*args, **kwargs):
1f05e33b
RD
1979 """
1980 GetPaths() -> PyObject
1981
1982 Fills the array paths with the full paths of the files chosen. This
1983 function should only be used with the dialogs which have wx.MULTIPLE style,
1984 use GetPath for the others.
1985 """
423f194a
RD
1986 return _windows.FileDialog_GetPaths(*args, **kwargs)
1987
e6056257 1988
d14a1e28
RD
1989class FileDialogPtr(FileDialog):
1990 def __init__(self, this):
1991 self.this = this
1992 if not hasattr(self,"thisown"): self.thisown = 0
1993 self.__class__ = FileDialog
1994_windows.FileDialog_swigregister(FileDialogPtr)
1995
1996CHOICEDLG_STYLE = _windows.CHOICEDLG_STYLE
1997class MultiChoiceDialog(Dialog):
38f59159 1998 """A simple dialog with a multi selection listbox."""
423f194a
RD
1999 def __repr__(self):
2000 return "<%s.%s; proxy of C++ wxMultiChoiceDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 2001 def __init__(self, *args, **kwargs):
41f1cec7 2002 """
38f59159
RD
2003 __init__(Window parent, String message, String caption,
2004 List choices=[], long style=CHOICEDLG_STYLE,
41f1cec7 2005 Point pos=DefaultPosition) -> MultiChoiceDialog
38f59159
RD
2006
2007 Constructor. Use ShowModal method to show the dialog.
41f1cec7 2008 """
d14a1e28
RD
2009 newobj = _windows.new_MultiChoiceDialog(*args, **kwargs)
2010 self.this = newobj.this
2011 self.thisown = 1
2012 del newobj.thisown
2013 self._setOORInfo(self)
423f194a
RD
2014
2015 def SetSelections(*args, **kwargs):
38f59159
RD
2016 """
2017 SetSelections(List selections)
2018
2019 Specify the items in the list that shoudl be selected, using a list of integers.
2020 """
423f194a
RD
2021 return _windows.MultiChoiceDialog_SetSelections(*args, **kwargs)
2022
2023 def GetSelections(*args, **kwargs):
38f59159
RD
2024 """
2025 GetSelections() -> [selections]
2026
2027 Returns a list of integers representing the items that are selected.
2028 """
423f194a
RD
2029 return _windows.MultiChoiceDialog_GetSelections(*args, **kwargs)
2030
e6056257 2031
d14a1e28
RD
2032class MultiChoiceDialogPtr(MultiChoiceDialog):
2033 def __init__(self, this):
2034 self.this = this
2035 if not hasattr(self,"thisown"): self.thisown = 0
2036 self.__class__ = MultiChoiceDialog
2037_windows.MultiChoiceDialog_swigregister(MultiChoiceDialogPtr)
2038
2039class SingleChoiceDialog(Dialog):
38f59159 2040 """A simple dialog with a single selection listbox."""
423f194a
RD
2041 def __repr__(self):
2042 return "<%s.%s; proxy of C++ wxSingleChoiceDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 2043 def __init__(self, *args, **kwargs):
41f1cec7 2044 """
38f59159
RD
2045 __init__(Window parent, String message, String caption,
2046 List choices=[], long style=CHOICEDLG_STYLE,
41f1cec7 2047 Point pos=DefaultPosition) -> SingleChoiceDialog
38f59159
RD
2048
2049 Constructor. Use ShowModal method to show the dialog.
41f1cec7 2050 """
d14a1e28
RD
2051 newobj = _windows.new_SingleChoiceDialog(*args, **kwargs)
2052 self.this = newobj.this
2053 self.thisown = 1
2054 del newobj.thisown
2055 self._setOORInfo(self)
423f194a
RD
2056
2057 def GetSelection(*args, **kwargs):
38f59159
RD
2058 """
2059 GetSelection() -> int
2060
2061 Get the index of teh currently selected item.
2062 """
423f194a
RD
2063 return _windows.SingleChoiceDialog_GetSelection(*args, **kwargs)
2064
2065 def GetStringSelection(*args, **kwargs):
38f59159
RD
2066 """
2067 GetStringSelection() -> String
2068
2069 Returns the string value of the currently selected item
2070 """
423f194a
RD
2071 return _windows.SingleChoiceDialog_GetStringSelection(*args, **kwargs)
2072
2073 def SetSelection(*args, **kwargs):
38f59159
RD
2074 """
2075 SetSelection(int sel)
423f194a 2076
38f59159
RD
2077 Set the current selected item to sel
2078 """
2079 return _windows.SingleChoiceDialog_SetSelection(*args, **kwargs)
423f194a 2080
e6056257 2081
d14a1e28
RD
2082class SingleChoiceDialogPtr(SingleChoiceDialog):
2083 def __init__(self, this):
2084 self.this = this
2085 if not hasattr(self,"thisown"): self.thisown = 0
2086 self.__class__ = SingleChoiceDialog
2087_windows.SingleChoiceDialog_swigregister(SingleChoiceDialogPtr)
2088
2089class TextEntryDialog(Dialog):
38f59159 2090 """A dialog with text control, [ok] and [cancel] buttons"""
423f194a
RD
2091 def __repr__(self):
2092 return "<%s.%s; proxy of C++ wxTextEntryDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 2093 def __init__(self, *args, **kwargs):
41f1cec7 2094 """
cbd72d4f
RD
2095 __init__(Window parent, String message, String caption=GetTextFromUserPromptStr,
2096 String defaultValue=EmptyString,
2097 long style=wxOK|wxCANCEL|wxCENTRE, Point pos=DefaultPosition) -> TextEntryDialog
38f59159
RD
2098
2099 Constructor. Use ShowModal method to show the dialog.
41f1cec7 2100 """
d14a1e28
RD
2101 newobj = _windows.new_TextEntryDialog(*args, **kwargs)
2102 self.this = newobj.this
2103 self.thisown = 1
2104 del newobj.thisown
2105 self._setOORInfo(self)
423f194a
RD
2106
2107 def GetValue(*args, **kwargs):
38f59159
RD
2108 """
2109 GetValue() -> String
2110
2111 Returns the text that the user has entered if the user has pressed OK,
2112 or the original value if the user has pressed Cancel.
2113 """
423f194a
RD
2114 return _windows.TextEntryDialog_GetValue(*args, **kwargs)
2115
2116 def SetValue(*args, **kwargs):
38f59159
RD
2117 """
2118 SetValue(String value)
423f194a 2119
38f59159
RD
2120 Sets the default text value.
2121 """
2122 return _windows.TextEntryDialog_SetValue(*args, **kwargs)
423f194a 2123
e6056257 2124
d14a1e28
RD
2125class TextEntryDialogPtr(TextEntryDialog):
2126 def __init__(self, this):
e6056257 2127 self.this = this
d14a1e28
RD
2128 if not hasattr(self,"thisown"): self.thisown = 0
2129 self.__class__ = TextEntryDialog
2130_windows.TextEntryDialog_swigregister(TextEntryDialogPtr)
2131
2132class FontData(core.Object):
38f59159 2133 """This class holds a variety of information related to font dialogs."""
423f194a
RD
2134 def __repr__(self):
2135 return "<%s.%s; proxy of C++ wxFontData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 2136 def __init__(self, *args, **kwargs):
38f59159
RD
2137 """
2138 __init__() -> FontData
2139
2140 This class holds a variety of information related to font dialogs.
2141 """
d14a1e28
RD
2142 newobj = _windows.new_FontData(*args, **kwargs)
2143 self.this = newobj.this
2144 self.thisown = 1
2145 del newobj.thisown
2146 def __del__(self, destroy=_windows.delete_FontData):
423f194a 2147 """__del__()"""
d14a1e28
RD
2148 try:
2149 if self.thisown: destroy(self)
2150 except: pass
423f194a
RD
2151
2152 def EnableEffects(*args, **kwargs):
38f59159
RD
2153 """
2154 EnableEffects(bool enable)
2155
2156 Enables or disables 'effects' under MS Windows only. This refers
2157 to the controls for manipulating colour, strikeout and underline
2158 properties. The default value is true.
2159 """
423f194a
RD
2160 return _windows.FontData_EnableEffects(*args, **kwargs)
2161
2162 def GetAllowSymbols(*args, **kwargs):
38f59159
RD
2163 """
2164 GetAllowSymbols() -> bool
2165
2166 Under MS Windows, returns a flag determining whether symbol fonts can be
2167 selected. Has no effect on other platforms. The default value is true.
2168 """
423f194a
RD
2169 return _windows.FontData_GetAllowSymbols(*args, **kwargs)
2170
2171 def GetColour(*args, **kwargs):
38f59159
RD
2172 """
2173 GetColour() -> Colour
2174
2175 Gets the colour associated with the font dialog. The default value is black.
2176 """
423f194a
RD
2177 return _windows.FontData_GetColour(*args, **kwargs)
2178
2179 def GetChosenFont(*args, **kwargs):
38f59159
RD
2180 """
2181 GetChosenFont() -> Font
2182
2183 Gets the font chosen by the user.
2184 """
423f194a
RD
2185 return _windows.FontData_GetChosenFont(*args, **kwargs)
2186
2187 def GetEnableEffects(*args, **kwargs):
38f59159
RD
2188 """
2189 GetEnableEffects() -> bool
2190
2191 Determines whether 'effects' are enabled under Windows.
2192 """
423f194a
RD
2193 return _windows.FontData_GetEnableEffects(*args, **kwargs)
2194
2195 def GetInitialFont(*args, **kwargs):
38f59159
RD
2196 """
2197 GetInitialFont() -> Font
2198
2199 Gets the font that will be initially used by the font dialog. This should have
2200 previously been set by the application.
2201 """
423f194a
RD
2202 return _windows.FontData_GetInitialFont(*args, **kwargs)
2203
2204 def GetShowHelp(*args, **kwargs):
38f59159
RD
2205 """
2206 GetShowHelp() -> bool
2207
2208 Returns true if the Help button will be shown (Windows only). The default
2209 value is false.
2210 """
423f194a
RD
2211 return _windows.FontData_GetShowHelp(*args, **kwargs)
2212
2213 def SetAllowSymbols(*args, **kwargs):
38f59159
RD
2214 """
2215 SetAllowSymbols(bool allowSymbols)
2216
2217 Under MS Windows, determines whether symbol fonts can be selected. Has no
2218 effect on other platforms. The default value is true.
2219 """
423f194a
RD
2220 return _windows.FontData_SetAllowSymbols(*args, **kwargs)
2221
2222 def SetChosenFont(*args, **kwargs):
38f59159
RD
2223 """
2224 SetChosenFont(Font font)
2225
2226 Sets the font that will be returned to the user (for internal use only).
2227 """
423f194a
RD
2228 return _windows.FontData_SetChosenFont(*args, **kwargs)
2229
2230 def SetColour(*args, **kwargs):
38f59159
RD
2231 """
2232 SetColour(Colour colour)
2233
2234 Sets the colour that will be used for the font foreground colour. The default
2235 colour is black.
2236 """
423f194a
RD
2237 return _windows.FontData_SetColour(*args, **kwargs)
2238
2239 def SetInitialFont(*args, **kwargs):
38f59159
RD
2240 """
2241 SetInitialFont(Font font)
2242
2243 Sets the font that will be initially used by the font dialog.
2244 """
423f194a
RD
2245 return _windows.FontData_SetInitialFont(*args, **kwargs)
2246
2247 def SetRange(*args, **kwargs):
38f59159
RD
2248 """
2249 SetRange(int min, int max)
2250
2251 Sets the valid range for the font point size (Windows only). The default is
2252 0, 0 (unrestricted range).
2253 """
423f194a
RD
2254 return _windows.FontData_SetRange(*args, **kwargs)
2255
2256 def SetShowHelp(*args, **kwargs):
38f59159
RD
2257 """
2258 SetShowHelp(bool showHelp)
2259
2260 Determines whether the Help button will be displayed in the font dialog
2261 (Windows only). The default value is false.
2262 """
423f194a
RD
2263 return _windows.FontData_SetShowHelp(*args, **kwargs)
2264
d14a1e28
RD
2265
2266class FontDataPtr(FontData):
2267 def __init__(self, this):
2268 self.this = this
2269 if not hasattr(self,"thisown"): self.thisown = 0
2270 self.__class__ = FontData
2271_windows.FontData_swigregister(FontDataPtr)
2272
2273class FontDialog(Dialog):
38f59159 2274 """This class represents the font chooser dialog."""
423f194a
RD
2275 def __repr__(self):
2276 return "<%s.%s; proxy of C++ wxFontDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 2277 def __init__(self, *args, **kwargs):
38f59159
RD
2278 """
2279 __init__(Window parent, FontData data) -> FontDialog
2280
2281 Constructor. Pass a parent window and the FontData object to be
2282 used to initialize the dialog controls.
2283 """
d14a1e28
RD
2284 newobj = _windows.new_FontDialog(*args, **kwargs)
2285 self.this = newobj.this
e6056257 2286 self.thisown = 1
d14a1e28
RD
2287 del newobj.thisown
2288 self._setOORInfo(self)
423f194a
RD
2289
2290 def GetFontData(*args, **kwargs):
38f59159
RD
2291 """
2292 GetFontData() -> FontData
423f194a 2293
38f59159
RD
2294 Returns a reference to the internal FontData used by the FontDialog.
2295 """
2296 return _windows.FontDialog_GetFontData(*args, **kwargs)
423f194a 2297
e6056257 2298
d14a1e28
RD
2299class FontDialogPtr(FontDialog):
2300 def __init__(self, this):
2301 self.this = this
2302 if not hasattr(self,"thisown"): self.thisown = 0
2303 self.__class__ = FontDialog
2304_windows.FontDialog_swigregister(FontDialogPtr)
2305
2306class MessageDialog(Dialog):
38f59159
RD
2307 """
2308 This class provides a dialog that shows a single or multi-line message, with
2309 a choice of OK, Yes, No and Cancel buttons.
2310 """
423f194a
RD
2311 def __repr__(self):
2312 return "<%s.%s; proxy of C++ wxMessageDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 2313 def __init__(self, *args, **kwargs):
41f1cec7 2314 """
cbd72d4f 2315 __init__(Window parent, String message, String caption=MessageBoxCaptionStr,
41f1cec7
RD
2316 long style=wxOK|wxCANCEL|wxCENTRE,
2317 Point pos=DefaultPosition) -> MessageDialog
38f59159
RD
2318
2319 This class provides a dialog that shows a single or multi-line message, with
2320 a choice of OK, Yes, No and Cancel buttons.
41f1cec7 2321 """
d14a1e28
RD
2322 newobj = _windows.new_MessageDialog(*args, **kwargs)
2323 self.this = newobj.this
2324 self.thisown = 1
2325 del newobj.thisown
2326 self._setOORInfo(self)
423f194a 2327
e6056257 2328
d14a1e28
RD
2329class MessageDialogPtr(MessageDialog):
2330 def __init__(self, this):
2331 self.this = this
2332 if not hasattr(self,"thisown"): self.thisown = 0
2333 self.__class__ = MessageDialog
2334_windows.MessageDialog_swigregister(MessageDialogPtr)
2335
2336class ProgressDialog(Frame):
38f59159
RD
2337 """
2338 A dialog that shows a short message and a progress bar. Optionally, it can
2339 display an ABORT button.
2340 """
423f194a
RD
2341 def __repr__(self):
2342 return "<%s.%s; proxy of C++ wxProgressDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 2343 def __init__(self, *args, **kwargs):
41f1cec7 2344 """
cbd72d4f
RD
2345 __init__(String title, String message, int maximum=100, Window parent=None,
2346 int style=wxPD_AUTO_HIDE|wxPD_APP_MODAL) -> ProgressDialog
38f59159
RD
2347
2348 Constructor. Creates the dialog, displays it and disables user input for other
2349 windows, or, if wxPD_APP_MODAL flag is not given, for its parent window only.
41f1cec7 2350 """
d14a1e28
RD
2351 newobj = _windows.new_ProgressDialog(*args, **kwargs)
2352 self.this = newobj.this
2353 self.thisown = 1
2354 del newobj.thisown
2355 self._setOORInfo(self)
423f194a
RD
2356
2357 def Update(*args, **kwargs):
38f59159
RD
2358 """
2359 Update(int value, String newmsg=EmptyString) -> bool
2360
2361 Updates the dialog, setting the progress bar to the new value and, if given
2362 changes the message above it. Returns true unless the Cancel button has been
2363 pressed.
2364
2365 If false is returned, the application can either immediately destroy the
2366 dialog or ask the user for the confirmation and if the abort is not confirmed
2367 the dialog may be resumed with Resume function.
2368 """
423f194a
RD
2369 return _windows.ProgressDialog_Update(*args, **kwargs)
2370
2371 def Resume(*args, **kwargs):
38f59159
RD
2372 """
2373 Resume()
2374
2375 Can be used to continue with the dialog, after the user had chosen to abort.
2376 """
423f194a
RD
2377 return _windows.ProgressDialog_Resume(*args, **kwargs)
2378
e6056257 2379
d14a1e28
RD
2380class ProgressDialogPtr(ProgressDialog):
2381 def __init__(self, this):
2382 self.this = this
2383 if not hasattr(self,"thisown"): self.thisown = 0
2384 self.__class__ = ProgressDialog
2385_windows.ProgressDialog_swigregister(ProgressDialogPtr)
2386
2387FR_DOWN = _windows.FR_DOWN
2388FR_WHOLEWORD = _windows.FR_WHOLEWORD
2389FR_MATCHCASE = _windows.FR_MATCHCASE
2390FR_REPLACEDIALOG = _windows.FR_REPLACEDIALOG
2391FR_NOUPDOWN = _windows.FR_NOUPDOWN
2392FR_NOMATCHCASE = _windows.FR_NOMATCHCASE
2393FR_NOWHOLEWORD = _windows.FR_NOWHOLEWORD
2394wxEVT_COMMAND_FIND = _windows.wxEVT_COMMAND_FIND
2395wxEVT_COMMAND_FIND_NEXT = _windows.wxEVT_COMMAND_FIND_NEXT
2396wxEVT_COMMAND_FIND_REPLACE = _windows.wxEVT_COMMAND_FIND_REPLACE
2397wxEVT_COMMAND_FIND_REPLACE_ALL = _windows.wxEVT_COMMAND_FIND_REPLACE_ALL
2398wxEVT_COMMAND_FIND_CLOSE = _windows.wxEVT_COMMAND_FIND_CLOSE
2399EVT_FIND = wx.PyEventBinder( wxEVT_COMMAND_FIND, 1 )
2400EVT_FIND_NEXT = wx.PyEventBinder( wxEVT_COMMAND_FIND_NEXT, 1 )
2401EVT_FIND_REPLACE = wx.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE, 1 )
2402EVT_FIND_REPLACE_ALL = wx.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE_ALL, 1 )
2403EVT_FIND_CLOSE = wx.PyEventBinder( wxEVT_COMMAND_FIND_CLOSE, 1 )
2404
2405# For backwards compatibility. Should they be removed?
2406EVT_COMMAND_FIND = EVT_FIND
2407EVT_COMMAND_FIND_NEXT = EVT_FIND_NEXT
2408EVT_COMMAND_FIND_REPLACE = EVT_FIND_REPLACE
2409EVT_COMMAND_FIND_REPLACE_ALL = EVT_FIND_REPLACE_ALL
2410EVT_COMMAND_FIND_CLOSE = EVT_FIND_CLOSE
2411
2412class FindDialogEvent(core.CommandEvent):
38f59159 2413 """Events for the FindReplaceDialog"""
423f194a
RD
2414 def __repr__(self):
2415 return "<%s.%s; proxy of C++ wxFindDialogEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 2416 def __init__(self, *args, **kwargs):
38f59159
RD
2417 """
2418 __init__(wxEventType commandType=wxEVT_NULL, int id=0) -> FindDialogEvent
2419
2420 Events for the FindReplaceDialog
2421 """
d14a1e28
RD
2422 newobj = _windows.new_FindDialogEvent(*args, **kwargs)
2423 self.this = newobj.this
2424 self.thisown = 1
2425 del newobj.thisown
423f194a 2426 def GetFlags(*args, **kwargs):
38f59159
RD
2427 """
2428 GetFlags() -> int
2429
2430 Get the currently selected flags: this is the combination of
2431 wx.FR_DOWN, wx.FR_WHOLEWORD and wx.FR_MATCHCASE flags.
2432 """
423f194a
RD
2433 return _windows.FindDialogEvent_GetFlags(*args, **kwargs)
2434
2435 def GetFindString(*args, **kwargs):
38f59159
RD
2436 """
2437 GetFindString() -> String
2438
2439 Return the string to find (never empty).
2440 """
423f194a
RD
2441 return _windows.FindDialogEvent_GetFindString(*args, **kwargs)
2442
2443 def GetReplaceString(*args, **kwargs):
38f59159
RD
2444 """
2445 GetReplaceString() -> String
2446
2447 Return the string to replace the search string with (only
2448 for replace and replace all events).
2449 """
423f194a
RD
2450 return _windows.FindDialogEvent_GetReplaceString(*args, **kwargs)
2451
2452 def GetDialog(*args, **kwargs):
38f59159
RD
2453 """
2454 GetDialog() -> FindReplaceDialog
2455
2456 Return the pointer to the dialog which generated this event.
2457 """
423f194a
RD
2458 return _windows.FindDialogEvent_GetDialog(*args, **kwargs)
2459
2460 def SetFlags(*args, **kwargs):
2461 """SetFlags(int flags)"""
2462 return _windows.FindDialogEvent_SetFlags(*args, **kwargs)
2463
2464 def SetFindString(*args, **kwargs):
cbd72d4f 2465 """SetFindString(String str)"""
423f194a
RD
2466 return _windows.FindDialogEvent_SetFindString(*args, **kwargs)
2467
2468 def SetReplaceString(*args, **kwargs):
cbd72d4f 2469 """SetReplaceString(String str)"""
423f194a
RD
2470 return _windows.FindDialogEvent_SetReplaceString(*args, **kwargs)
2471
e6056257 2472
d14a1e28
RD
2473class FindDialogEventPtr(FindDialogEvent):
2474 def __init__(self, this):
2475 self.this = this
2476 if not hasattr(self,"thisown"): self.thisown = 0
2477 self.__class__ = FindDialogEvent
2478_windows.FindDialogEvent_swigregister(FindDialogEventPtr)
2479
2480class FindReplaceData(core.Object):
38f59159
RD
2481 """
2482 FindReplaceData holds the data for FindReplaceDialog. It is used to initialize
2483 the dialog with the default values and will keep the last values from the
2484 dialog when it is closed. It is also updated each time a wxFindDialogEvent is
2485 generated so instead of using the wxFindDialogEvent methods you can also
2486 directly query this object.
2487
2488 Note that all SetXXX() methods may only be called before showing the dialog
2489 and calling them has no effect later.
2490
2491 Flags
2492 wxFR_DOWN: downward search/replace selected (otherwise, upwards)
2493
2494 wxFR_WHOLEWORD: whole word search/replace selected
2495
2496 wxFR_MATCHCASE: case sensitive search/replace selected (otherwise,
2497 case insensitive)
2498
2499 """
423f194a
RD
2500 def __repr__(self):
2501 return "<%s.%s; proxy of C++ wxFindReplaceData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 2502 def __init__(self, *args, **kwargs):
38f59159
RD
2503 """
2504 __init__(int flags=0) -> FindReplaceData
2505
2506 Constuctor initializes the flags to default value (0).
2507 """
d14a1e28
RD
2508 newobj = _windows.new_FindReplaceData(*args, **kwargs)
2509 self.this = newobj.this
2510 self.thisown = 1
2511 del newobj.thisown
2512 def __del__(self, destroy=_windows.delete_FindReplaceData):
423f194a 2513 """__del__()"""
d14a1e28
RD
2514 try:
2515 if self.thisown: destroy(self)
2516 except: pass
423f194a
RD
2517
2518 def GetFindString(*args, **kwargs):
38f59159
RD
2519 """
2520 GetFindString() -> String
2521
2522 Get the string to find.
2523 """
423f194a
RD
2524 return _windows.FindReplaceData_GetFindString(*args, **kwargs)
2525
2526 def GetReplaceString(*args, **kwargs):
38f59159
RD
2527 """
2528 GetReplaceString() -> String
2529
2530 Get the replacement string.
2531 """
423f194a
RD
2532 return _windows.FindReplaceData_GetReplaceString(*args, **kwargs)
2533
2534 def GetFlags(*args, **kwargs):
38f59159
RD
2535 """
2536 GetFlags() -> int
2537
2538 Get the combination of flag values.
2539 """
423f194a
RD
2540 return _windows.FindReplaceData_GetFlags(*args, **kwargs)
2541
2542 def SetFlags(*args, **kwargs):
38f59159
RD
2543 """
2544 SetFlags(int flags)
2545
2546 Set the flags to use to initialize the controls of the dialog.
2547 """
423f194a
RD
2548 return _windows.FindReplaceData_SetFlags(*args, **kwargs)
2549
2550 def SetFindString(*args, **kwargs):
38f59159
RD
2551 """
2552 SetFindString(String str)
2553
2554 Set the string to find (used as initial value by the dialog).
2555 """
423f194a
RD
2556 return _windows.FindReplaceData_SetFindString(*args, **kwargs)
2557
2558 def SetReplaceString(*args, **kwargs):
38f59159
RD
2559 """
2560 SetReplaceString(String str)
2561
2562 Set the replacement string (used as initial value by the dialog).
2563 """
423f194a
RD
2564 return _windows.FindReplaceData_SetReplaceString(*args, **kwargs)
2565
e6056257 2566
d14a1e28
RD
2567class FindReplaceDataPtr(FindReplaceData):
2568 def __init__(self, this):
2569 self.this = this
2570 if not hasattr(self,"thisown"): self.thisown = 0
2571 self.__class__ = FindReplaceData
2572_windows.FindReplaceData_swigregister(FindReplaceDataPtr)
2573
2574class FindReplaceDialog(Dialog):
38f59159
RD
2575 """
2576 FindReplaceDialog is a standard modeless dialog which is used to allow the
2577 user to search for some text (and possibly replace it with something
2578 else). The actual searching is supposed to be done in the owner window which
2579 is the parent of this dialog. Note that it means that unlike for the other
2580 standard dialogs this one must have a parent window. Also note that there is
2581 no way to use this dialog in a modal way; it is always, by design and
2582 implementation, modeless.
2583 """
423f194a
RD
2584 def __repr__(self):
2585 return "<%s.%s; proxy of C++ wxFindReplaceDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 2586 def __init__(self, *args, **kwargs):
41f1cec7 2587 """
cbd72d4f 2588 __init__(Window parent, FindReplaceData data, String title,
41f1cec7 2589 int style=0) -> FindReplaceDialog
38f59159
RD
2590
2591 Create a FindReplaceDialog. The parent and data parameters must be
2592 non-None. Use Show to display the dialog.
41f1cec7 2593 """
d14a1e28
RD
2594 newobj = _windows.new_FindReplaceDialog(*args, **kwargs)
2595 self.this = newobj.this
2596 self.thisown = 1
2597 del newobj.thisown
2598 self._setOORInfo(self)
423f194a
RD
2599
2600 def Create(*args, **kwargs):
41f1cec7 2601 """
cbd72d4f 2602 Create(Window parent, FindReplaceData data, String title,
41f1cec7 2603 int style=0) -> bool
38f59159
RD
2604
2605 Create the dialog, for 2-phase create.
41f1cec7 2606 """
423f194a
RD
2607 return _windows.FindReplaceDialog_Create(*args, **kwargs)
2608
2609 def GetData(*args, **kwargs):
38f59159
RD
2610 """
2611 GetData() -> FindReplaceData
2612
2613 Get the FindReplaceData object used by this dialog.
2614 """
423f194a
RD
2615 return _windows.FindReplaceDialog_GetData(*args, **kwargs)
2616
2617 def SetData(*args, **kwargs):
38f59159
RD
2618 """
2619 SetData(FindReplaceData data)
2620
2621 Set the FindReplaceData object used by this dialog.
2622 """
423f194a
RD
2623 return _windows.FindReplaceDialog_SetData(*args, **kwargs)
2624
e6056257 2625
d14a1e28
RD
2626class FindReplaceDialogPtr(FindReplaceDialog):
2627 def __init__(self, this):
2628 self.this = this
2629 if not hasattr(self,"thisown"): self.thisown = 0
2630 self.__class__ = FindReplaceDialog
2631_windows.FindReplaceDialog_swigregister(FindReplaceDialogPtr)
e6056257 2632
d14a1e28 2633def PreFindReplaceDialog(*args, **kwargs):
38f59159
RD
2634 """
2635 PreFindReplaceDialog() -> FindReplaceDialog
2636
2637 Precreate a FindReplaceDialog for 2-phase creation
2638 """
d14a1e28
RD
2639 val = _windows.new_PreFindReplaceDialog(*args, **kwargs)
2640 val.thisown = 1
722a4a3c
RD
2641 return val
2642
d14a1e28
RD
2643#---------------------------------------------------------------------------
2644
2645IDM_WINDOWTILE = _windows.IDM_WINDOWTILE
2646IDM_WINDOWTILEHOR = _windows.IDM_WINDOWTILEHOR
2647IDM_WINDOWCASCADE = _windows.IDM_WINDOWCASCADE
2648IDM_WINDOWICONS = _windows.IDM_WINDOWICONS
2649IDM_WINDOWNEXT = _windows.IDM_WINDOWNEXT
2650IDM_WINDOWTILEVERT = _windows.IDM_WINDOWTILEVERT
2651FIRST_MDI_CHILD = _windows.FIRST_MDI_CHILD
2652LAST_MDI_CHILD = _windows.LAST_MDI_CHILD
2653class MDIParentFrame(Frame):
423f194a
RD
2654 def __repr__(self):
2655 return "<%s.%s; proxy of C++ wxMDIParentFrame instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 2656 def __init__(self, *args, **kwargs):
41f1cec7 2657 """
cbd72d4f 2658 __init__(Window parent, int id, String title, Point pos=DefaultPosition,
41f1cec7 2659 Size size=DefaultSize, long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
cbd72d4f 2660 String name=FrameNameStr) -> MDIParentFrame
41f1cec7 2661 """
d14a1e28
RD
2662 newobj = _windows.new_MDIParentFrame(*args, **kwargs)
2663 self.this = newobj.this
2664 self.thisown = 1
2665 del newobj.thisown
2666 self._setOORInfo(self)
423f194a
RD
2667
2668 def Create(*args, **kwargs):
41f1cec7 2669 """
cbd72d4f 2670 Create(Window parent, int id, String title, Point pos=DefaultPosition,
41f1cec7 2671 Size size=DefaultSize, long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
cbd72d4f 2672 String name=FrameNameStr) -> bool
41f1cec7 2673 """
423f194a
RD
2674 return _windows.MDIParentFrame_Create(*args, **kwargs)
2675
2676 def ActivateNext(*args, **kwargs):
2677 """ActivateNext()"""
2678 return _windows.MDIParentFrame_ActivateNext(*args, **kwargs)
2679
2680 def ActivatePrevious(*args, **kwargs):
2681 """ActivatePrevious()"""
2682 return _windows.MDIParentFrame_ActivatePrevious(*args, **kwargs)
2683
2684 def ArrangeIcons(*args, **kwargs):
2685 """ArrangeIcons()"""
2686 return _windows.MDIParentFrame_ArrangeIcons(*args, **kwargs)
2687
2688 def Cascade(*args, **kwargs):
2689 """Cascade()"""
2690 return _windows.MDIParentFrame_Cascade(*args, **kwargs)
2691
2692 def GetActiveChild(*args, **kwargs):
2693 """GetActiveChild() -> MDIChildFrame"""
2694 return _windows.MDIParentFrame_GetActiveChild(*args, **kwargs)
2695
2696 def GetClientWindow(*args, **kwargs):
2697 """GetClientWindow() -> MDIClientWindow"""
2698 return _windows.MDIParentFrame_GetClientWindow(*args, **kwargs)
2699
2700 def GetToolBar(*args, **kwargs):
2701 """GetToolBar() -> Window"""
2702 return _windows.MDIParentFrame_GetToolBar(*args, **kwargs)
2703
2704 def Tile(*args, **kwargs):
2705 """Tile()"""
2706 return _windows.MDIParentFrame_Tile(*args, **kwargs)
2707
d14a1e28
RD
2708
2709class MDIParentFramePtr(MDIParentFrame):
2710 def __init__(self, this):
2711 self.this = this
2712 if not hasattr(self,"thisown"): self.thisown = 0
2713 self.__class__ = MDIParentFrame
2714_windows.MDIParentFrame_swigregister(MDIParentFramePtr)
2715
2716def PreMDIParentFrame(*args, **kwargs):
423f194a 2717 """PreMDIParentFrame() -> MDIParentFrame"""
d14a1e28
RD
2718 val = _windows.new_PreMDIParentFrame(*args, **kwargs)
2719 val.thisown = 1
722a4a3c
RD
2720 return val
2721
d14a1e28 2722class MDIChildFrame(Frame):
423f194a
RD
2723 def __repr__(self):
2724 return "<%s.%s; proxy of C++ wxMDIChildFrame instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 2725 def __init__(self, *args, **kwargs):
41f1cec7 2726 """
cbd72d4f
RD
2727 __init__(MDIParentFrame parent, int id, String title, Point pos=DefaultPosition,
2728 Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE,
2729 String name=FrameNameStr) -> MDIChildFrame
41f1cec7 2730 """
d14a1e28
RD
2731 newobj = _windows.new_MDIChildFrame(*args, **kwargs)
2732 self.this = newobj.this
2733 self.thisown = 1
2734 del newobj.thisown
2735 self._setOORInfo(self)
423f194a
RD
2736
2737 def Create(*args, **kwargs):
41f1cec7 2738 """
cbd72d4f
RD
2739 Create(MDIParentFrame parent, int id, String title, Point pos=DefaultPosition,
2740 Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE,
2741 String name=FrameNameStr) -> bool
41f1cec7 2742 """
423f194a
RD
2743 return _windows.MDIChildFrame_Create(*args, **kwargs)
2744
2745 def Activate(*args, **kwargs):
2746 """Activate()"""
2747 return _windows.MDIChildFrame_Activate(*args, **kwargs)
2748
2749 def Maximize(*args, **kwargs):
2750 """Maximize(bool maximize)"""
2751 return _windows.MDIChildFrame_Maximize(*args, **kwargs)
2752
2753 def Restore(*args, **kwargs):
2754 """Restore()"""
2755 return _windows.MDIChildFrame_Restore(*args, **kwargs)
2756
d14a1e28
RD
2757
2758class MDIChildFramePtr(MDIChildFrame):
2759 def __init__(self, this):
2760 self.this = this
2761 if not hasattr(self,"thisown"): self.thisown = 0
2762 self.__class__ = MDIChildFrame
2763_windows.MDIChildFrame_swigregister(MDIChildFramePtr)
2764
2765def PreMDIChildFrame(*args, **kwargs):
423f194a 2766 """PreMDIChildFrame() -> MDIChildFrame"""
d14a1e28
RD
2767 val = _windows.new_PreMDIChildFrame(*args, **kwargs)
2768 val.thisown = 1
722a4a3c
RD
2769 return val
2770
d14a1e28 2771class MDIClientWindow(core.Window):
423f194a
RD
2772 def __repr__(self):
2773 return "<%s.%s; proxy of C++ wxMDIClientWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 2774 def __init__(self, *args, **kwargs):
423f194a 2775 """__init__(MDIParentFrame parent, long style=0) -> MDIClientWindow"""
d14a1e28
RD
2776 newobj = _windows.new_MDIClientWindow(*args, **kwargs)
2777 self.this = newobj.this
2778 self.thisown = 1
2779 del newobj.thisown
2780 self._setOORInfo(self)
423f194a
RD
2781
2782 def Create(*args, **kwargs):
2783 """Create(MDIParentFrame parent, long style=0) -> bool"""
2784 return _windows.MDIClientWindow_Create(*args, **kwargs)
2785
e6056257 2786
d14a1e28
RD
2787class MDIClientWindowPtr(MDIClientWindow):
2788 def __init__(self, this):
2789 self.this = this
2790 if not hasattr(self,"thisown"): self.thisown = 0
2791 self.__class__ = MDIClientWindow
2792_windows.MDIClientWindow_swigregister(MDIClientWindowPtr)
e6056257 2793
d14a1e28 2794def PreMDIClientWindow(*args, **kwargs):
423f194a 2795 """PreMDIClientWindow() -> MDIClientWindow"""
d14a1e28
RD
2796 val = _windows.new_PreMDIClientWindow(*args, **kwargs)
2797 val.thisown = 1
e6056257
RD
2798 return val
2799
d14a1e28 2800#---------------------------------------------------------------------------
e6056257 2801
d14a1e28 2802class PyWindow(core.Window):
423f194a
RD
2803 def __repr__(self):
2804 return "<%s.%s; proxy of C++ wxPyWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 2805 def __init__(self, *args, **kwargs):
41f1cec7
RD
2806 """
2807 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
cbd72d4f 2808 long style=0, String name=PanelNameStr) -> PyWindow
41f1cec7 2809 """
d14a1e28
RD
2810 newobj = _windows.new_PyWindow(*args, **kwargs)
2811 self.this = newobj.this
2812 self.thisown = 1
2813 del newobj.thisown
2814 self._setOORInfo(self); self._setCallbackInfo(self, PyWindow)
423f194a
RD
2815
2816 def _setCallbackInfo(*args, **kwargs):
2817 """_setCallbackInfo(PyObject self, PyObject _class)"""
2818 return _windows.PyWindow__setCallbackInfo(*args, **kwargs)
2819
2820 def base_DoMoveWindow(*args, **kwargs):
2821 """base_DoMoveWindow(int x, int y, int width, int height)"""
2822 return _windows.PyWindow_base_DoMoveWindow(*args, **kwargs)
2823
2824 def base_DoSetSize(*args, **kwargs):
2825 """base_DoSetSize(int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
2826 return _windows.PyWindow_base_DoSetSize(*args, **kwargs)
2827
2828 def base_DoSetClientSize(*args, **kwargs):
2829 """base_DoSetClientSize(int width, int height)"""
2830 return _windows.PyWindow_base_DoSetClientSize(*args, **kwargs)
2831
2832 def base_DoSetVirtualSize(*args, **kwargs):
2833 """base_DoSetVirtualSize(int x, int y)"""
2834 return _windows.PyWindow_base_DoSetVirtualSize(*args, **kwargs)
2835
2836 def base_DoGetSize(*args, **kwargs):
44127b65 2837 """base_DoGetSize() -> (width, height)"""
423f194a
RD
2838 return _windows.PyWindow_base_DoGetSize(*args, **kwargs)
2839
2840 def base_DoGetClientSize(*args, **kwargs):
44127b65 2841 """base_DoGetClientSize() -> (width, height)"""
423f194a
RD
2842 return _windows.PyWindow_base_DoGetClientSize(*args, **kwargs)
2843
2844 def base_DoGetPosition(*args, **kwargs):
44127b65 2845 """base_DoGetPosition() -> (x,y)"""
423f194a
RD
2846 return _windows.PyWindow_base_DoGetPosition(*args, **kwargs)
2847
2848 def base_DoGetVirtualSize(*args, **kwargs):
2849 """base_DoGetVirtualSize() -> Size"""
2850 return _windows.PyWindow_base_DoGetVirtualSize(*args, **kwargs)
2851
2852 def base_DoGetBestSize(*args, **kwargs):
2853 """base_DoGetBestSize() -> Size"""
2854 return _windows.PyWindow_base_DoGetBestSize(*args, **kwargs)
2855
2856 def base_InitDialog(*args, **kwargs):
2857 """base_InitDialog()"""
2858 return _windows.PyWindow_base_InitDialog(*args, **kwargs)
2859
2860 def base_TransferDataToWindow(*args, **kwargs):
2861 """base_TransferDataToWindow() -> bool"""
2862 return _windows.PyWindow_base_TransferDataToWindow(*args, **kwargs)
2863
2864 def base_TransferDataFromWindow(*args, **kwargs):
2865 """base_TransferDataFromWindow() -> bool"""
2866 return _windows.PyWindow_base_TransferDataFromWindow(*args, **kwargs)
2867
2868 def base_Validate(*args, **kwargs):
2869 """base_Validate() -> bool"""
2870 return _windows.PyWindow_base_Validate(*args, **kwargs)
2871
2872 def base_AcceptsFocus(*args, **kwargs):
2873 """base_AcceptsFocus() -> bool"""
2874 return _windows.PyWindow_base_AcceptsFocus(*args, **kwargs)
2875
2876 def base_AcceptsFocusFromKeyboard(*args, **kwargs):
2877 """base_AcceptsFocusFromKeyboard() -> bool"""
2878 return _windows.PyWindow_base_AcceptsFocusFromKeyboard(*args, **kwargs)
2879
2880 def base_GetMaxSize(*args, **kwargs):
2881 """base_GetMaxSize() -> Size"""
2882 return _windows.PyWindow_base_GetMaxSize(*args, **kwargs)
2883
2884 def base_AddChild(*args, **kwargs):
2885 """base_AddChild(Window child)"""
2886 return _windows.PyWindow_base_AddChild(*args, **kwargs)
2887
2888 def base_RemoveChild(*args, **kwargs):
2889 """base_RemoveChild(Window child)"""
2890 return _windows.PyWindow_base_RemoveChild(*args, **kwargs)
2891
e6056257 2892
d14a1e28
RD
2893class PyWindowPtr(PyWindow):
2894 def __init__(self, this):
2895 self.this = this
2896 if not hasattr(self,"thisown"): self.thisown = 0
2897 self.__class__ = PyWindow
2898_windows.PyWindow_swigregister(PyWindowPtr)
2899
2900class PyPanel(Panel):
423f194a
RD
2901 def __repr__(self):
2902 return "<%s.%s; proxy of C++ wxPyPanel instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 2903 def __init__(self, *args, **kwargs):
41f1cec7
RD
2904 """
2905 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
cbd72d4f 2906 long style=0, String name=PanelNameStr) -> PyPanel
41f1cec7 2907 """
d14a1e28
RD
2908 newobj = _windows.new_PyPanel(*args, **kwargs)
2909 self.this = newobj.this
2910 self.thisown = 1
2911 del newobj.thisown
2912 self._setOORInfo(self); self._setCallbackInfo(self, PyPanel)
423f194a
RD
2913
2914 def _setCallbackInfo(*args, **kwargs):
2915 """_setCallbackInfo(PyObject self, PyObject _class)"""
2916 return _windows.PyPanel__setCallbackInfo(*args, **kwargs)
2917
2918 def base_DoMoveWindow(*args, **kwargs):
2919 """base_DoMoveWindow(int x, int y, int width, int height)"""
2920 return _windows.PyPanel_base_DoMoveWindow(*args, **kwargs)
2921
2922 def base_DoSetSize(*args, **kwargs):
2923 """base_DoSetSize(int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
2924 return _windows.PyPanel_base_DoSetSize(*args, **kwargs)
2925
2926 def base_DoSetClientSize(*args, **kwargs):
2927 """base_DoSetClientSize(int width, int height)"""
2928 return _windows.PyPanel_base_DoSetClientSize(*args, **kwargs)
2929
2930 def base_DoSetVirtualSize(*args, **kwargs):
2931 """base_DoSetVirtualSize(int x, int y)"""
2932 return _windows.PyPanel_base_DoSetVirtualSize(*args, **kwargs)
2933
2934 def base_DoGetSize(*args, **kwargs):
44127b65 2935 """base_DoGetSize() -> (width, height)"""
423f194a
RD
2936 return _windows.PyPanel_base_DoGetSize(*args, **kwargs)
2937
2938 def base_DoGetClientSize(*args, **kwargs):
44127b65 2939 """base_DoGetClientSize() -> (width, height)"""
423f194a
RD
2940 return _windows.PyPanel_base_DoGetClientSize(*args, **kwargs)
2941
2942 def base_DoGetPosition(*args, **kwargs):
44127b65 2943 """base_DoGetPosition() -> (x,y)"""
423f194a
RD
2944 return _windows.PyPanel_base_DoGetPosition(*args, **kwargs)
2945
2946 def base_DoGetVirtualSize(*args, **kwargs):
2947 """base_DoGetVirtualSize() -> Size"""
2948 return _windows.PyPanel_base_DoGetVirtualSize(*args, **kwargs)
2949
2950 def base_DoGetBestSize(*args, **kwargs):
2951 """base_DoGetBestSize() -> Size"""
2952 return _windows.PyPanel_base_DoGetBestSize(*args, **kwargs)
2953
2954 def base_InitDialog(*args, **kwargs):
2955 """base_InitDialog()"""
2956 return _windows.PyPanel_base_InitDialog(*args, **kwargs)
2957
2958 def base_TransferDataToWindow(*args, **kwargs):
2959 """base_TransferDataToWindow() -> bool"""
2960 return _windows.PyPanel_base_TransferDataToWindow(*args, **kwargs)
2961
2962 def base_TransferDataFromWindow(*args, **kwargs):
2963 """base_TransferDataFromWindow() -> bool"""
2964 return _windows.PyPanel_base_TransferDataFromWindow(*args, **kwargs)
2965
2966 def base_Validate(*args, **kwargs):
2967 """base_Validate() -> bool"""
2968 return _windows.PyPanel_base_Validate(*args, **kwargs)
2969
2970 def base_AcceptsFocus(*args, **kwargs):
2971 """base_AcceptsFocus() -> bool"""
2972 return _windows.PyPanel_base_AcceptsFocus(*args, **kwargs)
2973
2974 def base_AcceptsFocusFromKeyboard(*args, **kwargs):
2975 """base_AcceptsFocusFromKeyboard() -> bool"""
2976 return _windows.PyPanel_base_AcceptsFocusFromKeyboard(*args, **kwargs)
2977
2978 def base_GetMaxSize(*args, **kwargs):
2979 """base_GetMaxSize() -> Size"""
2980 return _windows.PyPanel_base_GetMaxSize(*args, **kwargs)
2981
2982 def base_AddChild(*args, **kwargs):
2983 """base_AddChild(Window child)"""
2984 return _windows.PyPanel_base_AddChild(*args, **kwargs)
2985
2986 def base_RemoveChild(*args, **kwargs):
2987 """base_RemoveChild(Window child)"""
2988 return _windows.PyPanel_base_RemoveChild(*args, **kwargs)
2989
e6056257 2990
d14a1e28
RD
2991class PyPanelPtr(PyPanel):
2992 def __init__(self, this):
2993 self.this = this
2994 if not hasattr(self,"thisown"): self.thisown = 0
2995 self.__class__ = PyPanel
2996_windows.PyPanel_swigregister(PyPanelPtr)
2997
2998#---------------------------------------------------------------------------
2999
3000PRINT_MODE_NONE = _windows.PRINT_MODE_NONE
3001PRINT_MODE_PREVIEW = _windows.PRINT_MODE_PREVIEW
3002PRINT_MODE_FILE = _windows.PRINT_MODE_FILE
3003PRINT_MODE_PRINTER = _windows.PRINT_MODE_PRINTER
0ffb2aa6 3004PRINT_MODE_STREAM = _windows.PRINT_MODE_STREAM
d14a1e28 3005class PrintData(core.Object):
423f194a
RD
3006 def __repr__(self):
3007 return "<%s.%s; proxy of C++ wxPrintData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 3008 def __init__(self, *args, **kwargs):
423f194a 3009 """__init__() -> PrintData"""
d14a1e28
RD
3010 newobj = _windows.new_PrintData(*args, **kwargs)
3011 self.this = newobj.this
3012 self.thisown = 1
3013 del newobj.thisown
3014 def __del__(self, destroy=_windows.delete_PrintData):
423f194a 3015 """__del__()"""
d14a1e28
RD
3016 try:
3017 if self.thisown: destroy(self)
3018 except: pass
423f194a
RD
3019
3020 def GetNoCopies(*args, **kwargs):
3021 """GetNoCopies() -> int"""
3022 return _windows.PrintData_GetNoCopies(*args, **kwargs)
3023
3024 def GetCollate(*args, **kwargs):
3025 """GetCollate() -> bool"""
3026 return _windows.PrintData_GetCollate(*args, **kwargs)
3027
3028 def GetOrientation(*args, **kwargs):
3029 """GetOrientation() -> int"""
3030 return _windows.PrintData_GetOrientation(*args, **kwargs)
3031
3032 def Ok(*args, **kwargs):
3033 """Ok() -> bool"""
3034 return _windows.PrintData_Ok(*args, **kwargs)
3035
3036 def GetPrinterName(*args, **kwargs):
cbd72d4f 3037 """GetPrinterName() -> String"""
423f194a
RD
3038 return _windows.PrintData_GetPrinterName(*args, **kwargs)
3039
3040 def GetColour(*args, **kwargs):
3041 """GetColour() -> bool"""
3042 return _windows.PrintData_GetColour(*args, **kwargs)
3043
3044 def GetDuplex(*args, **kwargs):
cbd72d4f 3045 """GetDuplex() -> int"""
423f194a
RD
3046 return _windows.PrintData_GetDuplex(*args, **kwargs)
3047
3048 def GetPaperId(*args, **kwargs):
cbd72d4f 3049 """GetPaperId() -> int"""
423f194a
RD
3050 return _windows.PrintData_GetPaperId(*args, **kwargs)
3051
3052 def GetPaperSize(*args, **kwargs):
3053 """GetPaperSize() -> Size"""
3054 return _windows.PrintData_GetPaperSize(*args, **kwargs)
3055
3056 def GetQuality(*args, **kwargs):
cbd72d4f 3057 """GetQuality() -> int"""
423f194a
RD
3058 return _windows.PrintData_GetQuality(*args, **kwargs)
3059
3060 def SetNoCopies(*args, **kwargs):
3061 """SetNoCopies(int v)"""
3062 return _windows.PrintData_SetNoCopies(*args, **kwargs)
3063
3064 def SetCollate(*args, **kwargs):
3065 """SetCollate(bool flag)"""
3066 return _windows.PrintData_SetCollate(*args, **kwargs)
3067
3068 def SetOrientation(*args, **kwargs):
3069 """SetOrientation(int orient)"""
3070 return _windows.PrintData_SetOrientation(*args, **kwargs)
3071
3072 def SetPrinterName(*args, **kwargs):
cbd72d4f 3073 """SetPrinterName(String name)"""
423f194a
RD
3074 return _windows.PrintData_SetPrinterName(*args, **kwargs)
3075
3076 def SetColour(*args, **kwargs):
3077 """SetColour(bool colour)"""
3078 return _windows.PrintData_SetColour(*args, **kwargs)
3079
3080 def SetDuplex(*args, **kwargs):
cbd72d4f 3081 """SetDuplex(int duplex)"""
423f194a
RD
3082 return _windows.PrintData_SetDuplex(*args, **kwargs)
3083
3084 def SetPaperId(*args, **kwargs):
cbd72d4f 3085 """SetPaperId(int sizeId)"""
423f194a
RD
3086 return _windows.PrintData_SetPaperId(*args, **kwargs)
3087
3088 def SetPaperSize(*args, **kwargs):
3089 """SetPaperSize(Size sz)"""
3090 return _windows.PrintData_SetPaperSize(*args, **kwargs)
3091
3092 def SetQuality(*args, **kwargs):
cbd72d4f 3093 """SetQuality(int quality)"""
423f194a
RD
3094 return _windows.PrintData_SetQuality(*args, **kwargs)
3095
3096 def GetPrinterCommand(*args, **kwargs):
cbd72d4f 3097 """GetPrinterCommand() -> String"""
423f194a
RD
3098 return _windows.PrintData_GetPrinterCommand(*args, **kwargs)
3099
3100 def GetPrinterOptions(*args, **kwargs):
cbd72d4f 3101 """GetPrinterOptions() -> String"""
423f194a
RD
3102 return _windows.PrintData_GetPrinterOptions(*args, **kwargs)
3103
3104 def GetPreviewCommand(*args, **kwargs):
cbd72d4f 3105 """GetPreviewCommand() -> String"""
423f194a
RD
3106 return _windows.PrintData_GetPreviewCommand(*args, **kwargs)
3107
3108 def GetFilename(*args, **kwargs):
cbd72d4f 3109 """GetFilename() -> String"""
423f194a
RD
3110 return _windows.PrintData_GetFilename(*args, **kwargs)
3111
3112 def GetFontMetricPath(*args, **kwargs):
cbd72d4f 3113 """GetFontMetricPath() -> String"""
423f194a
RD
3114 return _windows.PrintData_GetFontMetricPath(*args, **kwargs)
3115
3116 def GetPrinterScaleX(*args, **kwargs):
3117 """GetPrinterScaleX() -> double"""
3118 return _windows.PrintData_GetPrinterScaleX(*args, **kwargs)
3119
3120 def GetPrinterScaleY(*args, **kwargs):
3121 """GetPrinterScaleY() -> double"""
3122 return _windows.PrintData_GetPrinterScaleY(*args, **kwargs)
3123
3124 def GetPrinterTranslateX(*args, **kwargs):
3125 """GetPrinterTranslateX() -> long"""
3126 return _windows.PrintData_GetPrinterTranslateX(*args, **kwargs)
3127
3128 def GetPrinterTranslateY(*args, **kwargs):
3129 """GetPrinterTranslateY() -> long"""
3130 return _windows.PrintData_GetPrinterTranslateY(*args, **kwargs)
3131
3132 def GetPrintMode(*args, **kwargs):
cbd72d4f 3133 """GetPrintMode() -> int"""
423f194a
RD
3134 return _windows.PrintData_GetPrintMode(*args, **kwargs)
3135
3136 def SetPrinterCommand(*args, **kwargs):
cbd72d4f 3137 """SetPrinterCommand(String command)"""
423f194a
RD
3138 return _windows.PrintData_SetPrinterCommand(*args, **kwargs)
3139
3140 def SetPrinterOptions(*args, **kwargs):
cbd72d4f 3141 """SetPrinterOptions(String options)"""
423f194a
RD
3142 return _windows.PrintData_SetPrinterOptions(*args, **kwargs)
3143
3144 def SetPreviewCommand(*args, **kwargs):
cbd72d4f 3145 """SetPreviewCommand(String command)"""
423f194a
RD
3146 return _windows.PrintData_SetPreviewCommand(*args, **kwargs)
3147
3148 def SetFilename(*args, **kwargs):
cbd72d4f 3149 """SetFilename(String filename)"""
423f194a
RD
3150 return _windows.PrintData_SetFilename(*args, **kwargs)
3151
3152 def SetFontMetricPath(*args, **kwargs):
cbd72d4f 3153 """SetFontMetricPath(String path)"""
423f194a
RD
3154 return _windows.PrintData_SetFontMetricPath(*args, **kwargs)
3155
3156 def SetPrinterScaleX(*args, **kwargs):
3157 """SetPrinterScaleX(double x)"""
3158 return _windows.PrintData_SetPrinterScaleX(*args, **kwargs)
3159
3160 def SetPrinterScaleY(*args, **kwargs):
3161 """SetPrinterScaleY(double y)"""
3162 return _windows.PrintData_SetPrinterScaleY(*args, **kwargs)
3163
3164 def SetPrinterScaling(*args, **kwargs):
3165 """SetPrinterScaling(double x, double y)"""
3166 return _windows.PrintData_SetPrinterScaling(*args, **kwargs)
3167
3168 def SetPrinterTranslateX(*args, **kwargs):
3169 """SetPrinterTranslateX(long x)"""
3170 return _windows.PrintData_SetPrinterTranslateX(*args, **kwargs)
3171
3172 def SetPrinterTranslateY(*args, **kwargs):
3173 """SetPrinterTranslateY(long y)"""
3174 return _windows.PrintData_SetPrinterTranslateY(*args, **kwargs)
3175
3176 def SetPrinterTranslation(*args, **kwargs):
3177 """SetPrinterTranslation(long x, long y)"""
3178 return _windows.PrintData_SetPrinterTranslation(*args, **kwargs)
3179
3180 def SetPrintMode(*args, **kwargs):
cbd72d4f 3181 """SetPrintMode(int printMode)"""
423f194a
RD
3182 return _windows.PrintData_SetPrintMode(*args, **kwargs)
3183
0ffb2aa6
RD
3184 def GetOutputStream(*args, **kwargs):
3185 """GetOutputStream() -> OutputStream"""
3186 return _windows.PrintData_GetOutputStream(*args, **kwargs)
3187
3188 def SetOutputStream(*args, **kwargs):
3189 """SetOutputStream(OutputStream outputstream)"""
3190 return _windows.PrintData_SetOutputStream(*args, **kwargs)
3191
d14a1e28 3192 def __nonzero__(self): return self.Ok()
d14a1e28
RD
3193
3194class PrintDataPtr(PrintData):
3195 def __init__(self, this):
3196 self.this = this
3197 if not hasattr(self,"thisown"): self.thisown = 0
3198 self.__class__ = PrintData
3199_windows.PrintData_swigregister(PrintDataPtr)
cbd72d4f
RD
3200PrintoutTitleStr = cvar.PrintoutTitleStr
3201PreviewCanvasNameStr = cvar.PreviewCanvasNameStr
d14a1e28
RD
3202
3203class PageSetupDialogData(core.Object):
423f194a
RD
3204 def __repr__(self):
3205 return "<%s.%s; proxy of C++ wxPageSetupDialogData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 3206 def __init__(self, *args, **kwargs):
423f194a 3207 """__init__() -> PageSetupDialogData"""
d14a1e28
RD
3208 newobj = _windows.new_PageSetupDialogData(*args, **kwargs)
3209 self.this = newobj.this
3210 self.thisown = 1
3211 del newobj.thisown
3212 def __del__(self, destroy=_windows.delete_PageSetupDialogData):
423f194a 3213 """__del__()"""
d14a1e28
RD
3214 try:
3215 if self.thisown: destroy(self)
3216 except: pass
423f194a
RD
3217
3218 def EnableHelp(*args, **kwargs):
3219 """EnableHelp(bool flag)"""
3220 return _windows.PageSetupDialogData_EnableHelp(*args, **kwargs)
3221
3222 def EnableMargins(*args, **kwargs):
3223 """EnableMargins(bool flag)"""
3224 return _windows.PageSetupDialogData_EnableMargins(*args, **kwargs)
3225
3226 def EnableOrientation(*args, **kwargs):
3227 """EnableOrientation(bool flag)"""
3228 return _windows.PageSetupDialogData_EnableOrientation(*args, **kwargs)
3229
3230 def EnablePaper(*args, **kwargs):
3231 """EnablePaper(bool flag)"""
3232 return _windows.PageSetupDialogData_EnablePaper(*args, **kwargs)
3233
3234 def EnablePrinter(*args, **kwargs):
3235 """EnablePrinter(bool flag)"""
3236 return _windows.PageSetupDialogData_EnablePrinter(*args, **kwargs)
3237
3238 def GetDefaultMinMargins(*args, **kwargs):
3239 """GetDefaultMinMargins() -> bool"""
3240 return _windows.PageSetupDialogData_GetDefaultMinMargins(*args, **kwargs)
3241
3242 def GetEnableMargins(*args, **kwargs):
3243 """GetEnableMargins() -> bool"""
3244 return _windows.PageSetupDialogData_GetEnableMargins(*args, **kwargs)
3245
3246 def GetEnableOrientation(*args, **kwargs):
3247 """GetEnableOrientation() -> bool"""
3248 return _windows.PageSetupDialogData_GetEnableOrientation(*args, **kwargs)
3249
3250 def GetEnablePaper(*args, **kwargs):
3251 """GetEnablePaper() -> bool"""
3252 return _windows.PageSetupDialogData_GetEnablePaper(*args, **kwargs)
3253
3254 def GetEnablePrinter(*args, **kwargs):
3255 """GetEnablePrinter() -> bool"""
3256 return _windows.PageSetupDialogData_GetEnablePrinter(*args, **kwargs)
3257
3258 def GetEnableHelp(*args, **kwargs):
3259 """GetEnableHelp() -> bool"""
3260 return _windows.PageSetupDialogData_GetEnableHelp(*args, **kwargs)
3261
3262 def GetDefaultInfo(*args, **kwargs):
3263 """GetDefaultInfo() -> bool"""
3264 return _windows.PageSetupDialogData_GetDefaultInfo(*args, **kwargs)
3265
3266 def GetMarginTopLeft(*args, **kwargs):
3267 """GetMarginTopLeft() -> Point"""
3268 return _windows.PageSetupDialogData_GetMarginTopLeft(*args, **kwargs)
3269
3270 def GetMarginBottomRight(*args, **kwargs):
3271 """GetMarginBottomRight() -> Point"""
3272 return _windows.PageSetupDialogData_GetMarginBottomRight(*args, **kwargs)
3273
3274 def GetMinMarginTopLeft(*args, **kwargs):
3275 """GetMinMarginTopLeft() -> Point"""
3276 return _windows.PageSetupDialogData_GetMinMarginTopLeft(*args, **kwargs)
3277
3278 def GetMinMarginBottomRight(*args, **kwargs):
3279 """GetMinMarginBottomRight() -> Point"""
3280 return _windows.PageSetupDialogData_GetMinMarginBottomRight(*args, **kwargs)
3281
3282 def GetPaperId(*args, **kwargs):
cbd72d4f 3283 """GetPaperId() -> int"""
423f194a
RD
3284 return _windows.PageSetupDialogData_GetPaperId(*args, **kwargs)
3285
3286 def GetPaperSize(*args, **kwargs):
3287 """GetPaperSize() -> Size"""
3288 return _windows.PageSetupDialogData_GetPaperSize(*args, **kwargs)
3289
3290 def GetPrintData(*args, **kwargs):
3291 """GetPrintData() -> PrintData"""
3292 return _windows.PageSetupDialogData_GetPrintData(*args, **kwargs)
3293
3294 def Ok(*args, **kwargs):
3295 """Ok() -> bool"""
3296 return _windows.PageSetupDialogData_Ok(*args, **kwargs)
3297
3298 def SetDefaultInfo(*args, **kwargs):
3299 """SetDefaultInfo(bool flag)"""
3300 return _windows.PageSetupDialogData_SetDefaultInfo(*args, **kwargs)
3301
3302 def SetDefaultMinMargins(*args, **kwargs):
3303 """SetDefaultMinMargins(bool flag)"""
3304 return _windows.PageSetupDialogData_SetDefaultMinMargins(*args, **kwargs)
3305
3306 def SetMarginTopLeft(*args, **kwargs):
3307 """SetMarginTopLeft(Point pt)"""
3308 return _windows.PageSetupDialogData_SetMarginTopLeft(*args, **kwargs)
3309
3310 def SetMarginBottomRight(*args, **kwargs):
3311 """SetMarginBottomRight(Point pt)"""
3312 return _windows.PageSetupDialogData_SetMarginBottomRight(*args, **kwargs)
3313
3314 def SetMinMarginTopLeft(*args, **kwargs):
3315 """SetMinMarginTopLeft(Point pt)"""
3316 return _windows.PageSetupDialogData_SetMinMarginTopLeft(*args, **kwargs)
3317
3318 def SetMinMarginBottomRight(*args, **kwargs):
3319 """SetMinMarginBottomRight(Point pt)"""
3320 return _windows.PageSetupDialogData_SetMinMarginBottomRight(*args, **kwargs)
3321
3322 def SetPaperId(*args, **kwargs):
cbd72d4f 3323 """SetPaperId(int id)"""
423f194a
RD
3324 return _windows.PageSetupDialogData_SetPaperId(*args, **kwargs)
3325
3326 def SetPaperSize(*args, **kwargs):
3327 """SetPaperSize(Size size)"""
3328 return _windows.PageSetupDialogData_SetPaperSize(*args, **kwargs)
3329
3330 def SetPrintData(*args, **kwargs):
3331 """SetPrintData(PrintData printData)"""
3332 return _windows.PageSetupDialogData_SetPrintData(*args, **kwargs)
3333
d14a1e28 3334 def __nonzero__(self): return self.Ok()
59988cd0 3335
d14a1e28
RD
3336class PageSetupDialogDataPtr(PageSetupDialogData):
3337 def __init__(self, this):
3338 self.this = this
3339 if not hasattr(self,"thisown"): self.thisown = 0
3340 self.__class__ = PageSetupDialogData
3341_windows.PageSetupDialogData_swigregister(PageSetupDialogDataPtr)
3342
3343class PageSetupDialog(Dialog):
423f194a
RD
3344 def __repr__(self):
3345 return "<%s.%s; proxy of C++ wxPageSetupDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 3346 def __init__(self, *args, **kwargs):
423f194a 3347 """__init__(Window parent, PageSetupDialogData data=None) -> PageSetupDialog"""
d14a1e28
RD
3348 newobj = _windows.new_PageSetupDialog(*args, **kwargs)
3349 self.this = newobj.this
3350 self.thisown = 1
3351 del newobj.thisown
3352 self._setOORInfo(self)
423f194a
RD
3353
3354 def GetPageSetupData(*args, **kwargs):
3355 """GetPageSetupData() -> PageSetupDialogData"""
3356 return _windows.PageSetupDialog_GetPageSetupData(*args, **kwargs)
3357
3358 def ShowModal(*args, **kwargs):
3359 """ShowModal() -> int"""
3360 return _windows.PageSetupDialog_ShowModal(*args, **kwargs)
3361
d14a1e28
RD
3362
3363class PageSetupDialogPtr(PageSetupDialog):
3364 def __init__(self, this):
3365 self.this = this
3366 if not hasattr(self,"thisown"): self.thisown = 0
3367 self.__class__ = PageSetupDialog
3368_windows.PageSetupDialog_swigregister(PageSetupDialogPtr)
3369
3370class PrintDialogData(core.Object):
423f194a
RD
3371 def __repr__(self):
3372 return "<%s.%s; proxy of C++ wxPrintDialogData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
ce7284bd
RD
3373 def __init__(self, *args):
3374 """
3375 __init__() -> PrintDialogData
3376 __init__(PrintData printData) -> PrintDialogData
3377 """
3378 newobj = _windows.new_PrintDialogData(*args)
d14a1e28
RD
3379 self.this = newobj.this
3380 self.thisown = 1
3381 del newobj.thisown
3382 def __del__(self, destroy=_windows.delete_PrintDialogData):
423f194a 3383 """__del__()"""
d14a1e28
RD
3384 try:
3385 if self.thisown: destroy(self)
3386 except: pass
423f194a
RD
3387
3388 def GetFromPage(*args, **kwargs):
3389 """GetFromPage() -> int"""
3390 return _windows.PrintDialogData_GetFromPage(*args, **kwargs)
3391
3392 def GetToPage(*args, **kwargs):
3393 """GetToPage() -> int"""
3394 return _windows.PrintDialogData_GetToPage(*args, **kwargs)
3395
3396 def GetMinPage(*args, **kwargs):
3397 """GetMinPage() -> int"""
3398 return _windows.PrintDialogData_GetMinPage(*args, **kwargs)
3399
3400 def GetMaxPage(*args, **kwargs):
3401 """GetMaxPage() -> int"""
3402 return _windows.PrintDialogData_GetMaxPage(*args, **kwargs)
3403
3404 def GetNoCopies(*args, **kwargs):
3405 """GetNoCopies() -> int"""
3406 return _windows.PrintDialogData_GetNoCopies(*args, **kwargs)
3407
3408 def GetAllPages(*args, **kwargs):
3409 """GetAllPages() -> bool"""
3410 return _windows.PrintDialogData_GetAllPages(*args, **kwargs)
3411
3412 def GetSelection(*args, **kwargs):
3413 """GetSelection() -> bool"""
3414 return _windows.PrintDialogData_GetSelection(*args, **kwargs)
3415
3416 def GetCollate(*args, **kwargs):
3417 """GetCollate() -> bool"""
3418 return _windows.PrintDialogData_GetCollate(*args, **kwargs)
3419
3420 def GetPrintToFile(*args, **kwargs):
3421 """GetPrintToFile() -> bool"""
3422 return _windows.PrintDialogData_GetPrintToFile(*args, **kwargs)
3423
3424 def GetSetupDialog(*args, **kwargs):
3425 """GetSetupDialog() -> bool"""
3426 return _windows.PrintDialogData_GetSetupDialog(*args, **kwargs)
3427
3428 def SetFromPage(*args, **kwargs):
3429 """SetFromPage(int v)"""
3430 return _windows.PrintDialogData_SetFromPage(*args, **kwargs)
3431
3432 def SetToPage(*args, **kwargs):
3433 """SetToPage(int v)"""
3434 return _windows.PrintDialogData_SetToPage(*args, **kwargs)
3435
3436 def SetMinPage(*args, **kwargs):
3437 """SetMinPage(int v)"""
3438 return _windows.PrintDialogData_SetMinPage(*args, **kwargs)
3439
3440 def SetMaxPage(*args, **kwargs):
3441 """SetMaxPage(int v)"""
3442 return _windows.PrintDialogData_SetMaxPage(*args, **kwargs)
3443
3444 def SetNoCopies(*args, **kwargs):
3445 """SetNoCopies(int v)"""
3446 return _windows.PrintDialogData_SetNoCopies(*args, **kwargs)
3447
3448 def SetAllPages(*args, **kwargs):
3449 """SetAllPages(bool flag)"""
3450 return _windows.PrintDialogData_SetAllPages(*args, **kwargs)
3451
3452 def SetSelection(*args, **kwargs):
3453 """SetSelection(bool flag)"""
3454 return _windows.PrintDialogData_SetSelection(*args, **kwargs)
3455
3456 def SetCollate(*args, **kwargs):
3457 """SetCollate(bool flag)"""
3458 return _windows.PrintDialogData_SetCollate(*args, **kwargs)
3459
3460 def SetPrintToFile(*args, **kwargs):
3461 """SetPrintToFile(bool flag)"""
3462 return _windows.PrintDialogData_SetPrintToFile(*args, **kwargs)
3463
3464 def SetSetupDialog(*args, **kwargs):
3465 """SetSetupDialog(bool flag)"""
3466 return _windows.PrintDialogData_SetSetupDialog(*args, **kwargs)
3467
3468 def EnablePrintToFile(*args, **kwargs):
3469 """EnablePrintToFile(bool flag)"""
3470 return _windows.PrintDialogData_EnablePrintToFile(*args, **kwargs)
3471
3472 def EnableSelection(*args, **kwargs):
3473 """EnableSelection(bool flag)"""
3474 return _windows.PrintDialogData_EnableSelection(*args, **kwargs)
3475
3476 def EnablePageNumbers(*args, **kwargs):
3477 """EnablePageNumbers(bool flag)"""
3478 return _windows.PrintDialogData_EnablePageNumbers(*args, **kwargs)
3479
3480 def EnableHelp(*args, **kwargs):
3481 """EnableHelp(bool flag)"""
3482 return _windows.PrintDialogData_EnableHelp(*args, **kwargs)
3483
3484 def GetEnablePrintToFile(*args, **kwargs):
3485 """GetEnablePrintToFile() -> bool"""
3486 return _windows.PrintDialogData_GetEnablePrintToFile(*args, **kwargs)
3487
3488 def GetEnableSelection(*args, **kwargs):
3489 """GetEnableSelection() -> bool"""
3490 return _windows.PrintDialogData_GetEnableSelection(*args, **kwargs)
3491
3492 def GetEnablePageNumbers(*args, **kwargs):
3493 """GetEnablePageNumbers() -> bool"""
3494 return _windows.PrintDialogData_GetEnablePageNumbers(*args, **kwargs)
3495
3496 def GetEnableHelp(*args, **kwargs):
3497 """GetEnableHelp() -> bool"""
3498 return _windows.PrintDialogData_GetEnableHelp(*args, **kwargs)
3499
3500 def Ok(*args, **kwargs):
3501 """Ok() -> bool"""
3502 return _windows.PrintDialogData_Ok(*args, **kwargs)
3503
3504 def GetPrintData(*args, **kwargs):
3505 """GetPrintData() -> PrintData"""
3506 return _windows.PrintDialogData_GetPrintData(*args, **kwargs)
3507
3508 def SetPrintData(*args, **kwargs):
3509 """SetPrintData(PrintData printData)"""
3510 return _windows.PrintDialogData_SetPrintData(*args, **kwargs)
3511
d14a1e28 3512 def __nonzero__(self): return self.Ok()
d14a1e28
RD
3513
3514class PrintDialogDataPtr(PrintDialogData):
3515 def __init__(self, this):
3516 self.this = this
3517 if not hasattr(self,"thisown"): self.thisown = 0
3518 self.__class__ = PrintDialogData
3519_windows.PrintDialogData_swigregister(PrintDialogDataPtr)
3520
3521class PrintDialog(Dialog):
423f194a
RD
3522 def __repr__(self):
3523 return "<%s.%s; proxy of C++ wxPrintDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 3524 def __init__(self, *args, **kwargs):
423f194a 3525 """__init__(Window parent, PrintDialogData data=None) -> PrintDialog"""
d14a1e28
RD
3526 newobj = _windows.new_PrintDialog(*args, **kwargs)
3527 self.this = newobj.this
3528 self.thisown = 1
3529 del newobj.thisown
3530 self._setOORInfo(self)
423f194a
RD
3531
3532 def GetPrintDialogData(*args, **kwargs):
3533 """GetPrintDialogData() -> PrintDialogData"""
3534 return _windows.PrintDialog_GetPrintDialogData(*args, **kwargs)
3535
3536 def GetPrintDC(*args, **kwargs):
cbd72d4f 3537 """GetPrintDC() -> DC"""
423f194a
RD
3538 return _windows.PrintDialog_GetPrintDC(*args, **kwargs)
3539
3540 def ShowModal(*args, **kwargs):
3541 """ShowModal() -> int"""
3542 return _windows.PrintDialog_ShowModal(*args, **kwargs)
3543
d14a1e28
RD
3544
3545class PrintDialogPtr(PrintDialog):
3546 def __init__(self, this):
3547 self.this = this
3548 if not hasattr(self,"thisown"): self.thisown = 0
3549 self.__class__ = PrintDialog
3550_windows.PrintDialog_swigregister(PrintDialogPtr)
3551
3552PRINTER_NO_ERROR = _windows.PRINTER_NO_ERROR
3553PRINTER_CANCELLED = _windows.PRINTER_CANCELLED
3554PRINTER_ERROR = _windows.PRINTER_ERROR
3555class Printer(core.Object):
423f194a
RD
3556 def __repr__(self):
3557 return "<%s.%s; proxy of C++ wxPrinter instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 3558 def __init__(self, *args, **kwargs):
423f194a 3559 """__init__(PrintDialogData data=None) -> Printer"""
d14a1e28
RD
3560 newobj = _windows.new_Printer(*args, **kwargs)
3561 self.this = newobj.this
3562 self.thisown = 1
3563 del newobj.thisown
3564 def __del__(self, destroy=_windows.delete_Printer):
423f194a 3565 """__del__()"""
d14a1e28
RD
3566 try:
3567 if self.thisown: destroy(self)
3568 except: pass
423f194a
RD
3569
3570 def CreateAbortWindow(*args, **kwargs):
3571 """CreateAbortWindow(Window parent, Printout printout)"""
3572 return _windows.Printer_CreateAbortWindow(*args, **kwargs)
3573
3574 def GetPrintDialogData(*args, **kwargs):
3575 """GetPrintDialogData() -> PrintDialogData"""
3576 return _windows.Printer_GetPrintDialogData(*args, **kwargs)
3577
3578 def Print(*args, **kwargs):
3579 """Print(Window parent, Printout printout, int prompt=True) -> bool"""
3580 return _windows.Printer_Print(*args, **kwargs)
3581
3582 def PrintDialog(*args, **kwargs):
cbd72d4f 3583 """PrintDialog(Window parent) -> DC"""
423f194a
RD
3584 return _windows.Printer_PrintDialog(*args, **kwargs)
3585
3586 def ReportError(*args, **kwargs):
cbd72d4f 3587 """ReportError(Window parent, Printout printout, String message)"""
423f194a
RD
3588 return _windows.Printer_ReportError(*args, **kwargs)
3589
3590 def Setup(*args, **kwargs):
3591 """Setup(Window parent) -> bool"""
3592 return _windows.Printer_Setup(*args, **kwargs)
3593
3594 def GetAbort(*args, **kwargs):
3595 """GetAbort() -> bool"""
3596 return _windows.Printer_GetAbort(*args, **kwargs)
3597
3598 def GetLastError(*args, **kwargs):
2dbef272 3599 """GetLastError() -> int"""
423f194a
RD
3600 return _windows.Printer_GetLastError(*args, **kwargs)
3601
3602 GetLastError = staticmethod(GetLastError)
d14a1e28
RD
3603
3604class PrinterPtr(Printer):
3605 def __init__(self, this):
3606 self.this = this
3607 if not hasattr(self,"thisown"): self.thisown = 0
3608 self.__class__ = Printer
3609_windows.Printer_swigregister(PrinterPtr)
e6056257 3610
423f194a 3611def Printer_GetLastError(*args, **kwargs):
cbd72d4f 3612 """Printer_GetLastError() -> int"""
423f194a 3613 return _windows.Printer_GetLastError(*args, **kwargs)
e6056257 3614
d14a1e28 3615class Printout(core.Object):
423f194a
RD
3616 def __repr__(self):
3617 return "<%s.%s; proxy of C++ wxPyPrintout instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 3618 def __init__(self, *args, **kwargs):
cbd72d4f 3619 """__init__(String title=PrintoutTitleStr) -> Printout"""
d14a1e28
RD
3620 newobj = _windows.new_Printout(*args, **kwargs)
3621 self.this = newobj.this
3622 self.thisown = 1
3623 del newobj.thisown
3624 self._setCallbackInfo(self, Printout)
423f194a
RD
3625
3626 def _setCallbackInfo(*args, **kwargs):
3627 """_setCallbackInfo(PyObject self, PyObject _class)"""
3628 return _windows.Printout__setCallbackInfo(*args, **kwargs)
3629
3630 def GetTitle(*args, **kwargs):
cbd72d4f 3631 """GetTitle() -> String"""
423f194a
RD
3632 return _windows.Printout_GetTitle(*args, **kwargs)
3633
3634 def GetDC(*args, **kwargs):
cbd72d4f 3635 """GetDC() -> DC"""
423f194a
RD
3636 return _windows.Printout_GetDC(*args, **kwargs)
3637
3638 def SetDC(*args, **kwargs):
cbd72d4f 3639 """SetDC(DC dc)"""
423f194a
RD
3640 return _windows.Printout_SetDC(*args, **kwargs)
3641
423f194a
RD
3642 def SetPageSizePixels(*args, **kwargs):
3643 """SetPageSizePixels(int w, int h)"""
3644 return _windows.Printout_SetPageSizePixels(*args, **kwargs)
3645
44127b65
RD
3646 def GetPageSizePixels(*args, **kwargs):
3647 """GetPageSizePixels() -> (w, h)"""
3648 return _windows.Printout_GetPageSizePixels(*args, **kwargs)
3649
423f194a
RD
3650 def SetPageSizeMM(*args, **kwargs):
3651 """SetPageSizeMM(int w, int h)"""
3652 return _windows.Printout_SetPageSizeMM(*args, **kwargs)
3653
3654 def GetPageSizeMM(*args, **kwargs):
44127b65 3655 """GetPageSizeMM() -> (w, h)"""
423f194a
RD
3656 return _windows.Printout_GetPageSizeMM(*args, **kwargs)
3657
3658 def SetPPIScreen(*args, **kwargs):
3659 """SetPPIScreen(int x, int y)"""
3660 return _windows.Printout_SetPPIScreen(*args, **kwargs)
3661
3662 def GetPPIScreen(*args, **kwargs):
44127b65 3663 """GetPPIScreen() -> (x,y)"""
423f194a
RD
3664 return _windows.Printout_GetPPIScreen(*args, **kwargs)
3665
3666 def SetPPIPrinter(*args, **kwargs):
3667 """SetPPIPrinter(int x, int y)"""
3668 return _windows.Printout_SetPPIPrinter(*args, **kwargs)
3669
3670 def GetPPIPrinter(*args, **kwargs):
44127b65 3671 """GetPPIPrinter() -> (x,y)"""
423f194a
RD
3672 return _windows.Printout_GetPPIPrinter(*args, **kwargs)
3673
3674 def IsPreview(*args, **kwargs):
3675 """IsPreview() -> bool"""
3676 return _windows.Printout_IsPreview(*args, **kwargs)
3677
3678 def SetIsPreview(*args, **kwargs):
3679 """SetIsPreview(bool p)"""
3680 return _windows.Printout_SetIsPreview(*args, **kwargs)
3681
3682 def base_OnBeginDocument(*args, **kwargs):
3683 """base_OnBeginDocument(int startPage, int endPage) -> bool"""
3684 return _windows.Printout_base_OnBeginDocument(*args, **kwargs)
3685
3686 def base_OnEndDocument(*args, **kwargs):
3687 """base_OnEndDocument()"""
3688 return _windows.Printout_base_OnEndDocument(*args, **kwargs)
3689
3690 def base_OnBeginPrinting(*args, **kwargs):
3691 """base_OnBeginPrinting()"""
3692 return _windows.Printout_base_OnBeginPrinting(*args, **kwargs)
3693
3694 def base_OnEndPrinting(*args, **kwargs):
3695 """base_OnEndPrinting()"""
3696 return _windows.Printout_base_OnEndPrinting(*args, **kwargs)
3697
3698 def base_OnPreparePrinting(*args, **kwargs):
3699 """base_OnPreparePrinting()"""
3700 return _windows.Printout_base_OnPreparePrinting(*args, **kwargs)
3701
423f194a
RD
3702 def base_HasPage(*args, **kwargs):
3703 """base_HasPage(int page) -> bool"""
3704 return _windows.Printout_base_HasPage(*args, **kwargs)
3705
44127b65
RD
3706 def base_GetPageInfo(*args, **kwargs):
3707 """base_GetPageInfo() -> (minPage, maxPage, pageFrom, pageTo)"""
3708 return _windows.Printout_base_GetPageInfo(*args, **kwargs)
3709
d14a1e28
RD
3710
3711class PrintoutPtr(Printout):
3712 def __init__(self, this):
3713 self.this = this
3714 if not hasattr(self,"thisown"): self.thisown = 0
3715 self.__class__ = Printout
3716_windows.Printout_swigregister(PrintoutPtr)
3717
3718class PreviewCanvas(ScrolledWindow):
423f194a
RD
3719 def __repr__(self):
3720 return "<%s.%s; proxy of C++ wxPreviewCanvas instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 3721 def __init__(self, *args, **kwargs):
41f1cec7
RD
3722 """
3723 __init__(PrintPreview preview, Window parent, Point pos=DefaultPosition,
3724 Size size=DefaultSize, long style=0,
cbd72d4f 3725 String name=PreviewCanvasNameStr) -> PreviewCanvas
41f1cec7 3726 """
d14a1e28
RD
3727 newobj = _windows.new_PreviewCanvas(*args, **kwargs)
3728 self.this = newobj.this
3729 self.thisown = 1
3730 del newobj.thisown
100c4552 3731 self._setOORInfo(self)
423f194a 3732
d14a1e28
RD
3733
3734class PreviewCanvasPtr(PreviewCanvas):
3735 def __init__(self, this):
3736 self.this = this
3737 if not hasattr(self,"thisown"): self.thisown = 0
3738 self.__class__ = PreviewCanvas
3739_windows.PreviewCanvas_swigregister(PreviewCanvasPtr)
3740
3741class PreviewFrame(Frame):
423f194a
RD
3742 def __repr__(self):
3743 return "<%s.%s; proxy of C++ wxPreviewFrame instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 3744 def __init__(self, *args, **kwargs):
41f1cec7 3745 """
cbd72d4f
RD
3746 __init__(PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
3747 Size size=DefaultSize,
3748 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PreviewFrame
41f1cec7 3749 """
d14a1e28
RD
3750 newobj = _windows.new_PreviewFrame(*args, **kwargs)
3751 self.this = newobj.this
3752 self.thisown = 1
3753 del newobj.thisown
100c4552 3754 self._setOORInfo(self)
423f194a
RD
3755
3756 def Initialize(*args, **kwargs):
3757 """Initialize()"""
3758 return _windows.PreviewFrame_Initialize(*args, **kwargs)
3759
3760 def CreateControlBar(*args, **kwargs):
3761 """CreateControlBar()"""
3762 return _windows.PreviewFrame_CreateControlBar(*args, **kwargs)
3763
3764 def CreateCanvas(*args, **kwargs):
3765 """CreateCanvas()"""
3766 return _windows.PreviewFrame_CreateCanvas(*args, **kwargs)
3767
3768 def GetControlBar(*args, **kwargs):
3769 """GetControlBar() -> PreviewControlBar"""
3770 return _windows.PreviewFrame_GetControlBar(*args, **kwargs)
3771
d14a1e28
RD
3772
3773class PreviewFramePtr(PreviewFrame):
3774 def __init__(self, this):
3775 self.this = this
3776 if not hasattr(self,"thisown"): self.thisown = 0
3777 self.__class__ = PreviewFrame
3778_windows.PreviewFrame_swigregister(PreviewFramePtr)
3779
3780PREVIEW_PRINT = _windows.PREVIEW_PRINT
3781PREVIEW_PREVIOUS = _windows.PREVIEW_PREVIOUS
3782PREVIEW_NEXT = _windows.PREVIEW_NEXT
3783PREVIEW_ZOOM = _windows.PREVIEW_ZOOM
3784PREVIEW_FIRST = _windows.PREVIEW_FIRST
3785PREVIEW_LAST = _windows.PREVIEW_LAST
3786PREVIEW_GOTO = _windows.PREVIEW_GOTO
3787PREVIEW_DEFAULT = _windows.PREVIEW_DEFAULT
3788ID_PREVIEW_CLOSE = _windows.ID_PREVIEW_CLOSE
3789ID_PREVIEW_NEXT = _windows.ID_PREVIEW_NEXT
3790ID_PREVIEW_PREVIOUS = _windows.ID_PREVIEW_PREVIOUS
3791ID_PREVIEW_PRINT = _windows.ID_PREVIEW_PRINT
3792ID_PREVIEW_ZOOM = _windows.ID_PREVIEW_ZOOM
3793ID_PREVIEW_FIRST = _windows.ID_PREVIEW_FIRST
3794ID_PREVIEW_LAST = _windows.ID_PREVIEW_LAST
3795ID_PREVIEW_GOTO = _windows.ID_PREVIEW_GOTO
3796class PreviewControlBar(Panel):
423f194a
RD
3797 def __repr__(self):
3798 return "<%s.%s; proxy of C++ wxPreviewControlBar instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 3799 def __init__(self, *args, **kwargs):
41f1cec7
RD
3800 """
3801 __init__(PrintPreview preview, long buttons, Window parent,
3802 Point pos=DefaultPosition, Size size=DefaultSize,
cbd72d4f 3803 long style=TAB_TRAVERSAL, String name=PanelNameStr) -> PreviewControlBar
41f1cec7 3804 """
d14a1e28
RD
3805 newobj = _windows.new_PreviewControlBar(*args, **kwargs)
3806 self.this = newobj.this
3807 self.thisown = 1
3808 del newobj.thisown
100c4552 3809 self._setOORInfo(self)
423f194a
RD
3810
3811 def GetZoomControl(*args, **kwargs):
3812 """GetZoomControl() -> int"""
3813 return _windows.PreviewControlBar_GetZoomControl(*args, **kwargs)
3814
3815 def SetZoomControl(*args, **kwargs):
3816 """SetZoomControl(int zoom)"""
3817 return _windows.PreviewControlBar_SetZoomControl(*args, **kwargs)
3818
3819 def GetPrintPreview(*args, **kwargs):
3820 """GetPrintPreview() -> PrintPreview"""
3821 return _windows.PreviewControlBar_GetPrintPreview(*args, **kwargs)
3822
3823 def OnNext(*args, **kwargs):
3824 """OnNext()"""
3825 return _windows.PreviewControlBar_OnNext(*args, **kwargs)
3826
3827 def OnPrevious(*args, **kwargs):
3828 """OnPrevious()"""
3829 return _windows.PreviewControlBar_OnPrevious(*args, **kwargs)
3830
3831 def OnFirst(*args, **kwargs):
3832 """OnFirst()"""
3833 return _windows.PreviewControlBar_OnFirst(*args, **kwargs)
3834
3835 def OnLast(*args, **kwargs):
3836 """OnLast()"""
3837 return _windows.PreviewControlBar_OnLast(*args, **kwargs)
3838
3839 def OnGoto(*args, **kwargs):
3840 """OnGoto()"""
3841 return _windows.PreviewControlBar_OnGoto(*args, **kwargs)
3842
d14a1e28
RD
3843
3844class PreviewControlBarPtr(PreviewControlBar):
3845 def __init__(self, this):
3846 self.this = this
3847 if not hasattr(self,"thisown"): self.thisown = 0
3848 self.__class__ = PreviewControlBar
3849_windows.PreviewControlBar_swigregister(PreviewControlBarPtr)
3850
3851class PrintPreview(core.Object):
423f194a
RD
3852 def __repr__(self):
3853 return "<%s.%s; proxy of C++ wxPrintPreview instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
ce7284bd
RD
3854 def __init__(self, *args):
3855 """
3856 __init__(Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PrintPreview
3857 __init__(Printout printout, Printout printoutForPrinting, PrintData data) -> PrintPreview
3858 """
3859 newobj = _windows.new_PrintPreview(*args)
d14a1e28
RD
3860 self.this = newobj.this
3861 self.thisown = 1
3862 del newobj.thisown
423f194a
RD
3863 def SetCurrentPage(*args, **kwargs):
3864 """SetCurrentPage(int pageNum) -> bool"""
3865 return _windows.PrintPreview_SetCurrentPage(*args, **kwargs)
3866
3867 def GetCurrentPage(*args, **kwargs):
3868 """GetCurrentPage() -> int"""
3869 return _windows.PrintPreview_GetCurrentPage(*args, **kwargs)
3870
3871 def SetPrintout(*args, **kwargs):
3872 """SetPrintout(Printout printout)"""
3873 return _windows.PrintPreview_SetPrintout(*args, **kwargs)
3874
3875 def GetPrintout(*args, **kwargs):
3876 """GetPrintout() -> Printout"""
3877 return _windows.PrintPreview_GetPrintout(*args, **kwargs)
3878
3879 def GetPrintoutForPrinting(*args, **kwargs):
3880 """GetPrintoutForPrinting() -> Printout"""
3881 return _windows.PrintPreview_GetPrintoutForPrinting(*args, **kwargs)
3882
3883 def SetFrame(*args, **kwargs):
3884 """SetFrame(Frame frame)"""
3885 return _windows.PrintPreview_SetFrame(*args, **kwargs)
3886
3887 def SetCanvas(*args, **kwargs):
3888 """SetCanvas(PreviewCanvas canvas)"""
3889 return _windows.PrintPreview_SetCanvas(*args, **kwargs)
3890
3891 def GetFrame(*args, **kwargs):
3892 """GetFrame() -> Frame"""
3893 return _windows.PrintPreview_GetFrame(*args, **kwargs)
3894
3895 def GetCanvas(*args, **kwargs):
3896 """GetCanvas() -> PreviewCanvas"""
3897 return _windows.PrintPreview_GetCanvas(*args, **kwargs)
3898
3899 def PaintPage(*args, **kwargs):
cbd72d4f 3900 """PaintPage(PreviewCanvas canvas, DC dc) -> bool"""
423f194a
RD
3901 return _windows.PrintPreview_PaintPage(*args, **kwargs)
3902
3903 def DrawBlankPage(*args, **kwargs):
cbd72d4f 3904 """DrawBlankPage(PreviewCanvas canvas, DC dc) -> bool"""
423f194a
RD
3905 return _windows.PrintPreview_DrawBlankPage(*args, **kwargs)
3906
3907 def RenderPage(*args, **kwargs):
3908 """RenderPage(int pageNum) -> bool"""
3909 return _windows.PrintPreview_RenderPage(*args, **kwargs)
3910
3911 def AdjustScrollbars(*args, **kwargs):
3912 """AdjustScrollbars(PreviewCanvas canvas)"""
3913 return _windows.PrintPreview_AdjustScrollbars(*args, **kwargs)
3914
3915 def GetPrintDialogData(*args, **kwargs):
3916 """GetPrintDialogData() -> PrintDialogData"""
3917 return _windows.PrintPreview_GetPrintDialogData(*args, **kwargs)
3918
3919 def SetZoom(*args, **kwargs):
3920 """SetZoom(int percent)"""
3921 return _windows.PrintPreview_SetZoom(*args, **kwargs)
3922
3923 def GetZoom(*args, **kwargs):
3924 """GetZoom() -> int"""
3925 return _windows.PrintPreview_GetZoom(*args, **kwargs)
3926
3927 def GetMaxPage(*args, **kwargs):
3928 """GetMaxPage() -> int"""
3929 return _windows.PrintPreview_GetMaxPage(*args, **kwargs)
3930
3931 def GetMinPage(*args, **kwargs):
3932 """GetMinPage() -> int"""
3933 return _windows.PrintPreview_GetMinPage(*args, **kwargs)
3934
3935 def Ok(*args, **kwargs):
3936 """Ok() -> bool"""
3937 return _windows.PrintPreview_Ok(*args, **kwargs)
3938
3939 def SetOk(*args, **kwargs):
3940 """SetOk(bool ok)"""
3941 return _windows.PrintPreview_SetOk(*args, **kwargs)
3942
3943 def Print(*args, **kwargs):
3944 """Print(bool interactive) -> bool"""
3945 return _windows.PrintPreview_Print(*args, **kwargs)
3946
3947 def DetermineScaling(*args, **kwargs):
3948 """DetermineScaling()"""
3949 return _windows.PrintPreview_DetermineScaling(*args, **kwargs)
3950
d14a1e28 3951 def __nonzero__(self): return self.Ok()
d14a1e28
RD
3952
3953class PrintPreviewPtr(PrintPreview):
3954 def __init__(self, this):
3955 self.this = this
3956 if not hasattr(self,"thisown"): self.thisown = 0
3957 self.__class__ = PrintPreview
3958_windows.PrintPreview_swigregister(PrintPreviewPtr)
3959
3960class PyPrintPreview(PrintPreview):
423f194a
RD
3961 def __repr__(self):
3962 return "<%s.%s; proxy of C++ wxPyPrintPreview instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
ce7284bd
RD
3963 def __init__(self, *args):
3964 """
3965 __init__(Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PyPrintPreview
3966 __init__(Printout printout, Printout printoutForPrinting, PrintData data) -> PyPrintPreview
3967 """
3968 newobj = _windows.new_PyPrintPreview(*args)
d14a1e28
RD
3969 self.this = newobj.this
3970 self.thisown = 1
3971 del newobj.thisown
3972 self._setCallbackInfo(self, PyPrintPreview)
423f194a
RD
3973
3974 def _setCallbackInfo(*args, **kwargs):
3975 """_setCallbackInfo(PyObject self, PyObject _class)"""
3976 return _windows.PyPrintPreview__setCallbackInfo(*args, **kwargs)
3977
3978 def base_SetCurrentPage(*args, **kwargs):
3979 """base_SetCurrentPage(int pageNum) -> bool"""
3980 return _windows.PyPrintPreview_base_SetCurrentPage(*args, **kwargs)
3981
3982 def base_PaintPage(*args, **kwargs):
cbd72d4f 3983 """base_PaintPage(PreviewCanvas canvas, DC dc) -> bool"""
423f194a
RD
3984 return _windows.PyPrintPreview_base_PaintPage(*args, **kwargs)
3985
3986 def base_DrawBlankPage(*args, **kwargs):
cbd72d4f 3987 """base_DrawBlankPage(PreviewCanvas canvas, DC dc) -> bool"""
423f194a
RD
3988 return _windows.PyPrintPreview_base_DrawBlankPage(*args, **kwargs)
3989
3990 def base_RenderPage(*args, **kwargs):
3991 """base_RenderPage(int pageNum) -> bool"""
3992 return _windows.PyPrintPreview_base_RenderPage(*args, **kwargs)
3993
3994 def base_SetZoom(*args, **kwargs):
3995 """base_SetZoom(int percent)"""
3996 return _windows.PyPrintPreview_base_SetZoom(*args, **kwargs)
3997
3998 def base_Print(*args, **kwargs):
3999 """base_Print(bool interactive) -> bool"""
4000 return _windows.PyPrintPreview_base_Print(*args, **kwargs)
4001
4002 def base_DetermineScaling(*args, **kwargs):
4003 """base_DetermineScaling()"""
4004 return _windows.PyPrintPreview_base_DetermineScaling(*args, **kwargs)
4005
d14a1e28
RD
4006
4007class PyPrintPreviewPtr(PyPrintPreview):
4008 def __init__(self, this):
4009 self.this = this
4010 if not hasattr(self,"thisown"): self.thisown = 0
4011 self.__class__ = PyPrintPreview
4012_windows.PyPrintPreview_swigregister(PyPrintPreviewPtr)
4013
4014class PyPreviewFrame(PreviewFrame):
423f194a
RD
4015 def __repr__(self):
4016 return "<%s.%s; proxy of C++ wxPyPreviewFrame instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 4017 def __init__(self, *args, **kwargs):
41f1cec7 4018 """
cbd72d4f
RD
4019 __init__(PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4020 Size size=DefaultSize,
4021 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PyPreviewFrame
41f1cec7 4022 """
d14a1e28
RD
4023 newobj = _windows.new_PyPreviewFrame(*args, **kwargs)
4024 self.this = newobj.this
4025 self.thisown = 1
4026 del newobj.thisown
4027 self._setCallbackInfo(self, PyPreviewFrame); self._setOORInfo(self)
423f194a
RD
4028
4029 def _setCallbackInfo(*args, **kwargs):
4030 """_setCallbackInfo(PyObject self, PyObject _class)"""
4031 return _windows.PyPreviewFrame__setCallbackInfo(*args, **kwargs)
4032
4033 def SetPreviewCanvas(*args, **kwargs):
4034 """SetPreviewCanvas(PreviewCanvas canvas)"""
4035 return _windows.PyPreviewFrame_SetPreviewCanvas(*args, **kwargs)
4036
4037 def SetControlBar(*args, **kwargs):
4038 """SetControlBar(PreviewControlBar bar)"""
4039 return _windows.PyPreviewFrame_SetControlBar(*args, **kwargs)
4040
4041 def base_Initialize(*args, **kwargs):
4042 """base_Initialize()"""
4043 return _windows.PyPreviewFrame_base_Initialize(*args, **kwargs)
4044
4045 def base_CreateCanvas(*args, **kwargs):
4046 """base_CreateCanvas()"""
4047 return _windows.PyPreviewFrame_base_CreateCanvas(*args, **kwargs)
4048
4049 def base_CreateControlBar(*args, **kwargs):
4050 """base_CreateControlBar()"""
4051 return _windows.PyPreviewFrame_base_CreateControlBar(*args, **kwargs)
4052
d14a1e28
RD
4053
4054class PyPreviewFramePtr(PyPreviewFrame):
4055 def __init__(self, this):
4056 self.this = this
4057 if not hasattr(self,"thisown"): self.thisown = 0
4058 self.__class__ = PyPreviewFrame
4059_windows.PyPreviewFrame_swigregister(PyPreviewFramePtr)
4060
4061class PyPreviewControlBar(PreviewControlBar):
423f194a
RD
4062 def __repr__(self):
4063 return "<%s.%s; proxy of C++ wxPyPreviewControlBar instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 4064 def __init__(self, *args, **kwargs):
41f1cec7
RD
4065 """
4066 __init__(PrintPreview preview, long buttons, Window parent,
4067 Point pos=DefaultPosition, Size size=DefaultSize,
cbd72d4f 4068 long style=0, String name=PanelNameStr) -> PyPreviewControlBar
41f1cec7 4069 """
d14a1e28
RD
4070 newobj = _windows.new_PyPreviewControlBar(*args, **kwargs)
4071 self.this = newobj.this
4072 self.thisown = 1
4073 del newobj.thisown
4074 self._setCallbackInfo(self, PyPreviewControlBar); self._setOORInfo(self)
423f194a
RD
4075
4076 def _setCallbackInfo(*args, **kwargs):
4077 """_setCallbackInfo(PyObject self, PyObject _class)"""
4078 return _windows.PyPreviewControlBar__setCallbackInfo(*args, **kwargs)
4079
4080 def SetPrintPreview(*args, **kwargs):
4081 """SetPrintPreview(PrintPreview preview)"""
4082 return _windows.PyPreviewControlBar_SetPrintPreview(*args, **kwargs)
4083
4084 def base_CreateButtons(*args, **kwargs):
4085 """base_CreateButtons()"""
4086 return _windows.PyPreviewControlBar_base_CreateButtons(*args, **kwargs)
4087
4088 def base_SetZoomControl(*args, **kwargs):
4089 """base_SetZoomControl(int zoom)"""
4090 return _windows.PyPreviewControlBar_base_SetZoomControl(*args, **kwargs)
4091
d14a1e28
RD
4092
4093class PyPreviewControlBarPtr(PyPreviewControlBar):
4094 def __init__(self, this):
4095 self.this = this
4096 if not hasattr(self,"thisown"): self.thisown = 0
4097 self.__class__ = PyPreviewControlBar
4098_windows.PyPreviewControlBar_swigregister(PyPreviewControlBarPtr)
e6056257 4099
e6056257 4100