]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/mac/wizard.py
Build fix for motif.
[wxWidgets.git] / wxPython / src / mac / wizard.py
CommitLineData
1bd55598 1# This file was created automatically by SWIG 1.3.29.
d14a1e28
RD
2# Don't modify this file, modify the SWIG interface instead.
3
a5ee0656
RD
4"""
5`Wizard` is a dialog class that guides the user through a sequence of steps,
6or pages.
7"""
8
d14a1e28 9import _wizard
1bd55598
RD
10import new
11new_instancemethod = new.instancemethod
36ed4f51 12def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
1bd55598 13 if (name == "thisown"): return self.this.own(value)
36ed4f51 14 if (name == "this"):
1bd55598
RD
15 if type(value).__name__ == 'PySwigObject':
16 self.__dict__[name] = value
36ed4f51
RD
17 return
18 method = class_type.__swig_setmethods__.get(name,None)
19 if method: return method(self,value)
1bd55598 20 if (not static) or hasattr(self,name):
36ed4f51
RD
21 self.__dict__[name] = value
22 else:
23 raise AttributeError("You cannot add attributes to %s" % self)
24
25def _swig_setattr(self,class_type,name,value):
26 return _swig_setattr_nondynamic(self,class_type,name,value,0)
27
28def _swig_getattr(self,class_type,name):
1bd55598 29 if (name == "thisown"): return self.this.own()
36ed4f51
RD
30 method = class_type.__swig_getmethods__.get(name,None)
31 if method: return method(self)
32 raise AttributeError,name
33
1bd55598
RD
34def _swig_repr(self):
35 try: strthis = "proxy of " + self.this.__repr__()
36 except: strthis = ""
37 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
38
36ed4f51
RD
39import types
40try:
41 _object = types.ObjectType
42 _newclass = 1
43except AttributeError:
44 class _object : pass
45 _newclass = 0
46del types
47
48
49def _swig_setattr_nondynamic_method(set):
50 def set_attr(self,name,value):
1bd55598
RD
51 if (name == "thisown"): return self.this.own(value)
52 if hasattr(self,name) or (name == "this"):
36ed4f51
RD
53 set(self,name,value)
54 else:
55 raise AttributeError("You cannot add attributes to %s" % self)
56 return set_attr
57
58
d55e5bfc
RD
59import _windows
60import _core
61wx = _core
d6c14a4c 62__docfilter__ = wx.__DocFilter(globals())
d14a1e28
RD
63WIZARD_EX_HELPBUTTON = _wizard.WIZARD_EX_HELPBUTTON
64wxEVT_WIZARD_PAGE_CHANGED = _wizard.wxEVT_WIZARD_PAGE_CHANGED
65wxEVT_WIZARD_PAGE_CHANGING = _wizard.wxEVT_WIZARD_PAGE_CHANGING
66wxEVT_WIZARD_CANCEL = _wizard.wxEVT_WIZARD_CANCEL
67wxEVT_WIZARD_HELP = _wizard.wxEVT_WIZARD_HELP
68wxEVT_WIZARD_FINISHED = _wizard.wxEVT_WIZARD_FINISHED
69EVT_WIZARD_PAGE_CHANGED = wx.PyEventBinder( wxEVT_WIZARD_PAGE_CHANGED, 1)
70EVT_WIZARD_PAGE_CHANGING = wx.PyEventBinder( wxEVT_WIZARD_PAGE_CHANGING, 1)
71EVT_WIZARD_CANCEL = wx.PyEventBinder( wxEVT_WIZARD_CANCEL, 1)
72EVT_WIZARD_HELP = wx.PyEventBinder( wxEVT_WIZARD_HELP, 1)
73EVT_WIZARD_FINISHED = wx.PyEventBinder( wxEVT_WIZARD_FINISHED, 1)
74
d55e5bfc 75class WizardEvent(_core.NotifyEvent):
36ed4f51 76 """Proxy of C++ WizardEvent class"""
1bd55598
RD
77 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
78 __repr__ = _swig_repr
79 def __init__(self, *args, **kwargs):
41f1cec7 80 """
2131d850 81 __init__(self, EventType type=wxEVT_NULL, int id=-1, bool direction=True,
41f1cec7
RD
82 WizardPage page=None) -> WizardEvent
83 """
1bd55598 84 _wizard.WizardEvent_swiginit(self,_wizard.new_WizardEvent(*args, **kwargs))
423f194a 85 def GetDirection(*args, **kwargs):
a95a7133 86 """GetDirection(self) -> bool"""
423f194a
RD
87 return _wizard.WizardEvent_GetDirection(*args, **kwargs)
88
89 def GetPage(*args, **kwargs):
a95a7133 90 """GetPage(self) -> WizardPage"""
423f194a
RD
91 return _wizard.WizardEvent_GetPage(*args, **kwargs)
92
2131d850 93_wizard.WizardEvent_swigregister(WizardEvent)
d14a1e28 94
d55e5bfc 95class WizardPage(_windows.Panel):
36ed4f51 96 """Proxy of C++ WizardPage class"""
1bd55598
RD
97 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
98 def __init__(self): raise AttributeError, "No constructor defined"
99 __repr__ = _swig_repr
423f194a 100 def Create(*args, **kwargs):
a95a7133 101 """Create(self, Wizard parent, Bitmap bitmap=wxNullBitmap, String resource=EmptyString) -> bool"""
423f194a
RD
102 return _wizard.WizardPage_Create(*args, **kwargs)
103
104 def GetPrev(*args, **kwargs):
a95a7133 105 """GetPrev(self) -> WizardPage"""
423f194a
RD
106 return _wizard.WizardPage_GetPrev(*args, **kwargs)
107
108 def GetNext(*args, **kwargs):
a95a7133 109 """GetNext(self) -> WizardPage"""
423f194a
RD
110 return _wizard.WizardPage_GetNext(*args, **kwargs)
111
112 def GetBitmap(*args, **kwargs):
a95a7133 113 """GetBitmap(self) -> Bitmap"""
423f194a
RD
114 return _wizard.WizardPage_GetBitmap(*args, **kwargs)
115
2131d850 116_wizard.WizardPage_swigregister(WizardPage)
d14a1e28
RD
117
118class PyWizardPage(WizardPage):
36ed4f51 119 """Proxy of C++ PyWizardPage class"""
1bd55598
RD
120 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
121 __repr__ = _swig_repr
122 def __init__(self, *args, **kwargs):
a95a7133 123 """__init__(self, Wizard parent, Bitmap bitmap=&wxNullBitmap, String resource=&wxPyEmptyString) -> PyWizardPage"""
1bd55598 124 _wizard.PyWizardPage_swiginit(self,_wizard.new_PyWizardPage(*args, **kwargs))
d14a1e28 125 self._setCallbackInfo(self, PyWizardPage);self._setOORInfo(self)
423f194a
RD
126
127 def Create(*args, **kwargs):
a95a7133 128 """Create(self, Wizard parent, Bitmap bitmap=wxNullBitmap, String resource=EmptyString) -> bool"""
423f194a
RD
129 return _wizard.PyWizardPage_Create(*args, **kwargs)
130
131 def _setCallbackInfo(*args, **kwargs):
a95a7133 132 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
423f194a
RD
133 return _wizard.PyWizardPage__setCallbackInfo(*args, **kwargs)
134
7f7aa166
RD
135 def DoMoveWindow(*args, **kwargs):
136 """DoMoveWindow(self, int x, int y, int width, int height)"""
137 return _wizard.PyWizardPage_DoMoveWindow(*args, **kwargs)
423f194a 138
7f7aa166
RD
139 def DoSetSize(*args, **kwargs):
140 """DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
141 return _wizard.PyWizardPage_DoSetSize(*args, **kwargs)
423f194a 142
7f7aa166
RD
143 def DoSetClientSize(*args, **kwargs):
144 """DoSetClientSize(self, int width, int height)"""
145 return _wizard.PyWizardPage_DoSetClientSize(*args, **kwargs)
423f194a 146
7f7aa166
RD
147 def DoSetVirtualSize(*args, **kwargs):
148 """DoSetVirtualSize(self, int x, int y)"""
149 return _wizard.PyWizardPage_DoSetVirtualSize(*args, **kwargs)
423f194a 150
7f7aa166
RD
151 def DoGetSize(*args, **kwargs):
152 """DoGetSize() -> (width, height)"""
153 return _wizard.PyWizardPage_DoGetSize(*args, **kwargs)
423f194a 154
7f7aa166
RD
155 def DoGetClientSize(*args, **kwargs):
156 """DoGetClientSize() -> (width, height)"""
157 return _wizard.PyWizardPage_DoGetClientSize(*args, **kwargs)
423f194a 158
7f7aa166
RD
159 def DoGetPosition(*args, **kwargs):
160 """DoGetPosition() -> (x,y)"""
161 return _wizard.PyWizardPage_DoGetPosition(*args, **kwargs)
423f194a 162
7f7aa166
RD
163 def DoGetVirtualSize(*args, **kwargs):
164 """DoGetVirtualSize(self) -> Size"""
165 return _wizard.PyWizardPage_DoGetVirtualSize(*args, **kwargs)
423f194a 166
7f7aa166
RD
167 def DoGetBestSize(*args, **kwargs):
168 """DoGetBestSize(self) -> Size"""
169 return _wizard.PyWizardPage_DoGetBestSize(*args, **kwargs)
423f194a 170
7f7aa166
RD
171 def GetDefaultAttributes(*args, **kwargs):
172 """GetDefaultAttributes(self) -> VisualAttributes"""
173 return _wizard.PyWizardPage_GetDefaultAttributes(*args, **kwargs)
174
175 def OnInternalIdle(*args, **kwargs):
176 """OnInternalIdle(self)"""
177 return _wizard.PyWizardPage_OnInternalIdle(*args, **kwargs)
178
179 def base_DoMoveWindow(*args, **kw):
180 return PyWizardPage.DoMoveWindow(*args, **kw)
181 base_DoMoveWindow = wx._deprecated(base_DoMoveWindow,
182 "Please use PyWizardPage.DoMoveWindow instead.")
183
184 def base_DoSetSize(*args, **kw):
185 return PyWizardPage.DoSetSize(*args, **kw)
186 base_DoSetSize = wx._deprecated(base_DoSetSize,
187 "Please use PyWizardPage.DoSetSize instead.")
188
189 def base_DoSetClientSize(*args, **kw):
190 return PyWizardPage.DoSetClientSize(*args, **kw)
191 base_DoSetClientSize = wx._deprecated(base_DoSetClientSize,
192 "Please use PyWizardPage.DoSetClientSize instead.")
193
194 def base_DoSetVirtualSize(*args, **kw):
195 return PyWizardPage.DoSetVirtualSize(*args, **kw)
196 base_DoSetVirtualSize = wx._deprecated(base_DoSetVirtualSize,
197 "Please use PyWizardPage.DoSetVirtualSize instead.")
198
199 def base_DoGetSize(*args, **kw):
200 return PyWizardPage.DoGetSize(*args, **kw)
201 base_DoGetSize = wx._deprecated(base_DoGetSize,
202 "Please use PyWizardPage.DoGetSize instead.")
203
204 def base_DoGetClientSize(*args, **kw):
205 return PyWizardPage.DoGetClientSize(*args, **kw)
206 base_DoGetClientSize = wx._deprecated(base_DoGetClientSize,
207 "Please use PyWizardPage.DoGetClientSize instead.")
208
209 def base_DoGetPosition(*args, **kw):
210 return PyWizardPage.DoGetPosition(*args, **kw)
211 base_DoGetPosition = wx._deprecated(base_DoGetPosition,
212 "Please use PyWizardPage.DoGetPosition instead.")
213
214 def base_DoGetVirtualSize(*args, **kw):
215 return PyWizardPage.DoGetVirtualSize(*args, **kw)
216 base_DoGetVirtualSize = wx._deprecated(base_DoGetVirtualSize,
217 "Please use PyWizardPage.DoGetVirtualSize instead.")
218
219 def base_DoGetBestSize(*args, **kw):
220 return PyWizardPage.DoGetBestSize(*args, **kw)
221 base_DoGetBestSize = wx._deprecated(base_DoGetBestSize,
222 "Please use PyWizardPage.DoGetBestSize instead.")
223
224 def base_InitDialog(*args, **kw):
225 return PyWizardPage.InitDialog(*args, **kw)
226 base_InitDialog = wx._deprecated(base_InitDialog,
227 "Please use PyWizardPage.InitDialog instead.")
228
229 def base_TransferDataToWindow(*args, **kw):
230 return PyWizardPage.TransferDataToWindow(*args, **kw)
231 base_TransferDataToWindow = wx._deprecated(base_TransferDataToWindow,
232 "Please use PyWizardPage.TransferDataToWindow instead.")
233
234 def base_TransferDataFromWindow(*args, **kw):
235 return PyWizardPage.TransferDataFromWindow(*args, **kw)
236 base_TransferDataFromWindow = wx._deprecated(base_TransferDataFromWindow,
237 "Please use PyWizardPage.TransferDataFromWindow instead.")
238
239 def base_Validate(*args, **kw):
240 return PyWizardPage.Validate(*args, **kw)
241 base_Validate = wx._deprecated(base_Validate,
242 "Please use PyWizardPage.Validate instead.")
243
244 def base_AcceptsFocus(*args, **kw):
245 return PyWizardPage.AcceptsFocus(*args, **kw)
246 base_AcceptsFocus = wx._deprecated(base_AcceptsFocus,
247 "Please use PyWizardPage.AcceptsFocus instead.")
248
249 def base_AcceptsFocusFromKeyboard(*args, **kw):
250 return PyWizardPage.AcceptsFocusFromKeyboard(*args, **kw)
251 base_AcceptsFocusFromKeyboard = wx._deprecated(base_AcceptsFocusFromKeyboard,
252 "Please use PyWizardPage.AcceptsFocusFromKeyboard instead.")
253
254 def base_GetMaxSize(*args, **kw):
255 return PyWizardPage.GetMaxSize(*args, **kw)
256 base_GetMaxSize = wx._deprecated(base_GetMaxSize,
257 "Please use PyWizardPage.GetMaxSize instead.")
258
259 def base_AddChild(*args, **kw):
260 return PyWizardPage.AddChild(*args, **kw)
261 base_AddChild = wx._deprecated(base_AddChild,
262 "Please use PyWizardPage.AddChild instead.")
263
264 def base_RemoveChild(*args, **kw):
265 return PyWizardPage.RemoveChild(*args, **kw)
266 base_RemoveChild = wx._deprecated(base_RemoveChild,
267 "Please use PyWizardPage.RemoveChild instead.")
268
269 def base_ShouldInheritColours(*args, **kw):
270 return PyWizardPage.ShouldInheritColours(*args, **kw)
271 base_ShouldInheritColours = wx._deprecated(base_ShouldInheritColours,
272 "Please use PyWizardPage.ShouldInheritColours instead.")
273
274 def base_GetDefaultAttributes(*args, **kw):
275 return PyWizardPage.GetDefaultAttributes(*args, **kw)
276 base_GetDefaultAttributes = wx._deprecated(base_GetDefaultAttributes,
277 "Please use PyWizardPage.GetDefaultAttributes instead.")
278
279 def base_OnInternalIdle(*args, **kw):
280 return PyWizardPage.OnInternalIdle(*args, **kw)
281 base_OnInternalIdle = wx._deprecated(base_OnInternalIdle,
282 "Please use PyWizardPage.OnInternalIdle instead.")
423f194a 283
2131d850 284_wizard.PyWizardPage_swigregister(PyWizardPage)
3e1f6ec4 285
d14a1e28 286def PrePyWizardPage(*args, **kwargs):
423f194a 287 """PrePyWizardPage() -> PyWizardPage"""
d14a1e28 288 val = _wizard.new_PrePyWizardPage(*args, **kwargs)
3e1f6ec4
RD
289 return val
290
d14a1e28 291class WizardPageSimple(WizardPage):
36ed4f51 292 """Proxy of C++ WizardPageSimple class"""
1bd55598
RD
293 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
294 __repr__ = _swig_repr
295 def __init__(self, *args, **kwargs):
41f1cec7 296 """
a95a7133 297 __init__(self, Wizard parent, WizardPage prev=None, WizardPage next=None,
cbd72d4f 298 Bitmap bitmap=wxNullBitmap, wxChar resource=None) -> WizardPageSimple
41f1cec7 299 """
1bd55598 300 _wizard.WizardPageSimple_swiginit(self,_wizard.new_WizardPageSimple(*args, **kwargs))
3e1f6ec4 301 self._setOORInfo(self)
423f194a
RD
302
303 def Create(*args, **kwargs):
41f1cec7 304 """
a95a7133 305 Create(self, Wizard parent=None, WizardPage prev=None, WizardPage next=None,
cbd72d4f 306 Bitmap bitmap=wxNullBitmap, wxChar resource=None) -> bool
41f1cec7 307 """
423f194a
RD
308 return _wizard.WizardPageSimple_Create(*args, **kwargs)
309
310 def SetPrev(*args, **kwargs):
a95a7133 311 """SetPrev(self, WizardPage prev)"""
423f194a
RD
312 return _wizard.WizardPageSimple_SetPrev(*args, **kwargs)
313
314 def SetNext(*args, **kwargs):
a95a7133 315 """SetNext(self, WizardPage next)"""
423f194a
RD
316 return _wizard.WizardPageSimple_SetNext(*args, **kwargs)
317
318 def Chain(*args, **kwargs):
d6c14a4c 319 """Chain(WizardPageSimple first, WizardPageSimple second)"""
423f194a
RD
320 return _wizard.WizardPageSimple_Chain(*args, **kwargs)
321
322 Chain = staticmethod(Chain)
2131d850 323_wizard.WizardPageSimple_swigregister(WizardPageSimple)
3e1f6ec4 324
d14a1e28 325def PreWizardPageSimple(*args, **kwargs):
423f194a 326 """PreWizardPageSimple() -> WizardPageSimple"""
d14a1e28 327 val = _wizard.new_PreWizardPageSimple(*args, **kwargs)
3e1f6ec4
RD
328 return val
329
423f194a 330def WizardPageSimple_Chain(*args, **kwargs):
1bd55598
RD
331 """WizardPageSimple_Chain(WizardPageSimple first, WizardPageSimple second)"""
332 return _wizard.WizardPageSimple_Chain(*args, **kwargs)
3e1f6ec4 333
d55e5bfc 334class Wizard(_windows.Dialog):
36ed4f51 335 """Proxy of C++ Wizard class"""
1bd55598
RD
336 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
337 __repr__ = _swig_repr
338 def __init__(self, *args, **kwargs):
41f1cec7 339 """
a95a7133 340 __init__(self, Window parent, int id=-1, String title=EmptyString,
cbd72d4f 341 Bitmap bitmap=wxNullBitmap, Point pos=DefaultPosition,
41f1cec7
RD
342 long style=DEFAULT_DIALOG_STYLE) -> Wizard
343 """
1bd55598 344 _wizard.Wizard_swiginit(self,_wizard.new_Wizard(*args, **kwargs))
3e1f6ec4 345 self._setOORInfo(self)
423f194a
RD
346
347 def Create(*args, **kwargs):
41f1cec7 348 """
a95a7133 349 Create(self, Window parent, int id=-1, String title=EmptyString,
cbd72d4f 350 Bitmap bitmap=wxNullBitmap, Point pos=DefaultPosition) -> bool
41f1cec7 351 """
423f194a
RD
352 return _wizard.Wizard_Create(*args, **kwargs)
353
354 def Init(*args, **kwargs):
a95a7133 355 """Init(self)"""
423f194a
RD
356 return _wizard.Wizard_Init(*args, **kwargs)
357
358 def RunWizard(*args, **kwargs):
a95a7133 359 """RunWizard(self, WizardPage firstPage) -> bool"""
423f194a
RD
360 return _wizard.Wizard_RunWizard(*args, **kwargs)
361
362 def GetCurrentPage(*args, **kwargs):
a95a7133 363 """GetCurrentPage(self) -> WizardPage"""
423f194a
RD
364 return _wizard.Wizard_GetCurrentPage(*args, **kwargs)
365
366 def SetPageSize(*args, **kwargs):
a95a7133 367 """SetPageSize(self, Size size)"""
423f194a
RD
368 return _wizard.Wizard_SetPageSize(*args, **kwargs)
369
370 def GetPageSize(*args, **kwargs):
a95a7133 371 """GetPageSize(self) -> Size"""
423f194a
RD
372 return _wizard.Wizard_GetPageSize(*args, **kwargs)
373
374 def FitToPage(*args, **kwargs):
a95a7133 375 """FitToPage(self, WizardPage firstPage)"""
423f194a
RD
376 return _wizard.Wizard_FitToPage(*args, **kwargs)
377
378 def GetPageAreaSizer(*args, **kwargs):
a95a7133 379 """GetPageAreaSizer(self) -> Sizer"""
423f194a
RD
380 return _wizard.Wizard_GetPageAreaSizer(*args, **kwargs)
381
382 def SetBorder(*args, **kwargs):
a95a7133 383 """SetBorder(self, int border)"""
423f194a
RD
384 return _wizard.Wizard_SetBorder(*args, **kwargs)
385
386 def IsRunning(*args, **kwargs):
a95a7133 387 """IsRunning(self) -> bool"""
423f194a
RD
388 return _wizard.Wizard_IsRunning(*args, **kwargs)
389
390 def ShowPage(*args, **kwargs):
a95a7133 391 """ShowPage(self, WizardPage page, bool goingForward=True) -> bool"""
423f194a
RD
392 return _wizard.Wizard_ShowPage(*args, **kwargs)
393
394 def HasNextPage(*args, **kwargs):
a95a7133 395 """HasNextPage(self, WizardPage page) -> bool"""
423f194a
RD
396 return _wizard.Wizard_HasNextPage(*args, **kwargs)
397
398 def HasPrevPage(*args, **kwargs):
a95a7133 399 """HasPrevPage(self, WizardPage page) -> bool"""
423f194a
RD
400 return _wizard.Wizard_HasPrevPage(*args, **kwargs)
401
2131d850 402_wizard.Wizard_swigregister(Wizard)
3e1f6ec4 403
d14a1e28 404def PreWizard(*args, **kwargs):
423f194a 405 """PreWizard() -> Wizard"""
d14a1e28 406 val = _wizard.new_PreWizard(*args, **kwargs)
3e1f6ec4
RD
407 return val
408
409
32fe5131 410