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