]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/gtk/wizard.py
reSWIGged
[wxWidgets.git] / wxPython / src / gtk / wizard.py
CommitLineData
c81fd4b9 1# This file was created automatically by SWIG.
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
RD
9import _wizard
10
093d3ff1
RD
11def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
12 if (name == "this"):
13 if isinstance(value, class_type):
14 self.__dict__[name] = value.this
15 if hasattr(value,"thisown"): self.__dict__["thisown"] = value.thisown
16 del value.thisown
17 return
18 method = class_type.__swig_setmethods__.get(name,None)
19 if method: return method(self,value)
20 if (not static) or hasattr(self,name) or (name == "thisown"):
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):
29 method = class_type.__swig_getmethods__.get(name,None)
30 if method: return method(self)
31 raise AttributeError,name
32
33import types
34try:
35 _object = types.ObjectType
36 _newclass = 1
37except AttributeError:
38 class _object : pass
39 _newclass = 0
40del types
41
42
43def _swig_setattr_nondynamic_method(set):
44 def set_attr(self,name,value):
45 if hasattr(self,name) or (name in ("this", "thisown")):
46 set(self,name,value)
47 else:
48 raise AttributeError("You cannot add attributes to %s" % self)
49 return set_attr
50
51
54f9ee45
RD
52import _windows
53import _core
54wx = _core
66c033b4 55__docfilter__ = wx.__DocFilter(globals())
d14a1e28
RD
56WIZARD_EX_HELPBUTTON = _wizard.WIZARD_EX_HELPBUTTON
57wxEVT_WIZARD_PAGE_CHANGED = _wizard.wxEVT_WIZARD_PAGE_CHANGED
58wxEVT_WIZARD_PAGE_CHANGING = _wizard.wxEVT_WIZARD_PAGE_CHANGING
59wxEVT_WIZARD_CANCEL = _wizard.wxEVT_WIZARD_CANCEL
60wxEVT_WIZARD_HELP = _wizard.wxEVT_WIZARD_HELP
61wxEVT_WIZARD_FINISHED = _wizard.wxEVT_WIZARD_FINISHED
62EVT_WIZARD_PAGE_CHANGED = wx.PyEventBinder( wxEVT_WIZARD_PAGE_CHANGED, 1)
63EVT_WIZARD_PAGE_CHANGING = wx.PyEventBinder( wxEVT_WIZARD_PAGE_CHANGING, 1)
64EVT_WIZARD_CANCEL = wx.PyEventBinder( wxEVT_WIZARD_CANCEL, 1)
65EVT_WIZARD_HELP = wx.PyEventBinder( wxEVT_WIZARD_HELP, 1)
66EVT_WIZARD_FINISHED = wx.PyEventBinder( wxEVT_WIZARD_FINISHED, 1)
67
54f9ee45 68class WizardEvent(_core.NotifyEvent):
093d3ff1 69 """Proxy of C++ WizardEvent class"""
e811c8ce
RD
70 def __repr__(self):
71 return "<%s.%s; proxy of C++ wxWizardEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 72 def __init__(self, *args, **kwargs):
0df68c9f 73 """
a95a7133 74 __init__(self, wxEventType type=wxEVT_NULL, int id=-1, bool direction=True,
0df68c9f
RD
75 WizardPage page=None) -> WizardEvent
76 """
d14a1e28
RD
77 newobj = _wizard.new_WizardEvent(*args, **kwargs)
78 self.this = newobj.this
c81fd4b9 79 self.thisown = 1
d14a1e28 80 del newobj.thisown
e811c8ce 81 def GetDirection(*args, **kwargs):
a95a7133 82 """GetDirection(self) -> bool"""
e811c8ce
RD
83 return _wizard.WizardEvent_GetDirection(*args, **kwargs)
84
85 def GetPage(*args, **kwargs):
a95a7133 86 """GetPage(self) -> WizardPage"""
e811c8ce
RD
87 return _wizard.WizardEvent_GetPage(*args, **kwargs)
88
c81fd4b9 89
d14a1e28
RD
90class WizardEventPtr(WizardEvent):
91 def __init__(self, this):
c81fd4b9 92 self.this = this
d14a1e28
RD
93 if not hasattr(self,"thisown"): self.thisown = 0
94 self.__class__ = WizardEvent
95_wizard.WizardEvent_swigregister(WizardEventPtr)
96
54f9ee45 97class WizardPage(_windows.Panel):
093d3ff1 98 """Proxy of C++ WizardPage class"""
d14a1e28 99 def __init__(self): raise RuntimeError, "No constructor defined"
c81fd4b9 100 def __repr__(self):
d14a1e28 101 return "<%s.%s; proxy of C++ wxWizardPage instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
e811c8ce 102 def Create(*args, **kwargs):
a95a7133 103 """Create(self, Wizard parent, Bitmap bitmap=wxNullBitmap, String resource=EmptyString) -> bool"""
e811c8ce
RD
104 return _wizard.WizardPage_Create(*args, **kwargs)
105
106 def GetPrev(*args, **kwargs):
a95a7133 107 """GetPrev(self) -> WizardPage"""
e811c8ce
RD
108 return _wizard.WizardPage_GetPrev(*args, **kwargs)
109
110 def GetNext(*args, **kwargs):
a95a7133 111 """GetNext(self) -> WizardPage"""
e811c8ce
RD
112 return _wizard.WizardPage_GetNext(*args, **kwargs)
113
114 def GetBitmap(*args, **kwargs):
a95a7133 115 """GetBitmap(self) -> Bitmap"""
e811c8ce
RD
116 return _wizard.WizardPage_GetBitmap(*args, **kwargs)
117
c81fd4b9 118
d14a1e28
RD
119class WizardPagePtr(WizardPage):
120 def __init__(self, this):
c81fd4b9 121 self.this = this
d14a1e28
RD
122 if not hasattr(self,"thisown"): self.thisown = 0
123 self.__class__ = WizardPage
124_wizard.WizardPage_swigregister(WizardPagePtr)
125
126class PyWizardPage(WizardPage):
093d3ff1 127 """Proxy of C++ PyWizardPage class"""
e811c8ce
RD
128 def __repr__(self):
129 return "<%s.%s; proxy of C++ wxPyWizardPage instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 130 def __init__(self, *args, **kwargs):
a95a7133 131 """__init__(self, Wizard parent, Bitmap bitmap=&wxNullBitmap, String resource=&wxPyEmptyString) -> PyWizardPage"""
d14a1e28
RD
132 newobj = _wizard.new_PyWizardPage(*args, **kwargs)
133 self.this = newobj.this
c81fd4b9 134 self.thisown = 1
d14a1e28
RD
135 del newobj.thisown
136 self._setCallbackInfo(self, PyWizardPage);self._setOORInfo(self)
e811c8ce
RD
137
138 def Create(*args, **kwargs):
a95a7133 139 """Create(self, Wizard parent, Bitmap bitmap=wxNullBitmap, String resource=EmptyString) -> bool"""
e811c8ce
RD
140 return _wizard.PyWizardPage_Create(*args, **kwargs)
141
142 def _setCallbackInfo(*args, **kwargs):
a95a7133 143 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
e811c8ce
RD
144 return _wizard.PyWizardPage__setCallbackInfo(*args, **kwargs)
145
146 def base_DoMoveWindow(*args, **kwargs):
a95a7133 147 """base_DoMoveWindow(self, int x, int y, int width, int height)"""
e811c8ce
RD
148 return _wizard.PyWizardPage_base_DoMoveWindow(*args, **kwargs)
149
150 def base_DoSetSize(*args, **kwargs):
a95a7133 151 """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
e811c8ce
RD
152 return _wizard.PyWizardPage_base_DoSetSize(*args, **kwargs)
153
154 def base_DoSetClientSize(*args, **kwargs):
a95a7133 155 """base_DoSetClientSize(self, int width, int height)"""
e811c8ce
RD
156 return _wizard.PyWizardPage_base_DoSetClientSize(*args, **kwargs)
157
158 def base_DoSetVirtualSize(*args, **kwargs):
a95a7133 159 """base_DoSetVirtualSize(self, int x, int y)"""
e811c8ce
RD
160 return _wizard.PyWizardPage_base_DoSetVirtualSize(*args, **kwargs)
161
162 def base_DoGetSize(*args, **kwargs):
322913ce 163 """base_DoGetSize() -> (width, height)"""
e811c8ce
RD
164 return _wizard.PyWizardPage_base_DoGetSize(*args, **kwargs)
165
166 def base_DoGetClientSize(*args, **kwargs):
322913ce 167 """base_DoGetClientSize() -> (width, height)"""
e811c8ce
RD
168 return _wizard.PyWizardPage_base_DoGetClientSize(*args, **kwargs)
169
170 def base_DoGetPosition(*args, **kwargs):
322913ce 171 """base_DoGetPosition() -> (x,y)"""
e811c8ce
RD
172 return _wizard.PyWizardPage_base_DoGetPosition(*args, **kwargs)
173
174 def base_DoGetVirtualSize(*args, **kwargs):
a95a7133 175 """base_DoGetVirtualSize(self) -> Size"""
e811c8ce
RD
176 return _wizard.PyWizardPage_base_DoGetVirtualSize(*args, **kwargs)
177
178 def base_DoGetBestSize(*args, **kwargs):
a95a7133 179 """base_DoGetBestSize(self) -> Size"""
e811c8ce
RD
180 return _wizard.PyWizardPage_base_DoGetBestSize(*args, **kwargs)
181
182 def base_InitDialog(*args, **kwargs):
a95a7133 183 """base_InitDialog(self)"""
e811c8ce
RD
184 return _wizard.PyWizardPage_base_InitDialog(*args, **kwargs)
185
186 def base_TransferDataToWindow(*args, **kwargs):
a95a7133 187 """base_TransferDataToWindow(self) -> bool"""
e811c8ce
RD
188 return _wizard.PyWizardPage_base_TransferDataToWindow(*args, **kwargs)
189
190 def base_TransferDataFromWindow(*args, **kwargs):
a95a7133 191 """base_TransferDataFromWindow(self) -> bool"""
e811c8ce
RD
192 return _wizard.PyWizardPage_base_TransferDataFromWindow(*args, **kwargs)
193
194 def base_Validate(*args, **kwargs):
a95a7133 195 """base_Validate(self) -> bool"""
e811c8ce
RD
196 return _wizard.PyWizardPage_base_Validate(*args, **kwargs)
197
198 def base_AcceptsFocus(*args, **kwargs):
a95a7133 199 """base_AcceptsFocus(self) -> bool"""
e811c8ce
RD
200 return _wizard.PyWizardPage_base_AcceptsFocus(*args, **kwargs)
201
202 def base_AcceptsFocusFromKeyboard(*args, **kwargs):
a95a7133 203 """base_AcceptsFocusFromKeyboard(self) -> bool"""
e811c8ce
RD
204 return _wizard.PyWizardPage_base_AcceptsFocusFromKeyboard(*args, **kwargs)
205
206 def base_GetMaxSize(*args, **kwargs):
a95a7133 207 """base_GetMaxSize(self) -> Size"""
e811c8ce
RD
208 return _wizard.PyWizardPage_base_GetMaxSize(*args, **kwargs)
209
210 def base_AddChild(*args, **kwargs):
a95a7133 211 """base_AddChild(self, Window child)"""
e811c8ce
RD
212 return _wizard.PyWizardPage_base_AddChild(*args, **kwargs)
213
214 def base_RemoveChild(*args, **kwargs):
a95a7133 215 """base_RemoveChild(self, Window child)"""
e811c8ce
RD
216 return _wizard.PyWizardPage_base_RemoveChild(*args, **kwargs)
217
c81fd4b9 218
d14a1e28
RD
219class PyWizardPagePtr(PyWizardPage):
220 def __init__(self, this):
221 self.this = this
222 if not hasattr(self,"thisown"): self.thisown = 0
223 self.__class__ = PyWizardPage
224_wizard.PyWizardPage_swigregister(PyWizardPagePtr)
c81fd4b9 225
d14a1e28 226def PrePyWizardPage(*args, **kwargs):
e811c8ce 227 """PrePyWizardPage() -> PyWizardPage"""
d14a1e28 228 val = _wizard.new_PrePyWizardPage(*args, **kwargs)
c81fd4b9 229 val.thisown = 1
c81fd4b9
RD
230 return val
231
d14a1e28 232class WizardPageSimple(WizardPage):
093d3ff1 233 """Proxy of C++ WizardPageSimple class"""
e811c8ce
RD
234 def __repr__(self):
235 return "<%s.%s; proxy of C++ wxWizardPageSimple instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 236 def __init__(self, *args, **kwargs):
0df68c9f 237 """
a95a7133 238 __init__(self, Wizard parent, WizardPage prev=None, WizardPage next=None,
196addbf 239 Bitmap bitmap=wxNullBitmap, wxChar resource=None) -> WizardPageSimple
0df68c9f 240 """
d14a1e28
RD
241 newobj = _wizard.new_WizardPageSimple(*args, **kwargs)
242 self.this = newobj.this
c81fd4b9 243 self.thisown = 1
d14a1e28 244 del newobj.thisown
c81fd4b9 245 self._setOORInfo(self)
e811c8ce
RD
246
247 def Create(*args, **kwargs):
0df68c9f 248 """
a95a7133 249 Create(self, Wizard parent=None, WizardPage prev=None, WizardPage next=None,
196addbf 250 Bitmap bitmap=wxNullBitmap, wxChar resource=None) -> bool
0df68c9f 251 """
e811c8ce
RD
252 return _wizard.WizardPageSimple_Create(*args, **kwargs)
253
254 def SetPrev(*args, **kwargs):
a95a7133 255 """SetPrev(self, WizardPage prev)"""
e811c8ce
RD
256 return _wizard.WizardPageSimple_SetPrev(*args, **kwargs)
257
258 def SetNext(*args, **kwargs):
a95a7133 259 """SetNext(self, WizardPage next)"""
e811c8ce
RD
260 return _wizard.WizardPageSimple_SetNext(*args, **kwargs)
261
262 def Chain(*args, **kwargs):
66c033b4 263 """Chain(WizardPageSimple first, WizardPageSimple second)"""
e811c8ce
RD
264 return _wizard.WizardPageSimple_Chain(*args, **kwargs)
265
266 Chain = staticmethod(Chain)
c81fd4b9 267
d14a1e28
RD
268class WizardPageSimplePtr(WizardPageSimple):
269 def __init__(self, this):
270 self.this = this
271 if not hasattr(self,"thisown"): self.thisown = 0
272 self.__class__ = WizardPageSimple
273_wizard.WizardPageSimple_swigregister(WizardPageSimplePtr)
c81fd4b9 274
d14a1e28 275def PreWizardPageSimple(*args, **kwargs):
e811c8ce 276 """PreWizardPageSimple() -> WizardPageSimple"""
d14a1e28 277 val = _wizard.new_PreWizardPageSimple(*args, **kwargs)
c81fd4b9 278 val.thisown = 1
c81fd4b9
RD
279 return val
280
e811c8ce
RD
281def WizardPageSimple_Chain(*args, **kwargs):
282 """WizardPageSimple_Chain(WizardPageSimple first, WizardPageSimple second)"""
283 return _wizard.WizardPageSimple_Chain(*args, **kwargs)
c81fd4b9 284
54f9ee45 285class Wizard(_windows.Dialog):
093d3ff1 286 """Proxy of C++ Wizard class"""
e811c8ce
RD
287 def __repr__(self):
288 return "<%s.%s; proxy of C++ wxWizard instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d14a1e28 289 def __init__(self, *args, **kwargs):
0df68c9f 290 """
a95a7133 291 __init__(self, Window parent, int id=-1, String title=EmptyString,
196addbf 292 Bitmap bitmap=wxNullBitmap, Point pos=DefaultPosition,
0df68c9f
RD
293 long style=DEFAULT_DIALOG_STYLE) -> Wizard
294 """
d14a1e28
RD
295 newobj = _wizard.new_Wizard(*args, **kwargs)
296 self.this = newobj.this
c81fd4b9 297 self.thisown = 1
d14a1e28 298 del newobj.thisown
c81fd4b9 299 self._setOORInfo(self)
e811c8ce
RD
300
301 def Create(*args, **kwargs):
0df68c9f 302 """
a95a7133 303 Create(self, Window parent, int id=-1, String title=EmptyString,
196addbf 304 Bitmap bitmap=wxNullBitmap, Point pos=DefaultPosition) -> bool
0df68c9f 305 """
e811c8ce
RD
306 return _wizard.Wizard_Create(*args, **kwargs)
307
308 def Init(*args, **kwargs):
a95a7133 309 """Init(self)"""
e811c8ce
RD
310 return _wizard.Wizard_Init(*args, **kwargs)
311
312 def RunWizard(*args, **kwargs):
a95a7133 313 """RunWizard(self, WizardPage firstPage) -> bool"""
e811c8ce
RD
314 return _wizard.Wizard_RunWizard(*args, **kwargs)
315
316 def GetCurrentPage(*args, **kwargs):
a95a7133 317 """GetCurrentPage(self) -> WizardPage"""
e811c8ce
RD
318 return _wizard.Wizard_GetCurrentPage(*args, **kwargs)
319
320 def SetPageSize(*args, **kwargs):
a95a7133 321 """SetPageSize(self, Size size)"""
e811c8ce
RD
322 return _wizard.Wizard_SetPageSize(*args, **kwargs)
323
324 def GetPageSize(*args, **kwargs):
a95a7133 325 """GetPageSize(self) -> Size"""
e811c8ce
RD
326 return _wizard.Wizard_GetPageSize(*args, **kwargs)
327
328 def FitToPage(*args, **kwargs):
a95a7133 329 """FitToPage(self, WizardPage firstPage)"""
e811c8ce
RD
330 return _wizard.Wizard_FitToPage(*args, **kwargs)
331
332 def GetPageAreaSizer(*args, **kwargs):
a95a7133 333 """GetPageAreaSizer(self) -> Sizer"""
e811c8ce
RD
334 return _wizard.Wizard_GetPageAreaSizer(*args, **kwargs)
335
336 def SetBorder(*args, **kwargs):
a95a7133 337 """SetBorder(self, int border)"""
e811c8ce
RD
338 return _wizard.Wizard_SetBorder(*args, **kwargs)
339
340 def IsRunning(*args, **kwargs):
a95a7133 341 """IsRunning(self) -> bool"""
e811c8ce
RD
342 return _wizard.Wizard_IsRunning(*args, **kwargs)
343
344 def ShowPage(*args, **kwargs):
a95a7133 345 """ShowPage(self, WizardPage page, bool goingForward=True) -> bool"""
e811c8ce
RD
346 return _wizard.Wizard_ShowPage(*args, **kwargs)
347
348 def HasNextPage(*args, **kwargs):
a95a7133 349 """HasNextPage(self, WizardPage page) -> bool"""
e811c8ce
RD
350 return _wizard.Wizard_HasNextPage(*args, **kwargs)
351
352 def HasPrevPage(*args, **kwargs):
a95a7133 353 """HasPrevPage(self, WizardPage page) -> bool"""
e811c8ce
RD
354 return _wizard.Wizard_HasPrevPage(*args, **kwargs)
355
c81fd4b9 356
d14a1e28
RD
357class WizardPtr(Wizard):
358 def __init__(self, this):
359 self.this = this
360 if not hasattr(self,"thisown"): self.thisown = 0
361 self.__class__ = Wizard
362_wizard.Wizard_swigregister(WizardPtr)
c81fd4b9 363
d14a1e28 364def PreWizard(*args, **kwargs):
e811c8ce 365 """PreWizard() -> Wizard"""
d14a1e28 366 val = _wizard.new_PreWizard(*args, **kwargs)
c81fd4b9 367 val.thisown = 1
c81fd4b9
RD
368 return val
369
370