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