]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/msw/wizard.py
Make wx.MenuItem.Destroy a NOP since the regular garbage collection
[wxWidgets.git] / wxPython / src / msw / wizard.py
CommitLineData
554f62e9 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
caef1a4d
RD
4"""
5`Wizard` is a dialog class that guides the user through a sequence of steps,
6or pages.
7"""
8
d14a1e28 9import _wizard
554f62e9
RD
10import new
11new_instancemethod = new.instancemethod
093d3ff1 12def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
554f62e9 13 if (name == "thisown"): return self.this.own(value)
093d3ff1 14 if (name == "this"):
554f62e9
RD
15 if type(value).__name__ == 'PySwigObject':
16 self.__dict__[name] = value
093d3ff1
RD
17 return
18 method = class_type.__swig_setmethods__.get(name,None)
19 if method: return method(self,value)
554f62e9 20 if (not static) or hasattr(self,name):
093d3ff1
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):
554f62e9 29 if (name == "thisown"): return self.this.own()
093d3ff1
RD
30 method = class_type.__swig_getmethods__.get(name,None)
31 if method: return method(self)
32 raise AttributeError,name
33
554f62e9
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
093d3ff1
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):
554f62e9
RD
51 if (name == "thisown"): return self.this.own(value)
52 if hasattr(self,name) or (name == "this"):
093d3ff1
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
c24da6d6 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):
093d3ff1 76 """Proxy of C++ WizardEvent class"""
554f62e9
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 """
f460c29d 81 __init__(self, EventType type=wxEVT_NULL, int id=-1, bool direction=True,
41f1cec7
RD
82 WizardPage page=None) -> WizardEvent
83 """
554f62e9 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
e70b4d2d
RD
93 Direction = property(GetDirection,doc="See `GetDirection`")
94 Page = property(GetPage,doc="See `GetPage`")
2131d850 95_wizard.WizardEvent_swigregister(WizardEvent)
d14a1e28 96
d55e5bfc 97class WizardPage(_windows.Panel):
093d3ff1 98 """Proxy of C++ WizardPage class"""
554f62e9
RD
99 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
100 def __init__(self): raise AttributeError, "No constructor defined"
101 __repr__ = _swig_repr
423f194a 102 def Create(*args, **kwargs):
a95a7133 103 """Create(self, Wizard parent, Bitmap bitmap=wxNullBitmap, String resource=EmptyString) -> bool"""
423f194a
RD
104 return _wizard.WizardPage_Create(*args, **kwargs)
105
106 def GetPrev(*args, **kwargs):
a95a7133 107 """GetPrev(self) -> WizardPage"""
423f194a
RD
108 return _wizard.WizardPage_GetPrev(*args, **kwargs)
109
110 def GetNext(*args, **kwargs):
a95a7133 111 """GetNext(self) -> WizardPage"""
423f194a
RD
112 return _wizard.WizardPage_GetNext(*args, **kwargs)
113
114 def GetBitmap(*args, **kwargs):
a95a7133 115 """GetBitmap(self) -> Bitmap"""
423f194a
RD
116 return _wizard.WizardPage_GetBitmap(*args, **kwargs)
117
e70b4d2d
RD
118 Bitmap = property(GetBitmap,doc="See `GetBitmap`")
119 Next = property(GetNext,doc="See `GetNext`")
120 Prev = property(GetPrev,doc="See `GetPrev`")
2131d850 121_wizard.WizardPage_swigregister(WizardPage)
d14a1e28
RD
122
123class PyWizardPage(WizardPage):
093d3ff1 124 """Proxy of C++ PyWizardPage class"""
554f62e9
RD
125 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
126 __repr__ = _swig_repr
127 def __init__(self, *args, **kwargs):
a95a7133 128 """__init__(self, Wizard parent, Bitmap bitmap=&wxNullBitmap, String resource=&wxPyEmptyString) -> PyWizardPage"""
554f62e9 129 _wizard.PyWizardPage_swiginit(self,_wizard.new_PyWizardPage(*args, **kwargs))
c25f90f6 130 self._setOORInfo(self);PyWizardPage._setCallbackInfo(self, self, PyWizardPage)
423f194a
RD
131
132 def Create(*args, **kwargs):
a95a7133 133 """Create(self, Wizard parent, Bitmap bitmap=wxNullBitmap, String resource=EmptyString) -> bool"""
423f194a
RD
134 return _wizard.PyWizardPage_Create(*args, **kwargs)
135
136 def _setCallbackInfo(*args, **kwargs):
a95a7133 137 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
423f194a
RD
138 return _wizard.PyWizardPage__setCallbackInfo(*args, **kwargs)
139
b06b3e70
RD
140 def DoMoveWindow(*args, **kwargs):
141 """DoMoveWindow(self, int x, int y, int width, int height)"""
142 return _wizard.PyWizardPage_DoMoveWindow(*args, **kwargs)
423f194a 143
b06b3e70
RD
144 def DoSetSize(*args, **kwargs):
145 """DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
146 return _wizard.PyWizardPage_DoSetSize(*args, **kwargs)
423f194a 147
b06b3e70
RD
148 def DoSetClientSize(*args, **kwargs):
149 """DoSetClientSize(self, int width, int height)"""
150 return _wizard.PyWizardPage_DoSetClientSize(*args, **kwargs)
423f194a 151
b06b3e70
RD
152 def DoSetVirtualSize(*args, **kwargs):
153 """DoSetVirtualSize(self, int x, int y)"""
154 return _wizard.PyWizardPage_DoSetVirtualSize(*args, **kwargs)
423f194a 155
b06b3e70
RD
156 def DoGetSize(*args, **kwargs):
157 """DoGetSize() -> (width, height)"""
158 return _wizard.PyWizardPage_DoGetSize(*args, **kwargs)
423f194a 159
b06b3e70
RD
160 def DoGetClientSize(*args, **kwargs):
161 """DoGetClientSize() -> (width, height)"""
162 return _wizard.PyWizardPage_DoGetClientSize(*args, **kwargs)
423f194a 163
b06b3e70
RD
164 def DoGetPosition(*args, **kwargs):
165 """DoGetPosition() -> (x,y)"""
166 return _wizard.PyWizardPage_DoGetPosition(*args, **kwargs)
423f194a 167
b06b3e70
RD
168 def DoGetVirtualSize(*args, **kwargs):
169 """DoGetVirtualSize(self) -> Size"""
170 return _wizard.PyWizardPage_DoGetVirtualSize(*args, **kwargs)
423f194a 171
b06b3e70
RD
172 def DoGetBestSize(*args, **kwargs):
173 """DoGetBestSize(self) -> Size"""
174 return _wizard.PyWizardPage_DoGetBestSize(*args, **kwargs)
423f194a 175
b06b3e70
RD
176 def GetDefaultAttributes(*args, **kwargs):
177 """GetDefaultAttributes(self) -> VisualAttributes"""
178 return _wizard.PyWizardPage_GetDefaultAttributes(*args, **kwargs)
179
180 def OnInternalIdle(*args, **kwargs):
181 """OnInternalIdle(self)"""
182 return _wizard.PyWizardPage_OnInternalIdle(*args, **kwargs)
183
184 def base_DoMoveWindow(*args, **kw):
185 return PyWizardPage.DoMoveWindow(*args, **kw)
186 base_DoMoveWindow = wx._deprecated(base_DoMoveWindow,
187 "Please use PyWizardPage.DoMoveWindow instead.")
188
189 def base_DoSetSize(*args, **kw):
190 return PyWizardPage.DoSetSize(*args, **kw)
191 base_DoSetSize = wx._deprecated(base_DoSetSize,
192 "Please use PyWizardPage.DoSetSize instead.")
193
194 def base_DoSetClientSize(*args, **kw):
195 return PyWizardPage.DoSetClientSize(*args, **kw)
196 base_DoSetClientSize = wx._deprecated(base_DoSetClientSize,
197 "Please use PyWizardPage.DoSetClientSize instead.")
198
199 def base_DoSetVirtualSize(*args, **kw):
200 return PyWizardPage.DoSetVirtualSize(*args, **kw)
201 base_DoSetVirtualSize = wx._deprecated(base_DoSetVirtualSize,
202 "Please use PyWizardPage.DoSetVirtualSize instead.")
203
204 def base_DoGetSize(*args, **kw):
205 return PyWizardPage.DoGetSize(*args, **kw)
206 base_DoGetSize = wx._deprecated(base_DoGetSize,
207 "Please use PyWizardPage.DoGetSize instead.")
208
209 def base_DoGetClientSize(*args, **kw):
210 return PyWizardPage.DoGetClientSize(*args, **kw)
211 base_DoGetClientSize = wx._deprecated(base_DoGetClientSize,
212 "Please use PyWizardPage.DoGetClientSize instead.")
213
214 def base_DoGetPosition(*args, **kw):
215 return PyWizardPage.DoGetPosition(*args, **kw)
216 base_DoGetPosition = wx._deprecated(base_DoGetPosition,
217 "Please use PyWizardPage.DoGetPosition instead.")
218
219 def base_DoGetVirtualSize(*args, **kw):
220 return PyWizardPage.DoGetVirtualSize(*args, **kw)
221 base_DoGetVirtualSize = wx._deprecated(base_DoGetVirtualSize,
222 "Please use PyWizardPage.DoGetVirtualSize instead.")
223
224 def base_DoGetBestSize(*args, **kw):
225 return PyWizardPage.DoGetBestSize(*args, **kw)
226 base_DoGetBestSize = wx._deprecated(base_DoGetBestSize,
227 "Please use PyWizardPage.DoGetBestSize instead.")
228
229 def base_InitDialog(*args, **kw):
230 return PyWizardPage.InitDialog(*args, **kw)
231 base_InitDialog = wx._deprecated(base_InitDialog,
232 "Please use PyWizardPage.InitDialog instead.")
233
234 def base_TransferDataToWindow(*args, **kw):
235 return PyWizardPage.TransferDataToWindow(*args, **kw)
236 base_TransferDataToWindow = wx._deprecated(base_TransferDataToWindow,
237 "Please use PyWizardPage.TransferDataToWindow instead.")
238
239 def base_TransferDataFromWindow(*args, **kw):
240 return PyWizardPage.TransferDataFromWindow(*args, **kw)
241 base_TransferDataFromWindow = wx._deprecated(base_TransferDataFromWindow,
242 "Please use PyWizardPage.TransferDataFromWindow instead.")
243
244 def base_Validate(*args, **kw):
245 return PyWizardPage.Validate(*args, **kw)
246 base_Validate = wx._deprecated(base_Validate,
247 "Please use PyWizardPage.Validate instead.")
248
249 def base_AcceptsFocus(*args, **kw):
250 return PyWizardPage.AcceptsFocus(*args, **kw)
251 base_AcceptsFocus = wx._deprecated(base_AcceptsFocus,
252 "Please use PyWizardPage.AcceptsFocus instead.")
253
254 def base_AcceptsFocusFromKeyboard(*args, **kw):
255 return PyWizardPage.AcceptsFocusFromKeyboard(*args, **kw)
256 base_AcceptsFocusFromKeyboard = wx._deprecated(base_AcceptsFocusFromKeyboard,
257 "Please use PyWizardPage.AcceptsFocusFromKeyboard instead.")
258
259 def base_GetMaxSize(*args, **kw):
260 return PyWizardPage.GetMaxSize(*args, **kw)
261 base_GetMaxSize = wx._deprecated(base_GetMaxSize,
262 "Please use PyWizardPage.GetMaxSize instead.")
263
264 def base_AddChild(*args, **kw):
265 return PyWizardPage.AddChild(*args, **kw)
266 base_AddChild = wx._deprecated(base_AddChild,
267 "Please use PyWizardPage.AddChild instead.")
268
269 def base_RemoveChild(*args, **kw):
270 return PyWizardPage.RemoveChild(*args, **kw)
271 base_RemoveChild = wx._deprecated(base_RemoveChild,
272 "Please use PyWizardPage.RemoveChild instead.")
273
274 def base_ShouldInheritColours(*args, **kw):
275 return PyWizardPage.ShouldInheritColours(*args, **kw)
276 base_ShouldInheritColours = wx._deprecated(base_ShouldInheritColours,
277 "Please use PyWizardPage.ShouldInheritColours instead.")
278
279 def base_GetDefaultAttributes(*args, **kw):
280 return PyWizardPage.GetDefaultAttributes(*args, **kw)
281 base_GetDefaultAttributes = wx._deprecated(base_GetDefaultAttributes,
282 "Please use PyWizardPage.GetDefaultAttributes instead.")
283
284 def base_OnInternalIdle(*args, **kw):
285 return PyWizardPage.OnInternalIdle(*args, **kw)
286 base_OnInternalIdle = wx._deprecated(base_OnInternalIdle,
287 "Please use PyWizardPage.OnInternalIdle instead.")
423f194a 288
2131d850 289_wizard.PyWizardPage_swigregister(PyWizardPage)
af83019e 290
d14a1e28 291def PrePyWizardPage(*args, **kwargs):
423f194a 292 """PrePyWizardPage() -> PyWizardPage"""
d14a1e28 293 val = _wizard.new_PrePyWizardPage(*args, **kwargs)
af83019e
RD
294 return val
295
d14a1e28 296class WizardPageSimple(WizardPage):
093d3ff1 297 """Proxy of C++ WizardPageSimple class"""
554f62e9
RD
298 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
299 __repr__ = _swig_repr
300 def __init__(self, *args, **kwargs):
41f1cec7 301 """
a95a7133 302 __init__(self, Wizard parent, WizardPage prev=None, WizardPage next=None,
d03fd34d 303 Bitmap bitmap=wxNullBitmap, wxChar resource=None) -> WizardPageSimple
41f1cec7 304 """
554f62e9 305 _wizard.WizardPageSimple_swiginit(self,_wizard.new_WizardPageSimple(*args, **kwargs))
af83019e 306 self._setOORInfo(self)
423f194a
RD
307
308 def Create(*args, **kwargs):
41f1cec7 309 """
a95a7133 310 Create(self, Wizard parent=None, WizardPage prev=None, WizardPage next=None,
d03fd34d 311 Bitmap bitmap=wxNullBitmap, wxChar resource=None) -> bool
41f1cec7 312 """
423f194a
RD
313 return _wizard.WizardPageSimple_Create(*args, **kwargs)
314
315 def SetPrev(*args, **kwargs):
a95a7133 316 """SetPrev(self, WizardPage prev)"""
423f194a
RD
317 return _wizard.WizardPageSimple_SetPrev(*args, **kwargs)
318
319 def SetNext(*args, **kwargs):
a95a7133 320 """SetNext(self, WizardPage next)"""
423f194a
RD
321 return _wizard.WizardPageSimple_SetNext(*args, **kwargs)
322
323 def Chain(*args, **kwargs):
c24da6d6 324 """Chain(WizardPageSimple first, WizardPageSimple second)"""
423f194a
RD
325 return _wizard.WizardPageSimple_Chain(*args, **kwargs)
326
327 Chain = staticmethod(Chain)
2131d850 328_wizard.WizardPageSimple_swigregister(WizardPageSimple)
af83019e 329
d14a1e28 330def PreWizardPageSimple(*args, **kwargs):
423f194a 331 """PreWizardPageSimple() -> WizardPageSimple"""
d14a1e28 332 val = _wizard.new_PreWizardPageSimple(*args, **kwargs)
af83019e
RD
333 return val
334
423f194a 335def WizardPageSimple_Chain(*args, **kwargs):
554f62e9
RD
336 """WizardPageSimple_Chain(WizardPageSimple first, WizardPageSimple second)"""
337 return _wizard.WizardPageSimple_Chain(*args, **kwargs)
af83019e 338
d55e5bfc 339class Wizard(_windows.Dialog):
093d3ff1 340 """Proxy of C++ Wizard class"""
554f62e9
RD
341 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
342 __repr__ = _swig_repr
343 def __init__(self, *args, **kwargs):
41f1cec7 344 """
a95a7133 345 __init__(self, Window parent, int id=-1, String title=EmptyString,
d03fd34d 346 Bitmap bitmap=wxNullBitmap, Point pos=DefaultPosition,
41f1cec7
RD
347 long style=DEFAULT_DIALOG_STYLE) -> Wizard
348 """
554f62e9 349 _wizard.Wizard_swiginit(self,_wizard.new_Wizard(*args, **kwargs))
af83019e 350 self._setOORInfo(self)
423f194a
RD
351
352 def Create(*args, **kwargs):
41f1cec7 353 """
a95a7133 354 Create(self, Window parent, int id=-1, String title=EmptyString,
d03fd34d 355 Bitmap bitmap=wxNullBitmap, Point pos=DefaultPosition) -> bool
41f1cec7 356 """
423f194a
RD
357 return _wizard.Wizard_Create(*args, **kwargs)
358
359 def Init(*args, **kwargs):
a95a7133 360 """Init(self)"""
423f194a
RD
361 return _wizard.Wizard_Init(*args, **kwargs)
362
363 def RunWizard(*args, **kwargs):
a95a7133 364 """RunWizard(self, WizardPage firstPage) -> bool"""
423f194a
RD
365 return _wizard.Wizard_RunWizard(*args, **kwargs)
366
367 def GetCurrentPage(*args, **kwargs):
a95a7133 368 """GetCurrentPage(self) -> WizardPage"""
423f194a
RD
369 return _wizard.Wizard_GetCurrentPage(*args, **kwargs)
370
371 def SetPageSize(*args, **kwargs):
a95a7133 372 """SetPageSize(self, Size size)"""
423f194a
RD
373 return _wizard.Wizard_SetPageSize(*args, **kwargs)
374
375 def GetPageSize(*args, **kwargs):
a95a7133 376 """GetPageSize(self) -> Size"""
423f194a
RD
377 return _wizard.Wizard_GetPageSize(*args, **kwargs)
378
379 def FitToPage(*args, **kwargs):
a95a7133 380 """FitToPage(self, WizardPage firstPage)"""
423f194a
RD
381 return _wizard.Wizard_FitToPage(*args, **kwargs)
382
383 def GetPageAreaSizer(*args, **kwargs):
a95a7133 384 """GetPageAreaSizer(self) -> Sizer"""
423f194a
RD
385 return _wizard.Wizard_GetPageAreaSizer(*args, **kwargs)
386
387 def SetBorder(*args, **kwargs):
a95a7133 388 """SetBorder(self, int border)"""
423f194a
RD
389 return _wizard.Wizard_SetBorder(*args, **kwargs)
390
391 def IsRunning(*args, **kwargs):
a95a7133 392 """IsRunning(self) -> bool"""
423f194a
RD
393 return _wizard.Wizard_IsRunning(*args, **kwargs)
394
395 def ShowPage(*args, **kwargs):
a95a7133 396 """ShowPage(self, WizardPage page, bool goingForward=True) -> bool"""
423f194a
RD
397 return _wizard.Wizard_ShowPage(*args, **kwargs)
398
399 def HasNextPage(*args, **kwargs):
a95a7133 400 """HasNextPage(self, WizardPage page) -> bool"""
423f194a
RD
401 return _wizard.Wizard_HasNextPage(*args, **kwargs)
402
403 def HasPrevPage(*args, **kwargs):
a95a7133 404 """HasPrevPage(self, WizardPage page) -> bool"""
423f194a
RD
405 return _wizard.Wizard_HasPrevPage(*args, **kwargs)
406
e70b4d2d
RD
407 CurrentPage = property(GetCurrentPage,doc="See `GetCurrentPage`")
408 PageAreaSizer = property(GetPageAreaSizer,doc="See `GetPageAreaSizer`")
409 PageSize = property(GetPageSize,SetPageSize,doc="See `GetPageSize` and `SetPageSize`")
2131d850 410_wizard.Wizard_swigregister(Wizard)
af83019e 411
d14a1e28 412def PreWizard(*args, **kwargs):
423f194a 413 """PreWizard() -> Wizard"""
d14a1e28 414 val = _wizard.new_PreWizard(*args, **kwargs)
af83019e
RD
415 return val
416
417
7449af73 418