]>
Commit | Line | Data |
---|---|---|
f6bcfd97 | 1 | /* |
c368d904 | 2 | * FILE : src/gtk/utils.cpp |
f6bcfd97 BP |
3 | * |
4 | * This file was automatically generated by : | |
5 | * Simplified Wrapper and Interface Generator (SWIG) | |
2cd2fac8 | 6 | * Version 1.1 (Build 883) |
f6bcfd97 BP |
7 | * |
8 | * Portions Copyright (c) 1995-1998 | |
9 | * The University of Utah and The Regents of the University of California. | |
10 | * Permission is granted to distribute this file in any manner provided | |
11 | * this notice remains intact. | |
12 | * | |
13 | * Do not make changes to this file--changes will be lost! | |
14 | * | |
15 | */ | |
16 | ||
17 | ||
18 | #define SWIGCODE | |
19 | /* Implementation : PYTHON */ | |
20 | ||
21 | #define SWIGPYTHON | |
22 | #include <string.h> | |
23 | #include <stdlib.h> | |
24 | /* Definitions for Windows/Unix exporting */ | |
25 | #if defined(__WIN32__) | |
26 | # if defined(_MSC_VER) | |
27 | # define SWIGEXPORT(a) __declspec(dllexport) a | |
28 | # else | |
29 | # if defined(__BORLANDC__) | |
1c09ae54 | 30 | # define SWIGEXPORT(a) a _export |
f6bcfd97 | 31 | # else |
1c09ae54 | 32 | # define SWIGEXPORT(a) a |
f6bcfd97 BP |
33 | # endif |
34 | # endif | |
35 | #else | |
1c09ae54 | 36 | # define SWIGEXPORT(a) a |
f6bcfd97 BP |
37 | #endif |
38 | ||
1c09ae54 RD |
39 | #include "Python.h" |
40 | ||
f6bcfd97 BP |
41 | #ifdef __cplusplus |
42 | extern "C" { | |
43 | #endif | |
1c09ae54 | 44 | |
f6bcfd97 BP |
45 | extern void SWIG_MakePtr(char *, void *, char *); |
46 | extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *)); | |
47 | extern char *SWIG_GetPtr(char *, void **, char *); | |
48 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); | |
49 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); | |
50 | extern PyObject *SWIG_newvarlink(void); | |
51 | #ifdef __cplusplus | |
52 | } | |
53 | #endif | |
54 | #define SWIG_init initutilsc | |
55 | ||
56 | #define SWIG_name "utilsc" | |
57 | ||
b68dc582 | 58 | #include "export.h" |
f6bcfd97 BP |
59 | #include <wx/config.h> |
60 | #include <wx/fileconf.h> | |
61 | #include <wx/datetime.h> | |
62 | ||
f6bcfd97 BP |
63 | |
64 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
65 | PyObject* o2; | |
66 | PyObject* o3; | |
67 | ||
1c09ae54 | 68 | if (!target) { |
f6bcfd97 | 69 | target = o; |
1c09ae54 | 70 | } else if (target == Py_None) { |
f6bcfd97 BP |
71 | Py_DECREF(Py_None); |
72 | target = o; | |
1c09ae54 | 73 | } else { |
f6bcfd97 BP |
74 | if (!PyTuple_Check(target)) { |
75 | o2 = target; | |
76 | target = PyTuple_New(1); | |
77 | PyTuple_SetItem(target, 0, o2); | |
78 | } | |
1c09ae54 RD |
79 | o3 = PyTuple_New(1); |
80 | PyTuple_SetItem(o3, 0, o); | |
f6bcfd97 BP |
81 | |
82 | o2 = target; | |
1c09ae54 RD |
83 | target = PySequence_Concat(o2, o3); |
84 | Py_DECREF(o2); | |
f6bcfd97 BP |
85 | Py_DECREF(o3); |
86 | } | |
87 | return target; | |
88 | } | |
89 | ||
7a446686 RD |
90 | #if PYTHON_API_VERSION >= 1009 |
91 | static char* wxStringErrorMsg = "String or Unicode type required"; | |
92 | #else | |
93 | static char* wxStringErrorMsg = "string type is required for parameter"; | |
94 | #endif | |
f6bcfd97 | 95 | |
b68dc582 RD |
96 | static wxString wxPyEmptyStr(""); |
97 | ||
f6bcfd97 BP |
98 | static PyObject* __EnumerationHelper(bool flag, wxString& str, long index) { |
99 | PyObject* ret = PyTuple_New(3); | |
100 | if (ret) { | |
101 | PyTuple_SET_ITEM(ret, 0, PyInt_FromLong(flag)); | |
102 | PyTuple_SET_ITEM(ret, 1, PyString_FromString(str)); | |
103 | PyTuple_SET_ITEM(ret, 2, PyInt_FromLong(index)); | |
104 | } | |
105 | return ret; | |
106 | } | |
107 | ||
108 | #define LOCAL *(new wxDateTime::TimeZone(wxDateTime::Local)) | |
109 | #ifdef __cplusplus | |
110 | extern "C" { | |
111 | #endif | |
112 | static PyObject *_wrap_wxGetLocalTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
113 | PyObject * _resultobj; | |
114 | long _result; | |
115 | char *_kwnames[] = { NULL }; | |
116 | ||
117 | self = self; | |
118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetLocalTime",_kwnames)) | |
119 | return NULL; | |
120 | { | |
121 | wxPy_BEGIN_ALLOW_THREADS; | |
122 | _result = (long )wxGetLocalTime(); | |
123 | ||
124 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 125 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
126 | } _resultobj = Py_BuildValue("l",_result); |
127 | return _resultobj; | |
128 | } | |
129 | ||
130 | static PyObject *_wrap_wxGetUTCTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
131 | PyObject * _resultobj; | |
132 | long _result; | |
133 | char *_kwnames[] = { NULL }; | |
134 | ||
135 | self = self; | |
136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetUTCTime",_kwnames)) | |
137 | return NULL; | |
138 | { | |
139 | wxPy_BEGIN_ALLOW_THREADS; | |
140 | _result = (long )wxGetUTCTime(); | |
141 | ||
142 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 143 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
144 | } _resultobj = Py_BuildValue("l",_result); |
145 | return _resultobj; | |
146 | } | |
147 | ||
148 | static PyObject *_wrap_wxGetCurrentTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
149 | PyObject * _resultobj; | |
150 | long _result; | |
151 | char *_kwnames[] = { NULL }; | |
152 | ||
153 | self = self; | |
154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetCurrentTime",_kwnames)) | |
155 | return NULL; | |
156 | { | |
157 | wxPy_BEGIN_ALLOW_THREADS; | |
158 | _result = (long )wxGetCurrentTime(); | |
159 | ||
160 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 161 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
162 | } _resultobj = Py_BuildValue("l",_result); |
163 | return _resultobj; | |
164 | } | |
165 | ||
166 | static PyObject *_wrap_wxGetLocalTimeMillis(PyObject *self, PyObject *args, PyObject *kwargs) { | |
167 | PyObject * _resultobj; | |
168 | wxLongLong * _result; | |
169 | char *_kwnames[] = { NULL }; | |
170 | ||
171 | self = self; | |
172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetLocalTimeMillis",_kwnames)) | |
173 | return NULL; | |
174 | { | |
175 | wxPy_BEGIN_ALLOW_THREADS; | |
176 | _result = new wxLongLong (wxGetLocalTimeMillis()); | |
177 | ||
178 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 179 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
180 | }{ |
181 | PyObject *hi, *lo, *shifter, *shifted; | |
182 | hi = PyLong_FromLong(_result->GetHi()); | |
183 | lo = PyLong_FromLong(_result->GetLo()); | |
184 | shifter = PyLong_FromLong(32); | |
185 | shifted = PyNumber_Lshift(hi, shifter); | |
186 | _resultobj = PyNumber_Or(shifted, lo); | |
187 | Py_DECREF(hi); | |
188 | Py_DECREF(lo); | |
189 | Py_DECREF(shifter); | |
190 | Py_DECREF(shifted); | |
191 | } | |
192 | return _resultobj; | |
193 | } | |
194 | ||
195 | #define delete_wxConfigBase(_swigobj) (delete _swigobj) | |
196 | static PyObject *_wrap_delete_wxConfigBase(PyObject *self, PyObject *args, PyObject *kwargs) { | |
197 | PyObject * _resultobj; | |
198 | wxConfigBase * _arg0; | |
199 | PyObject * _argo0 = 0; | |
200 | char *_kwnames[] = { "self", NULL }; | |
201 | ||
202 | self = self; | |
203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxConfigBase",_kwnames,&_argo0)) | |
204 | return NULL; | |
205 | if (_argo0) { | |
206 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
207 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfigBase_p")) { | |
208 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxConfigBase. Expected _wxConfigBase_p."); | |
209 | return NULL; | |
210 | } | |
211 | } | |
212 | { | |
213 | wxPy_BEGIN_ALLOW_THREADS; | |
214 | delete_wxConfigBase(_arg0); | |
215 | ||
216 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 217 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
218 | } Py_INCREF(Py_None); |
219 | _resultobj = Py_None; | |
220 | return _resultobj; | |
221 | } | |
222 | ||
223 | static PyObject *_wrap_wxConfigBase_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
224 | PyObject * _resultobj; | |
225 | wxConfigBase * _result; | |
226 | wxConfigBase * _arg0; | |
227 | PyObject * _argo0 = 0; | |
228 | char *_kwnames[] = { "pConfig", NULL }; | |
229 | char _ptemp[128]; | |
230 | ||
231 | self = self; | |
232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxConfigBase_Set",_kwnames,&_argo0)) | |
233 | return NULL; | |
234 | if (_argo0) { | |
235 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
236 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfigBase_p")) { | |
237 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfigBase_Set. Expected _wxConfigBase_p."); | |
238 | return NULL; | |
239 | } | |
240 | } | |
241 | { | |
242 | wxPy_BEGIN_ALLOW_THREADS; | |
243 | _result = (wxConfigBase *)wxConfigBase::Set(_arg0); | |
244 | ||
245 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 246 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
247 | } if (_result) { |
248 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxConfigBase_p"); | |
249 | _resultobj = Py_BuildValue("s",_ptemp); | |
250 | } else { | |
251 | Py_INCREF(Py_None); | |
252 | _resultobj = Py_None; | |
253 | } | |
254 | return _resultobj; | |
255 | } | |
256 | ||
257 | static PyObject *_wrap_wxConfigBase_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
258 | PyObject * _resultobj; | |
259 | wxConfigBase * _result; | |
260 | bool _arg0 = (bool ) TRUE; | |
261 | int tempbool0 = (int) TRUE; | |
262 | char *_kwnames[] = { "createOnDemand", NULL }; | |
263 | char _ptemp[128]; | |
264 | ||
265 | self = self; | |
266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:wxConfigBase_Get",_kwnames,&tempbool0)) | |
267 | return NULL; | |
268 | _arg0 = (bool ) tempbool0; | |
269 | { | |
270 | wxPy_BEGIN_ALLOW_THREADS; | |
271 | _result = (wxConfigBase *)wxConfigBase::Get(_arg0); | |
272 | ||
273 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 274 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
275 | } if (_result) { |
276 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxConfigBase_p"); | |
277 | _resultobj = Py_BuildValue("s",_ptemp); | |
278 | } else { | |
279 | Py_INCREF(Py_None); | |
280 | _resultobj = Py_None; | |
281 | } | |
282 | return _resultobj; | |
283 | } | |
284 | ||
285 | static PyObject *_wrap_wxConfigBase_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
286 | PyObject * _resultobj; | |
287 | wxConfigBase * _result; | |
288 | char *_kwnames[] = { NULL }; | |
289 | char _ptemp[128]; | |
290 | ||
291 | self = self; | |
292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxConfigBase_Create",_kwnames)) | |
293 | return NULL; | |
294 | { | |
295 | wxPy_BEGIN_ALLOW_THREADS; | |
296 | _result = (wxConfigBase *)wxConfigBase::Create(); | |
297 | ||
298 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 299 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
300 | } if (_result) { |
301 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxConfigBase_p"); | |
302 | _resultobj = Py_BuildValue("s",_ptemp); | |
303 | } else { | |
304 | Py_INCREF(Py_None); | |
305 | _resultobj = Py_None; | |
306 | } | |
307 | return _resultobj; | |
308 | } | |
309 | ||
310 | static PyObject *_wrap_wxConfigBase_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
311 | PyObject * _resultobj; | |
312 | char *_kwnames[] = { NULL }; | |
313 | ||
314 | self = self; | |
315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxConfigBase_DontCreateOnDemand",_kwnames)) | |
316 | return NULL; | |
317 | { | |
318 | wxPy_BEGIN_ALLOW_THREADS; | |
319 | wxConfigBase::DontCreateOnDemand(); | |
320 | ||
321 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 322 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
323 | } Py_INCREF(Py_None); |
324 | _resultobj = Py_None; | |
325 | return _resultobj; | |
326 | } | |
327 | ||
328 | #define wxConfigBase_DeleteAll(_swigobj) (_swigobj->DeleteAll()) | |
329 | static PyObject *_wrap_wxConfigBase_DeleteAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
330 | PyObject * _resultobj; | |
331 | bool _result; | |
332 | wxConfigBase * _arg0; | |
333 | PyObject * _argo0 = 0; | |
334 | char *_kwnames[] = { "self", NULL }; | |
335 | ||
336 | self = self; | |
337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxConfigBase_DeleteAll",_kwnames,&_argo0)) | |
338 | return NULL; | |
339 | if (_argo0) { | |
340 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
341 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfigBase_p")) { | |
342 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfigBase_DeleteAll. Expected _wxConfigBase_p."); | |
343 | return NULL; | |
344 | } | |
345 | } | |
346 | { | |
347 | wxPy_BEGIN_ALLOW_THREADS; | |
348 | _result = (bool )wxConfigBase_DeleteAll(_arg0); | |
349 | ||
350 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 351 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
352 | } _resultobj = Py_BuildValue("i",_result); |
353 | return _resultobj; | |
354 | } | |
355 | ||
356 | #define wxConfigBase_DeleteEntry(_swigobj,_swigarg0,_swigarg1) (_swigobj->DeleteEntry(_swigarg0,_swigarg1)) | |
357 | static PyObject *_wrap_wxConfigBase_DeleteEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
358 | PyObject * _resultobj; | |
359 | bool _result; | |
360 | wxConfigBase * _arg0; | |
361 | wxString * _arg1; | |
362 | bool _arg2 = (bool ) TRUE; | |
363 | PyObject * _argo0 = 0; | |
364 | PyObject * _obj1 = 0; | |
365 | int tempbool2 = (int) TRUE; | |
366 | char *_kwnames[] = { "self","key","bDeleteGroupIfEmpty", NULL }; | |
367 | ||
368 | self = self; | |
369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxConfigBase_DeleteEntry",_kwnames,&_argo0,&_obj1,&tempbool2)) | |
370 | return NULL; | |
371 | if (_argo0) { | |
372 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
373 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfigBase_p")) { | |
374 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfigBase_DeleteEntry. Expected _wxConfigBase_p."); | |
375 | return NULL; | |
376 | } | |
377 | } | |
378 | { | |
2cd2fac8 RD |
379 | #if PYTHON_API_VERSION >= 1009 |
380 | char* tmpPtr; int tmpSize; | |
381 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 382 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
383 | return NULL; |
384 | } | |
385 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
386 | return NULL; | |
387 | _arg1 = new wxString(tmpPtr, tmpSize); | |
388 | #else | |
f6bcfd97 BP |
389 | if (!PyString_Check(_obj1)) { |
390 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
391 | return NULL; | |
392 | } | |
2cd2fac8 RD |
393 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
394 | #endif | |
f6bcfd97 BP |
395 | } |
396 | _arg2 = (bool ) tempbool2; | |
397 | { | |
398 | wxPy_BEGIN_ALLOW_THREADS; | |
399 | _result = (bool )wxConfigBase_DeleteEntry(_arg0,*_arg1,_arg2); | |
400 | ||
401 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 402 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
403 | } _resultobj = Py_BuildValue("i",_result); |
404 | { | |
405 | if (_obj1) | |
406 | delete _arg1; | |
407 | } | |
408 | return _resultobj; | |
409 | } | |
410 | ||
411 | #define wxConfigBase_DeleteGroup(_swigobj,_swigarg0) (_swigobj->DeleteGroup(_swigarg0)) | |
412 | static PyObject *_wrap_wxConfigBase_DeleteGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
413 | PyObject * _resultobj; | |
414 | bool _result; | |
415 | wxConfigBase * _arg0; | |
416 | wxString * _arg1; | |
417 | PyObject * _argo0 = 0; | |
418 | PyObject * _obj1 = 0; | |
419 | char *_kwnames[] = { "self","key", NULL }; | |
420 | ||
421 | self = self; | |
422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxConfigBase_DeleteGroup",_kwnames,&_argo0,&_obj1)) | |
423 | return NULL; | |
424 | if (_argo0) { | |
425 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
426 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfigBase_p")) { | |
427 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfigBase_DeleteGroup. Expected _wxConfigBase_p."); | |
428 | return NULL; | |
429 | } | |
430 | } | |
431 | { | |
2cd2fac8 RD |
432 | #if PYTHON_API_VERSION >= 1009 |
433 | char* tmpPtr; int tmpSize; | |
434 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 435 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
436 | return NULL; |
437 | } | |
438 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
439 | return NULL; | |
440 | _arg1 = new wxString(tmpPtr, tmpSize); | |
441 | #else | |
f6bcfd97 BP |
442 | if (!PyString_Check(_obj1)) { |
443 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
444 | return NULL; | |
445 | } | |
2cd2fac8 RD |
446 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
447 | #endif | |
f6bcfd97 BP |
448 | } |
449 | { | |
450 | wxPy_BEGIN_ALLOW_THREADS; | |
451 | _result = (bool )wxConfigBase_DeleteGroup(_arg0,*_arg1); | |
452 | ||
453 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 454 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
455 | } _resultobj = Py_BuildValue("i",_result); |
456 | { | |
457 | if (_obj1) | |
458 | delete _arg1; | |
459 | } | |
460 | return _resultobj; | |
461 | } | |
462 | ||
463 | #define wxConfigBase_Exists(_swigobj,_swigarg0) (_swigobj->Exists(_swigarg0)) | |
464 | static PyObject *_wrap_wxConfigBase_Exists(PyObject *self, PyObject *args, PyObject *kwargs) { | |
465 | PyObject * _resultobj; | |
466 | bool _result; | |
467 | wxConfigBase * _arg0; | |
468 | wxString * _arg1; | |
469 | PyObject * _argo0 = 0; | |
470 | PyObject * _obj1 = 0; | |
471 | char *_kwnames[] = { "self","strName", NULL }; | |
472 | ||
473 | self = self; | |
474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxConfigBase_Exists",_kwnames,&_argo0,&_obj1)) | |
475 | return NULL; | |
476 | if (_argo0) { | |
477 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
478 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfigBase_p")) { | |
479 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfigBase_Exists. Expected _wxConfigBase_p."); | |
480 | return NULL; | |
481 | } | |
482 | } | |
483 | { | |
2cd2fac8 RD |
484 | #if PYTHON_API_VERSION >= 1009 |
485 | char* tmpPtr; int tmpSize; | |
486 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 487 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
488 | return NULL; |
489 | } | |
490 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
491 | return NULL; | |
492 | _arg1 = new wxString(tmpPtr, tmpSize); | |
493 | #else | |
f6bcfd97 BP |
494 | if (!PyString_Check(_obj1)) { |
495 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
496 | return NULL; | |
497 | } | |
2cd2fac8 RD |
498 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
499 | #endif | |
f6bcfd97 BP |
500 | } |
501 | { | |
502 | wxPy_BEGIN_ALLOW_THREADS; | |
503 | _result = (bool )wxConfigBase_Exists(_arg0,*_arg1); | |
504 | ||
505 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 506 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
507 | } _resultobj = Py_BuildValue("i",_result); |
508 | { | |
509 | if (_obj1) | |
510 | delete _arg1; | |
511 | } | |
512 | return _resultobj; | |
513 | } | |
514 | ||
515 | #define wxConfigBase_Flush(_swigobj,_swigarg0) (_swigobj->Flush(_swigarg0)) | |
516 | static PyObject *_wrap_wxConfigBase_Flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
517 | PyObject * _resultobj; | |
518 | bool _result; | |
519 | wxConfigBase * _arg0; | |
520 | bool _arg1 = (bool ) FALSE; | |
521 | PyObject * _argo0 = 0; | |
522 | int tempbool1 = (int) FALSE; | |
523 | char *_kwnames[] = { "self","bCurrentOnly", NULL }; | |
524 | ||
525 | self = self; | |
526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxConfigBase_Flush",_kwnames,&_argo0,&tempbool1)) | |
527 | return NULL; | |
528 | if (_argo0) { | |
529 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
530 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfigBase_p")) { | |
531 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfigBase_Flush. Expected _wxConfigBase_p."); | |
532 | return NULL; | |
533 | } | |
534 | } | |
535 | _arg1 = (bool ) tempbool1; | |
536 | { | |
537 | wxPy_BEGIN_ALLOW_THREADS; | |
538 | _result = (bool )wxConfigBase_Flush(_arg0,_arg1); | |
539 | ||
540 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 541 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
542 | } _resultobj = Py_BuildValue("i",_result); |
543 | return _resultobj; | |
544 | } | |
545 | ||
546 | #define wxConfigBase_GetAppName(_swigobj) (_swigobj->GetAppName()) | |
547 | static PyObject *_wrap_wxConfigBase_GetAppName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
548 | PyObject * _resultobj; | |
549 | wxString * _result; | |
550 | wxConfigBase * _arg0; | |
551 | PyObject * _argo0 = 0; | |
552 | char *_kwnames[] = { "self", NULL }; | |
553 | ||
554 | self = self; | |
555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxConfigBase_GetAppName",_kwnames,&_argo0)) | |
556 | return NULL; | |
557 | if (_argo0) { | |
558 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
559 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfigBase_p")) { | |
560 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfigBase_GetAppName. Expected _wxConfigBase_p."); | |
561 | return NULL; | |
562 | } | |
563 | } | |
564 | { | |
565 | wxPy_BEGIN_ALLOW_THREADS; | |
566 | _result = new wxString (wxConfigBase_GetAppName(_arg0)); | |
567 | ||
568 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 569 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
570 | }{ |
571 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
572 | } | |
573 | { | |
574 | delete _result; | |
575 | } | |
576 | return _resultobj; | |
577 | } | |
578 | ||
579 | static PyObject * wxConfigBase_GetFirstGroup(wxConfigBase *self) { | |
580 | bool cont; | |
581 | long index = 0; | |
582 | wxString value; | |
583 | ||
584 | cont = self->GetFirstGroup(value, index); | |
585 | return __EnumerationHelper(cont, value, index); | |
586 | } | |
587 | static PyObject *_wrap_wxConfigBase_GetFirstGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
588 | PyObject * _resultobj; | |
589 | PyObject * _result; | |
590 | wxConfigBase * _arg0; | |
591 | PyObject * _argo0 = 0; | |
592 | char *_kwnames[] = { "self", NULL }; | |
593 | ||
594 | self = self; | |
595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxConfigBase_GetFirstGroup",_kwnames,&_argo0)) | |
596 | return NULL; | |
597 | if (_argo0) { | |
598 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
599 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfigBase_p")) { | |
600 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfigBase_GetFirstGroup. Expected _wxConfigBase_p."); | |
601 | return NULL; | |
602 | } | |
603 | } | |
604 | { | |
605 | wxPy_BEGIN_ALLOW_THREADS; | |
606 | _result = (PyObject *)wxConfigBase_GetFirstGroup(_arg0); | |
607 | ||
608 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 609 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
610 | }{ |
611 | _resultobj = _result; | |
612 | } | |
613 | return _resultobj; | |
614 | } | |
615 | ||
616 | static PyObject * wxConfigBase_GetFirstEntry(wxConfigBase *self) { | |
617 | bool cont; | |
618 | long index = 0; | |
619 | wxString value; | |
620 | ||
621 | cont = self->GetFirstEntry(value, index); | |
622 | return __EnumerationHelper(cont, value, index); | |
623 | } | |
624 | static PyObject *_wrap_wxConfigBase_GetFirstEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
625 | PyObject * _resultobj; | |
626 | PyObject * _result; | |
627 | wxConfigBase * _arg0; | |
628 | PyObject * _argo0 = 0; | |
629 | char *_kwnames[] = { "self", NULL }; | |
630 | ||
631 | self = self; | |
632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxConfigBase_GetFirstEntry",_kwnames,&_argo0)) | |
633 | return NULL; | |
634 | if (_argo0) { | |
635 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
636 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfigBase_p")) { | |
637 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfigBase_GetFirstEntry. Expected _wxConfigBase_p."); | |
638 | return NULL; | |
639 | } | |
640 | } | |
641 | { | |
642 | wxPy_BEGIN_ALLOW_THREADS; | |
643 | _result = (PyObject *)wxConfigBase_GetFirstEntry(_arg0); | |
644 | ||
645 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 646 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
647 | }{ |
648 | _resultobj = _result; | |
649 | } | |
650 | return _resultobj; | |
651 | } | |
652 | ||
653 | static PyObject * wxConfigBase_GetNextGroup(wxConfigBase *self,long index) { | |
654 | bool cont; | |
655 | wxString value; | |
656 | ||
657 | cont = self->GetNextGroup(value, index); | |
658 | return __EnumerationHelper(cont, value, index); | |
659 | } | |
660 | static PyObject *_wrap_wxConfigBase_GetNextGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
661 | PyObject * _resultobj; | |
662 | PyObject * _result; | |
663 | wxConfigBase * _arg0; | |
664 | long _arg1; | |
665 | PyObject * _argo0 = 0; | |
666 | char *_kwnames[] = { "self","index", NULL }; | |
667 | ||
668 | self = self; | |
669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxConfigBase_GetNextGroup",_kwnames,&_argo0,&_arg1)) | |
670 | return NULL; | |
671 | if (_argo0) { | |
672 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
673 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfigBase_p")) { | |
674 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfigBase_GetNextGroup. Expected _wxConfigBase_p."); | |
675 | return NULL; | |
676 | } | |
677 | } | |
678 | { | |
679 | wxPy_BEGIN_ALLOW_THREADS; | |
680 | _result = (PyObject *)wxConfigBase_GetNextGroup(_arg0,_arg1); | |
681 | ||
682 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 683 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
684 | }{ |
685 | _resultobj = _result; | |
686 | } | |
687 | return _resultobj; | |
688 | } | |
689 | ||
690 | static PyObject * wxConfigBase_GetNextEntry(wxConfigBase *self,long index) { | |
691 | bool cont; | |
692 | wxString value; | |
693 | ||
694 | cont = self->GetNextEntry(value, index); | |
695 | return __EnumerationHelper(cont, value, index); | |
696 | } | |
697 | static PyObject *_wrap_wxConfigBase_GetNextEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
698 | PyObject * _resultobj; | |
699 | PyObject * _result; | |
700 | wxConfigBase * _arg0; | |
701 | long _arg1; | |
702 | PyObject * _argo0 = 0; | |
703 | char *_kwnames[] = { "self","index", NULL }; | |
704 | ||
705 | self = self; | |
706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxConfigBase_GetNextEntry",_kwnames,&_argo0,&_arg1)) | |
707 | return NULL; | |
708 | if (_argo0) { | |
709 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
710 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfigBase_p")) { | |
711 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfigBase_GetNextEntry. Expected _wxConfigBase_p."); | |
712 | return NULL; | |
713 | } | |
714 | } | |
715 | { | |
716 | wxPy_BEGIN_ALLOW_THREADS; | |
717 | _result = (PyObject *)wxConfigBase_GetNextEntry(_arg0,_arg1); | |
718 | ||
719 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 720 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
721 | }{ |
722 | _resultobj = _result; | |
723 | } | |
724 | return _resultobj; | |
725 | } | |
726 | ||
727 | #define wxConfigBase_GetNumberOfEntries(_swigobj,_swigarg0) (_swigobj->GetNumberOfEntries(_swigarg0)) | |
728 | static PyObject *_wrap_wxConfigBase_GetNumberOfEntries(PyObject *self, PyObject *args, PyObject *kwargs) { | |
729 | PyObject * _resultobj; | |
730 | int _result; | |
731 | wxConfigBase * _arg0; | |
732 | bool _arg1 = (bool ) FALSE; | |
733 | PyObject * _argo0 = 0; | |
734 | int tempbool1 = (int) FALSE; | |
735 | char *_kwnames[] = { "self","bRecursive", NULL }; | |
736 | ||
737 | self = self; | |
738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxConfigBase_GetNumberOfEntries",_kwnames,&_argo0,&tempbool1)) | |
739 | return NULL; | |
740 | if (_argo0) { | |
741 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
742 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfigBase_p")) { | |
743 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfigBase_GetNumberOfEntries. Expected _wxConfigBase_p."); | |
744 | return NULL; | |
745 | } | |
746 | } | |
747 | _arg1 = (bool ) tempbool1; | |
748 | { | |
749 | wxPy_BEGIN_ALLOW_THREADS; | |
750 | _result = (int )wxConfigBase_GetNumberOfEntries(_arg0,_arg1); | |
751 | ||
752 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 753 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
754 | } _resultobj = Py_BuildValue("i",_result); |
755 | return _resultobj; | |
756 | } | |
757 | ||
758 | #define wxConfigBase_GetNumberOfGroups(_swigobj,_swigarg0) (_swigobj->GetNumberOfGroups(_swigarg0)) | |
759 | static PyObject *_wrap_wxConfigBase_GetNumberOfGroups(PyObject *self, PyObject *args, PyObject *kwargs) { | |
760 | PyObject * _resultobj; | |
761 | int _result; | |
762 | wxConfigBase * _arg0; | |
763 | bool _arg1 = (bool ) FALSE; | |
764 | PyObject * _argo0 = 0; | |
765 | int tempbool1 = (int) FALSE; | |
766 | char *_kwnames[] = { "self","bRecursive", NULL }; | |
767 | ||
768 | self = self; | |
769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxConfigBase_GetNumberOfGroups",_kwnames,&_argo0,&tempbool1)) | |
770 | return NULL; | |
771 | if (_argo0) { | |
772 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
773 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfigBase_p")) { | |
774 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfigBase_GetNumberOfGroups. Expected _wxConfigBase_p."); | |
775 | return NULL; | |
776 | } | |
777 | } | |
778 | _arg1 = (bool ) tempbool1; | |
779 | { | |
780 | wxPy_BEGIN_ALLOW_THREADS; | |
781 | _result = (int )wxConfigBase_GetNumberOfGroups(_arg0,_arg1); | |
782 | ||
783 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 784 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
785 | } _resultobj = Py_BuildValue("i",_result); |
786 | return _resultobj; | |
787 | } | |
788 | ||
789 | #define wxConfigBase_GetPath(_swigobj) (_swigobj->GetPath()) | |
790 | static PyObject *_wrap_wxConfigBase_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
791 | PyObject * _resultobj; | |
792 | wxString * _result; | |
793 | wxConfigBase * _arg0; | |
794 | PyObject * _argo0 = 0; | |
795 | char *_kwnames[] = { "self", NULL }; | |
796 | ||
797 | self = self; | |
798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxConfigBase_GetPath",_kwnames,&_argo0)) | |
799 | return NULL; | |
800 | if (_argo0) { | |
801 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
802 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfigBase_p")) { | |
803 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfigBase_GetPath. Expected _wxConfigBase_p."); | |
804 | return NULL; | |
805 | } | |
806 | } | |
807 | { | |
808 | wxPy_BEGIN_ALLOW_THREADS; | |
809 | _result = new wxString (wxConfigBase_GetPath(_arg0)); | |
810 | ||
811 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 812 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
813 | }{ |
814 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
815 | } | |
816 | { | |
817 | delete _result; | |
818 | } | |
819 | return _resultobj; | |
820 | } | |
821 | ||
822 | #define wxConfigBase_GetVendorName(_swigobj) (_swigobj->GetVendorName()) | |
823 | static PyObject *_wrap_wxConfigBase_GetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
824 | PyObject * _resultobj; | |
825 | wxString * _result; | |
826 | wxConfigBase * _arg0; | |
827 | PyObject * _argo0 = 0; | |
828 | char *_kwnames[] = { "self", NULL }; | |
829 | ||
830 | self = self; | |
831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxConfigBase_GetVendorName",_kwnames,&_argo0)) | |
832 | return NULL; | |
833 | if (_argo0) { | |
834 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
835 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfigBase_p")) { | |
836 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfigBase_GetVendorName. Expected _wxConfigBase_p."); | |
837 | return NULL; | |
838 | } | |
839 | } | |
840 | { | |
841 | wxPy_BEGIN_ALLOW_THREADS; | |
842 | _result = new wxString (wxConfigBase_GetVendorName(_arg0)); | |
843 | ||
844 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 845 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
846 | }{ |
847 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
848 | } | |
849 | { | |
850 | delete _result; | |
851 | } | |
852 | return _resultobj; | |
853 | } | |
854 | ||
855 | #define wxConfigBase_HasEntry(_swigobj,_swigarg0) (_swigobj->HasEntry(_swigarg0)) | |
856 | static PyObject *_wrap_wxConfigBase_HasEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
857 | PyObject * _resultobj; | |
858 | bool _result; | |
859 | wxConfigBase * _arg0; | |
860 | wxString * _arg1; | |
861 | PyObject * _argo0 = 0; | |
862 | PyObject * _obj1 = 0; | |
863 | char *_kwnames[] = { "self","strName", NULL }; | |
864 | ||
865 | self = self; | |
866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxConfigBase_HasEntry",_kwnames,&_argo0,&_obj1)) | |
867 | return NULL; | |
868 | if (_argo0) { | |
869 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
870 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfigBase_p")) { | |
871 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfigBase_HasEntry. Expected _wxConfigBase_p."); | |
872 | return NULL; | |
873 | } | |
874 | } | |
875 | { | |
2cd2fac8 RD |
876 | #if PYTHON_API_VERSION >= 1009 |
877 | char* tmpPtr; int tmpSize; | |
878 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 879 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
880 | return NULL; |
881 | } | |
882 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
883 | return NULL; | |
884 | _arg1 = new wxString(tmpPtr, tmpSize); | |
885 | #else | |
f6bcfd97 BP |
886 | if (!PyString_Check(_obj1)) { |
887 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
888 | return NULL; | |
889 | } | |
2cd2fac8 RD |
890 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
891 | #endif | |
f6bcfd97 BP |
892 | } |
893 | { | |
894 | wxPy_BEGIN_ALLOW_THREADS; | |
895 | _result = (bool )wxConfigBase_HasEntry(_arg0,*_arg1); | |
896 | ||
897 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 898 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
899 | } _resultobj = Py_BuildValue("i",_result); |
900 | { | |
901 | if (_obj1) | |
902 | delete _arg1; | |
903 | } | |
904 | return _resultobj; | |
905 | } | |
906 | ||
907 | #define wxConfigBase_HasGroup(_swigobj,_swigarg0) (_swigobj->HasGroup(_swigarg0)) | |
908 | static PyObject *_wrap_wxConfigBase_HasGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
909 | PyObject * _resultobj; | |
910 | bool _result; | |
911 | wxConfigBase * _arg0; | |
912 | wxString * _arg1; | |
913 | PyObject * _argo0 = 0; | |
914 | PyObject * _obj1 = 0; | |
915 | char *_kwnames[] = { "self","strName", NULL }; | |
916 | ||
917 | self = self; | |
918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxConfigBase_HasGroup",_kwnames,&_argo0,&_obj1)) | |
919 | return NULL; | |
920 | if (_argo0) { | |
921 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
922 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfigBase_p")) { | |
923 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfigBase_HasGroup. Expected _wxConfigBase_p."); | |
924 | return NULL; | |
925 | } | |
926 | } | |
927 | { | |
2cd2fac8 RD |
928 | #if PYTHON_API_VERSION >= 1009 |
929 | char* tmpPtr; int tmpSize; | |
930 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 931 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
932 | return NULL; |
933 | } | |
934 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
935 | return NULL; | |
936 | _arg1 = new wxString(tmpPtr, tmpSize); | |
937 | #else | |
f6bcfd97 BP |
938 | if (!PyString_Check(_obj1)) { |
939 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
940 | return NULL; | |
941 | } | |
2cd2fac8 RD |
942 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
943 | #endif | |
f6bcfd97 BP |
944 | } |
945 | { | |
946 | wxPy_BEGIN_ALLOW_THREADS; | |
947 | _result = (bool )wxConfigBase_HasGroup(_arg0,*_arg1); | |
948 | ||
949 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 950 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
951 | } _resultobj = Py_BuildValue("i",_result); |
952 | { | |
953 | if (_obj1) | |
954 | delete _arg1; | |
955 | } | |
956 | return _resultobj; | |
957 | } | |
958 | ||
959 | #define wxConfigBase_IsExpandingEnvVars(_swigobj) (_swigobj->IsExpandingEnvVars()) | |
960 | static PyObject *_wrap_wxConfigBase_IsExpandingEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
961 | PyObject * _resultobj; | |
962 | bool _result; | |
963 | wxConfigBase * _arg0; | |
964 | PyObject * _argo0 = 0; | |
965 | char *_kwnames[] = { "self", NULL }; | |
966 | ||
967 | self = self; | |
968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxConfigBase_IsExpandingEnvVars",_kwnames,&_argo0)) | |
969 | return NULL; | |
970 | if (_argo0) { | |
971 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
972 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfigBase_p")) { | |
973 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfigBase_IsExpandingEnvVars. Expected _wxConfigBase_p."); | |
974 | return NULL; | |
975 | } | |
976 | } | |
977 | { | |
978 | wxPy_BEGIN_ALLOW_THREADS; | |
979 | _result = (bool )wxConfigBase_IsExpandingEnvVars(_arg0); | |
980 | ||
981 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 982 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
983 | } _resultobj = Py_BuildValue("i",_result); |
984 | return _resultobj; | |
985 | } | |
986 | ||
987 | #define wxConfigBase_IsRecordingDefaults(_swigobj) (_swigobj->IsRecordingDefaults()) | |
988 | static PyObject *_wrap_wxConfigBase_IsRecordingDefaults(PyObject *self, PyObject *args, PyObject *kwargs) { | |
989 | PyObject * _resultobj; | |
990 | bool _result; | |
991 | wxConfigBase * _arg0; | |
992 | PyObject * _argo0 = 0; | |
993 | char *_kwnames[] = { "self", NULL }; | |
994 | ||
995 | self = self; | |
996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxConfigBase_IsRecordingDefaults",_kwnames,&_argo0)) | |
997 | return NULL; | |
998 | if (_argo0) { | |
999 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1000 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfigBase_p")) { | |
1001 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfigBase_IsRecordingDefaults. Expected _wxConfigBase_p."); | |
1002 | return NULL; | |
1003 | } | |
1004 | } | |
1005 | { | |
1006 | wxPy_BEGIN_ALLOW_THREADS; | |
1007 | _result = (bool )wxConfigBase_IsRecordingDefaults(_arg0); | |
1008 | ||
1009 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1010 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1011 | } _resultobj = Py_BuildValue("i",_result); |
1012 | return _resultobj; | |
1013 | } | |
1014 | ||
1015 | #define wxConfigBase_Read(_swigobj,_swigarg0,_swigarg1) (_swigobj->Read(_swigarg0,_swigarg1)) | |
1016 | static PyObject *_wrap_wxConfigBase_Read(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1017 | PyObject * _resultobj; | |
1018 | wxString * _result; | |
1019 | wxConfigBase * _arg0; | |
1020 | wxString * _arg1; | |
1021 | wxString * _arg2 = (wxString *) &wxPyEmptyStr; | |
1022 | PyObject * _argo0 = 0; | |
1023 | PyObject * _obj1 = 0; | |
1024 | PyObject * _obj2 = 0; | |
1025 | char *_kwnames[] = { "self","key","defaultVal", NULL }; | |
1026 | ||
1027 | self = self; | |
1028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxConfigBase_Read",_kwnames,&_argo0,&_obj1,&_obj2)) | |
1029 | return NULL; | |
1030 | if (_argo0) { | |
1031 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1032 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfigBase_p")) { | |
1033 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfigBase_Read. Expected _wxConfigBase_p."); | |
1034 | return NULL; | |
1035 | } | |
1036 | } | |
1037 | { | |
2cd2fac8 RD |
1038 | #if PYTHON_API_VERSION >= 1009 |
1039 | char* tmpPtr; int tmpSize; | |
1040 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 1041 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
1042 | return NULL; |
1043 | } | |
1044 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1045 | return NULL; | |
1046 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1047 | #else | |
f6bcfd97 BP |
1048 | if (!PyString_Check(_obj1)) { |
1049 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1050 | return NULL; | |
1051 | } | |
2cd2fac8 RD |
1052 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1053 | #endif | |
f6bcfd97 BP |
1054 | } |
1055 | if (_obj2) | |
1056 | { | |
2cd2fac8 RD |
1057 | #if PYTHON_API_VERSION >= 1009 |
1058 | char* tmpPtr; int tmpSize; | |
1059 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7a446686 | 1060 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
1061 | return NULL; |
1062 | } | |
1063 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
1064 | return NULL; | |
1065 | _arg2 = new wxString(tmpPtr, tmpSize); | |
1066 | #else | |
f6bcfd97 BP |
1067 | if (!PyString_Check(_obj2)) { |
1068 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1069 | return NULL; | |
1070 | } | |
2cd2fac8 RD |
1071 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
1072 | #endif | |
f6bcfd97 BP |
1073 | } |
1074 | { | |
1075 | wxPy_BEGIN_ALLOW_THREADS; | |
1076 | _result = new wxString (wxConfigBase_Read(_arg0,*_arg1,*_arg2)); | |
1077 | ||
1078 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1079 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1080 | }{ |
1081 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
1082 | } | |
1083 | { | |
1084 | if (_obj1) | |
1085 | delete _arg1; | |
1086 | } | |
1087 | { | |
1088 | if (_obj2) | |
1089 | delete _arg2; | |
1090 | } | |
1091 | { | |
1092 | delete _result; | |
1093 | } | |
1094 | return _resultobj; | |
1095 | } | |
1096 | ||
1097 | #define wxConfigBase_ReadInt(_swigobj,_swigarg0,_swigarg1) (_swigobj->Read(_swigarg0,_swigarg1)) | |
1098 | static PyObject *_wrap_wxConfigBase_ReadInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1099 | PyObject * _resultobj; | |
1100 | long _result; | |
1101 | wxConfigBase * _arg0; | |
1102 | wxString * _arg1; | |
1103 | long _arg2 = (long ) 0; | |
1104 | PyObject * _argo0 = 0; | |
1105 | PyObject * _obj1 = 0; | |
1106 | char *_kwnames[] = { "self","key","defaultVal", NULL }; | |
1107 | ||
1108 | self = self; | |
1109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|l:wxConfigBase_ReadInt",_kwnames,&_argo0,&_obj1,&_arg2)) | |
1110 | return NULL; | |
1111 | if (_argo0) { | |
1112 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1113 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfigBase_p")) { | |
1114 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfigBase_ReadInt. Expected _wxConfigBase_p."); | |
1115 | return NULL; | |
1116 | } | |
1117 | } | |
1118 | { | |
2cd2fac8 RD |
1119 | #if PYTHON_API_VERSION >= 1009 |
1120 | char* tmpPtr; int tmpSize; | |
1121 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 1122 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
1123 | return NULL; |
1124 | } | |
1125 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1126 | return NULL; | |
1127 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1128 | #else | |
f6bcfd97 BP |
1129 | if (!PyString_Check(_obj1)) { |
1130 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1131 | return NULL; | |
1132 | } | |
2cd2fac8 RD |
1133 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1134 | #endif | |
f6bcfd97 BP |
1135 | } |
1136 | { | |
1137 | wxPy_BEGIN_ALLOW_THREADS; | |
1138 | _result = (long )wxConfigBase_ReadInt(_arg0,*_arg1,_arg2); | |
1139 | ||
1140 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1141 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1142 | } _resultobj = Py_BuildValue("l",_result); |
1143 | { | |
1144 | if (_obj1) | |
1145 | delete _arg1; | |
1146 | } | |
1147 | return _resultobj; | |
1148 | } | |
1149 | ||
1150 | #define wxConfigBase_ReadFloat(_swigobj,_swigarg0,_swigarg1) (_swigobj->Read(_swigarg0,_swigarg1)) | |
1151 | static PyObject *_wrap_wxConfigBase_ReadFloat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1152 | PyObject * _resultobj; | |
1153 | double _result; | |
1154 | wxConfigBase * _arg0; | |
1155 | wxString * _arg1; | |
1156 | double _arg2 = (double ) 0.0; | |
1157 | PyObject * _argo0 = 0; | |
1158 | PyObject * _obj1 = 0; | |
1159 | char *_kwnames[] = { "self","key","defaultVal", NULL }; | |
1160 | ||
1161 | self = self; | |
1162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|d:wxConfigBase_ReadFloat",_kwnames,&_argo0,&_obj1,&_arg2)) | |
1163 | return NULL; | |
1164 | if (_argo0) { | |
1165 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1166 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfigBase_p")) { | |
1167 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfigBase_ReadFloat. Expected _wxConfigBase_p."); | |
1168 | return NULL; | |
1169 | } | |
1170 | } | |
1171 | { | |
2cd2fac8 RD |
1172 | #if PYTHON_API_VERSION >= 1009 |
1173 | char* tmpPtr; int tmpSize; | |
1174 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 1175 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
1176 | return NULL; |
1177 | } | |
1178 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1179 | return NULL; | |
1180 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1181 | #else | |
f6bcfd97 BP |
1182 | if (!PyString_Check(_obj1)) { |
1183 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1184 | return NULL; | |
1185 | } | |
2cd2fac8 RD |
1186 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1187 | #endif | |
f6bcfd97 BP |
1188 | } |
1189 | { | |
1190 | wxPy_BEGIN_ALLOW_THREADS; | |
1191 | _result = (double )wxConfigBase_ReadFloat(_arg0,*_arg1,_arg2); | |
1192 | ||
1193 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1194 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1195 | } _resultobj = Py_BuildValue("d",_result); |
1196 | { | |
1197 | if (_obj1) | |
1198 | delete _arg1; | |
1199 | } | |
1200 | return _resultobj; | |
1201 | } | |
1202 | ||
1203 | #define wxConfigBase_SetExpandEnvVars(_swigobj,_swigarg0) (_swigobj->SetExpandEnvVars(_swigarg0)) | |
1204 | static PyObject *_wrap_wxConfigBase_SetExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1205 | PyObject * _resultobj; | |
1206 | wxConfigBase * _arg0; | |
1207 | bool _arg1 = (bool ) TRUE; | |
1208 | PyObject * _argo0 = 0; | |
1209 | int tempbool1 = (int) TRUE; | |
1210 | char *_kwnames[] = { "self","bDoIt", NULL }; | |
1211 | ||
1212 | self = self; | |
1213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxConfigBase_SetExpandEnvVars",_kwnames,&_argo0,&tempbool1)) | |
1214 | return NULL; | |
1215 | if (_argo0) { | |
1216 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1217 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfigBase_p")) { | |
1218 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfigBase_SetExpandEnvVars. Expected _wxConfigBase_p."); | |
1219 | return NULL; | |
1220 | } | |
1221 | } | |
1222 | _arg1 = (bool ) tempbool1; | |
1223 | { | |
1224 | wxPy_BEGIN_ALLOW_THREADS; | |
1225 | wxConfigBase_SetExpandEnvVars(_arg0,_arg1); | |
1226 | ||
1227 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1228 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1229 | } Py_INCREF(Py_None); |
1230 | _resultobj = Py_None; | |
1231 | return _resultobj; | |
1232 | } | |
1233 | ||
1234 | #define wxConfigBase_SetPath(_swigobj,_swigarg0) (_swigobj->SetPath(_swigarg0)) | |
1235 | static PyObject *_wrap_wxConfigBase_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1236 | PyObject * _resultobj; | |
1237 | wxConfigBase * _arg0; | |
1238 | wxString * _arg1; | |
1239 | PyObject * _argo0 = 0; | |
1240 | PyObject * _obj1 = 0; | |
1241 | char *_kwnames[] = { "self","strPath", NULL }; | |
1242 | ||
1243 | self = self; | |
1244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxConfigBase_SetPath",_kwnames,&_argo0,&_obj1)) | |
1245 | return NULL; | |
1246 | if (_argo0) { | |
1247 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1248 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfigBase_p")) { | |
1249 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfigBase_SetPath. Expected _wxConfigBase_p."); | |
1250 | return NULL; | |
1251 | } | |
1252 | } | |
1253 | { | |
2cd2fac8 RD |
1254 | #if PYTHON_API_VERSION >= 1009 |
1255 | char* tmpPtr; int tmpSize; | |
1256 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 1257 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
1258 | return NULL; |
1259 | } | |
1260 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1261 | return NULL; | |
1262 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1263 | #else | |
f6bcfd97 BP |
1264 | if (!PyString_Check(_obj1)) { |
1265 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1266 | return NULL; | |
1267 | } | |
2cd2fac8 RD |
1268 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1269 | #endif | |
f6bcfd97 BP |
1270 | } |
1271 | { | |
1272 | wxPy_BEGIN_ALLOW_THREADS; | |
1273 | wxConfigBase_SetPath(_arg0,*_arg1); | |
1274 | ||
1275 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1276 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1277 | } Py_INCREF(Py_None); |
1278 | _resultobj = Py_None; | |
1279 | { | |
1280 | if (_obj1) | |
1281 | delete _arg1; | |
1282 | } | |
1283 | return _resultobj; | |
1284 | } | |
1285 | ||
1286 | #define wxConfigBase_SetRecordDefaults(_swigobj,_swigarg0) (_swigobj->SetRecordDefaults(_swigarg0)) | |
1287 | static PyObject *_wrap_wxConfigBase_SetRecordDefaults(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1288 | PyObject * _resultobj; | |
1289 | wxConfigBase * _arg0; | |
1290 | bool _arg1 = (bool ) TRUE; | |
1291 | PyObject * _argo0 = 0; | |
1292 | int tempbool1 = (int) TRUE; | |
1293 | char *_kwnames[] = { "self","bDoIt", NULL }; | |
1294 | ||
1295 | self = self; | |
1296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxConfigBase_SetRecordDefaults",_kwnames,&_argo0,&tempbool1)) | |
1297 | return NULL; | |
1298 | if (_argo0) { | |
1299 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1300 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfigBase_p")) { | |
1301 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfigBase_SetRecordDefaults. Expected _wxConfigBase_p."); | |
1302 | return NULL; | |
1303 | } | |
1304 | } | |
1305 | _arg1 = (bool ) tempbool1; | |
1306 | { | |
1307 | wxPy_BEGIN_ALLOW_THREADS; | |
1308 | wxConfigBase_SetRecordDefaults(_arg0,_arg1); | |
1309 | ||
1310 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1311 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1312 | } Py_INCREF(Py_None); |
1313 | _resultobj = Py_None; | |
1314 | return _resultobj; | |
1315 | } | |
1316 | ||
1317 | #define wxConfigBase_SetAppName(_swigobj,_swigarg0) (_swigobj->SetAppName(_swigarg0)) | |
1318 | static PyObject *_wrap_wxConfigBase_SetAppName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1319 | PyObject * _resultobj; | |
1320 | wxConfigBase * _arg0; | |
1321 | wxString * _arg1; | |
1322 | PyObject * _argo0 = 0; | |
1323 | PyObject * _obj1 = 0; | |
1324 | char *_kwnames[] = { "self","appName", NULL }; | |
1325 | ||
1326 | self = self; | |
1327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxConfigBase_SetAppName",_kwnames,&_argo0,&_obj1)) | |
1328 | return NULL; | |
1329 | if (_argo0) { | |
1330 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1331 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfigBase_p")) { | |
1332 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfigBase_SetAppName. Expected _wxConfigBase_p."); | |
1333 | return NULL; | |
1334 | } | |
1335 | } | |
1336 | { | |
2cd2fac8 RD |
1337 | #if PYTHON_API_VERSION >= 1009 |
1338 | char* tmpPtr; int tmpSize; | |
1339 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 1340 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
1341 | return NULL; |
1342 | } | |
1343 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1344 | return NULL; | |
1345 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1346 | #else | |
f6bcfd97 BP |
1347 | if (!PyString_Check(_obj1)) { |
1348 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1349 | return NULL; | |
1350 | } | |
2cd2fac8 RD |
1351 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1352 | #endif | |
f6bcfd97 BP |
1353 | } |
1354 | { | |
1355 | wxPy_BEGIN_ALLOW_THREADS; | |
1356 | wxConfigBase_SetAppName(_arg0,*_arg1); | |
1357 | ||
1358 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1359 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1360 | } Py_INCREF(Py_None); |
1361 | _resultobj = Py_None; | |
1362 | { | |
1363 | if (_obj1) | |
1364 | delete _arg1; | |
1365 | } | |
1366 | return _resultobj; | |
1367 | } | |
1368 | ||
1369 | #define wxConfigBase_SetVendorName(_swigobj,_swigarg0) (_swigobj->SetVendorName(_swigarg0)) | |
1370 | static PyObject *_wrap_wxConfigBase_SetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1371 | PyObject * _resultobj; | |
1372 | wxConfigBase * _arg0; | |
1373 | wxString * _arg1; | |
1374 | PyObject * _argo0 = 0; | |
1375 | PyObject * _obj1 = 0; | |
1376 | char *_kwnames[] = { "self","vendorName", NULL }; | |
1377 | ||
1378 | self = self; | |
1379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxConfigBase_SetVendorName",_kwnames,&_argo0,&_obj1)) | |
1380 | return NULL; | |
1381 | if (_argo0) { | |
1382 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1383 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfigBase_p")) { | |
1384 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfigBase_SetVendorName. Expected _wxConfigBase_p."); | |
1385 | return NULL; | |
1386 | } | |
1387 | } | |
1388 | { | |
2cd2fac8 RD |
1389 | #if PYTHON_API_VERSION >= 1009 |
1390 | char* tmpPtr; int tmpSize; | |
1391 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 1392 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
1393 | return NULL; |
1394 | } | |
1395 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1396 | return NULL; | |
1397 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1398 | #else | |
f6bcfd97 BP |
1399 | if (!PyString_Check(_obj1)) { |
1400 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1401 | return NULL; | |
1402 | } | |
2cd2fac8 RD |
1403 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1404 | #endif | |
f6bcfd97 BP |
1405 | } |
1406 | { | |
1407 | wxPy_BEGIN_ALLOW_THREADS; | |
1408 | wxConfigBase_SetVendorName(_arg0,*_arg1); | |
1409 | ||
1410 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1411 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1412 | } Py_INCREF(Py_None); |
1413 | _resultobj = Py_None; | |
1414 | { | |
1415 | if (_obj1) | |
1416 | delete _arg1; | |
1417 | } | |
1418 | return _resultobj; | |
1419 | } | |
1420 | ||
1421 | #define wxConfigBase_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0)) | |
1422 | static PyObject *_wrap_wxConfigBase_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1423 | PyObject * _resultobj; | |
1424 | wxConfigBase * _arg0; | |
1425 | long _arg1; | |
1426 | PyObject * _argo0 = 0; | |
1427 | char *_kwnames[] = { "self","style", NULL }; | |
1428 | ||
1429 | self = self; | |
1430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxConfigBase_SetStyle",_kwnames,&_argo0,&_arg1)) | |
1431 | return NULL; | |
1432 | if (_argo0) { | |
1433 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1434 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfigBase_p")) { | |
1435 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfigBase_SetStyle. Expected _wxConfigBase_p."); | |
1436 | return NULL; | |
1437 | } | |
1438 | } | |
1439 | { | |
1440 | wxPy_BEGIN_ALLOW_THREADS; | |
1441 | wxConfigBase_SetStyle(_arg0,_arg1); | |
1442 | ||
1443 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1444 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1445 | } Py_INCREF(Py_None); |
1446 | _resultobj = Py_None; | |
1447 | return _resultobj; | |
1448 | } | |
1449 | ||
1450 | #define wxConfigBase_GetStyle(_swigobj) (_swigobj->GetStyle()) | |
1451 | static PyObject *_wrap_wxConfigBase_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1452 | PyObject * _resultobj; | |
1453 | long _result; | |
1454 | wxConfigBase * _arg0; | |
1455 | PyObject * _argo0 = 0; | |
1456 | char *_kwnames[] = { "self", NULL }; | |
1457 | ||
1458 | self = self; | |
1459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxConfigBase_GetStyle",_kwnames,&_argo0)) | |
1460 | return NULL; | |
1461 | if (_argo0) { | |
1462 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1463 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfigBase_p")) { | |
1464 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfigBase_GetStyle. Expected _wxConfigBase_p."); | |
1465 | return NULL; | |
1466 | } | |
1467 | } | |
1468 | { | |
1469 | wxPy_BEGIN_ALLOW_THREADS; | |
1470 | _result = (long )wxConfigBase_GetStyle(_arg0); | |
1471 | ||
1472 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1473 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1474 | } _resultobj = Py_BuildValue("l",_result); |
1475 | return _resultobj; | |
1476 | } | |
1477 | ||
1478 | #define wxConfigBase_Write(_swigobj,_swigarg0,_swigarg1) (_swigobj->Write(_swigarg0,_swigarg1)) | |
1479 | static PyObject *_wrap_wxConfigBase_Write(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1480 | PyObject * _resultobj; | |
1481 | bool _result; | |
1482 | wxConfigBase * _arg0; | |
1483 | wxString * _arg1; | |
1484 | wxString * _arg2; | |
1485 | PyObject * _argo0 = 0; | |
1486 | PyObject * _obj1 = 0; | |
1487 | PyObject * _obj2 = 0; | |
1488 | char *_kwnames[] = { "self","key","value", NULL }; | |
1489 | ||
1490 | self = self; | |
1491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxConfigBase_Write",_kwnames,&_argo0,&_obj1,&_obj2)) | |
1492 | return NULL; | |
1493 | if (_argo0) { | |
1494 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1495 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfigBase_p")) { | |
1496 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfigBase_Write. Expected _wxConfigBase_p."); | |
1497 | return NULL; | |
1498 | } | |
1499 | } | |
1500 | { | |
2cd2fac8 RD |
1501 | #if PYTHON_API_VERSION >= 1009 |
1502 | char* tmpPtr; int tmpSize; | |
1503 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 1504 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
1505 | return NULL; |
1506 | } | |
1507 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1508 | return NULL; | |
1509 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1510 | #else | |
f6bcfd97 BP |
1511 | if (!PyString_Check(_obj1)) { |
1512 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1513 | return NULL; | |
1514 | } | |
2cd2fac8 RD |
1515 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1516 | #endif | |
f6bcfd97 BP |
1517 | } |
1518 | { | |
2cd2fac8 RD |
1519 | #if PYTHON_API_VERSION >= 1009 |
1520 | char* tmpPtr; int tmpSize; | |
1521 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7a446686 | 1522 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
1523 | return NULL; |
1524 | } | |
1525 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
1526 | return NULL; | |
1527 | _arg2 = new wxString(tmpPtr, tmpSize); | |
1528 | #else | |
f6bcfd97 BP |
1529 | if (!PyString_Check(_obj2)) { |
1530 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1531 | return NULL; | |
1532 | } | |
2cd2fac8 RD |
1533 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
1534 | #endif | |
f6bcfd97 BP |
1535 | } |
1536 | { | |
1537 | wxPy_BEGIN_ALLOW_THREADS; | |
1538 | _result = (bool )wxConfigBase_Write(_arg0,*_arg1,*_arg2); | |
1539 | ||
1540 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1541 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1542 | } _resultobj = Py_BuildValue("i",_result); |
1543 | { | |
1544 | if (_obj1) | |
1545 | delete _arg1; | |
1546 | } | |
1547 | { | |
1548 | if (_obj2) | |
1549 | delete _arg2; | |
1550 | } | |
1551 | return _resultobj; | |
1552 | } | |
1553 | ||
1554 | #define wxConfigBase_WriteInt(_swigobj,_swigarg0,_swigarg1) (_swigobj->Write(_swigarg0,_swigarg1)) | |
1555 | static PyObject *_wrap_wxConfigBase_WriteInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1556 | PyObject * _resultobj; | |
1557 | bool _result; | |
1558 | wxConfigBase * _arg0; | |
1559 | wxString * _arg1; | |
1560 | long _arg2; | |
1561 | PyObject * _argo0 = 0; | |
1562 | PyObject * _obj1 = 0; | |
1563 | char *_kwnames[] = { "self","key","value", NULL }; | |
1564 | ||
1565 | self = self; | |
1566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOl:wxConfigBase_WriteInt",_kwnames,&_argo0,&_obj1,&_arg2)) | |
1567 | return NULL; | |
1568 | if (_argo0) { | |
1569 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1570 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfigBase_p")) { | |
1571 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfigBase_WriteInt. Expected _wxConfigBase_p."); | |
1572 | return NULL; | |
1573 | } | |
1574 | } | |
1575 | { | |
2cd2fac8 RD |
1576 | #if PYTHON_API_VERSION >= 1009 |
1577 | char* tmpPtr; int tmpSize; | |
1578 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 1579 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
1580 | return NULL; |
1581 | } | |
1582 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1583 | return NULL; | |
1584 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1585 | #else | |
f6bcfd97 BP |
1586 | if (!PyString_Check(_obj1)) { |
1587 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1588 | return NULL; | |
1589 | } | |
2cd2fac8 RD |
1590 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1591 | #endif | |
f6bcfd97 BP |
1592 | } |
1593 | { | |
1594 | wxPy_BEGIN_ALLOW_THREADS; | |
1595 | _result = (bool )wxConfigBase_WriteInt(_arg0,*_arg1,_arg2); | |
1596 | ||
1597 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1598 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1599 | } _resultobj = Py_BuildValue("i",_result); |
1600 | { | |
1601 | if (_obj1) | |
1602 | delete _arg1; | |
1603 | } | |
1604 | return _resultobj; | |
1605 | } | |
1606 | ||
1607 | #define wxConfigBase_WriteFloat(_swigobj,_swigarg0,_swigarg1) (_swigobj->Write(_swigarg0,_swigarg1)) | |
1608 | static PyObject *_wrap_wxConfigBase_WriteFloat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1609 | PyObject * _resultobj; | |
1610 | bool _result; | |
1611 | wxConfigBase * _arg0; | |
1612 | wxString * _arg1; | |
1613 | double _arg2; | |
1614 | PyObject * _argo0 = 0; | |
1615 | PyObject * _obj1 = 0; | |
1616 | char *_kwnames[] = { "self","key","value", NULL }; | |
1617 | ||
1618 | self = self; | |
1619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOd:wxConfigBase_WriteFloat",_kwnames,&_argo0,&_obj1,&_arg2)) | |
1620 | return NULL; | |
1621 | if (_argo0) { | |
1622 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1623 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfigBase_p")) { | |
1624 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfigBase_WriteFloat. Expected _wxConfigBase_p."); | |
1625 | return NULL; | |
1626 | } | |
1627 | } | |
1628 | { | |
2cd2fac8 RD |
1629 | #if PYTHON_API_VERSION >= 1009 |
1630 | char* tmpPtr; int tmpSize; | |
1631 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 1632 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
1633 | return NULL; |
1634 | } | |
1635 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1636 | return NULL; | |
1637 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1638 | #else | |
f6bcfd97 BP |
1639 | if (!PyString_Check(_obj1)) { |
1640 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1641 | return NULL; | |
1642 | } | |
2cd2fac8 RD |
1643 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1644 | #endif | |
f6bcfd97 BP |
1645 | } |
1646 | { | |
1647 | wxPy_BEGIN_ALLOW_THREADS; | |
1648 | _result = (bool )wxConfigBase_WriteFloat(_arg0,*_arg1,_arg2); | |
1649 | ||
1650 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1651 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1652 | } _resultobj = Py_BuildValue("i",_result); |
1653 | { | |
1654 | if (_obj1) | |
1655 | delete _arg1; | |
1656 | } | |
1657 | return _resultobj; | |
1658 | } | |
1659 | ||
1660 | #define wxConfigBase_GetEntryType(_swigobj,_swigarg0) (_swigobj->GetEntryType(_swigarg0)) | |
1661 | static PyObject *_wrap_wxConfigBase_GetEntryType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1662 | PyObject * _resultobj; | |
1663 | wxConfigBase::EntryType _result; | |
1664 | wxConfigBase * _arg0; | |
1665 | wxString * _arg1; | |
1666 | PyObject * _argo0 = 0; | |
1667 | PyObject * _obj1 = 0; | |
1668 | char *_kwnames[] = { "self","name", NULL }; | |
1669 | ||
1670 | self = self; | |
1671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxConfigBase_GetEntryType",_kwnames,&_argo0,&_obj1)) | |
1672 | return NULL; | |
1673 | if (_argo0) { | |
1674 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1675 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfigBase_p")) { | |
1676 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfigBase_GetEntryType. Expected _wxConfigBase_p."); | |
1677 | return NULL; | |
1678 | } | |
1679 | } | |
1680 | { | |
2cd2fac8 RD |
1681 | #if PYTHON_API_VERSION >= 1009 |
1682 | char* tmpPtr; int tmpSize; | |
1683 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 1684 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
1685 | return NULL; |
1686 | } | |
1687 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1688 | return NULL; | |
1689 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1690 | #else | |
f6bcfd97 BP |
1691 | if (!PyString_Check(_obj1)) { |
1692 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1693 | return NULL; | |
1694 | } | |
2cd2fac8 RD |
1695 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1696 | #endif | |
f6bcfd97 BP |
1697 | } |
1698 | { | |
1699 | wxPy_BEGIN_ALLOW_THREADS; | |
1700 | _result = (wxConfigBase::EntryType )wxConfigBase_GetEntryType(_arg0,*_arg1); | |
1701 | ||
1702 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1703 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1704 | } _resultobj = Py_BuildValue("i",_result); |
1705 | { | |
1706 | if (_obj1) | |
1707 | delete _arg1; | |
1708 | } | |
1709 | return _resultobj; | |
1710 | } | |
1711 | ||
1712 | #define wxConfigBase_RenameEntry(_swigobj,_swigarg0,_swigarg1) (_swigobj->RenameEntry(_swigarg0,_swigarg1)) | |
1713 | static PyObject *_wrap_wxConfigBase_RenameEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1714 | PyObject * _resultobj; | |
1715 | bool _result; | |
1716 | wxConfigBase * _arg0; | |
1717 | wxString * _arg1; | |
1718 | wxString * _arg2; | |
1719 | PyObject * _argo0 = 0; | |
1720 | PyObject * _obj1 = 0; | |
1721 | PyObject * _obj2 = 0; | |
1722 | char *_kwnames[] = { "self","oldName","newName", NULL }; | |
1723 | ||
1724 | self = self; | |
1725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxConfigBase_RenameEntry",_kwnames,&_argo0,&_obj1,&_obj2)) | |
1726 | return NULL; | |
1727 | if (_argo0) { | |
1728 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1729 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfigBase_p")) { | |
1730 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfigBase_RenameEntry. Expected _wxConfigBase_p."); | |
1731 | return NULL; | |
1732 | } | |
1733 | } | |
1734 | { | |
2cd2fac8 RD |
1735 | #if PYTHON_API_VERSION >= 1009 |
1736 | char* tmpPtr; int tmpSize; | |
1737 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 1738 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
1739 | return NULL; |
1740 | } | |
1741 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1742 | return NULL; | |
1743 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1744 | #else | |
f6bcfd97 BP |
1745 | if (!PyString_Check(_obj1)) { |
1746 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1747 | return NULL; | |
1748 | } | |
2cd2fac8 RD |
1749 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1750 | #endif | |
f6bcfd97 BP |
1751 | } |
1752 | { | |
2cd2fac8 RD |
1753 | #if PYTHON_API_VERSION >= 1009 |
1754 | char* tmpPtr; int tmpSize; | |
1755 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7a446686 | 1756 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
1757 | return NULL; |
1758 | } | |
1759 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
1760 | return NULL; | |
1761 | _arg2 = new wxString(tmpPtr, tmpSize); | |
1762 | #else | |
f6bcfd97 BP |
1763 | if (!PyString_Check(_obj2)) { |
1764 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1765 | return NULL; | |
1766 | } | |
2cd2fac8 RD |
1767 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
1768 | #endif | |
f6bcfd97 BP |
1769 | } |
1770 | { | |
1771 | wxPy_BEGIN_ALLOW_THREADS; | |
1772 | _result = (bool )wxConfigBase_RenameEntry(_arg0,*_arg1,*_arg2); | |
1773 | ||
1774 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1775 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1776 | } _resultobj = Py_BuildValue("i",_result); |
1777 | { | |
1778 | if (_obj1) | |
1779 | delete _arg1; | |
1780 | } | |
1781 | { | |
1782 | if (_obj2) | |
1783 | delete _arg2; | |
1784 | } | |
1785 | return _resultobj; | |
1786 | } | |
1787 | ||
1788 | #define wxConfigBase_RenameGroup(_swigobj,_swigarg0,_swigarg1) (_swigobj->RenameGroup(_swigarg0,_swigarg1)) | |
1789 | static PyObject *_wrap_wxConfigBase_RenameGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1790 | PyObject * _resultobj; | |
1791 | bool _result; | |
1792 | wxConfigBase * _arg0; | |
1793 | wxString * _arg1; | |
1794 | wxString * _arg2; | |
1795 | PyObject * _argo0 = 0; | |
1796 | PyObject * _obj1 = 0; | |
1797 | PyObject * _obj2 = 0; | |
1798 | char *_kwnames[] = { "self","oldName","newName", NULL }; | |
1799 | ||
1800 | self = self; | |
1801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxConfigBase_RenameGroup",_kwnames,&_argo0,&_obj1,&_obj2)) | |
1802 | return NULL; | |
1803 | if (_argo0) { | |
1804 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1805 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfigBase_p")) { | |
1806 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfigBase_RenameGroup. Expected _wxConfigBase_p."); | |
1807 | return NULL; | |
1808 | } | |
1809 | } | |
1810 | { | |
2cd2fac8 RD |
1811 | #if PYTHON_API_VERSION >= 1009 |
1812 | char* tmpPtr; int tmpSize; | |
1813 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 1814 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
1815 | return NULL; |
1816 | } | |
1817 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1818 | return NULL; | |
1819 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1820 | #else | |
f6bcfd97 BP |
1821 | if (!PyString_Check(_obj1)) { |
1822 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1823 | return NULL; | |
1824 | } | |
2cd2fac8 RD |
1825 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1826 | #endif | |
f6bcfd97 BP |
1827 | } |
1828 | { | |
2cd2fac8 RD |
1829 | #if PYTHON_API_VERSION >= 1009 |
1830 | char* tmpPtr; int tmpSize; | |
1831 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7a446686 | 1832 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
1833 | return NULL; |
1834 | } | |
1835 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
1836 | return NULL; | |
1837 | _arg2 = new wxString(tmpPtr, tmpSize); | |
1838 | #else | |
f6bcfd97 BP |
1839 | if (!PyString_Check(_obj2)) { |
1840 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1841 | return NULL; | |
1842 | } | |
2cd2fac8 RD |
1843 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
1844 | #endif | |
f6bcfd97 BP |
1845 | } |
1846 | { | |
1847 | wxPy_BEGIN_ALLOW_THREADS; | |
1848 | _result = (bool )wxConfigBase_RenameGroup(_arg0,*_arg1,*_arg2); | |
1849 | ||
1850 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1851 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1852 | } _resultobj = Py_BuildValue("i",_result); |
1853 | { | |
1854 | if (_obj1) | |
1855 | delete _arg1; | |
1856 | } | |
1857 | { | |
1858 | if (_obj2) | |
1859 | delete _arg2; | |
1860 | } | |
1861 | return _resultobj; | |
1862 | } | |
1863 | ||
1864 | #define wxConfigBase_ExpandEnvVars(_swigobj,_swigarg0) (_swigobj->ExpandEnvVars(_swigarg0)) | |
1865 | static PyObject *_wrap_wxConfigBase_ExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1866 | PyObject * _resultobj; | |
1867 | wxString * _result; | |
1868 | wxConfigBase * _arg0; | |
1869 | wxString * _arg1; | |
1870 | PyObject * _argo0 = 0; | |
1871 | PyObject * _obj1 = 0; | |
1872 | char *_kwnames[] = { "self","str", NULL }; | |
1873 | ||
1874 | self = self; | |
1875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxConfigBase_ExpandEnvVars",_kwnames,&_argo0,&_obj1)) | |
1876 | return NULL; | |
1877 | if (_argo0) { | |
1878 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1879 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfigBase_p")) { | |
1880 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfigBase_ExpandEnvVars. Expected _wxConfigBase_p."); | |
1881 | return NULL; | |
1882 | } | |
1883 | } | |
1884 | { | |
2cd2fac8 RD |
1885 | #if PYTHON_API_VERSION >= 1009 |
1886 | char* tmpPtr; int tmpSize; | |
1887 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 1888 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
1889 | return NULL; |
1890 | } | |
1891 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1892 | return NULL; | |
1893 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1894 | #else | |
f6bcfd97 BP |
1895 | if (!PyString_Check(_obj1)) { |
1896 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1897 | return NULL; | |
1898 | } | |
2cd2fac8 RD |
1899 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1900 | #endif | |
f6bcfd97 BP |
1901 | } |
1902 | { | |
1903 | wxPy_BEGIN_ALLOW_THREADS; | |
1904 | _result = new wxString (wxConfigBase_ExpandEnvVars(_arg0,*_arg1)); | |
1905 | ||
1906 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1907 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1908 | }{ |
1909 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
1910 | } | |
1911 | { | |
1912 | if (_obj1) | |
1913 | delete _arg1; | |
1914 | } | |
1915 | { | |
1916 | delete _result; | |
1917 | } | |
1918 | return _resultobj; | |
1919 | } | |
1920 | ||
1921 | static void *SwigwxConfigTowxConfigBase(void *ptr) { | |
1922 | wxConfig *src; | |
1923 | wxConfigBase *dest; | |
1924 | src = (wxConfig *) ptr; | |
1925 | dest = (wxConfigBase *) src; | |
1926 | return (void *) dest; | |
1927 | } | |
1928 | ||
1929 | #define new_wxConfig(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (new wxConfig(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
1930 | static PyObject *_wrap_new_wxConfig(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1931 | PyObject * _resultobj; | |
1932 | wxConfig * _result; | |
1933 | wxString * _arg0 = (wxString *) &wxPyEmptyStr; | |
1934 | wxString * _arg1 = (wxString *) &wxPyEmptyStr; | |
1935 | wxString * _arg2 = (wxString *) &wxPyEmptyStr; | |
1936 | wxString * _arg3 = (wxString *) &wxPyEmptyStr; | |
1937 | long _arg4 = (long ) 0; | |
1938 | PyObject * _obj0 = 0; | |
1939 | PyObject * _obj1 = 0; | |
1940 | PyObject * _obj2 = 0; | |
1941 | PyObject * _obj3 = 0; | |
1942 | char *_kwnames[] = { "appName","vendorName","localFilename","globalFilename","style", NULL }; | |
1943 | char _ptemp[128]; | |
1944 | ||
1945 | self = self; | |
1946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OOOOl:new_wxConfig",_kwnames,&_obj0,&_obj1,&_obj2,&_obj3,&_arg4)) | |
1947 | return NULL; | |
1948 | if (_obj0) | |
1949 | { | |
2cd2fac8 RD |
1950 | #if PYTHON_API_VERSION >= 1009 |
1951 | char* tmpPtr; int tmpSize; | |
1952 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
7a446686 | 1953 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
1954 | return NULL; |
1955 | } | |
1956 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
1957 | return NULL; | |
1958 | _arg0 = new wxString(tmpPtr, tmpSize); | |
1959 | #else | |
f6bcfd97 BP |
1960 | if (!PyString_Check(_obj0)) { |
1961 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1962 | return NULL; | |
1963 | } | |
2cd2fac8 RD |
1964 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
1965 | #endif | |
f6bcfd97 BP |
1966 | } |
1967 | if (_obj1) | |
1968 | { | |
2cd2fac8 RD |
1969 | #if PYTHON_API_VERSION >= 1009 |
1970 | char* tmpPtr; int tmpSize; | |
1971 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 1972 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
1973 | return NULL; |
1974 | } | |
1975 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1976 | return NULL; | |
1977 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1978 | #else | |
f6bcfd97 BP |
1979 | if (!PyString_Check(_obj1)) { |
1980 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1981 | return NULL; | |
1982 | } | |
2cd2fac8 RD |
1983 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1984 | #endif | |
f6bcfd97 BP |
1985 | } |
1986 | if (_obj2) | |
1987 | { | |
2cd2fac8 RD |
1988 | #if PYTHON_API_VERSION >= 1009 |
1989 | char* tmpPtr; int tmpSize; | |
1990 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7a446686 | 1991 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
1992 | return NULL; |
1993 | } | |
1994 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
1995 | return NULL; | |
1996 | _arg2 = new wxString(tmpPtr, tmpSize); | |
1997 | #else | |
f6bcfd97 BP |
1998 | if (!PyString_Check(_obj2)) { |
1999 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2000 | return NULL; | |
2001 | } | |
2cd2fac8 RD |
2002 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
2003 | #endif | |
f6bcfd97 BP |
2004 | } |
2005 | if (_obj3) | |
2006 | { | |
2cd2fac8 RD |
2007 | #if PYTHON_API_VERSION >= 1009 |
2008 | char* tmpPtr; int tmpSize; | |
2009 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
7a446686 | 2010 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
2011 | return NULL; |
2012 | } | |
2013 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
2014 | return NULL; | |
2015 | _arg3 = new wxString(tmpPtr, tmpSize); | |
2016 | #else | |
f6bcfd97 BP |
2017 | if (!PyString_Check(_obj3)) { |
2018 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2019 | return NULL; | |
2020 | } | |
2cd2fac8 RD |
2021 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
2022 | #endif | |
f6bcfd97 BP |
2023 | } |
2024 | { | |
2025 | wxPy_BEGIN_ALLOW_THREADS; | |
2026 | _result = (wxConfig *)new_wxConfig(*_arg0,*_arg1,*_arg2,*_arg3,_arg4); | |
2027 | ||
2028 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2029 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2030 | } if (_result) { |
2031 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxConfig_p"); | |
2032 | _resultobj = Py_BuildValue("s",_ptemp); | |
2033 | } else { | |
2034 | Py_INCREF(Py_None); | |
2035 | _resultobj = Py_None; | |
2036 | } | |
2037 | { | |
2038 | if (_obj0) | |
2039 | delete _arg0; | |
2040 | } | |
2041 | { | |
2042 | if (_obj1) | |
2043 | delete _arg1; | |
2044 | } | |
2045 | { | |
2046 | if (_obj2) | |
2047 | delete _arg2; | |
2048 | } | |
2049 | { | |
2050 | if (_obj3) | |
2051 | delete _arg3; | |
2052 | } | |
2053 | return _resultobj; | |
2054 | } | |
2055 | ||
2056 | #define delete_wxConfig(_swigobj) (delete _swigobj) | |
2057 | static PyObject *_wrap_delete_wxConfig(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2058 | PyObject * _resultobj; | |
2059 | wxConfig * _arg0; | |
2060 | PyObject * _argo0 = 0; | |
2061 | char *_kwnames[] = { "self", NULL }; | |
2062 | ||
2063 | self = self; | |
2064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxConfig",_kwnames,&_argo0)) | |
2065 | return NULL; | |
2066 | if (_argo0) { | |
2067 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2068 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxConfig_p")) { | |
2069 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxConfig. Expected _wxConfig_p."); | |
2070 | return NULL; | |
2071 | } | |
2072 | } | |
2073 | { | |
2074 | wxPy_BEGIN_ALLOW_THREADS; | |
2075 | delete_wxConfig(_arg0); | |
2076 | ||
2077 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2078 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2079 | } Py_INCREF(Py_None); |
2080 | _resultobj = Py_None; | |
2081 | return _resultobj; | |
2082 | } | |
2083 | ||
2084 | static void *SwigwxFileConfigTowxConfigBase(void *ptr) { | |
2085 | wxFileConfig *src; | |
2086 | wxConfigBase *dest; | |
2087 | src = (wxFileConfig *) ptr; | |
2088 | dest = (wxConfigBase *) src; | |
2089 | return (void *) dest; | |
2090 | } | |
2091 | ||
2092 | #define new_wxFileConfig(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (new wxFileConfig(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
2093 | static PyObject *_wrap_new_wxFileConfig(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2094 | PyObject * _resultobj; | |
2095 | wxFileConfig * _result; | |
2096 | wxString * _arg0 = (wxString *) &wxPyEmptyStr; | |
2097 | wxString * _arg1 = (wxString *) &wxPyEmptyStr; | |
2098 | wxString * _arg2 = (wxString *) &wxPyEmptyStr; | |
2099 | wxString * _arg3 = (wxString *) &wxPyEmptyStr; | |
2100 | long _arg4 = (long ) 0; | |
2101 | PyObject * _obj0 = 0; | |
2102 | PyObject * _obj1 = 0; | |
2103 | PyObject * _obj2 = 0; | |
2104 | PyObject * _obj3 = 0; | |
2105 | char *_kwnames[] = { "appName","vendorName","localFilename","globalFilename","style", NULL }; | |
2106 | char _ptemp[128]; | |
2107 | ||
2108 | self = self; | |
2109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OOOOl:new_wxFileConfig",_kwnames,&_obj0,&_obj1,&_obj2,&_obj3,&_arg4)) | |
2110 | return NULL; | |
2111 | if (_obj0) | |
2112 | { | |
2cd2fac8 RD |
2113 | #if PYTHON_API_VERSION >= 1009 |
2114 | char* tmpPtr; int tmpSize; | |
2115 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
7a446686 | 2116 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
2117 | return NULL; |
2118 | } | |
2119 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
2120 | return NULL; | |
2121 | _arg0 = new wxString(tmpPtr, tmpSize); | |
2122 | #else | |
f6bcfd97 BP |
2123 | if (!PyString_Check(_obj0)) { |
2124 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2125 | return NULL; | |
2126 | } | |
2cd2fac8 RD |
2127 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
2128 | #endif | |
f6bcfd97 BP |
2129 | } |
2130 | if (_obj1) | |
2131 | { | |
2cd2fac8 RD |
2132 | #if PYTHON_API_VERSION >= 1009 |
2133 | char* tmpPtr; int tmpSize; | |
2134 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 2135 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
2136 | return NULL; |
2137 | } | |
2138 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
2139 | return NULL; | |
2140 | _arg1 = new wxString(tmpPtr, tmpSize); | |
2141 | #else | |
f6bcfd97 BP |
2142 | if (!PyString_Check(_obj1)) { |
2143 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2144 | return NULL; | |
2145 | } | |
2cd2fac8 RD |
2146 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
2147 | #endif | |
f6bcfd97 BP |
2148 | } |
2149 | if (_obj2) | |
2150 | { | |
2cd2fac8 RD |
2151 | #if PYTHON_API_VERSION >= 1009 |
2152 | char* tmpPtr; int tmpSize; | |
2153 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7a446686 | 2154 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
2155 | return NULL; |
2156 | } | |
2157 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
2158 | return NULL; | |
2159 | _arg2 = new wxString(tmpPtr, tmpSize); | |
2160 | #else | |
f6bcfd97 BP |
2161 | if (!PyString_Check(_obj2)) { |
2162 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2163 | return NULL; | |
2164 | } | |
2cd2fac8 RD |
2165 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
2166 | #endif | |
f6bcfd97 BP |
2167 | } |
2168 | if (_obj3) | |
2169 | { | |
2cd2fac8 RD |
2170 | #if PYTHON_API_VERSION >= 1009 |
2171 | char* tmpPtr; int tmpSize; | |
2172 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
7a446686 | 2173 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
2174 | return NULL; |
2175 | } | |
2176 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
2177 | return NULL; | |
2178 | _arg3 = new wxString(tmpPtr, tmpSize); | |
2179 | #else | |
f6bcfd97 BP |
2180 | if (!PyString_Check(_obj3)) { |
2181 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2182 | return NULL; | |
2183 | } | |
2cd2fac8 RD |
2184 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
2185 | #endif | |
f6bcfd97 BP |
2186 | } |
2187 | { | |
2188 | wxPy_BEGIN_ALLOW_THREADS; | |
2189 | _result = (wxFileConfig *)new_wxFileConfig(*_arg0,*_arg1,*_arg2,*_arg3,_arg4); | |
2190 | ||
2191 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2192 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2193 | } if (_result) { |
2194 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileConfig_p"); | |
2195 | _resultobj = Py_BuildValue("s",_ptemp); | |
2196 | } else { | |
2197 | Py_INCREF(Py_None); | |
2198 | _resultobj = Py_None; | |
2199 | } | |
2200 | { | |
2201 | if (_obj0) | |
2202 | delete _arg0; | |
2203 | } | |
2204 | { | |
2205 | if (_obj1) | |
2206 | delete _arg1; | |
2207 | } | |
2208 | { | |
2209 | if (_obj2) | |
2210 | delete _arg2; | |
2211 | } | |
2212 | { | |
2213 | if (_obj3) | |
2214 | delete _arg3; | |
2215 | } | |
2216 | return _resultobj; | |
2217 | } | |
2218 | ||
2219 | #define delete_wxFileConfig(_swigobj) (delete _swigobj) | |
2220 | static PyObject *_wrap_delete_wxFileConfig(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2221 | PyObject * _resultobj; | |
2222 | wxFileConfig * _arg0; | |
2223 | PyObject * _argo0 = 0; | |
2224 | char *_kwnames[] = { "self", NULL }; | |
2225 | ||
2226 | self = self; | |
2227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFileConfig",_kwnames,&_argo0)) | |
2228 | return NULL; | |
2229 | if (_argo0) { | |
2230 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2231 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileConfig_p")) { | |
2232 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFileConfig. Expected _wxFileConfig_p."); | |
2233 | return NULL; | |
2234 | } | |
2235 | } | |
2236 | { | |
2237 | wxPy_BEGIN_ALLOW_THREADS; | |
2238 | delete_wxFileConfig(_arg0); | |
2239 | ||
2240 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2241 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2242 | } Py_INCREF(Py_None); |
2243 | _resultobj = Py_None; | |
2244 | return _resultobj; | |
2245 | } | |
2246 | ||
2247 | static PyObject *_wrap_wxDateTime_SetCountry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2248 | PyObject * _resultobj; | |
2249 | wxDateTime::Country _arg0; | |
2250 | char *_kwnames[] = { "country", NULL }; | |
2251 | ||
2252 | self = self; | |
2253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxDateTime_SetCountry",_kwnames,&_arg0)) | |
2254 | return NULL; | |
2255 | { | |
2256 | wxPy_BEGIN_ALLOW_THREADS; | |
2257 | wxDateTime::SetCountry(_arg0); | |
2258 | ||
2259 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2260 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2261 | } Py_INCREF(Py_None); |
2262 | _resultobj = Py_None; | |
2263 | return _resultobj; | |
2264 | } | |
2265 | ||
2266 | static PyObject *_wrap_wxDateTime_GetCountry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2267 | PyObject * _resultobj; | |
2268 | wxDateTime::Country _result; | |
2269 | char *_kwnames[] = { NULL }; | |
2270 | ||
2271 | self = self; | |
2272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxDateTime_GetCountry",_kwnames)) | |
2273 | return NULL; | |
2274 | { | |
2275 | wxPy_BEGIN_ALLOW_THREADS; | |
2276 | _result = (wxDateTime::Country )wxDateTime::GetCountry(); | |
2277 | ||
2278 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2279 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2280 | } _resultobj = Py_BuildValue("i",_result); |
2281 | return _resultobj; | |
2282 | } | |
2283 | ||
2284 | static PyObject *_wrap_wxDateTime_IsWestEuropeanCountry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2285 | PyObject * _resultobj; | |
2286 | bool _result; | |
2287 | wxDateTime::Country _arg0 = (wxDateTime::Country ) wxDateTime::Country_Default; | |
2288 | char *_kwnames[] = { "country", NULL }; | |
2289 | ||
2290 | self = self; | |
2291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:wxDateTime_IsWestEuropeanCountry",_kwnames,&_arg0)) | |
2292 | return NULL; | |
2293 | { | |
2294 | wxPy_BEGIN_ALLOW_THREADS; | |
2295 | _result = (bool )wxDateTime::IsWestEuropeanCountry(_arg0); | |
2296 | ||
2297 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2298 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2299 | } _resultobj = Py_BuildValue("i",_result); |
2300 | return _resultobj; | |
2301 | } | |
2302 | ||
2303 | static PyObject *_wrap_wxDateTime_GetCurrentYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2304 | PyObject * _resultobj; | |
2305 | int _result; | |
2306 | wxDateTime::Calendar _arg0 = (wxDateTime::Calendar ) wxDateTime::Gregorian; | |
2307 | char *_kwnames[] = { "cal", NULL }; | |
2308 | ||
2309 | self = self; | |
2310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:wxDateTime_GetCurrentYear",_kwnames,&_arg0)) | |
2311 | return NULL; | |
2312 | { | |
2313 | wxPy_BEGIN_ALLOW_THREADS; | |
2314 | _result = (int )wxDateTime::GetCurrentYear(_arg0); | |
2315 | ||
2316 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2317 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2318 | } _resultobj = Py_BuildValue("i",_result); |
2319 | return _resultobj; | |
2320 | } | |
2321 | ||
2322 | static PyObject *_wrap_wxDateTime_ConvertYearToBC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2323 | PyObject * _resultobj; | |
2324 | int _result; | |
2325 | int _arg0; | |
2326 | char *_kwnames[] = { "year", NULL }; | |
2327 | ||
2328 | self = self; | |
2329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxDateTime_ConvertYearToBC",_kwnames,&_arg0)) | |
2330 | return NULL; | |
2331 | { | |
2332 | wxPy_BEGIN_ALLOW_THREADS; | |
2333 | _result = (int )wxDateTime::ConvertYearToBC(_arg0); | |
2334 | ||
2335 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2336 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2337 | } _resultobj = Py_BuildValue("i",_result); |
2338 | return _resultobj; | |
2339 | } | |
2340 | ||
2341 | static PyObject *_wrap_wxDateTime_GetCurrentMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2342 | PyObject * _resultobj; | |
2343 | wxDateTime::Month _result; | |
2344 | wxDateTime::Calendar _arg0 = (wxDateTime::Calendar ) wxDateTime::Gregorian; | |
2345 | char *_kwnames[] = { "cal", NULL }; | |
2346 | ||
2347 | self = self; | |
2348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:wxDateTime_GetCurrentMonth",_kwnames,&_arg0)) | |
2349 | return NULL; | |
2350 | { | |
2351 | wxPy_BEGIN_ALLOW_THREADS; | |
2352 | _result = (wxDateTime::Month )wxDateTime::GetCurrentMonth(_arg0); | |
2353 | ||
2354 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2355 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2356 | } _resultobj = Py_BuildValue("i",_result); |
2357 | return _resultobj; | |
2358 | } | |
2359 | ||
2360 | static PyObject *_wrap_wxDateTime_IsLeapYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2361 | PyObject * _resultobj; | |
2362 | bool _result; | |
2363 | int _arg0 = (int ) wxDateTime::Inv_Year; | |
2364 | wxDateTime::Calendar _arg1 = (wxDateTime::Calendar ) wxDateTime::Gregorian; | |
2365 | char *_kwnames[] = { "year","cal", NULL }; | |
2366 | ||
2367 | self = self; | |
2368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|ii:wxDateTime_IsLeapYear",_kwnames,&_arg0,&_arg1)) | |
2369 | return NULL; | |
2370 | { | |
2371 | wxPy_BEGIN_ALLOW_THREADS; | |
2372 | _result = (bool )wxDateTime::IsLeapYear(_arg0,_arg1); | |
2373 | ||
2374 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2375 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2376 | } _resultobj = Py_BuildValue("i",_result); |
2377 | return _resultobj; | |
2378 | } | |
2379 | ||
2380 | static PyObject *_wrap_wxDateTime_GetCentury(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2381 | PyObject * _resultobj; | |
2382 | int _result; | |
2383 | int _arg0 = (int ) wxDateTime::Inv_Year; | |
2384 | char *_kwnames[] = { "year", NULL }; | |
2385 | ||
2386 | self = self; | |
2387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:wxDateTime_GetCentury",_kwnames,&_arg0)) | |
2388 | return NULL; | |
2389 | { | |
2390 | wxPy_BEGIN_ALLOW_THREADS; | |
2391 | _result = (int )wxDateTime::GetCentury(_arg0); | |
2392 | ||
2393 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2394 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2395 | } _resultobj = Py_BuildValue("i",_result); |
2396 | return _resultobj; | |
2397 | } | |
2398 | ||
2399 | static PyObject *_wrap_wxDateTime_GetNumberOfDaysinYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2400 | PyObject * _resultobj; | |
2401 | wxDateTime::wxDateTime_t _result; | |
2402 | int _arg0; | |
2403 | wxDateTime::Calendar _arg1 = (wxDateTime::Calendar ) wxDateTime::Gregorian; | |
2404 | char *_kwnames[] = { "year","cal", NULL }; | |
2405 | ||
2406 | self = self; | |
2407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i|i:wxDateTime_GetNumberOfDaysinYear",_kwnames,&_arg0,&_arg1)) | |
2408 | return NULL; | |
2409 | { | |
2410 | wxPy_BEGIN_ALLOW_THREADS; | |
2411 | _result = (wxDateTime::wxDateTime_t )wxDateTime::GetNumberOfDays(_arg0,_arg1); | |
2412 | ||
2413 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2414 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2415 | } _resultobj = Py_BuildValue("h",_result); |
2416 | return _resultobj; | |
2417 | } | |
2418 | ||
2419 | static PyObject *_wrap_wxDateTime_GetNumberOfDaysInMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2420 | PyObject * _resultobj; | |
2421 | wxDateTime::wxDateTime_t _result; | |
2422 | wxDateTime::Month _arg0; | |
2423 | int _arg1 = (int ) wxDateTime::Inv_Year; | |
2424 | wxDateTime::Calendar _arg2 = (wxDateTime::Calendar ) wxDateTime::Gregorian; | |
2425 | char *_kwnames[] = { "month","year","cal", NULL }; | |
2426 | ||
2427 | self = self; | |
2428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i|ii:wxDateTime_GetNumberOfDaysInMonth",_kwnames,&_arg0,&_arg1,&_arg2)) | |
2429 | return NULL; | |
2430 | { | |
2431 | wxPy_BEGIN_ALLOW_THREADS; | |
2432 | _result = (wxDateTime::wxDateTime_t )wxDateTime::GetNumberOfDays(_arg0,_arg1,_arg2); | |
2433 | ||
2434 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2435 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2436 | } _resultobj = Py_BuildValue("h",_result); |
2437 | return _resultobj; | |
2438 | } | |
2439 | ||
2440 | static PyObject *_wrap_wxDateTime_GetMonthName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2441 | PyObject * _resultobj; | |
2442 | wxString * _result; | |
2443 | wxDateTime::Month _arg0; | |
2444 | wxDateTime::NameFlags _arg1 = (wxDateTime::NameFlags ) wxDateTime::Name_Full; | |
2445 | char *_kwnames[] = { "month","flags", NULL }; | |
2446 | ||
2447 | self = self; | |
2448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i|i:wxDateTime_GetMonthName",_kwnames,&_arg0,&_arg1)) | |
2449 | return NULL; | |
2450 | { | |
2451 | wxPy_BEGIN_ALLOW_THREADS; | |
2452 | _result = new wxString (wxDateTime::GetMonthName(_arg0,_arg1)); | |
2453 | ||
2454 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2455 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2456 | }{ |
2457 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
2458 | } | |
2459 | { | |
2460 | delete _result; | |
2461 | } | |
2462 | return _resultobj; | |
2463 | } | |
2464 | ||
2465 | static PyObject *_wrap_wxDateTime_GetWeekDayName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2466 | PyObject * _resultobj; | |
2467 | wxString * _result; | |
2468 | wxDateTime::WeekDay _arg0; | |
2469 | wxDateTime::NameFlags _arg1 = (wxDateTime::NameFlags ) wxDateTime::Name_Full; | |
2470 | char *_kwnames[] = { "weekday","flags", NULL }; | |
2471 | ||
2472 | self = self; | |
2473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i|i:wxDateTime_GetWeekDayName",_kwnames,&_arg0,&_arg1)) | |
2474 | return NULL; | |
2475 | { | |
2476 | wxPy_BEGIN_ALLOW_THREADS; | |
2477 | _result = new wxString (wxDateTime::GetWeekDayName(_arg0,_arg1)); | |
2478 | ||
2479 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2480 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2481 | }{ |
2482 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
2483 | } | |
2484 | { | |
2485 | delete _result; | |
2486 | } | |
2487 | return _resultobj; | |
2488 | } | |
2489 | ||
2490 | static PyObject *_wrap_wxDateTime_GetAmPmStrings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2491 | PyObject * _resultobj; | |
2492 | wxString * _arg0; | |
2493 | wxString * _arg1; | |
2494 | PyObject * _obj0 = 0; | |
2495 | PyObject * _obj1 = 0; | |
2496 | char *_kwnames[] = { "OUTPUT","OUTPUT", NULL }; | |
2497 | ||
2498 | self = self; | |
2499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDateTime_GetAmPmStrings",_kwnames,&_obj0,&_obj1)) | |
2500 | return NULL; | |
2501 | { | |
2cd2fac8 RD |
2502 | #if PYTHON_API_VERSION >= 1009 |
2503 | char* tmpPtr; int tmpSize; | |
2504 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
7a446686 | 2505 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
2506 | return NULL; |
2507 | } | |
2508 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
2509 | return NULL; | |
2510 | _arg0 = new wxString(tmpPtr, tmpSize); | |
2511 | #else | |
f6bcfd97 BP |
2512 | if (!PyString_Check(_obj0)) { |
2513 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2514 | return NULL; | |
2515 | } | |
2cd2fac8 RD |
2516 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
2517 | #endif | |
f6bcfd97 BP |
2518 | } |
2519 | { | |
2cd2fac8 RD |
2520 | #if PYTHON_API_VERSION >= 1009 |
2521 | char* tmpPtr; int tmpSize; | |
2522 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 2523 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
2524 | return NULL; |
2525 | } | |
2526 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
2527 | return NULL; | |
2528 | _arg1 = new wxString(tmpPtr, tmpSize); | |
2529 | #else | |
f6bcfd97 BP |
2530 | if (!PyString_Check(_obj1)) { |
2531 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2532 | return NULL; | |
2533 | } | |
2cd2fac8 RD |
2534 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
2535 | #endif | |
f6bcfd97 BP |
2536 | } |
2537 | { | |
2538 | wxPy_BEGIN_ALLOW_THREADS; | |
2539 | wxDateTime::GetAmPmStrings(_arg0,_arg1); | |
2540 | ||
2541 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2542 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2543 | } Py_INCREF(Py_None); |
2544 | _resultobj = Py_None; | |
2545 | { | |
2546 | if (_obj0) | |
2547 | delete _arg0; | |
2548 | } | |
2549 | { | |
2550 | if (_obj1) | |
2551 | delete _arg1; | |
2552 | } | |
2553 | return _resultobj; | |
2554 | } | |
2555 | ||
2556 | static PyObject *_wrap_wxDateTime_IsDSTApplicable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2557 | PyObject * _resultobj; | |
2558 | bool _result; | |
2559 | int _arg0 = (int ) wxDateTime::Inv_Year; | |
2560 | wxDateTime::Country _arg1 = (wxDateTime::Country ) wxDateTime::Country_Default; | |
2561 | char *_kwnames[] = { "year","country", NULL }; | |
2562 | ||
2563 | self = self; | |
2564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|ii:wxDateTime_IsDSTApplicable",_kwnames,&_arg0,&_arg1)) | |
2565 | return NULL; | |
2566 | { | |
2567 | wxPy_BEGIN_ALLOW_THREADS; | |
2568 | _result = (bool )wxDateTime::IsDSTApplicable(_arg0,_arg1); | |
2569 | ||
2570 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2571 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2572 | } _resultobj = Py_BuildValue("i",_result); |
2573 | return _resultobj; | |
2574 | } | |
2575 | ||
2576 | static PyObject *_wrap_wxDateTime_GetBeginDST(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2577 | PyObject * _resultobj; | |
2578 | wxDateTime * _result; | |
2579 | int _arg0 = (int ) wxDateTime::Inv_Year; | |
2580 | wxDateTime::Country _arg1 = (wxDateTime::Country ) wxDateTime::Country_Default; | |
2581 | char *_kwnames[] = { "year","country", NULL }; | |
2582 | char _ptemp[128]; | |
2583 | ||
2584 | self = self; | |
2585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|ii:wxDateTime_GetBeginDST",_kwnames,&_arg0,&_arg1)) | |
2586 | return NULL; | |
2587 | { | |
2588 | wxPy_BEGIN_ALLOW_THREADS; | |
2589 | _result = new wxDateTime (wxDateTime::GetBeginDST(_arg0,_arg1)); | |
2590 | ||
2591 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2592 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2593 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxDateTime_p"); |
2594 | _resultobj = Py_BuildValue("s",_ptemp); | |
2595 | return _resultobj; | |
2596 | } | |
2597 | ||
2598 | static PyObject *_wrap_wxDateTime_GetEndDST(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2599 | PyObject * _resultobj; | |
2600 | wxDateTime * _result; | |
2601 | int _arg0 = (int ) wxDateTime::Inv_Year; | |
2602 | wxDateTime::Country _arg1 = (wxDateTime::Country ) wxDateTime::Country_Default; | |
2603 | char *_kwnames[] = { "year","country", NULL }; | |
2604 | char _ptemp[128]; | |
2605 | ||
2606 | self = self; | |
2607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|ii:wxDateTime_GetEndDST",_kwnames,&_arg0,&_arg1)) | |
2608 | return NULL; | |
2609 | { | |
2610 | wxPy_BEGIN_ALLOW_THREADS; | |
2611 | _result = new wxDateTime (wxDateTime::GetEndDST(_arg0,_arg1)); | |
2612 | ||
2613 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2614 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2615 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxDateTime_p"); |
2616 | _resultobj = Py_BuildValue("s",_ptemp); | |
2617 | return _resultobj; | |
2618 | } | |
2619 | ||
2620 | static PyObject *_wrap_wxDateTime_Now(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2621 | PyObject * _resultobj; | |
2622 | wxDateTime * _result; | |
2623 | char *_kwnames[] = { NULL }; | |
2624 | char _ptemp[128]; | |
2625 | ||
2626 | self = self; | |
2627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxDateTime_Now",_kwnames)) | |
2628 | return NULL; | |
2629 | { | |
2630 | wxPy_BEGIN_ALLOW_THREADS; | |
2631 | _result = new wxDateTime (wxDateTime::Now()); | |
2632 | ||
2633 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2634 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2635 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxDateTime_p"); |
2636 | _resultobj = Py_BuildValue("s",_ptemp); | |
2637 | return _resultobj; | |
2638 | } | |
2639 | ||
2640 | static PyObject *_wrap_wxDateTime_Today(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2641 | PyObject * _resultobj; | |
2642 | wxDateTime * _result; | |
2643 | char *_kwnames[] = { NULL }; | |
2644 | char _ptemp[128]; | |
2645 | ||
2646 | self = self; | |
2647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxDateTime_Today",_kwnames)) | |
2648 | return NULL; | |
2649 | { | |
2650 | wxPy_BEGIN_ALLOW_THREADS; | |
2651 | _result = new wxDateTime (wxDateTime::Today()); | |
2652 | ||
2653 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2654 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2655 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxDateTime_p"); |
2656 | _resultobj = Py_BuildValue("s",_ptemp); | |
2657 | return _resultobj; | |
2658 | } | |
2659 | ||
2660 | #define new_wxDateTime() (new wxDateTime()) | |
2661 | static PyObject *_wrap_new_wxDateTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2662 | PyObject * _resultobj; | |
2663 | wxDateTime * _result; | |
2664 | char *_kwnames[] = { NULL }; | |
2665 | char _ptemp[128]; | |
2666 | ||
2667 | self = self; | |
2668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxDateTime",_kwnames)) | |
2669 | return NULL; | |
2670 | { | |
2671 | wxPy_BEGIN_ALLOW_THREADS; | |
2672 | _result = (wxDateTime *)new_wxDateTime(); | |
2673 | ||
2674 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2675 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2676 | } if (_result) { |
2677 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateTime_p"); | |
2678 | _resultobj = Py_BuildValue("s",_ptemp); | |
2679 | } else { | |
2680 | Py_INCREF(Py_None); | |
2681 | _resultobj = Py_None; | |
2682 | } | |
2683 | return _resultobj; | |
2684 | } | |
2685 | ||
2686 | #define new_wxDateTimeFromTimeT(_swigarg0) (new wxDateTime(_swigarg0)) | |
2687 | static PyObject *_wrap_new_wxDateTimeFromTimeT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2688 | PyObject * _resultobj; | |
2689 | wxDateTime * _result; | |
c368d904 | 2690 | time_t _arg0; |
f6bcfd97 BP |
2691 | char *_kwnames[] = { "timet", NULL }; |
2692 | char _ptemp[128]; | |
2693 | ||
2694 | self = self; | |
c368d904 | 2695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:new_wxDateTimeFromTimeT",_kwnames,&_arg0)) |
f6bcfd97 | 2696 | return NULL; |
f6bcfd97 BP |
2697 | { |
2698 | wxPy_BEGIN_ALLOW_THREADS; | |
c368d904 | 2699 | _result = (wxDateTime *)new_wxDateTimeFromTimeT(_arg0); |
f6bcfd97 BP |
2700 | |
2701 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2702 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2703 | } if (_result) { |
2704 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateTime_p"); | |
2705 | _resultobj = Py_BuildValue("s",_ptemp); | |
2706 | } else { | |
2707 | Py_INCREF(Py_None); | |
2708 | _resultobj = Py_None; | |
2709 | } | |
2710 | return _resultobj; | |
2711 | } | |
2712 | ||
2713 | #define new_wxDateTimeFromJDN(_swigarg0) (new wxDateTime(_swigarg0)) | |
2714 | static PyObject *_wrap_new_wxDateTimeFromJDN(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2715 | PyObject * _resultobj; | |
2716 | wxDateTime * _result; | |
2717 | double _arg0; | |
2718 | char *_kwnames[] = { "jdn", NULL }; | |
2719 | char _ptemp[128]; | |
2720 | ||
2721 | self = self; | |
2722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"d:new_wxDateTimeFromJDN",_kwnames,&_arg0)) | |
2723 | return NULL; | |
2724 | { | |
2725 | wxPy_BEGIN_ALLOW_THREADS; | |
2726 | _result = (wxDateTime *)new_wxDateTimeFromJDN(_arg0); | |
2727 | ||
2728 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2729 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2730 | } if (_result) { |
2731 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateTime_p"); | |
2732 | _resultobj = Py_BuildValue("s",_ptemp); | |
2733 | } else { | |
2734 | Py_INCREF(Py_None); | |
2735 | _resultobj = Py_None; | |
2736 | } | |
2737 | return _resultobj; | |
2738 | } | |
2739 | ||
2740 | #define new_wxDateTimeFromHMS(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxDateTime(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
2741 | static PyObject *_wrap_new_wxDateTimeFromHMS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2742 | PyObject * _resultobj; | |
2743 | wxDateTime * _result; | |
2744 | wxDateTime::wxDateTime_t _arg0; | |
2745 | wxDateTime::wxDateTime_t _arg1 = (wxDateTime::wxDateTime_t ) 0; | |
2746 | wxDateTime::wxDateTime_t _arg2 = (wxDateTime::wxDateTime_t ) 0; | |
2747 | wxDateTime::wxDateTime_t _arg3 = (wxDateTime::wxDateTime_t ) 0; | |
2748 | char *_kwnames[] = { "hour","minute","second","millisec", NULL }; | |
2749 | char _ptemp[128]; | |
2750 | ||
2751 | self = self; | |
2752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"h|hhh:new_wxDateTimeFromHMS",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3)) | |
2753 | return NULL; | |
2754 | { | |
2755 | wxPy_BEGIN_ALLOW_THREADS; | |
2756 | _result = (wxDateTime *)new_wxDateTimeFromHMS(_arg0,_arg1,_arg2,_arg3); | |
2757 | ||
2758 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2759 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2760 | } if (_result) { |
2761 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateTime_p"); | |
2762 | _resultobj = Py_BuildValue("s",_ptemp); | |
2763 | } else { | |
2764 | Py_INCREF(Py_None); | |
2765 | _resultobj = Py_None; | |
2766 | } | |
2767 | return _resultobj; | |
2768 | } | |
2769 | ||
2770 | #define new_wxDateTimeFromDMY(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxDateTime(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
2771 | static PyObject *_wrap_new_wxDateTimeFromDMY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2772 | PyObject * _resultobj; | |
2773 | wxDateTime * _result; | |
2774 | wxDateTime::wxDateTime_t _arg0; | |
2775 | wxDateTime::Month _arg1 = (wxDateTime::Month ) wxDateTime::Inv_Month; | |
2776 | int _arg2 = (int ) wxDateTime::Inv_Year; | |
2777 | wxDateTime::wxDateTime_t _arg3 = (wxDateTime::wxDateTime_t ) 0; | |
2778 | wxDateTime::wxDateTime_t _arg4 = (wxDateTime::wxDateTime_t ) 0; | |
2779 | wxDateTime::wxDateTime_t _arg5 = (wxDateTime::wxDateTime_t ) 0; | |
2780 | wxDateTime::wxDateTime_t _arg6 = (wxDateTime::wxDateTime_t ) 0; | |
2781 | char *_kwnames[] = { "day","month","year","hour","minute","second","millisec", NULL }; | |
2782 | char _ptemp[128]; | |
2783 | ||
2784 | self = self; | |
2785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"h|iihhhh:new_wxDateTimeFromDMY",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) | |
2786 | return NULL; | |
2787 | { | |
2788 | wxPy_BEGIN_ALLOW_THREADS; | |
2789 | _result = (wxDateTime *)new_wxDateTimeFromDMY(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); | |
2790 | ||
2791 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2792 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2793 | } if (_result) { |
2794 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateTime_p"); | |
2795 | _resultobj = Py_BuildValue("s",_ptemp); | |
2796 | } else { | |
2797 | Py_INCREF(Py_None); | |
2798 | _resultobj = Py_None; | |
2799 | } | |
2800 | return _resultobj; | |
2801 | } | |
2802 | ||
2803 | #define delete_wxDateTime(_swigobj) (delete _swigobj) | |
2804 | static PyObject *_wrap_delete_wxDateTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2805 | PyObject * _resultobj; | |
2806 | wxDateTime * _arg0; | |
2807 | PyObject * _argo0 = 0; | |
2808 | char *_kwnames[] = { "self", NULL }; | |
2809 | ||
2810 | self = self; | |
2811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxDateTime",_kwnames,&_argo0)) | |
2812 | return NULL; | |
2813 | if (_argo0) { | |
2814 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2815 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
2816 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxDateTime. Expected _wxDateTime_p."); | |
2817 | return NULL; | |
2818 | } | |
2819 | } | |
2820 | { | |
2821 | wxPy_BEGIN_ALLOW_THREADS; | |
2822 | delete_wxDateTime(_arg0); | |
2823 | ||
2824 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2825 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2826 | } Py_INCREF(Py_None); |
2827 | _resultobj = Py_None; | |
2828 | return _resultobj; | |
2829 | } | |
2830 | ||
2831 | #define wxDateTime_SetToCurrent(_swigobj) (_swigobj->SetToCurrent()) | |
2832 | static PyObject *_wrap_wxDateTime_SetToCurrent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2833 | PyObject * _resultobj; | |
2834 | wxDateTime * _result; | |
2835 | wxDateTime * _arg0; | |
2836 | PyObject * _argo0 = 0; | |
2837 | char *_kwnames[] = { "self", NULL }; | |
2838 | char _ptemp[128]; | |
2839 | ||
2840 | self = self; | |
2841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDateTime_SetToCurrent",_kwnames,&_argo0)) | |
2842 | return NULL; | |
2843 | if (_argo0) { | |
2844 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2845 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
2846 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_SetToCurrent. Expected _wxDateTime_p."); | |
2847 | return NULL; | |
2848 | } | |
2849 | } | |
2850 | { | |
2851 | wxPy_BEGIN_ALLOW_THREADS; | |
2852 | wxDateTime & _result_ref = wxDateTime_SetToCurrent(_arg0); | |
2853 | _result = (wxDateTime *) &_result_ref; | |
2854 | ||
2855 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2856 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2857 | } if (_result) { |
2858 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateTime_p"); | |
2859 | _resultobj = Py_BuildValue("s",_ptemp); | |
2860 | } else { | |
2861 | Py_INCREF(Py_None); | |
2862 | _resultobj = Py_None; | |
2863 | } | |
2864 | return _resultobj; | |
2865 | } | |
2866 | ||
2867 | #define wxDateTime_SetTimeT(_swigobj,_swigarg0) (_swigobj->Set(_swigarg0)) | |
2868 | static PyObject *_wrap_wxDateTime_SetTimeT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2869 | PyObject * _resultobj; | |
2870 | wxDateTime * _result; | |
2871 | wxDateTime * _arg0; | |
c368d904 | 2872 | time_t _arg1; |
f6bcfd97 | 2873 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
2874 | char *_kwnames[] = { "self","timet", NULL }; |
2875 | char _ptemp[128]; | |
2876 | ||
2877 | self = self; | |
c368d904 | 2878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDateTime_SetTimeT",_kwnames,&_argo0,&_arg1)) |
f6bcfd97 BP |
2879 | return NULL; |
2880 | if (_argo0) { | |
2881 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2882 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
2883 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_SetTimeT. Expected _wxDateTime_p."); | |
2884 | return NULL; | |
2885 | } | |
2886 | } | |
f6bcfd97 BP |
2887 | { |
2888 | wxPy_BEGIN_ALLOW_THREADS; | |
c368d904 | 2889 | wxDateTime & _result_ref = wxDateTime_SetTimeT(_arg0,_arg1); |
f6bcfd97 BP |
2890 | _result = (wxDateTime *) &_result_ref; |
2891 | ||
2892 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2893 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2894 | } if (_result) { |
2895 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateTime_p"); | |
2896 | _resultobj = Py_BuildValue("s",_ptemp); | |
2897 | } else { | |
2898 | Py_INCREF(Py_None); | |
2899 | _resultobj = Py_None; | |
2900 | } | |
2901 | return _resultobj; | |
2902 | } | |
2903 | ||
2904 | #define wxDateTime_SetJDN(_swigobj,_swigarg0) (_swigobj->Set(_swigarg0)) | |
2905 | static PyObject *_wrap_wxDateTime_SetJDN(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2906 | PyObject * _resultobj; | |
2907 | wxDateTime * _result; | |
2908 | wxDateTime * _arg0; | |
2909 | double _arg1; | |
2910 | PyObject * _argo0 = 0; | |
2911 | char *_kwnames[] = { "self","jdn", NULL }; | |
2912 | char _ptemp[128]; | |
2913 | ||
2914 | self = self; | |
2915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Od:wxDateTime_SetJDN",_kwnames,&_argo0,&_arg1)) | |
2916 | return NULL; | |
2917 | if (_argo0) { | |
2918 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2919 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
2920 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_SetJDN. Expected _wxDateTime_p."); | |
2921 | return NULL; | |
2922 | } | |
2923 | } | |
2924 | { | |
2925 | wxPy_BEGIN_ALLOW_THREADS; | |
2926 | wxDateTime & _result_ref = wxDateTime_SetJDN(_arg0,_arg1); | |
2927 | _result = (wxDateTime *) &_result_ref; | |
2928 | ||
2929 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2930 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2931 | } if (_result) { |
2932 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateTime_p"); | |
2933 | _resultobj = Py_BuildValue("s",_ptemp); | |
2934 | } else { | |
2935 | Py_INCREF(Py_None); | |
2936 | _resultobj = Py_None; | |
2937 | } | |
2938 | return _resultobj; | |
2939 | } | |
2940 | ||
2941 | #define wxDateTime_SetHMS(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Set(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
2942 | static PyObject *_wrap_wxDateTime_SetHMS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2943 | PyObject * _resultobj; | |
2944 | wxDateTime * _result; | |
2945 | wxDateTime * _arg0; | |
2946 | wxDateTime::wxDateTime_t _arg1; | |
2947 | wxDateTime::wxDateTime_t _arg2 = (wxDateTime::wxDateTime_t ) 0; | |
2948 | wxDateTime::wxDateTime_t _arg3 = (wxDateTime::wxDateTime_t ) 0; | |
2949 | wxDateTime::wxDateTime_t _arg4 = (wxDateTime::wxDateTime_t ) 0; | |
2950 | PyObject * _argo0 = 0; | |
2951 | char *_kwnames[] = { "self","hour","minute","second","millisec", NULL }; | |
2952 | char _ptemp[128]; | |
2953 | ||
2954 | self = self; | |
2955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oh|hhh:wxDateTime_SetHMS",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
2956 | return NULL; | |
2957 | if (_argo0) { | |
2958 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2959 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
2960 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_SetHMS. Expected _wxDateTime_p."); | |
2961 | return NULL; | |
2962 | } | |
2963 | } | |
2964 | { | |
2965 | wxPy_BEGIN_ALLOW_THREADS; | |
2966 | wxDateTime & _result_ref = wxDateTime_SetHMS(_arg0,_arg1,_arg2,_arg3,_arg4); | |
2967 | _result = (wxDateTime *) &_result_ref; | |
2968 | ||
2969 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2970 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2971 | } if (_result) { |
2972 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateTime_p"); | |
2973 | _resultobj = Py_BuildValue("s",_ptemp); | |
2974 | } else { | |
2975 | Py_INCREF(Py_None); | |
2976 | _resultobj = Py_None; | |
2977 | } | |
2978 | return _resultobj; | |
2979 | } | |
2980 | ||
2981 | #define wxDateTime_Set(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Set(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
2982 | static PyObject *_wrap_wxDateTime_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2983 | PyObject * _resultobj; | |
2984 | wxDateTime * _result; | |
2985 | wxDateTime * _arg0; | |
2986 | wxDateTime::wxDateTime_t _arg1; | |
2987 | wxDateTime::Month _arg2 = (wxDateTime::Month ) wxDateTime::Inv_Month; | |
2988 | int _arg3 = (int ) wxDateTime::Inv_Year; | |
2989 | wxDateTime::wxDateTime_t _arg4 = (wxDateTime::wxDateTime_t ) 0; | |
2990 | wxDateTime::wxDateTime_t _arg5 = (wxDateTime::wxDateTime_t ) 0; | |
2991 | wxDateTime::wxDateTime_t _arg6 = (wxDateTime::wxDateTime_t ) 0; | |
2992 | wxDateTime::wxDateTime_t _arg7 = (wxDateTime::wxDateTime_t ) 0; | |
2993 | PyObject * _argo0 = 0; | |
2994 | char *_kwnames[] = { "self","day","month","year","hour","minute","second","millisec", NULL }; | |
2995 | char _ptemp[128]; | |
2996 | ||
2997 | self = self; | |
2998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oh|iihhhh:wxDateTime_Set",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6,&_arg7)) | |
2999 | return NULL; | |
3000 | if (_argo0) { | |
3001 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3002 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
3003 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_Set. Expected _wxDateTime_p."); | |
3004 | return NULL; | |
3005 | } | |
3006 | } | |
3007 | { | |
3008 | wxPy_BEGIN_ALLOW_THREADS; | |
3009 | wxDateTime & _result_ref = wxDateTime_Set(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7); | |
3010 | _result = (wxDateTime *) &_result_ref; | |
3011 | ||
3012 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3013 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
3014 | } if (_result) { |
3015 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateTime_p"); | |
3016 | _resultobj = Py_BuildValue("s",_ptemp); | |
3017 | } else { | |
3018 | Py_INCREF(Py_None); | |
3019 | _resultobj = Py_None; | |
3020 | } | |
3021 | return _resultobj; | |
3022 | } | |
3023 | ||
3024 | #define wxDateTime_ResetTime(_swigobj) (_swigobj->ResetTime()) | |
3025 | static PyObject *_wrap_wxDateTime_ResetTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3026 | PyObject * _resultobj; | |
3027 | wxDateTime * _result; | |
3028 | wxDateTime * _arg0; | |
3029 | PyObject * _argo0 = 0; | |
3030 | char *_kwnames[] = { "self", NULL }; | |
3031 | char _ptemp[128]; | |
3032 | ||
3033 | self = self; | |
3034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDateTime_ResetTime",_kwnames,&_argo0)) | |
3035 | return NULL; | |
3036 | if (_argo0) { | |
3037 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3038 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
3039 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_ResetTime. Expected _wxDateTime_p."); | |
3040 | return NULL; | |
3041 | } | |
3042 | } | |
3043 | { | |
3044 | wxPy_BEGIN_ALLOW_THREADS; | |
3045 | wxDateTime & _result_ref = wxDateTime_ResetTime(_arg0); | |
3046 | _result = (wxDateTime *) &_result_ref; | |
3047 | ||
3048 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3049 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
3050 | } if (_result) { |
3051 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateTime_p"); | |
3052 | _resultobj = Py_BuildValue("s",_ptemp); | |
3053 | } else { | |
3054 | Py_INCREF(Py_None); | |
3055 | _resultobj = Py_None; | |
3056 | } | |
3057 | return _resultobj; | |
3058 | } | |
3059 | ||
3060 | #define wxDateTime_SetYear(_swigobj,_swigarg0) (_swigobj->SetYear(_swigarg0)) | |
3061 | static PyObject *_wrap_wxDateTime_SetYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3062 | PyObject * _resultobj; | |
3063 | wxDateTime * _result; | |
3064 | wxDateTime * _arg0; | |
3065 | int _arg1; | |
3066 | PyObject * _argo0 = 0; | |
3067 | char *_kwnames[] = { "self","year", NULL }; | |
3068 | char _ptemp[128]; | |
3069 | ||
3070 | self = self; | |
3071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDateTime_SetYear",_kwnames,&_argo0,&_arg1)) | |
3072 | return NULL; | |
3073 | if (_argo0) { | |
3074 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3075 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
3076 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_SetYear. Expected _wxDateTime_p."); | |
3077 | return NULL; | |
3078 | } | |
3079 | } | |
3080 | { | |
3081 | wxPy_BEGIN_ALLOW_THREADS; | |
3082 | wxDateTime & _result_ref = wxDateTime_SetYear(_arg0,_arg1); | |
3083 | _result = (wxDateTime *) &_result_ref; | |
3084 | ||
3085 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3086 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
3087 | } if (_result) { |
3088 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateTime_p"); | |
3089 | _resultobj = Py_BuildValue("s",_ptemp); | |
3090 | } else { | |
3091 | Py_INCREF(Py_None); | |
3092 | _resultobj = Py_None; | |
3093 | } | |
3094 | return _resultobj; | |
3095 | } | |
3096 | ||
3097 | #define wxDateTime_SetMonth(_swigobj,_swigarg0) (_swigobj->SetMonth(_swigarg0)) | |
3098 | static PyObject *_wrap_wxDateTime_SetMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3099 | PyObject * _resultobj; | |
3100 | wxDateTime * _result; | |
3101 | wxDateTime * _arg0; | |
3102 | wxDateTime::Month _arg1; | |
3103 | PyObject * _argo0 = 0; | |
3104 | char *_kwnames[] = { "self","month", NULL }; | |
3105 | char _ptemp[128]; | |
3106 | ||
3107 | self = self; | |
3108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDateTime_SetMonth",_kwnames,&_argo0,&_arg1)) | |
3109 | return NULL; | |
3110 | if (_argo0) { | |
3111 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3112 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
3113 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_SetMonth. Expected _wxDateTime_p."); | |
3114 | return NULL; | |
3115 | } | |
3116 | } | |
3117 | { | |
3118 | wxPy_BEGIN_ALLOW_THREADS; | |
3119 | wxDateTime & _result_ref = wxDateTime_SetMonth(_arg0,_arg1); | |
3120 | _result = (wxDateTime *) &_result_ref; | |
3121 | ||
3122 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3123 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
3124 | } if (_result) { |
3125 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateTime_p"); | |
3126 | _resultobj = Py_BuildValue("s",_ptemp); | |
3127 | } else { | |
3128 | Py_INCREF(Py_None); | |
3129 | _resultobj = Py_None; | |
3130 | } | |
3131 | return _resultobj; | |
3132 | } | |
3133 | ||
3134 | #define wxDateTime_SetDay(_swigobj,_swigarg0) (_swigobj->SetDay(_swigarg0)) | |
3135 | static PyObject *_wrap_wxDateTime_SetDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3136 | PyObject * _resultobj; | |
3137 | wxDateTime * _result; | |
3138 | wxDateTime * _arg0; | |
3139 | wxDateTime::wxDateTime_t _arg1; | |
3140 | PyObject * _argo0 = 0; | |
3141 | char *_kwnames[] = { "self","day", NULL }; | |
3142 | char _ptemp[128]; | |
3143 | ||
3144 | self = self; | |
3145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oh:wxDateTime_SetDay",_kwnames,&_argo0,&_arg1)) | |
3146 | return NULL; | |
3147 | if (_argo0) { | |
3148 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3149 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
3150 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_SetDay. Expected _wxDateTime_p."); | |
3151 | return NULL; | |
3152 | } | |
3153 | } | |
3154 | { | |
3155 | wxPy_BEGIN_ALLOW_THREADS; | |
3156 | wxDateTime & _result_ref = wxDateTime_SetDay(_arg0,_arg1); | |
3157 | _result = (wxDateTime *) &_result_ref; | |
3158 | ||
3159 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3160 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
3161 | } if (_result) { |
3162 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateTime_p"); | |
3163 | _resultobj = Py_BuildValue("s",_ptemp); | |
3164 | } else { | |
3165 | Py_INCREF(Py_None); | |
3166 | _resultobj = Py_None; | |
3167 | } | |
3168 | return _resultobj; | |
3169 | } | |
3170 | ||
3171 | #define wxDateTime_SetHour(_swigobj,_swigarg0) (_swigobj->SetHour(_swigarg0)) | |
3172 | static PyObject *_wrap_wxDateTime_SetHour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3173 | PyObject * _resultobj; | |
3174 | wxDateTime * _result; | |
3175 | wxDateTime * _arg0; | |
3176 | wxDateTime::wxDateTime_t _arg1; | |
3177 | PyObject * _argo0 = 0; | |
3178 | char *_kwnames[] = { "self","hour", NULL }; | |
3179 | char _ptemp[128]; | |
3180 | ||
3181 | self = self; | |
3182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oh:wxDateTime_SetHour",_kwnames,&_argo0,&_arg1)) | |
3183 | return NULL; | |
3184 | if (_argo0) { | |
3185 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3186 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
3187 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_SetHour. Expected _wxDateTime_p."); | |
3188 | return NULL; | |
3189 | } | |
3190 | } | |
3191 | { | |
3192 | wxPy_BEGIN_ALLOW_THREADS; | |
3193 | wxDateTime & _result_ref = wxDateTime_SetHour(_arg0,_arg1); | |
3194 | _result = (wxDateTime *) &_result_ref; | |
3195 | ||
3196 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3197 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
3198 | } if (_result) { |
3199 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateTime_p"); | |
3200 | _resultobj = Py_BuildValue("s",_ptemp); | |
3201 | } else { | |
3202 | Py_INCREF(Py_None); | |
3203 | _resultobj = Py_None; | |
3204 | } | |
3205 | return _resultobj; | |
3206 | } | |
3207 | ||
3208 | #define wxDateTime_SetMinute(_swigobj,_swigarg0) (_swigobj->SetMinute(_swigarg0)) | |
3209 | static PyObject *_wrap_wxDateTime_SetMinute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3210 | PyObject * _resultobj; | |
3211 | wxDateTime * _result; | |
3212 | wxDateTime * _arg0; | |
3213 | wxDateTime::wxDateTime_t _arg1; | |
3214 | PyObject * _argo0 = 0; | |
3215 | char *_kwnames[] = { "self","minute", NULL }; | |
3216 | char _ptemp[128]; | |
3217 | ||
3218 | self = self; | |
3219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oh:wxDateTime_SetMinute",_kwnames,&_argo0,&_arg1)) | |
3220 | return NULL; | |
3221 | if (_argo0) { | |
3222 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3223 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
3224 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_SetMinute. Expected _wxDateTime_p."); | |
3225 | return NULL; | |
3226 | } | |
3227 | } | |
3228 | { | |
3229 | wxPy_BEGIN_ALLOW_THREADS; | |
3230 | wxDateTime & _result_ref = wxDateTime_SetMinute(_arg0,_arg1); | |
3231 | _result = (wxDateTime *) &_result_ref; | |
3232 | ||
3233 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3234 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
3235 | } if (_result) { |
3236 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateTime_p"); | |
3237 | _resultobj = Py_BuildValue("s",_ptemp); | |
3238 | } else { | |
3239 | Py_INCREF(Py_None); | |
3240 | _resultobj = Py_None; | |
3241 | } | |
3242 | return _resultobj; | |
3243 | } | |
3244 | ||
3245 | #define wxDateTime_SetSecond(_swigobj,_swigarg0) (_swigobj->SetSecond(_swigarg0)) | |
3246 | static PyObject *_wrap_wxDateTime_SetSecond(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3247 | PyObject * _resultobj; | |
3248 | wxDateTime * _result; | |
3249 | wxDateTime * _arg0; | |
3250 | wxDateTime::wxDateTime_t _arg1; | |
3251 | PyObject * _argo0 = 0; | |
3252 | char *_kwnames[] = { "self","second", NULL }; | |
3253 | char _ptemp[128]; | |
3254 | ||
3255 | self = self; | |
3256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oh:wxDateTime_SetSecond",_kwnames,&_argo0,&_arg1)) | |
3257 | return NULL; | |
3258 | if (_argo0) { | |
3259 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3260 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
3261 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_SetSecond. Expected _wxDateTime_p."); | |
3262 | return NULL; | |
3263 | } | |
3264 | } | |
3265 | { | |
3266 | wxPy_BEGIN_ALLOW_THREADS; | |
3267 | wxDateTime & _result_ref = wxDateTime_SetSecond(_arg0,_arg1); | |
3268 | _result = (wxDateTime *) &_result_ref; | |
3269 | ||
3270 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3271 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
3272 | } if (_result) { |
3273 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateTime_p"); | |
3274 | _resultobj = Py_BuildValue("s",_ptemp); | |
3275 | } else { | |
3276 | Py_INCREF(Py_None); | |
3277 | _resultobj = Py_None; | |
3278 | } | |
3279 | return _resultobj; | |
3280 | } | |
3281 | ||
3282 | #define wxDateTime_SetMillisecond(_swigobj,_swigarg0) (_swigobj->SetMillisecond(_swigarg0)) | |
3283 | static PyObject *_wrap_wxDateTime_SetMillisecond(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3284 | PyObject * _resultobj; | |
3285 | wxDateTime * _result; | |
3286 | wxDateTime * _arg0; | |
3287 | wxDateTime::wxDateTime_t _arg1; | |
3288 | PyObject * _argo0 = 0; | |
3289 | char *_kwnames[] = { "self","millisecond", NULL }; | |
3290 | char _ptemp[128]; | |
3291 | ||
3292 | self = self; | |
3293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oh:wxDateTime_SetMillisecond",_kwnames,&_argo0,&_arg1)) | |
3294 | return NULL; | |
3295 | if (_argo0) { | |
3296 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3297 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
3298 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_SetMillisecond. Expected _wxDateTime_p."); | |
3299 | return NULL; | |
3300 | } | |
3301 | } | |
3302 | { | |
3303 | wxPy_BEGIN_ALLOW_THREADS; | |
3304 | wxDateTime & _result_ref = wxDateTime_SetMillisecond(_arg0,_arg1); | |
3305 | _result = (wxDateTime *) &_result_ref; | |
3306 | ||
3307 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3308 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
3309 | } if (_result) { |
3310 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateTime_p"); | |
3311 | _resultobj = Py_BuildValue("s",_ptemp); | |
3312 | } else { | |
3313 | Py_INCREF(Py_None); | |
3314 | _resultobj = Py_None; | |
3315 | } | |
3316 | return _resultobj; | |
3317 | } | |
3318 | ||
3319 | #define wxDateTime_SetToWeekDayInSameWeek(_swigobj,_swigarg0) (_swigobj->SetToWeekDayInSameWeek(_swigarg0)) | |
3320 | static PyObject *_wrap_wxDateTime_SetToWeekDayInSameWeek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3321 | PyObject * _resultobj; | |
3322 | wxDateTime * _result; | |
3323 | wxDateTime * _arg0; | |
3324 | wxDateTime::WeekDay _arg1; | |
3325 | PyObject * _argo0 = 0; | |
3326 | char *_kwnames[] = { "self","weekday", NULL }; | |
3327 | char _ptemp[128]; | |
3328 | ||
3329 | self = self; | |
3330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDateTime_SetToWeekDayInSameWeek",_kwnames,&_argo0,&_arg1)) | |
3331 | return NULL; | |
3332 | if (_argo0) { | |
3333 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3334 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
3335 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_SetToWeekDayInSameWeek. Expected _wxDateTime_p."); | |
3336 | return NULL; | |
3337 | } | |
3338 | } | |
3339 | { | |
3340 | wxPy_BEGIN_ALLOW_THREADS; | |
3341 | wxDateTime & _result_ref = wxDateTime_SetToWeekDayInSameWeek(_arg0,_arg1); | |
3342 | _result = (wxDateTime *) &_result_ref; | |
3343 | ||
3344 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3345 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
3346 | } if (_result) { |
3347 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateTime_p"); | |
3348 | _resultobj = Py_BuildValue("s",_ptemp); | |
3349 | } else { | |
3350 | Py_INCREF(Py_None); | |
3351 | _resultobj = Py_None; | |
3352 | } | |
3353 | return _resultobj; | |
3354 | } | |
3355 | ||
3356 | #define wxDateTime_GetWeekDayInSameWeek(_swigobj,_swigarg0) (_swigobj->GetWeekDayInSameWeek(_swigarg0)) | |
3357 | static PyObject *_wrap_wxDateTime_GetWeekDayInSameWeek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3358 | PyObject * _resultobj; | |
3359 | wxDateTime * _result; | |
3360 | wxDateTime * _arg0; | |
3361 | wxDateTime::WeekDay _arg1; | |
3362 | PyObject * _argo0 = 0; | |
3363 | char *_kwnames[] = { "self","weekday", NULL }; | |
3364 | char _ptemp[128]; | |
3365 | ||
3366 | self = self; | |
3367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDateTime_GetWeekDayInSameWeek",_kwnames,&_argo0,&_arg1)) | |
3368 | return NULL; | |
3369 | if (_argo0) { | |
3370 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3371 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
3372 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_GetWeekDayInSameWeek. Expected _wxDateTime_p."); | |
3373 | return NULL; | |
3374 | } | |
3375 | } | |
3376 | { | |
3377 | wxPy_BEGIN_ALLOW_THREADS; | |
3378 | _result = new wxDateTime (wxDateTime_GetWeekDayInSameWeek(_arg0,_arg1)); | |
3379 | ||
3380 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3381 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
3382 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxDateTime_p"); |
3383 | _resultobj = Py_BuildValue("s",_ptemp); | |
3384 | return _resultobj; | |
3385 | } | |
3386 | ||
3387 | #define wxDateTime_SetToNextWeekDay(_swigobj,_swigarg0) (_swigobj->SetToNextWeekDay(_swigarg0)) | |
3388 | static PyObject *_wrap_wxDateTime_SetToNextWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3389 | PyObject * _resultobj; | |
3390 | wxDateTime * _result; | |
3391 | wxDateTime * _arg0; | |
3392 | wxDateTime::WeekDay _arg1; | |
3393 | PyObject * _argo0 = 0; | |
3394 | char *_kwnames[] = { "self","weekday", NULL }; | |
3395 | char _ptemp[128]; | |
3396 | ||
3397 | self = self; | |
3398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDateTime_SetToNextWeekDay",_kwnames,&_argo0,&_arg1)) | |
3399 | return NULL; | |
3400 | if (_argo0) { | |
3401 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3402 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
3403 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_SetToNextWeekDay. Expected _wxDateTime_p."); | |
3404 | return NULL; | |
3405 | } | |
3406 | } | |
3407 | { | |
3408 | wxPy_BEGIN_ALLOW_THREADS; | |
3409 | wxDateTime & _result_ref = wxDateTime_SetToNextWeekDay(_arg0,_arg1); | |
3410 | _result = (wxDateTime *) &_result_ref; | |
3411 | ||
3412 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3413 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
3414 | } if (_result) { |
3415 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateTime_p"); | |
3416 | _resultobj = Py_BuildValue("s",_ptemp); | |
3417 | } else { | |
3418 | Py_INCREF(Py_None); | |
3419 | _resultobj = Py_None; | |
3420 | } | |
3421 | return _resultobj; | |
3422 | } | |
3423 | ||
3424 | #define wxDateTime_GetNextWeekDay(_swigobj,_swigarg0) (_swigobj->GetNextWeekDay(_swigarg0)) | |
3425 | static PyObject *_wrap_wxDateTime_GetNextWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3426 | PyObject * _resultobj; | |
3427 | wxDateTime * _result; | |
3428 | wxDateTime * _arg0; | |
3429 | wxDateTime::WeekDay _arg1; | |
3430 | PyObject * _argo0 = 0; | |
3431 | char *_kwnames[] = { "self","weekday", NULL }; | |
3432 | char _ptemp[128]; | |
3433 | ||
3434 | self = self; | |
3435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDateTime_GetNextWeekDay",_kwnames,&_argo0,&_arg1)) | |
3436 | return NULL; | |
3437 | if (_argo0) { | |
3438 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3439 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
3440 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_GetNextWeekDay. Expected _wxDateTime_p."); | |
3441 | return NULL; | |
3442 | } | |
3443 | } | |
3444 | { | |
3445 | wxPy_BEGIN_ALLOW_THREADS; | |
3446 | _result = new wxDateTime (wxDateTime_GetNextWeekDay(_arg0,_arg1)); | |
3447 | ||
3448 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3449 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
3450 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxDateTime_p"); |
3451 | _resultobj = Py_BuildValue("s",_ptemp); | |
3452 | return _resultobj; | |
3453 | } | |
3454 | ||
3455 | #define wxDateTime_SetToPrevWeekDay(_swigobj,_swigarg0) (_swigobj->SetToPrevWeekDay(_swigarg0)) | |
3456 | static PyObject *_wrap_wxDateTime_SetToPrevWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3457 | PyObject * _resultobj; | |
3458 | wxDateTime * _result; | |
3459 | wxDateTime * _arg0; | |
3460 | wxDateTime::WeekDay _arg1; | |
3461 | PyObject * _argo0 = 0; | |
3462 | char *_kwnames[] = { "self","weekday", NULL }; | |
3463 | char _ptemp[128]; | |
3464 | ||
3465 | self = self; | |
3466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDateTime_SetToPrevWeekDay",_kwnames,&_argo0,&_arg1)) | |
3467 | return NULL; | |
3468 | if (_argo0) { | |
3469 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3470 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
3471 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_SetToPrevWeekDay. Expected _wxDateTime_p."); | |
3472 | return NULL; | |
3473 | } | |
3474 | } | |
3475 | { | |
3476 | wxPy_BEGIN_ALLOW_THREADS; | |
3477 | wxDateTime & _result_ref = wxDateTime_SetToPrevWeekDay(_arg0,_arg1); | |
3478 | _result = (wxDateTime *) &_result_ref; | |
3479 | ||
3480 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3481 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
3482 | } if (_result) { |
3483 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateTime_p"); | |
3484 | _resultobj = Py_BuildValue("s",_ptemp); | |
3485 | } else { | |
3486 | Py_INCREF(Py_None); | |
3487 | _resultobj = Py_None; | |
3488 | } | |
3489 | return _resultobj; | |
3490 | } | |
3491 | ||
3492 | #define wxDateTime_GetPrevWeekDay(_swigobj,_swigarg0) (_swigobj->GetPrevWeekDay(_swigarg0)) | |
3493 | static PyObject *_wrap_wxDateTime_GetPrevWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3494 | PyObject * _resultobj; | |
3495 | wxDateTime * _result; | |
3496 | wxDateTime * _arg0; | |
3497 | wxDateTime::WeekDay _arg1; | |
3498 | PyObject * _argo0 = 0; | |
3499 | char *_kwnames[] = { "self","weekday", NULL }; | |
3500 | char _ptemp[128]; | |
3501 | ||
3502 | self = self; | |
3503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDateTime_GetPrevWeekDay",_kwnames,&_argo0,&_arg1)) | |
3504 | return NULL; | |
3505 | if (_argo0) { | |
3506 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3507 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
3508 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_GetPrevWeekDay. Expected _wxDateTime_p."); | |
3509 | return NULL; | |
3510 | } | |
3511 | } | |
3512 | { | |
3513 | wxPy_BEGIN_ALLOW_THREADS; | |
3514 | _result = new wxDateTime (wxDateTime_GetPrevWeekDay(_arg0,_arg1)); | |
3515 | ||
3516 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3517 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
3518 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxDateTime_p"); |
3519 | _resultobj = Py_BuildValue("s",_ptemp); | |
3520 | return _resultobj; | |
3521 | } | |
3522 | ||
3523 | #define wxDateTime_SetToWeekDay(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetToWeekDay(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
3524 | static PyObject *_wrap_wxDateTime_SetToWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3525 | PyObject * _resultobj; | |
3526 | bool _result; | |
3527 | wxDateTime * _arg0; | |
3528 | wxDateTime::WeekDay _arg1; | |
3529 | int _arg2 = (int ) 1; | |
3530 | wxDateTime::Month _arg3 = (wxDateTime::Month ) wxDateTime::Inv_Month; | |
3531 | int _arg4 = (int ) wxDateTime::Inv_Year; | |
3532 | PyObject * _argo0 = 0; | |
3533 | char *_kwnames[] = { "self","weekday","n","month","year", NULL }; | |
3534 | ||
3535 | self = self; | |
3536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|iii:wxDateTime_SetToWeekDay",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
3537 | return NULL; | |
3538 | if (_argo0) { | |
3539 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3540 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
3541 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_SetToWeekDay. Expected _wxDateTime_p."); | |
3542 | return NULL; | |
3543 | } | |
3544 | } | |
3545 | { | |
3546 | wxPy_BEGIN_ALLOW_THREADS; | |
3547 | _result = (bool )wxDateTime_SetToWeekDay(_arg0,_arg1,_arg2,_arg3,_arg4); | |
3548 | ||
3549 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3550 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
3551 | } _resultobj = Py_BuildValue("i",_result); |
3552 | return _resultobj; | |
3553 | } | |
3554 | ||
f6bcfd97 BP |
3555 | #define wxDateTime_SetToLastWeekDay(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetToLastWeekDay(_swigarg0,_swigarg1,_swigarg2)) |
3556 | static PyObject *_wrap_wxDateTime_SetToLastWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3557 | PyObject * _resultobj; | |
3558 | bool _result; | |
3559 | wxDateTime * _arg0; | |
3560 | wxDateTime::WeekDay _arg1; | |
3561 | wxDateTime::Month _arg2 = (wxDateTime::Month ) wxDateTime::Inv_Month; | |
3562 | int _arg3 = (int ) wxDateTime::Inv_Year; | |
3563 | PyObject * _argo0 = 0; | |
3564 | char *_kwnames[] = { "self","weekday","month","year", NULL }; | |
3565 | ||
3566 | self = self; | |
3567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|ii:wxDateTime_SetToLastWeekDay",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) | |
3568 | return NULL; | |
3569 | if (_argo0) { | |
3570 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3571 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
3572 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_SetToLastWeekDay. Expected _wxDateTime_p."); | |
3573 | return NULL; | |
3574 | } | |
3575 | } | |
3576 | { | |
3577 | wxPy_BEGIN_ALLOW_THREADS; | |
3578 | _result = (bool )wxDateTime_SetToLastWeekDay(_arg0,_arg1,_arg2,_arg3); | |
3579 | ||
3580 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3581 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
3582 | } _resultobj = Py_BuildValue("i",_result); |
3583 | return _resultobj; | |
3584 | } | |
3585 | ||
3586 | #define wxDateTime_GetLastWeekDay(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetLastWeekDay(_swigarg0,_swigarg1,_swigarg2)) | |
3587 | static PyObject *_wrap_wxDateTime_GetLastWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3588 | PyObject * _resultobj; | |
3589 | wxDateTime * _result; | |
3590 | wxDateTime * _arg0; | |
3591 | wxDateTime::WeekDay _arg1; | |
3592 | wxDateTime::Month _arg2 = (wxDateTime::Month ) wxDateTime::Inv_Month; | |
3593 | int _arg3 = (int ) wxDateTime::Inv_Year; | |
3594 | PyObject * _argo0 = 0; | |
3595 | char *_kwnames[] = { "self","weekday","month","year", NULL }; | |
3596 | char _ptemp[128]; | |
3597 | ||
3598 | self = self; | |
3599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|ii:wxDateTime_GetLastWeekDay",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) | |
3600 | return NULL; | |
3601 | if (_argo0) { | |
3602 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3603 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
3604 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_GetLastWeekDay. Expected _wxDateTime_p."); | |
3605 | return NULL; | |
3606 | } | |
3607 | } | |
3608 | { | |
3609 | wxPy_BEGIN_ALLOW_THREADS; | |
3610 | _result = new wxDateTime (wxDateTime_GetLastWeekDay(_arg0,_arg1,_arg2,_arg3)); | |
3611 | ||
3612 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3613 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
3614 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxDateTime_p"); |
3615 | _resultobj = Py_BuildValue("s",_ptemp); | |
3616 | return _resultobj; | |
3617 | } | |
3618 | ||
3619 | #define wxDateTime_SetToTheWeek(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetToTheWeek(_swigarg0,_swigarg1)) | |
3620 | static PyObject *_wrap_wxDateTime_SetToTheWeek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3621 | PyObject * _resultobj; | |
3622 | bool _result; | |
3623 | wxDateTime * _arg0; | |
3624 | wxDateTime::wxDateTime_t _arg1; | |
3625 | wxDateTime::WeekDay _arg2 = (wxDateTime::WeekDay ) wxDateTime::Mon; | |
3626 | PyObject * _argo0 = 0; | |
3627 | char *_kwnames[] = { "self","numWeek","weekday", NULL }; | |
3628 | ||
3629 | self = self; | |
3630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oh|i:wxDateTime_SetToTheWeek",_kwnames,&_argo0,&_arg1,&_arg2)) | |
3631 | return NULL; | |
3632 | if (_argo0) { | |
3633 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3634 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
3635 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_SetToTheWeek. Expected _wxDateTime_p."); | |
3636 | return NULL; | |
3637 | } | |
3638 | } | |
3639 | { | |
3640 | wxPy_BEGIN_ALLOW_THREADS; | |
3641 | _result = (bool )wxDateTime_SetToTheWeek(_arg0,_arg1,_arg2); | |
3642 | ||
3643 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3644 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
3645 | } _resultobj = Py_BuildValue("i",_result); |
3646 | return _resultobj; | |
3647 | } | |
3648 | ||
3649 | #define wxDateTime_GetWeek(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetWeek(_swigarg0,_swigarg1)) | |
3650 | static PyObject *_wrap_wxDateTime_GetWeek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3651 | PyObject * _resultobj; | |
3652 | wxDateTime * _result; | |
3653 | wxDateTime * _arg0; | |
3654 | wxDateTime::wxDateTime_t _arg1; | |
3655 | wxDateTime::WeekDay _arg2 = (wxDateTime::WeekDay ) wxDateTime::Mon; | |
3656 | PyObject * _argo0 = 0; | |
3657 | char *_kwnames[] = { "self","numWeek","weekday", NULL }; | |
3658 | char _ptemp[128]; | |
3659 | ||
3660 | self = self; | |
3661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oh|i:wxDateTime_GetWeek",_kwnames,&_argo0,&_arg1,&_arg2)) | |
3662 | return NULL; | |
3663 | if (_argo0) { | |
3664 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3665 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
3666 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_GetWeek. Expected _wxDateTime_p."); | |
3667 | return NULL; | |
3668 | } | |
3669 | } | |
3670 | { | |
3671 | wxPy_BEGIN_ALLOW_THREADS; | |
3672 | _result = new wxDateTime (wxDateTime_GetWeek(_arg0,_arg1,_arg2)); | |
3673 | ||
3674 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3675 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
3676 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxDateTime_p"); |
3677 | _resultobj = Py_BuildValue("s",_ptemp); | |
3678 | return _resultobj; | |
3679 | } | |
3680 | ||
3681 | #define wxDateTime_SetToLastMonthDay(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetToLastMonthDay(_swigarg0,_swigarg1)) | |
3682 | static PyObject *_wrap_wxDateTime_SetToLastMonthDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3683 | PyObject * _resultobj; | |
3684 | wxDateTime * _result; | |
3685 | wxDateTime * _arg0; | |
3686 | wxDateTime::Month _arg1 = (wxDateTime::Month ) wxDateTime::Inv_Month; | |
3687 | int _arg2 = (int ) wxDateTime::Inv_Year; | |
3688 | PyObject * _argo0 = 0; | |
3689 | char *_kwnames[] = { "self","month","year", NULL }; | |
3690 | char _ptemp[128]; | |
3691 | ||
3692 | self = self; | |
3693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:wxDateTime_SetToLastMonthDay",_kwnames,&_argo0,&_arg1,&_arg2)) | |
3694 | return NULL; | |
3695 | if (_argo0) { | |
3696 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3697 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
3698 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_SetToLastMonthDay. Expected _wxDateTime_p."); | |
3699 | return NULL; | |
3700 | } | |
3701 | } | |
3702 | { | |
3703 | wxPy_BEGIN_ALLOW_THREADS; | |
3704 | wxDateTime & _result_ref = wxDateTime_SetToLastMonthDay(_arg0,_arg1,_arg2); | |
3705 | _result = (wxDateTime *) &_result_ref; | |
3706 | ||
3707 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3708 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
3709 | } if (_result) { |
3710 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateTime_p"); | |
3711 | _resultobj = Py_BuildValue("s",_ptemp); | |
3712 | } else { | |
3713 | Py_INCREF(Py_None); | |
3714 | _resultobj = Py_None; | |
3715 | } | |
3716 | return _resultobj; | |
3717 | } | |
3718 | ||
3719 | #define wxDateTime_GetLastMonthDay(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLastMonthDay(_swigarg0,_swigarg1)) | |
3720 | static PyObject *_wrap_wxDateTime_GetLastMonthDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3721 | PyObject * _resultobj; | |
3722 | wxDateTime * _result; | |
3723 | wxDateTime * _arg0; | |
3724 | wxDateTime::Month _arg1 = (wxDateTime::Month ) wxDateTime::Inv_Month; | |
3725 | int _arg2 = (int ) wxDateTime::Inv_Year; | |
3726 | PyObject * _argo0 = 0; | |
3727 | char *_kwnames[] = { "self","month","year", NULL }; | |
3728 | char _ptemp[128]; | |
3729 | ||
3730 | self = self; | |
3731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:wxDateTime_GetLastMonthDay",_kwnames,&_argo0,&_arg1,&_arg2)) | |
3732 | return NULL; | |
3733 | if (_argo0) { | |
3734 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3735 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
3736 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_GetLastMonthDay. Expected _wxDateTime_p."); | |
3737 | return NULL; | |
3738 | } | |
3739 | } | |
3740 | { | |
3741 | wxPy_BEGIN_ALLOW_THREADS; | |
3742 | _result = new wxDateTime (wxDateTime_GetLastMonthDay(_arg0,_arg1,_arg2)); | |
3743 | ||
3744 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3745 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
3746 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxDateTime_p"); |
3747 | _resultobj = Py_BuildValue("s",_ptemp); | |
3748 | return _resultobj; | |
3749 | } | |
3750 | ||
3751 | #define wxDateTime_SetToYearDay(_swigobj,_swigarg0) (_swigobj->SetToYearDay(_swigarg0)) | |
3752 | static PyObject *_wrap_wxDateTime_SetToYearDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3753 | PyObject * _resultobj; | |
3754 | wxDateTime * _result; | |
3755 | wxDateTime * _arg0; | |
3756 | wxDateTime::wxDateTime_t _arg1; | |
3757 | PyObject * _argo0 = 0; | |
3758 | char *_kwnames[] = { "self","yday", NULL }; | |
3759 | char _ptemp[128]; | |
3760 | ||
3761 | self = self; | |
3762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oh:wxDateTime_SetToYearDay",_kwnames,&_argo0,&_arg1)) | |
3763 | return NULL; | |
3764 | if (_argo0) { | |
3765 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3766 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
3767 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_SetToYearDay. Expected _wxDateTime_p."); | |
3768 | return NULL; | |
3769 | } | |
3770 | } | |
3771 | { | |
3772 | wxPy_BEGIN_ALLOW_THREADS; | |
3773 | wxDateTime & _result_ref = wxDateTime_SetToYearDay(_arg0,_arg1); | |
3774 | _result = (wxDateTime *) &_result_ref; | |
3775 | ||
3776 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3777 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
3778 | } if (_result) { |
3779 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateTime_p"); | |
3780 | _resultobj = Py_BuildValue("s",_ptemp); | |
3781 | } else { | |
3782 | Py_INCREF(Py_None); | |
3783 | _resultobj = Py_None; | |
3784 | } | |
3785 | return _resultobj; | |
3786 | } | |
3787 | ||
3788 | #define wxDateTime_GetYearDay(_swigobj,_swigarg0) (_swigobj->GetYearDay(_swigarg0)) | |
3789 | static PyObject *_wrap_wxDateTime_GetYearDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3790 | PyObject * _resultobj; | |
3791 | wxDateTime * _result; | |
3792 | wxDateTime * _arg0; | |
3793 | wxDateTime::wxDateTime_t _arg1; | |
3794 | PyObject * _argo0 = 0; | |
3795 | char *_kwnames[] = { "self","yday", NULL }; | |
3796 | char _ptemp[128]; | |
3797 | ||
3798 | self = self; | |
3799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oh:wxDateTime_GetYearDay",_kwnames,&_argo0,&_arg1)) | |
3800 | return NULL; | |
3801 | if (_argo0) { | |
3802 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3803 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
3804 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_GetYearDay. Expected _wxDateTime_p."); | |
3805 | return NULL; | |
3806 | } | |
3807 | } | |
3808 | { | |
3809 | wxPy_BEGIN_ALLOW_THREADS; | |
3810 | _result = new wxDateTime (wxDateTime_GetYearDay(_arg0,_arg1)); | |
3811 | ||
3812 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3813 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
3814 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxDateTime_p"); |
3815 | _resultobj = Py_BuildValue("s",_ptemp); | |
3816 | return _resultobj; | |
3817 | } | |
3818 | ||
3819 | #define wxDateTime_GetJulianDayNumber(_swigobj) (_swigobj->GetJulianDayNumber()) | |
3820 | static PyObject *_wrap_wxDateTime_GetJulianDayNumber(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3821 | PyObject * _resultobj; | |
3822 | double _result; | |
3823 | wxDateTime * _arg0; | |
3824 | PyObject * _argo0 = 0; | |
3825 | char *_kwnames[] = { "self", NULL }; | |
3826 | ||
3827 | self = self; | |
3828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDateTime_GetJulianDayNumber",_kwnames,&_argo0)) | |
3829 | return NULL; | |
3830 | if (_argo0) { | |
3831 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3832 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
3833 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_GetJulianDayNumber. Expected _wxDateTime_p."); | |
3834 | return NULL; | |
3835 | } | |
3836 | } | |
3837 | { | |
3838 | wxPy_BEGIN_ALLOW_THREADS; | |
3839 | _result = (double )wxDateTime_GetJulianDayNumber(_arg0); | |
3840 | ||
3841 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3842 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
3843 | } _resultobj = Py_BuildValue("d",_result); |
3844 | return _resultobj; | |
3845 | } | |
3846 | ||
3847 | #define wxDateTime_GetJDN(_swigobj) (_swigobj->GetJDN()) | |
3848 | static PyObject *_wrap_wxDateTime_GetJDN(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3849 | PyObject * _resultobj; | |
3850 | double _result; | |
3851 | wxDateTime * _arg0; | |
3852 | PyObject * _argo0 = 0; | |
3853 | char *_kwnames[] = { "self", NULL }; | |
3854 | ||
3855 | self = self; | |
3856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDateTime_GetJDN",_kwnames,&_argo0)) | |
3857 | return NULL; | |
3858 | if (_argo0) { | |
3859 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3860 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
3861 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_GetJDN. Expected _wxDateTime_p."); | |
3862 | return NULL; | |
3863 | } | |
3864 | } | |
3865 | { | |
3866 | wxPy_BEGIN_ALLOW_THREADS; | |
3867 | _result = (double )wxDateTime_GetJDN(_arg0); | |
3868 | ||
3869 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3870 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
3871 | } _resultobj = Py_BuildValue("d",_result); |
3872 | return _resultobj; | |
3873 | } | |
3874 | ||
3875 | #define wxDateTime_GetModifiedJulianDayNumber(_swigobj) (_swigobj->GetModifiedJulianDayNumber()) | |
3876 | static PyObject *_wrap_wxDateTime_GetModifiedJulianDayNumber(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3877 | PyObject * _resultobj; | |
3878 | double _result; | |
3879 | wxDateTime * _arg0; | |
3880 | PyObject * _argo0 = 0; | |
3881 | char *_kwnames[] = { "self", NULL }; | |
3882 | ||
3883 | self = self; | |
3884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDateTime_GetModifiedJulianDayNumber",_kwnames,&_argo0)) | |
3885 | return NULL; | |
3886 | if (_argo0) { | |
3887 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3888 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
3889 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_GetModifiedJulianDayNumber. Expected _wxDateTime_p."); | |
3890 | return NULL; | |
3891 | } | |
3892 | } | |
3893 | { | |
3894 | wxPy_BEGIN_ALLOW_THREADS; | |
3895 | _result = (double )wxDateTime_GetModifiedJulianDayNumber(_arg0); | |
3896 | ||
3897 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3898 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
3899 | } _resultobj = Py_BuildValue("d",_result); |
3900 | return _resultobj; | |
3901 | } | |
3902 | ||
3903 | #define wxDateTime_GetMJD(_swigobj) (_swigobj->GetMJD()) | |
3904 | static PyObject *_wrap_wxDateTime_GetMJD(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3905 | PyObject * _resultobj; | |
3906 | double _result; | |
3907 | wxDateTime * _arg0; | |
3908 | PyObject * _argo0 = 0; | |
3909 | char *_kwnames[] = { "self", NULL }; | |
3910 | ||
3911 | self = self; | |
3912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDateTime_GetMJD",_kwnames,&_argo0)) | |
3913 | return NULL; | |
3914 | if (_argo0) { | |
3915 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3916 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
3917 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_GetMJD. Expected _wxDateTime_p."); | |
3918 | return NULL; | |
3919 | } | |
3920 | } | |
3921 | { | |
3922 | wxPy_BEGIN_ALLOW_THREADS; | |
3923 | _result = (double )wxDateTime_GetMJD(_arg0); | |
3924 | ||
3925 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3926 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
3927 | } _resultobj = Py_BuildValue("d",_result); |
3928 | return _resultobj; | |
3929 | } | |
3930 | ||
3931 | #define wxDateTime_GetRataDie(_swigobj) (_swigobj->GetRataDie()) | |
3932 | static PyObject *_wrap_wxDateTime_GetRataDie(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3933 | PyObject * _resultobj; | |
3934 | double _result; | |
3935 | wxDateTime * _arg0; | |
3936 | PyObject * _argo0 = 0; | |
3937 | char *_kwnames[] = { "self", NULL }; | |
3938 | ||
3939 | self = self; | |
3940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDateTime_GetRataDie",_kwnames,&_argo0)) | |
3941 | return NULL; | |
3942 | if (_argo0) { | |
3943 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3944 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
3945 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_GetRataDie. Expected _wxDateTime_p."); | |
3946 | return NULL; | |
3947 | } | |
3948 | } | |
3949 | { | |
3950 | wxPy_BEGIN_ALLOW_THREADS; | |
3951 | _result = (double )wxDateTime_GetRataDie(_arg0); | |
3952 | ||
3953 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3954 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
3955 | } _resultobj = Py_BuildValue("d",_result); |
3956 | return _resultobj; | |
3957 | } | |
3958 | ||
3959 | #define wxDateTime_ToTimezone(_swigobj,_swigarg0,_swigarg1) (_swigobj->ToTimezone(_swigarg0,_swigarg1)) | |
3960 | static PyObject *_wrap_wxDateTime_ToTimezone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3961 | PyObject * _resultobj; | |
3962 | wxDateTime * _result; | |
3963 | wxDateTime * _arg0; | |
3964 | wxDateTime::TimeZone * _arg1; | |
3965 | bool _arg2 = (bool ) FALSE; | |
3966 | PyObject * _argo0 = 0; | |
3967 | PyObject * _obj1 = 0; | |
3968 | int tempbool2 = (int) FALSE; | |
3969 | char *_kwnames[] = { "self","tz","noDST", NULL }; | |
3970 | char _ptemp[128]; | |
3971 | ||
3972 | self = self; | |
3973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxDateTime_ToTimezone",_kwnames,&_argo0,&_obj1,&tempbool2)) | |
3974 | return NULL; | |
3975 | if (_argo0) { | |
3976 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3977 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
3978 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_ToTimezone. Expected _wxDateTime_p."); | |
3979 | return NULL; | |
3980 | } | |
3981 | } | |
3982 | { | |
3983 | _arg1 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(_obj1)); | |
3984 | } | |
3985 | _arg2 = (bool ) tempbool2; | |
3986 | { | |
3987 | wxPy_BEGIN_ALLOW_THREADS; | |
3988 | _result = new wxDateTime (wxDateTime_ToTimezone(_arg0,*_arg1,_arg2)); | |
3989 | ||
3990 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3991 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
3992 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxDateTime_p"); |
3993 | _resultobj = Py_BuildValue("s",_ptemp); | |
3994 | { | |
3995 | if (_arg1) delete _arg1; | |
3996 | } | |
3997 | return _resultobj; | |
3998 | } | |
3999 | ||
4000 | #define wxDateTime_MakeTimezone(_swigobj,_swigarg0,_swigarg1) (_swigobj->MakeTimezone(_swigarg0,_swigarg1)) | |
4001 | static PyObject *_wrap_wxDateTime_MakeTimezone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4002 | PyObject * _resultobj; | |
4003 | wxDateTime * _result; | |
4004 | wxDateTime * _arg0; | |
4005 | wxDateTime::TimeZone * _arg1; | |
4006 | bool _arg2 = (bool ) FALSE; | |
4007 | PyObject * _argo0 = 0; | |
4008 | PyObject * _obj1 = 0; | |
4009 | int tempbool2 = (int) FALSE; | |
4010 | char *_kwnames[] = { "self","tz","noDST", NULL }; | |
4011 | char _ptemp[128]; | |
4012 | ||
4013 | self = self; | |
4014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxDateTime_MakeTimezone",_kwnames,&_argo0,&_obj1,&tempbool2)) | |
4015 | return NULL; | |
4016 | if (_argo0) { | |
4017 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4018 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
4019 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_MakeTimezone. Expected _wxDateTime_p."); | |
4020 | return NULL; | |
4021 | } | |
4022 | } | |
4023 | { | |
4024 | _arg1 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(_obj1)); | |
4025 | } | |
4026 | _arg2 = (bool ) tempbool2; | |
4027 | { | |
4028 | wxPy_BEGIN_ALLOW_THREADS; | |
4029 | wxDateTime & _result_ref = wxDateTime_MakeTimezone(_arg0,*_arg1,_arg2); | |
4030 | _result = (wxDateTime *) &_result_ref; | |
4031 | ||
4032 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4033 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
4034 | } if (_result) { |
4035 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateTime_p"); | |
4036 | _resultobj = Py_BuildValue("s",_ptemp); | |
4037 | } else { | |
4038 | Py_INCREF(Py_None); | |
4039 | _resultobj = Py_None; | |
4040 | } | |
4041 | { | |
4042 | if (_arg1) delete _arg1; | |
4043 | } | |
4044 | return _resultobj; | |
4045 | } | |
4046 | ||
4047 | #define wxDateTime_ToGMT(_swigobj,_swigarg0) (_swigobj->ToGMT(_swigarg0)) | |
4048 | static PyObject *_wrap_wxDateTime_ToGMT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4049 | PyObject * _resultobj; | |
4050 | wxDateTime * _result; | |
4051 | wxDateTime * _arg0; | |
4052 | bool _arg1 = (bool ) FALSE; | |
4053 | PyObject * _argo0 = 0; | |
4054 | int tempbool1 = (int) FALSE; | |
4055 | char *_kwnames[] = { "self","noDST", NULL }; | |
4056 | char _ptemp[128]; | |
4057 | ||
4058 | self = self; | |
4059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxDateTime_ToGMT",_kwnames,&_argo0,&tempbool1)) | |
4060 | return NULL; | |
4061 | if (_argo0) { | |
4062 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4063 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
4064 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_ToGMT. Expected _wxDateTime_p."); | |
4065 | return NULL; | |
4066 | } | |
4067 | } | |
4068 | _arg1 = (bool ) tempbool1; | |
4069 | { | |
4070 | wxPy_BEGIN_ALLOW_THREADS; | |
4071 | _result = new wxDateTime (wxDateTime_ToGMT(_arg0,_arg1)); | |
4072 | ||
4073 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4074 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
4075 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxDateTime_p"); |
4076 | _resultobj = Py_BuildValue("s",_ptemp); | |
4077 | return _resultobj; | |
4078 | } | |
4079 | ||
4080 | #define wxDateTime_MakeGMT(_swigobj,_swigarg0) (_swigobj->MakeGMT(_swigarg0)) | |
4081 | static PyObject *_wrap_wxDateTime_MakeGMT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4082 | PyObject * _resultobj; | |
4083 | wxDateTime * _result; | |
4084 | wxDateTime * _arg0; | |
4085 | bool _arg1 = (bool ) FALSE; | |
4086 | PyObject * _argo0 = 0; | |
4087 | int tempbool1 = (int) FALSE; | |
4088 | char *_kwnames[] = { "self","noDST", NULL }; | |
4089 | char _ptemp[128]; | |
4090 | ||
4091 | self = self; | |
4092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxDateTime_MakeGMT",_kwnames,&_argo0,&tempbool1)) | |
4093 | return NULL; | |
4094 | if (_argo0) { | |
4095 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4096 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
4097 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_MakeGMT. Expected _wxDateTime_p."); | |
4098 | return NULL; | |
4099 | } | |
4100 | } | |
4101 | _arg1 = (bool ) tempbool1; | |
4102 | { | |
4103 | wxPy_BEGIN_ALLOW_THREADS; | |
4104 | wxDateTime & _result_ref = wxDateTime_MakeGMT(_arg0,_arg1); | |
4105 | _result = (wxDateTime *) &_result_ref; | |
4106 | ||
4107 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4108 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
4109 | } if (_result) { |
4110 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateTime_p"); | |
4111 | _resultobj = Py_BuildValue("s",_ptemp); | |
4112 | } else { | |
4113 | Py_INCREF(Py_None); | |
4114 | _resultobj = Py_None; | |
4115 | } | |
4116 | return _resultobj; | |
4117 | } | |
4118 | ||
4119 | #define wxDateTime_IsDST(_swigobj,_swigarg0) (_swigobj->IsDST(_swigarg0)) | |
4120 | static PyObject *_wrap_wxDateTime_IsDST(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4121 | PyObject * _resultobj; | |
4122 | int _result; | |
4123 | wxDateTime * _arg0; | |
4124 | wxDateTime::Country _arg1 = (wxDateTime::Country ) wxDateTime::Country_Default; | |
4125 | PyObject * _argo0 = 0; | |
4126 | char *_kwnames[] = { "self","country", NULL }; | |
4127 | ||
4128 | self = self; | |
4129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxDateTime_IsDST",_kwnames,&_argo0,&_arg1)) | |
4130 | return NULL; | |
4131 | if (_argo0) { | |
4132 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4133 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
4134 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_IsDST. Expected _wxDateTime_p."); | |
4135 | return NULL; | |
4136 | } | |
4137 | } | |
4138 | { | |
4139 | wxPy_BEGIN_ALLOW_THREADS; | |
4140 | _result = (int )wxDateTime_IsDST(_arg0,_arg1); | |
4141 | ||
4142 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4143 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
4144 | } _resultobj = Py_BuildValue("i",_result); |
4145 | return _resultobj; | |
4146 | } | |
4147 | ||
4148 | #define wxDateTime_IsValid(_swigobj) (_swigobj->IsValid()) | |
4149 | static PyObject *_wrap_wxDateTime_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4150 | PyObject * _resultobj; | |
4151 | bool _result; | |
4152 | wxDateTime * _arg0; | |
4153 | PyObject * _argo0 = 0; | |
4154 | char *_kwnames[] = { "self", NULL }; | |
4155 | ||
4156 | self = self; | |
4157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDateTime_IsValid",_kwnames,&_argo0)) | |
4158 | return NULL; | |
4159 | if (_argo0) { | |
4160 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4161 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
4162 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_IsValid. Expected _wxDateTime_p."); | |
4163 | return NULL; | |
4164 | } | |
4165 | } | |
4166 | { | |
4167 | wxPy_BEGIN_ALLOW_THREADS; | |
4168 | _result = (bool )wxDateTime_IsValid(_arg0); | |
4169 | ||
4170 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4171 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
4172 | } _resultobj = Py_BuildValue("i",_result); |
4173 | return _resultobj; | |
4174 | } | |
4175 | ||
4176 | #define wxDateTime_GetTicks(_swigobj) (_swigobj->GetTicks()) | |
4177 | static PyObject *_wrap_wxDateTime_GetTicks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4178 | PyObject * _resultobj; | |
c368d904 | 4179 | time_t _result; |
f6bcfd97 BP |
4180 | wxDateTime * _arg0; |
4181 | PyObject * _argo0 = 0; | |
4182 | char *_kwnames[] = { "self", NULL }; | |
f6bcfd97 BP |
4183 | |
4184 | self = self; | |
4185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDateTime_GetTicks",_kwnames,&_argo0)) | |
4186 | return NULL; | |
4187 | if (_argo0) { | |
4188 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4189 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
4190 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_GetTicks. Expected _wxDateTime_p."); | |
4191 | return NULL; | |
4192 | } | |
4193 | } | |
4194 | { | |
4195 | wxPy_BEGIN_ALLOW_THREADS; | |
c368d904 | 4196 | _result = (time_t )wxDateTime_GetTicks(_arg0); |
f6bcfd97 BP |
4197 | |
4198 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4199 | if (PyErr_Occurred()) return NULL; |
c368d904 | 4200 | } _resultobj = Py_BuildValue("i",_result); |
f6bcfd97 BP |
4201 | return _resultobj; |
4202 | } | |
4203 | ||
4204 | #define wxDateTime_GetYear(_swigobj,_swigarg0) (_swigobj->GetYear(_swigarg0)) | |
4205 | static PyObject *_wrap_wxDateTime_GetYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4206 | PyObject * _resultobj; | |
4207 | int _result; | |
4208 | wxDateTime * _arg0; | |
4209 | wxDateTime::TimeZone * _arg1 = (wxDateTime::TimeZone *) &LOCAL; | |
4210 | PyObject * _argo0 = 0; | |
4211 | PyObject * _obj1 = 0; | |
4212 | char *_kwnames[] = { "self","tz", NULL }; | |
4213 | ||
4214 | self = self; | |
4215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxDateTime_GetYear",_kwnames,&_argo0,&_obj1)) | |
4216 | return NULL; | |
4217 | if (_argo0) { | |
4218 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4219 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
4220 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_GetYear. Expected _wxDateTime_p."); | |
4221 | return NULL; | |
4222 | } | |
4223 | } | |
4224 | if (_obj1) | |
4225 | { | |
4226 | _arg1 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(_obj1)); | |
4227 | } | |
4228 | { | |
4229 | wxPy_BEGIN_ALLOW_THREADS; | |
4230 | _result = (int )wxDateTime_GetYear(_arg0,*_arg1); | |
4231 | ||
4232 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4233 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
4234 | } _resultobj = Py_BuildValue("i",_result); |
4235 | { | |
4236 | if (_arg1) delete _arg1; | |
4237 | } | |
4238 | return _resultobj; | |
4239 | } | |
4240 | ||
4241 | #define wxDateTime_GetMonth(_swigobj,_swigarg0) (_swigobj->GetMonth(_swigarg0)) | |
4242 | static PyObject *_wrap_wxDateTime_GetMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4243 | PyObject * _resultobj; | |
4244 | wxDateTime::Month _result; | |
4245 | wxDateTime * _arg0; | |
4246 | wxDateTime::TimeZone * _arg1 = (wxDateTime::TimeZone *) &LOCAL; | |
4247 | PyObject * _argo0 = 0; | |
4248 | PyObject * _obj1 = 0; | |
4249 | char *_kwnames[] = { "self","tz", NULL }; | |
4250 | ||
4251 | self = self; | |
4252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxDateTime_GetMonth",_kwnames,&_argo0,&_obj1)) | |
4253 | return NULL; | |
4254 | if (_argo0) { | |
4255 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4256 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
4257 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_GetMonth. Expected _wxDateTime_p."); | |
4258 | return NULL; | |
4259 | } | |
4260 | } | |
4261 | if (_obj1) | |
4262 | { | |
4263 | _arg1 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(_obj1)); | |
4264 | } | |
4265 | { | |
4266 | wxPy_BEGIN_ALLOW_THREADS; | |
4267 | _result = (wxDateTime::Month )wxDateTime_GetMonth(_arg0,*_arg1); | |
4268 | ||
4269 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4270 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
4271 | } _resultobj = Py_BuildValue("i",_result); |
4272 | { | |
4273 | if (_arg1) delete _arg1; | |
4274 | } | |
4275 | return _resultobj; | |
4276 | } | |
4277 | ||
4278 | #define wxDateTime_GetDay(_swigobj,_swigarg0) (_swigobj->GetDay(_swigarg0)) | |
4279 | static PyObject *_wrap_wxDateTime_GetDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4280 | PyObject * _resultobj; | |
4281 | wxDateTime::wxDateTime_t _result; | |
4282 | wxDateTime * _arg0; | |
4283 | wxDateTime::TimeZone * _arg1 = (wxDateTime::TimeZone *) &LOCAL; | |
4284 | PyObject * _argo0 = 0; | |
4285 | PyObject * _obj1 = 0; | |
4286 | char *_kwnames[] = { "self","tz", NULL }; | |
4287 | ||
4288 | self = self; | |
4289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxDateTime_GetDay",_kwnames,&_argo0,&_obj1)) | |
4290 | return NULL; | |
4291 | if (_argo0) { | |
4292 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4293 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
4294 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_GetDay. Expected _wxDateTime_p."); | |
4295 | return NULL; | |
4296 | } | |
4297 | } | |
4298 | if (_obj1) | |
4299 | { | |
4300 | _arg1 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(_obj1)); | |
4301 | } | |
4302 | { | |
4303 | wxPy_BEGIN_ALLOW_THREADS; | |
4304 | _result = (wxDateTime::wxDateTime_t )wxDateTime_GetDay(_arg0,*_arg1); | |
4305 | ||
4306 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4307 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
4308 | } _resultobj = Py_BuildValue("h",_result); |
4309 | { | |
4310 | if (_arg1) delete _arg1; | |
4311 | } | |
4312 | return _resultobj; | |
4313 | } | |
4314 | ||
65191ae8 RD |
4315 | #define wxDateTime_GetWeekDay(_swigobj,_swigarg0) (_swigobj->GetWeekDay(_swigarg0)) |
4316 | static PyObject *_wrap_wxDateTime_GetWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4317 | PyObject * _resultobj; | |
4318 | wxDateTime::WeekDay _result; | |
4319 | wxDateTime * _arg0; | |
4320 | wxDateTime::TimeZone * _arg1 = (wxDateTime::TimeZone *) &LOCAL; | |
4321 | PyObject * _argo0 = 0; | |
4322 | PyObject * _obj1 = 0; | |
4323 | char *_kwnames[] = { "self","tz", NULL }; | |
4324 | ||
4325 | self = self; | |
4326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxDateTime_GetWeekDay",_kwnames,&_argo0,&_obj1)) | |
4327 | return NULL; | |
4328 | if (_argo0) { | |
4329 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4330 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
4331 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_GetWeekDay. Expected _wxDateTime_p."); | |
4332 | return NULL; | |
4333 | } | |
4334 | } | |
4335 | if (_obj1) | |
4336 | { | |
4337 | _arg1 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(_obj1)); | |
4338 | } | |
4339 | { | |
4340 | wxPy_BEGIN_ALLOW_THREADS; | |
4341 | _result = (wxDateTime::WeekDay )wxDateTime_GetWeekDay(_arg0,*_arg1); | |
4342 | ||
4343 | wxPy_END_ALLOW_THREADS; | |
4344 | if (PyErr_Occurred()) return NULL; | |
4345 | } _resultobj = Py_BuildValue("i",_result); | |
4346 | { | |
4347 | if (_arg1) delete _arg1; | |
4348 | } | |
4349 | return _resultobj; | |
4350 | } | |
4351 | ||
f6bcfd97 BP |
4352 | #define wxDateTime_GetHour(_swigobj,_swigarg0) (_swigobj->GetHour(_swigarg0)) |
4353 | static PyObject *_wrap_wxDateTime_GetHour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4354 | PyObject * _resultobj; | |
4355 | wxDateTime::wxDateTime_t _result; | |
4356 | wxDateTime * _arg0; | |
4357 | wxDateTime::TimeZone * _arg1 = (wxDateTime::TimeZone *) &LOCAL; | |
4358 | PyObject * _argo0 = 0; | |
4359 | PyObject * _obj1 = 0; | |
4360 | char *_kwnames[] = { "self","tz", NULL }; | |
4361 | ||
4362 | self = self; | |
4363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxDateTime_GetHour",_kwnames,&_argo0,&_obj1)) | |
4364 | return NULL; | |
4365 | if (_argo0) { | |
4366 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4367 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
4368 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_GetHour. Expected _wxDateTime_p."); | |
4369 | return NULL; | |
4370 | } | |
4371 | } | |
4372 | if (_obj1) | |
4373 | { | |
4374 | _arg1 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(_obj1)); | |
4375 | } | |
4376 | { | |
4377 | wxPy_BEGIN_ALLOW_THREADS; | |
4378 | _result = (wxDateTime::wxDateTime_t )wxDateTime_GetHour(_arg0,*_arg1); | |
4379 | ||
4380 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4381 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
4382 | } _resultobj = Py_BuildValue("h",_result); |
4383 | { | |
4384 | if (_arg1) delete _arg1; | |
4385 | } | |
4386 | return _resultobj; | |
4387 | } | |
4388 | ||
4389 | #define wxDateTime_GetMinute(_swigobj,_swigarg0) (_swigobj->GetMinute(_swigarg0)) | |
4390 | static PyObject *_wrap_wxDateTime_GetMinute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4391 | PyObject * _resultobj; | |
4392 | wxDateTime::wxDateTime_t _result; | |
4393 | wxDateTime * _arg0; | |
4394 | wxDateTime::TimeZone * _arg1 = (wxDateTime::TimeZone *) &LOCAL; | |
4395 | PyObject * _argo0 = 0; | |
4396 | PyObject * _obj1 = 0; | |
4397 | char *_kwnames[] = { "self","tz", NULL }; | |
4398 | ||
4399 | self = self; | |
4400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxDateTime_GetMinute",_kwnames,&_argo0,&_obj1)) | |
4401 | return NULL; | |
4402 | if (_argo0) { | |
4403 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4404 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
4405 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_GetMinute. Expected _wxDateTime_p."); | |
4406 | return NULL; | |
4407 | } | |
4408 | } | |
4409 | if (_obj1) | |
4410 | { | |
4411 | _arg1 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(_obj1)); | |
4412 | } | |
4413 | { | |
4414 | wxPy_BEGIN_ALLOW_THREADS; | |
4415 | _result = (wxDateTime::wxDateTime_t )wxDateTime_GetMinute(_arg0,*_arg1); | |
4416 | ||
4417 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4418 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
4419 | } _resultobj = Py_BuildValue("h",_result); |
4420 | { | |
4421 | if (_arg1) delete _arg1; | |
4422 | } | |
4423 | return _resultobj; | |
4424 | } | |
4425 | ||
4426 | #define wxDateTime_GetSecond(_swigobj,_swigarg0) (_swigobj->GetSecond(_swigarg0)) | |
4427 | static PyObject *_wrap_wxDateTime_GetSecond(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4428 | PyObject * _resultobj; | |
4429 | wxDateTime::wxDateTime_t _result; | |
4430 | wxDateTime * _arg0; | |
4431 | wxDateTime::TimeZone * _arg1 = (wxDateTime::TimeZone *) &LOCAL; | |
4432 | PyObject * _argo0 = 0; | |
4433 | PyObject * _obj1 = 0; | |
4434 | char *_kwnames[] = { "self","tz", NULL }; | |
4435 | ||
4436 | self = self; | |
4437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxDateTime_GetSecond",_kwnames,&_argo0,&_obj1)) | |
4438 | return NULL; | |
4439 | if (_argo0) { | |
4440 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4441 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
4442 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_GetSecond. Expected _wxDateTime_p."); | |
4443 | return NULL; | |
4444 | } | |
4445 | } | |
4446 | if (_obj1) | |
4447 | { | |
4448 | _arg1 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(_obj1)); | |
4449 | } | |
4450 | { | |
4451 | wxPy_BEGIN_ALLOW_THREADS; | |
4452 | _result = (wxDateTime::wxDateTime_t )wxDateTime_GetSecond(_arg0,*_arg1); | |
4453 | ||
4454 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4455 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
4456 | } _resultobj = Py_BuildValue("h",_result); |
4457 | { | |
4458 | if (_arg1) delete _arg1; | |
4459 | } | |
4460 | return _resultobj; | |
4461 | } | |
4462 | ||
4463 | #define wxDateTime_GetMillisecond(_swigobj,_swigarg0) (_swigobj->GetMillisecond(_swigarg0)) | |
4464 | static PyObject *_wrap_wxDateTime_GetMillisecond(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4465 | PyObject * _resultobj; | |
4466 | wxDateTime::wxDateTime_t _result; | |
4467 | wxDateTime * _arg0; | |
4468 | wxDateTime::TimeZone * _arg1 = (wxDateTime::TimeZone *) &LOCAL; | |
4469 | PyObject * _argo0 = 0; | |
4470 | PyObject * _obj1 = 0; | |
4471 | char *_kwnames[] = { "self","tz", NULL }; | |
4472 | ||
4473 | self = self; | |
4474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxDateTime_GetMillisecond",_kwnames,&_argo0,&_obj1)) | |
4475 | return NULL; | |
4476 | if (_argo0) { | |
4477 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4478 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
4479 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_GetMillisecond. Expected _wxDateTime_p."); | |
4480 | return NULL; | |
4481 | } | |
4482 | } | |
4483 | if (_obj1) | |
4484 | { | |
4485 | _arg1 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(_obj1)); | |
4486 | } | |
4487 | { | |
4488 | wxPy_BEGIN_ALLOW_THREADS; | |
4489 | _result = (wxDateTime::wxDateTime_t )wxDateTime_GetMillisecond(_arg0,*_arg1); | |
4490 | ||
4491 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4492 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
4493 | } _resultobj = Py_BuildValue("h",_result); |
4494 | { | |
4495 | if (_arg1) delete _arg1; | |
4496 | } | |
4497 | return _resultobj; | |
4498 | } | |
4499 | ||
4500 | #define wxDateTime_GetDayOfYear(_swigobj,_swigarg0) (_swigobj->GetDayOfYear(_swigarg0)) | |
4501 | static PyObject *_wrap_wxDateTime_GetDayOfYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4502 | PyObject * _resultobj; | |
4503 | wxDateTime::wxDateTime_t _result; | |
4504 | wxDateTime * _arg0; | |
4505 | wxDateTime::TimeZone * _arg1 = (wxDateTime::TimeZone *) &LOCAL; | |
4506 | PyObject * _argo0 = 0; | |
4507 | PyObject * _obj1 = 0; | |
4508 | char *_kwnames[] = { "self","tz", NULL }; | |
4509 | ||
4510 | self = self; | |
4511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxDateTime_GetDayOfYear",_kwnames,&_argo0,&_obj1)) | |
4512 | return NULL; | |
4513 | if (_argo0) { | |
4514 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4515 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
4516 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_GetDayOfYear. Expected _wxDateTime_p."); | |
4517 | return NULL; | |
4518 | } | |
4519 | } | |
4520 | if (_obj1) | |
4521 | { | |
4522 | _arg1 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(_obj1)); | |
4523 | } | |
4524 | { | |
4525 | wxPy_BEGIN_ALLOW_THREADS; | |
4526 | _result = (wxDateTime::wxDateTime_t )wxDateTime_GetDayOfYear(_arg0,*_arg1); | |
4527 | ||
4528 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4529 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
4530 | } _resultobj = Py_BuildValue("h",_result); |
4531 | { | |
4532 | if (_arg1) delete _arg1; | |
4533 | } | |
4534 | return _resultobj; | |
4535 | } | |
4536 | ||
4537 | #define wxDateTime_GetWeekOfYear(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetWeekOfYear(_swigarg0,_swigarg1)) | |
4538 | static PyObject *_wrap_wxDateTime_GetWeekOfYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4539 | PyObject * _resultobj; | |
4540 | wxDateTime::wxDateTime_t _result; | |
4541 | wxDateTime * _arg0; | |
4542 | wxDateTime::WeekFlags _arg1 = (wxDateTime::WeekFlags ) wxDateTime::Monday_First; | |
4543 | wxDateTime::TimeZone * _arg2 = (wxDateTime::TimeZone *) &LOCAL; | |
4544 | PyObject * _argo0 = 0; | |
4545 | PyObject * _obj2 = 0; | |
4546 | char *_kwnames[] = { "self","flags","tz", NULL }; | |
4547 | ||
4548 | self = self; | |
4549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iO:wxDateTime_GetWeekOfYear",_kwnames,&_argo0,&_arg1,&_obj2)) | |
4550 | return NULL; | |
4551 | if (_argo0) { | |
4552 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4553 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
4554 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_GetWeekOfYear. Expected _wxDateTime_p."); | |
4555 | return NULL; | |
4556 | } | |
4557 | } | |
4558 | if (_obj2) | |
4559 | { | |
4560 | _arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(_obj2)); | |
4561 | } | |
4562 | { | |
4563 | wxPy_BEGIN_ALLOW_THREADS; | |
4564 | _result = (wxDateTime::wxDateTime_t )wxDateTime_GetWeekOfYear(_arg0,_arg1,*_arg2); | |
4565 | ||
4566 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4567 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
4568 | } _resultobj = Py_BuildValue("h",_result); |
4569 | { | |
4570 | if (_arg2) delete _arg2; | |
4571 | } | |
4572 | return _resultobj; | |
4573 | } | |
4574 | ||
4575 | #define wxDateTime_GetWeekOfMonth(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetWeekOfMonth(_swigarg0,_swigarg1)) | |
4576 | static PyObject *_wrap_wxDateTime_GetWeekOfMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4577 | PyObject * _resultobj; | |
4578 | wxDateTime::wxDateTime_t _result; | |
4579 | wxDateTime * _arg0; | |
4580 | wxDateTime::WeekFlags _arg1 = (wxDateTime::WeekFlags ) wxDateTime::Monday_First; | |
4581 | wxDateTime::TimeZone * _arg2 = (wxDateTime::TimeZone *) &LOCAL; | |
4582 | PyObject * _argo0 = 0; | |
4583 | PyObject * _obj2 = 0; | |
4584 | char *_kwnames[] = { "self","flags","tz", NULL }; | |
4585 | ||
4586 | self = self; | |
4587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iO:wxDateTime_GetWeekOfMonth",_kwnames,&_argo0,&_arg1,&_obj2)) | |
4588 | return NULL; | |
4589 | if (_argo0) { | |
4590 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4591 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
4592 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_GetWeekOfMonth. Expected _wxDateTime_p."); | |
4593 | return NULL; | |
4594 | } | |
4595 | } | |
4596 | if (_obj2) | |
4597 | { | |
4598 | _arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(_obj2)); | |
4599 | } | |
4600 | { | |
4601 | wxPy_BEGIN_ALLOW_THREADS; | |
4602 | _result = (wxDateTime::wxDateTime_t )wxDateTime_GetWeekOfMonth(_arg0,_arg1,*_arg2); | |
4603 | ||
4604 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4605 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
4606 | } _resultobj = Py_BuildValue("h",_result); |
4607 | { | |
4608 | if (_arg2) delete _arg2; | |
4609 | } | |
4610 | return _resultobj; | |
4611 | } | |
4612 | ||
4613 | #define wxDateTime_IsWorkDay(_swigobj,_swigarg0) (_swigobj->IsWorkDay(_swigarg0)) | |
4614 | static PyObject *_wrap_wxDateTime_IsWorkDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4615 | PyObject * _resultobj; | |
4616 | bool _result; | |
4617 | wxDateTime * _arg0; | |
4618 | wxDateTime::Country _arg1 = (wxDateTime::Country ) wxDateTime::Country_Default; | |
4619 | PyObject * _argo0 = 0; | |
4620 | char *_kwnames[] = { "self","country", NULL }; | |
4621 | ||
4622 | self = self; | |
4623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxDateTime_IsWorkDay",_kwnames,&_argo0,&_arg1)) | |
4624 | return NULL; | |
4625 | if (_argo0) { | |
4626 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4627 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
4628 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_IsWorkDay. Expected _wxDateTime_p."); | |
4629 | return NULL; | |
4630 | } | |
4631 | } | |
4632 | { | |
4633 | wxPy_BEGIN_ALLOW_THREADS; | |
4634 | _result = (bool )wxDateTime_IsWorkDay(_arg0,_arg1); | |
4635 | ||
4636 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4637 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
4638 | } _resultobj = Py_BuildValue("i",_result); |
4639 | return _resultobj; | |
4640 | } | |
4641 | ||
4642 | #define wxDateTime_IsEqualTo(_swigobj,_swigarg0) (_swigobj->IsEqualTo(_swigarg0)) | |
4643 | static PyObject *_wrap_wxDateTime_IsEqualTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4644 | PyObject * _resultobj; | |
4645 | bool _result; | |
4646 | wxDateTime * _arg0; | |
4647 | wxDateTime * _arg1; | |
4648 | PyObject * _argo0 = 0; | |
4649 | PyObject * _argo1 = 0; | |
4650 | char *_kwnames[] = { "self","datetime", NULL }; | |
4651 | ||
4652 | self = self; | |
4653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDateTime_IsEqualTo",_kwnames,&_argo0,&_argo1)) | |
4654 | return NULL; | |
4655 | if (_argo0) { | |
4656 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4657 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
4658 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_IsEqualTo. Expected _wxDateTime_p."); | |
4659 | return NULL; | |
4660 | } | |
4661 | } | |
4662 | if (_argo1) { | |
4663 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4664 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDateTime_p")) { | |
4665 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDateTime_IsEqualTo. Expected _wxDateTime_p."); | |
4666 | return NULL; | |
4667 | } | |
4668 | } | |
4669 | { | |
4670 | wxPy_BEGIN_ALLOW_THREADS; | |
4671 | _result = (bool )wxDateTime_IsEqualTo(_arg0,*_arg1); | |
4672 | ||
4673 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4674 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
4675 | } _resultobj = Py_BuildValue("i",_result); |
4676 | return _resultobj; | |
4677 | } | |
4678 | ||
4679 | #define wxDateTime_IsEarlierThan(_swigobj,_swigarg0) (_swigobj->IsEarlierThan(_swigarg0)) | |
4680 | static PyObject *_wrap_wxDateTime_IsEarlierThan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4681 | PyObject * _resultobj; | |
4682 | bool _result; | |
4683 | wxDateTime * _arg0; | |
4684 | wxDateTime * _arg1; | |
4685 | PyObject * _argo0 = 0; | |
4686 | PyObject * _argo1 = 0; | |
4687 | char *_kwnames[] = { "self","datetime", NULL }; | |
4688 | ||
4689 | self = self; | |
4690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDateTime_IsEarlierThan",_kwnames,&_argo0,&_argo1)) | |
4691 | return NULL; | |
4692 | if (_argo0) { | |
4693 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4694 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
4695 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_IsEarlierThan. Expected _wxDateTime_p."); | |
4696 | return NULL; | |
4697 | } | |
4698 | } | |
4699 | if (_argo1) { | |
4700 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4701 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDateTime_p")) { | |
4702 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDateTime_IsEarlierThan. Expected _wxDateTime_p."); | |
4703 | return NULL; | |
4704 | } | |
4705 | } | |
4706 | { | |
4707 | wxPy_BEGIN_ALLOW_THREADS; | |
4708 | _result = (bool )wxDateTime_IsEarlierThan(_arg0,*_arg1); | |
4709 | ||
4710 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4711 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
4712 | } _resultobj = Py_BuildValue("i",_result); |
4713 | return _resultobj; | |
4714 | } | |
4715 | ||
4716 | #define wxDateTime_IsLaterThan(_swigobj,_swigarg0) (_swigobj->IsLaterThan(_swigarg0)) | |
4717 | static PyObject *_wrap_wxDateTime_IsLaterThan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4718 | PyObject * _resultobj; | |
4719 | bool _result; | |
4720 | wxDateTime * _arg0; | |
4721 | wxDateTime * _arg1; | |
4722 | PyObject * _argo0 = 0; | |
4723 | PyObject * _argo1 = 0; | |
4724 | char *_kwnames[] = { "self","datetime", NULL }; | |
4725 | ||
4726 | self = self; | |
4727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDateTime_IsLaterThan",_kwnames,&_argo0,&_argo1)) | |
4728 | return NULL; | |
4729 | if (_argo0) { | |
4730 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4731 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
4732 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_IsLaterThan. Expected _wxDateTime_p."); | |
4733 | return NULL; | |
4734 | } | |
4735 | } | |
4736 | if (_argo1) { | |
4737 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4738 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDateTime_p")) { | |
4739 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDateTime_IsLaterThan. Expected _wxDateTime_p."); | |
4740 | return NULL; | |
4741 | } | |
4742 | } | |
4743 | { | |
4744 | wxPy_BEGIN_ALLOW_THREADS; | |
4745 | _result = (bool )wxDateTime_IsLaterThan(_arg0,*_arg1); | |
4746 | ||
4747 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4748 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
4749 | } _resultobj = Py_BuildValue("i",_result); |
4750 | return _resultobj; | |
4751 | } | |
4752 | ||
4753 | #define wxDateTime_IsStrictlyBetween(_swigobj,_swigarg0,_swigarg1) (_swigobj->IsStrictlyBetween(_swigarg0,_swigarg1)) | |
4754 | static PyObject *_wrap_wxDateTime_IsStrictlyBetween(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4755 | PyObject * _resultobj; | |
4756 | bool _result; | |
4757 | wxDateTime * _arg0; | |
4758 | wxDateTime * _arg1; | |
4759 | wxDateTime * _arg2; | |
4760 | PyObject * _argo0 = 0; | |
4761 | PyObject * _argo1 = 0; | |
4762 | PyObject * _argo2 = 0; | |
4763 | char *_kwnames[] = { "self","t1","t2", NULL }; | |
4764 | ||
4765 | self = self; | |
4766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxDateTime_IsStrictlyBetween",_kwnames,&_argo0,&_argo1,&_argo2)) | |
4767 | return NULL; | |
4768 | if (_argo0) { | |
4769 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4770 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
4771 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_IsStrictlyBetween. Expected _wxDateTime_p."); | |
4772 | return NULL; | |
4773 | } | |
4774 | } | |
4775 | if (_argo1) { | |
4776 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4777 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDateTime_p")) { | |
4778 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDateTime_IsStrictlyBetween. Expected _wxDateTime_p."); | |
4779 | return NULL; | |
4780 | } | |
4781 | } | |
4782 | if (_argo2) { | |
4783 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
4784 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxDateTime_p")) { | |
4785 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxDateTime_IsStrictlyBetween. Expected _wxDateTime_p."); | |
4786 | return NULL; | |
4787 | } | |
4788 | } | |
4789 | { | |
4790 | wxPy_BEGIN_ALLOW_THREADS; | |
4791 | _result = (bool )wxDateTime_IsStrictlyBetween(_arg0,*_arg1,*_arg2); | |
4792 | ||
4793 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4794 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
4795 | } _resultobj = Py_BuildValue("i",_result); |
4796 | return _resultobj; | |
4797 | } | |
4798 | ||
4799 | #define wxDateTime_IsBetween(_swigobj,_swigarg0,_swigarg1) (_swigobj->IsBetween(_swigarg0,_swigarg1)) | |
4800 | static PyObject *_wrap_wxDateTime_IsBetween(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4801 | PyObject * _resultobj; | |
4802 | bool _result; | |
4803 | wxDateTime * _arg0; | |
4804 | wxDateTime * _arg1; | |
4805 | wxDateTime * _arg2; | |
4806 | PyObject * _argo0 = 0; | |
4807 | PyObject * _argo1 = 0; | |
4808 | PyObject * _argo2 = 0; | |
4809 | char *_kwnames[] = { "self","t1","t2", NULL }; | |
4810 | ||
4811 | self = self; | |
4812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxDateTime_IsBetween",_kwnames,&_argo0,&_argo1,&_argo2)) | |
4813 | return NULL; | |
4814 | if (_argo0) { | |
4815 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4816 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
4817 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_IsBetween. Expected _wxDateTime_p."); | |
4818 | return NULL; | |
4819 | } | |
4820 | } | |
4821 | if (_argo1) { | |
4822 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4823 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDateTime_p")) { | |
4824 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDateTime_IsBetween. Expected _wxDateTime_p."); | |
4825 | return NULL; | |
4826 | } | |
4827 | } | |
4828 | if (_argo2) { | |
4829 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
4830 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxDateTime_p")) { | |
4831 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxDateTime_IsBetween. Expected _wxDateTime_p."); | |
4832 | return NULL; | |
4833 | } | |
4834 | } | |
4835 | { | |
4836 | wxPy_BEGIN_ALLOW_THREADS; | |
4837 | _result = (bool )wxDateTime_IsBetween(_arg0,*_arg1,*_arg2); | |
4838 | ||
4839 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4840 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
4841 | } _resultobj = Py_BuildValue("i",_result); |
4842 | return _resultobj; | |
4843 | } | |
4844 | ||
4845 | #define wxDateTime_IsSameDate(_swigobj,_swigarg0) (_swigobj->IsSameDate(_swigarg0)) | |
4846 | static PyObject *_wrap_wxDateTime_IsSameDate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4847 | PyObject * _resultobj; | |
4848 | bool _result; | |
4849 | wxDateTime * _arg0; | |
4850 | wxDateTime * _arg1; | |
4851 | PyObject * _argo0 = 0; | |
4852 | PyObject * _argo1 = 0; | |
4853 | char *_kwnames[] = { "self","dt", NULL }; | |
4854 | ||
4855 | self = self; | |
4856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDateTime_IsSameDate",_kwnames,&_argo0,&_argo1)) | |
4857 | return NULL; | |
4858 | if (_argo0) { | |
4859 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4860 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
4861 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_IsSameDate. Expected _wxDateTime_p."); | |
4862 | return NULL; | |
4863 | } | |
4864 | } | |
4865 | if (_argo1) { | |
4866 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4867 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDateTime_p")) { | |
4868 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDateTime_IsSameDate. Expected _wxDateTime_p."); | |
4869 | return NULL; | |
4870 | } | |
4871 | } | |
4872 | { | |
4873 | wxPy_BEGIN_ALLOW_THREADS; | |
4874 | _result = (bool )wxDateTime_IsSameDate(_arg0,*_arg1); | |
4875 | ||
4876 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4877 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
4878 | } _resultobj = Py_BuildValue("i",_result); |
4879 | return _resultobj; | |
4880 | } | |
4881 | ||
4882 | #define wxDateTime_IsSameTime(_swigobj,_swigarg0) (_swigobj->IsSameTime(_swigarg0)) | |
4883 | static PyObject *_wrap_wxDateTime_IsSameTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4884 | PyObject * _resultobj; | |
4885 | bool _result; | |
4886 | wxDateTime * _arg0; | |
4887 | wxDateTime * _arg1; | |
4888 | PyObject * _argo0 = 0; | |
4889 | PyObject * _argo1 = 0; | |
4890 | char *_kwnames[] = { "self","dt", NULL }; | |
4891 | ||
4892 | self = self; | |
4893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDateTime_IsSameTime",_kwnames,&_argo0,&_argo1)) | |
4894 | return NULL; | |
4895 | if (_argo0) { | |
4896 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4897 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
4898 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_IsSameTime. Expected _wxDateTime_p."); | |
4899 | return NULL; | |
4900 | } | |
4901 | } | |
4902 | if (_argo1) { | |
4903 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4904 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDateTime_p")) { | |
4905 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDateTime_IsSameTime. Expected _wxDateTime_p."); | |
4906 | return NULL; | |
4907 | } | |
4908 | } | |
4909 | { | |
4910 | wxPy_BEGIN_ALLOW_THREADS; | |
4911 | _result = (bool )wxDateTime_IsSameTime(_arg0,*_arg1); | |
4912 | ||
4913 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4914 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
4915 | } _resultobj = Py_BuildValue("i",_result); |
4916 | return _resultobj; | |
4917 | } | |
4918 | ||
4919 | #define wxDateTime_IsEqualUpTo(_swigobj,_swigarg0,_swigarg1) (_swigobj->IsEqualUpTo(_swigarg0,_swigarg1)) | |
4920 | static PyObject *_wrap_wxDateTime_IsEqualUpTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4921 | PyObject * _resultobj; | |
4922 | bool _result; | |
4923 | wxDateTime * _arg0; | |
4924 | wxDateTime * _arg1; | |
4925 | wxTimeSpan * _arg2; | |
4926 | PyObject * _argo0 = 0; | |
4927 | PyObject * _argo1 = 0; | |
4928 | PyObject * _argo2 = 0; | |
4929 | char *_kwnames[] = { "self","dt","ts", NULL }; | |
4930 | ||
4931 | self = self; | |
4932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxDateTime_IsEqualUpTo",_kwnames,&_argo0,&_argo1,&_argo2)) | |
4933 | return NULL; | |
4934 | if (_argo0) { | |
4935 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4936 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
4937 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_IsEqualUpTo. Expected _wxDateTime_p."); | |
4938 | return NULL; | |
4939 | } | |
4940 | } | |
4941 | if (_argo1) { | |
4942 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4943 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDateTime_p")) { | |
4944 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDateTime_IsEqualUpTo. Expected _wxDateTime_p."); | |
4945 | return NULL; | |
4946 | } | |
4947 | } | |
4948 | if (_argo2) { | |
4949 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
4950 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxTimeSpan_p")) { | |
4951 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxDateTime_IsEqualUpTo. Expected _wxTimeSpan_p."); | |
4952 | return NULL; | |
4953 | } | |
4954 | } | |
4955 | { | |
4956 | wxPy_BEGIN_ALLOW_THREADS; | |
4957 | _result = (bool )wxDateTime_IsEqualUpTo(_arg0,*_arg1,*_arg2); | |
4958 | ||
4959 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4960 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
4961 | } _resultobj = Py_BuildValue("i",_result); |
4962 | return _resultobj; | |
4963 | } | |
4964 | ||
4965 | #define wxDateTime_AddTS(_swigobj,_swigarg0) (_swigobj->Add(_swigarg0)) | |
4966 | static PyObject *_wrap_wxDateTime_AddTS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4967 | PyObject * _resultobj; | |
4968 | wxDateTime * _result; | |
4969 | wxDateTime * _arg0; | |
4970 | wxTimeSpan * _arg1; | |
4971 | PyObject * _argo0 = 0; | |
4972 | PyObject * _argo1 = 0; | |
4973 | char *_kwnames[] = { "self","diff", NULL }; | |
4974 | char _ptemp[128]; | |
4975 | ||
4976 | self = self; | |
4977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDateTime_AddTS",_kwnames,&_argo0,&_argo1)) | |
4978 | return NULL; | |
4979 | if (_argo0) { | |
4980 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4981 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
4982 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_AddTS. Expected _wxDateTime_p."); | |
4983 | return NULL; | |
4984 | } | |
4985 | } | |
4986 | if (_argo1) { | |
4987 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4988 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTimeSpan_p")) { | |
4989 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDateTime_AddTS. Expected _wxTimeSpan_p."); | |
4990 | return NULL; | |
4991 | } | |
4992 | } | |
4993 | { | |
4994 | wxPy_BEGIN_ALLOW_THREADS; | |
4995 | wxDateTime & _result_ref = wxDateTime_AddTS(_arg0,*_arg1); | |
4996 | _result = (wxDateTime *) &_result_ref; | |
4997 | ||
4998 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4999 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
5000 | } if (_result) { |
5001 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateTime_p"); | |
5002 | _resultobj = Py_BuildValue("s",_ptemp); | |
5003 | } else { | |
5004 | Py_INCREF(Py_None); | |
5005 | _resultobj = Py_None; | |
5006 | } | |
5007 | return _resultobj; | |
5008 | } | |
5009 | ||
5010 | #define wxDateTime_AddDS(_swigobj,_swigarg0) (_swigobj->Add(_swigarg0)) | |
5011 | static PyObject *_wrap_wxDateTime_AddDS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5012 | PyObject * _resultobj; | |
5013 | wxDateTime * _result; | |
5014 | wxDateTime * _arg0; | |
5015 | wxDateSpan * _arg1; | |
5016 | PyObject * _argo0 = 0; | |
5017 | PyObject * _argo1 = 0; | |
5018 | char *_kwnames[] = { "self","diff", NULL }; | |
5019 | char _ptemp[128]; | |
5020 | ||
5021 | self = self; | |
5022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDateTime_AddDS",_kwnames,&_argo0,&_argo1)) | |
5023 | return NULL; | |
5024 | if (_argo0) { | |
5025 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5026 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
5027 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_AddDS. Expected _wxDateTime_p."); | |
5028 | return NULL; | |
5029 | } | |
5030 | } | |
5031 | if (_argo1) { | |
5032 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5033 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDateSpan_p")) { | |
5034 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDateTime_AddDS. Expected _wxDateSpan_p."); | |
5035 | return NULL; | |
5036 | } | |
5037 | } | |
5038 | { | |
5039 | wxPy_BEGIN_ALLOW_THREADS; | |
5040 | wxDateTime & _result_ref = wxDateTime_AddDS(_arg0,*_arg1); | |
5041 | _result = (wxDateTime *) &_result_ref; | |
5042 | ||
5043 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5044 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
5045 | } if (_result) { |
5046 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateTime_p"); | |
5047 | _resultobj = Py_BuildValue("s",_ptemp); | |
5048 | } else { | |
5049 | Py_INCREF(Py_None); | |
5050 | _resultobj = Py_None; | |
5051 | } | |
5052 | return _resultobj; | |
5053 | } | |
5054 | ||
5055 | #define wxDateTime_SubtractTS(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0)) | |
5056 | static PyObject *_wrap_wxDateTime_SubtractTS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5057 | PyObject * _resultobj; | |
5058 | wxDateTime * _result; | |
5059 | wxDateTime * _arg0; | |
5060 | wxTimeSpan * _arg1; | |
5061 | PyObject * _argo0 = 0; | |
5062 | PyObject * _argo1 = 0; | |
5063 | char *_kwnames[] = { "self","diff", NULL }; | |
5064 | char _ptemp[128]; | |
5065 | ||
5066 | self = self; | |
5067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDateTime_SubtractTS",_kwnames,&_argo0,&_argo1)) | |
5068 | return NULL; | |
5069 | if (_argo0) { | |
5070 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5071 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
5072 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_SubtractTS. Expected _wxDateTime_p."); | |
5073 | return NULL; | |
5074 | } | |
5075 | } | |
5076 | if (_argo1) { | |
5077 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5078 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTimeSpan_p")) { | |
5079 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDateTime_SubtractTS. Expected _wxTimeSpan_p."); | |
5080 | return NULL; | |
5081 | } | |
5082 | } | |
5083 | { | |
5084 | wxPy_BEGIN_ALLOW_THREADS; | |
5085 | wxDateTime & _result_ref = wxDateTime_SubtractTS(_arg0,*_arg1); | |
5086 | _result = (wxDateTime *) &_result_ref; | |
5087 | ||
5088 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5089 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
5090 | } if (_result) { |
5091 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateTime_p"); | |
5092 | _resultobj = Py_BuildValue("s",_ptemp); | |
5093 | } else { | |
5094 | Py_INCREF(Py_None); | |
5095 | _resultobj = Py_None; | |
5096 | } | |
5097 | return _resultobj; | |
5098 | } | |
5099 | ||
5100 | #define wxDateTime_SubtractDS(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0)) | |
5101 | static PyObject *_wrap_wxDateTime_SubtractDS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5102 | PyObject * _resultobj; | |
5103 | wxDateTime * _result; | |
5104 | wxDateTime * _arg0; | |
5105 | wxDateSpan * _arg1; | |
5106 | PyObject * _argo0 = 0; | |
5107 | PyObject * _argo1 = 0; | |
5108 | char *_kwnames[] = { "self","diff", NULL }; | |
5109 | char _ptemp[128]; | |
5110 | ||
5111 | self = self; | |
5112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDateTime_SubtractDS",_kwnames,&_argo0,&_argo1)) | |
5113 | return NULL; | |
5114 | if (_argo0) { | |
5115 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5116 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
5117 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_SubtractDS. Expected _wxDateTime_p."); | |
5118 | return NULL; | |
5119 | } | |
5120 | } | |
5121 | if (_argo1) { | |
5122 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5123 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDateSpan_p")) { | |
5124 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDateTime_SubtractDS. Expected _wxDateSpan_p."); | |
5125 | return NULL; | |
5126 | } | |
5127 | } | |
5128 | { | |
5129 | wxPy_BEGIN_ALLOW_THREADS; | |
5130 | wxDateTime & _result_ref = wxDateTime_SubtractDS(_arg0,*_arg1); | |
5131 | _result = (wxDateTime *) &_result_ref; | |
5132 | ||
5133 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5134 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
5135 | } if (_result) { |
5136 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateTime_p"); | |
5137 | _resultobj = Py_BuildValue("s",_ptemp); | |
5138 | } else { | |
5139 | Py_INCREF(Py_None); | |
5140 | _resultobj = Py_None; | |
5141 | } | |
5142 | return _resultobj; | |
5143 | } | |
5144 | ||
5145 | #define wxDateTime_Subtract(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0)) | |
5146 | static PyObject *_wrap_wxDateTime_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5147 | PyObject * _resultobj; | |
5148 | wxTimeSpan * _result; | |
5149 | wxDateTime * _arg0; | |
5150 | wxDateTime * _arg1; | |
5151 | PyObject * _argo0 = 0; | |
5152 | PyObject * _argo1 = 0; | |
5153 | char *_kwnames[] = { "self","dt", NULL }; | |
5154 | char _ptemp[128]; | |
5155 | ||
5156 | self = self; | |
5157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDateTime_Subtract",_kwnames,&_argo0,&_argo1)) | |
5158 | return NULL; | |
5159 | if (_argo0) { | |
5160 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5161 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
5162 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_Subtract. Expected _wxDateTime_p."); | |
5163 | return NULL; | |
5164 | } | |
5165 | } | |
5166 | if (_argo1) { | |
5167 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5168 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDateTime_p")) { | |
5169 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDateTime_Subtract. Expected _wxDateTime_p."); | |
5170 | return NULL; | |
5171 | } | |
5172 | } | |
5173 | { | |
5174 | wxPy_BEGIN_ALLOW_THREADS; | |
5175 | _result = new wxTimeSpan (wxDateTime_Subtract(_arg0,*_arg1)); | |
5176 | ||
5177 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5178 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
5179 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTimeSpan_p"); |
5180 | _resultobj = Py_BuildValue("s",_ptemp); | |
5181 | return _resultobj; | |
5182 | } | |
5183 | ||
5184 | static wxDateTime wxDateTime___add__TS(wxDateTime *self,const wxTimeSpan & other) { return *self + other; } | |
5185 | static PyObject *_wrap_wxDateTime___add__TS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5186 | PyObject * _resultobj; | |
5187 | wxDateTime * _result; | |
5188 | wxDateTime * _arg0; | |
5189 | wxTimeSpan * _arg1; | |
5190 | PyObject * _argo0 = 0; | |
5191 | PyObject * _argo1 = 0; | |
5192 | char *_kwnames[] = { "self","other", NULL }; | |
5193 | char _ptemp[128]; | |
5194 | ||
5195 | self = self; | |
5196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDateTime___add__TS",_kwnames,&_argo0,&_argo1)) | |
5197 | return NULL; | |
5198 | if (_argo0) { | |
5199 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5200 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
5201 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime___add__TS. Expected _wxDateTime_p."); | |
5202 | return NULL; | |
5203 | } | |
5204 | } | |
5205 | if (_argo1) { | |
5206 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5207 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTimeSpan_p")) { | |
5208 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDateTime___add__TS. Expected _wxTimeSpan_p."); | |
5209 | return NULL; | |
5210 | } | |
5211 | } | |
5212 | { | |
5213 | wxPy_BEGIN_ALLOW_THREADS; | |
5214 | _result = new wxDateTime (wxDateTime___add__TS(_arg0,*_arg1)); | |
5215 | ||
5216 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5217 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
5218 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxDateTime_p"); |
5219 | _resultobj = Py_BuildValue("s",_ptemp); | |
5220 | return _resultobj; | |
5221 | } | |
5222 | ||
5223 | static wxDateTime wxDateTime___add__DS(wxDateTime *self,const wxDateSpan & other) { return *self + other; } | |
5224 | static PyObject *_wrap_wxDateTime___add__DS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5225 | PyObject * _resultobj; | |
5226 | wxDateTime * _result; | |
5227 | wxDateTime * _arg0; | |
5228 | wxDateSpan * _arg1; | |
5229 | PyObject * _argo0 = 0; | |
5230 | PyObject * _argo1 = 0; | |
5231 | char *_kwnames[] = { "self","other", NULL }; | |
5232 | char _ptemp[128]; | |
5233 | ||
5234 | self = self; | |
5235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDateTime___add__DS",_kwnames,&_argo0,&_argo1)) | |
5236 | return NULL; | |
5237 | if (_argo0) { | |
5238 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5239 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
5240 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime___add__DS. Expected _wxDateTime_p."); | |
5241 | return NULL; | |
5242 | } | |
5243 | } | |
5244 | if (_argo1) { | |
5245 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5246 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDateSpan_p")) { | |
5247 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDateTime___add__DS. Expected _wxDateSpan_p."); | |
5248 | return NULL; | |
5249 | } | |
5250 | } | |
5251 | { | |
5252 | wxPy_BEGIN_ALLOW_THREADS; | |
5253 | _result = new wxDateTime (wxDateTime___add__DS(_arg0,*_arg1)); | |
5254 | ||
5255 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5256 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
5257 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxDateTime_p"); |
5258 | _resultobj = Py_BuildValue("s",_ptemp); | |
5259 | return _resultobj; | |
5260 | } | |
5261 | ||
5262 | static wxTimeSpan wxDateTime___sub__DT(wxDateTime *self,const wxDateTime & other) { return *self - other; } | |
5263 | static PyObject *_wrap_wxDateTime___sub__DT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5264 | PyObject * _resultobj; | |
5265 | wxTimeSpan * _result; | |
5266 | wxDateTime * _arg0; | |
5267 | wxDateTime * _arg1; | |
5268 | PyObject * _argo0 = 0; | |
5269 | PyObject * _argo1 = 0; | |
5270 | char *_kwnames[] = { "self","other", NULL }; | |
5271 | char _ptemp[128]; | |
5272 | ||
5273 | self = self; | |
5274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDateTime___sub__DT",_kwnames,&_argo0,&_argo1)) | |
5275 | return NULL; | |
5276 | if (_argo0) { | |
5277 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5278 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
5279 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime___sub__DT. Expected _wxDateTime_p."); | |
5280 | return NULL; | |
5281 | } | |
5282 | } | |
5283 | if (_argo1) { | |
5284 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5285 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDateTime_p")) { | |
5286 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDateTime___sub__DT. Expected _wxDateTime_p."); | |
5287 | return NULL; | |
5288 | } | |
5289 | } | |
5290 | { | |
5291 | wxPy_BEGIN_ALLOW_THREADS; | |
5292 | _result = new wxTimeSpan (wxDateTime___sub__DT(_arg0,*_arg1)); | |
5293 | ||
5294 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5295 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
5296 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTimeSpan_p"); |
5297 | _resultobj = Py_BuildValue("s",_ptemp); | |
5298 | return _resultobj; | |
5299 | } | |
5300 | ||
5301 | static wxDateTime wxDateTime___sub__TS(wxDateTime *self,const wxTimeSpan & other) { return *self - other; } | |
5302 | static PyObject *_wrap_wxDateTime___sub__TS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5303 | PyObject * _resultobj; | |
5304 | wxDateTime * _result; | |
5305 | wxDateTime * _arg0; | |
5306 | wxTimeSpan * _arg1; | |
5307 | PyObject * _argo0 = 0; | |
5308 | PyObject * _argo1 = 0; | |
5309 | char *_kwnames[] = { "self","other", NULL }; | |
5310 | char _ptemp[128]; | |
5311 | ||
5312 | self = self; | |
5313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDateTime___sub__TS",_kwnames,&_argo0,&_argo1)) | |
5314 | return NULL; | |
5315 | if (_argo0) { | |
5316 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5317 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
5318 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime___sub__TS. Expected _wxDateTime_p."); | |
5319 | return NULL; | |
5320 | } | |
5321 | } | |
5322 | if (_argo1) { | |
5323 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5324 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTimeSpan_p")) { | |
5325 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDateTime___sub__TS. Expected _wxTimeSpan_p."); | |
5326 | return NULL; | |
5327 | } | |
5328 | } | |
5329 | { | |
5330 | wxPy_BEGIN_ALLOW_THREADS; | |
5331 | _result = new wxDateTime (wxDateTime___sub__TS(_arg0,*_arg1)); | |
5332 | ||
5333 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5334 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
5335 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxDateTime_p"); |
5336 | _resultobj = Py_BuildValue("s",_ptemp); | |
5337 | return _resultobj; | |
5338 | } | |
5339 | ||
5340 | static wxDateTime wxDateTime___sub__DS(wxDateTime *self,const wxDateSpan & other) { return *self - other; } | |
5341 | static PyObject *_wrap_wxDateTime___sub__DS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5342 | PyObject * _resultobj; | |
5343 | wxDateTime * _result; | |
5344 | wxDateTime * _arg0; | |
5345 | wxDateSpan * _arg1; | |
5346 | PyObject * _argo0 = 0; | |
5347 | PyObject * _argo1 = 0; | |
5348 | char *_kwnames[] = { "self","other", NULL }; | |
5349 | char _ptemp[128]; | |
5350 | ||
5351 | self = self; | |
5352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDateTime___sub__DS",_kwnames,&_argo0,&_argo1)) | |
5353 | return NULL; | |
5354 | if (_argo0) { | |
5355 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5356 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
5357 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime___sub__DS. Expected _wxDateTime_p."); | |
5358 | return NULL; | |
5359 | } | |
5360 | } | |
5361 | if (_argo1) { | |
5362 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5363 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDateSpan_p")) { | |
5364 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDateTime___sub__DS. Expected _wxDateSpan_p."); | |
5365 | return NULL; | |
5366 | } | |
5367 | } | |
5368 | { | |
5369 | wxPy_BEGIN_ALLOW_THREADS; | |
5370 | _result = new wxDateTime (wxDateTime___sub__DS(_arg0,*_arg1)); | |
5371 | ||
5372 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5373 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
5374 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxDateTime_p"); |
5375 | _resultobj = Py_BuildValue("s",_ptemp); | |
5376 | return _resultobj; | |
5377 | } | |
5378 | ||
5379 | static int wxDateTime___cmp__(wxDateTime *self,const wxDateTime & other) { | |
5380 | if (*self < other) return -1; | |
5381 | if (*self == other) return 0; | |
5382 | return 1; | |
5383 | } | |
5384 | static PyObject *_wrap_wxDateTime___cmp__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5385 | PyObject * _resultobj; | |
5386 | int _result; | |
5387 | wxDateTime * _arg0; | |
5388 | wxDateTime * _arg1; | |
5389 | PyObject * _argo0 = 0; | |
5390 | PyObject * _argo1 = 0; | |
5391 | char *_kwnames[] = { "self","other", NULL }; | |
5392 | ||
5393 | self = self; | |
5394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDateTime___cmp__",_kwnames,&_argo0,&_argo1)) | |
5395 | return NULL; | |
5396 | if (_argo0) { | |
5397 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5398 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
5399 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime___cmp__. Expected _wxDateTime_p."); | |
5400 | return NULL; | |
5401 | } | |
5402 | } | |
5403 | if (_argo1) { | |
5404 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5405 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDateTime_p")) { | |
5406 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDateTime___cmp__. Expected _wxDateTime_p."); | |
5407 | return NULL; | |
5408 | } | |
5409 | } | |
5410 | { | |
5411 | wxPy_BEGIN_ALLOW_THREADS; | |
5412 | _result = (int )wxDateTime___cmp__(_arg0,*_arg1); | |
5413 | ||
5414 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5415 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
5416 | } _resultobj = Py_BuildValue("i",_result); |
5417 | return _resultobj; | |
5418 | } | |
5419 | ||
5420 | #define wxDateTime_ParseRfc822Date(_swigobj,_swigarg0) (_swigobj->ParseRfc822Date(_swigarg0)) | |
5421 | static PyObject *_wrap_wxDateTime_ParseRfc822Date(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5422 | PyObject * _resultobj; | |
5423 | char * _result; | |
5424 | wxDateTime * _arg0; | |
5425 | char * _arg1; | |
5426 | PyObject * _argo0 = 0; | |
5427 | char *_kwnames[] = { "self","date", NULL }; | |
5428 | ||
5429 | self = self; | |
5430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Os:wxDateTime_ParseRfc822Date",_kwnames,&_argo0,&_arg1)) | |
5431 | return NULL; | |
5432 | if (_argo0) { | |
5433 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5434 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
5435 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_ParseRfc822Date. Expected _wxDateTime_p."); | |
5436 | return NULL; | |
5437 | } | |
5438 | } | |
5439 | { | |
5440 | wxPy_BEGIN_ALLOW_THREADS; | |
5441 | _result = (char *)wxDateTime_ParseRfc822Date(_arg0,_arg1); | |
5442 | ||
5443 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5444 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
5445 | } _resultobj = Py_BuildValue("s", _result); |
5446 | return _resultobj; | |
5447 | } | |
5448 | ||
5449 | #define wxDateTime_ParseFormat(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->ParseFormat(_swigarg0,_swigarg1,_swigarg2)) | |
5450 | static PyObject *_wrap_wxDateTime_ParseFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5451 | PyObject * _resultobj; | |
5452 | char * _result; | |
5453 | wxDateTime * _arg0; | |
5454 | char * _arg1; | |
5455 | char * _arg2 = (char *) "%c"; | |
5456 | wxDateTime * _arg3 = (wxDateTime *) &wxDefaultDateTime; | |
5457 | PyObject * _argo0 = 0; | |
5458 | PyObject * _argo3 = 0; | |
5459 | char *_kwnames[] = { "self","date","format","dateDef", NULL }; | |
5460 | ||
5461 | self = self; | |
5462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Os|sO:wxDateTime_ParseFormat",_kwnames,&_argo0,&_arg1,&_arg2,&_argo3)) | |
5463 | return NULL; | |
5464 | if (_argo0) { | |
5465 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5466 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
5467 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_ParseFormat. Expected _wxDateTime_p."); | |
5468 | return NULL; | |
5469 | } | |
5470 | } | |
5471 | if (_argo3) { | |
5472 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
5473 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxDateTime_p")) { | |
5474 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxDateTime_ParseFormat. Expected _wxDateTime_p."); | |
5475 | return NULL; | |
5476 | } | |
5477 | } | |
5478 | { | |
5479 | wxPy_BEGIN_ALLOW_THREADS; | |
5480 | _result = (char *)wxDateTime_ParseFormat(_arg0,_arg1,_arg2,*_arg3); | |
5481 | ||
5482 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5483 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
5484 | } _resultobj = Py_BuildValue("s", _result); |
5485 | return _resultobj; | |
5486 | } | |
5487 | ||
5488 | #define wxDateTime_ParseDateTime(_swigobj,_swigarg0) (_swigobj->ParseDateTime(_swigarg0)) | |
5489 | static PyObject *_wrap_wxDateTime_ParseDateTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5490 | PyObject * _resultobj; | |
5491 | char * _result; | |
5492 | wxDateTime * _arg0; | |
5493 | char * _arg1; | |
5494 | PyObject * _argo0 = 0; | |
5495 | char *_kwnames[] = { "self","datetime", NULL }; | |
5496 | ||
5497 | self = self; | |
5498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Os:wxDateTime_ParseDateTime",_kwnames,&_argo0,&_arg1)) | |
5499 | return NULL; | |
5500 | if (_argo0) { | |
5501 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5502 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
5503 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_ParseDateTime. Expected _wxDateTime_p."); | |
5504 | return NULL; | |
5505 | } | |
5506 | } | |
5507 | { | |
5508 | wxPy_BEGIN_ALLOW_THREADS; | |
5509 | _result = (char *)wxDateTime_ParseDateTime(_arg0,_arg1); | |
5510 | ||
5511 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5512 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
5513 | } _resultobj = Py_BuildValue("s", _result); |
5514 | return _resultobj; | |
5515 | } | |
5516 | ||
5517 | #define wxDateTime_ParseDate(_swigobj,_swigarg0) (_swigobj->ParseDate(_swigarg0)) | |
5518 | static PyObject *_wrap_wxDateTime_ParseDate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5519 | PyObject * _resultobj; | |
5520 | char * _result; | |
5521 | wxDateTime * _arg0; | |
5522 | char * _arg1; | |
5523 | PyObject * _argo0 = 0; | |
5524 | char *_kwnames[] = { "self","date", NULL }; | |
5525 | ||
5526 | self = self; | |
5527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Os:wxDateTime_ParseDate",_kwnames,&_argo0,&_arg1)) | |
5528 | return NULL; | |
5529 | if (_argo0) { | |
5530 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5531 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
5532 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_ParseDate. Expected _wxDateTime_p."); | |
5533 | return NULL; | |
5534 | } | |
5535 | } | |
5536 | { | |
5537 | wxPy_BEGIN_ALLOW_THREADS; | |
5538 | _result = (char *)wxDateTime_ParseDate(_arg0,_arg1); | |
5539 | ||
5540 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5541 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
5542 | } _resultobj = Py_BuildValue("s", _result); |
5543 | return _resultobj; | |
5544 | } | |
5545 | ||
5546 | #define wxDateTime_ParseTime(_swigobj,_swigarg0) (_swigobj->ParseTime(_swigarg0)) | |
5547 | static PyObject *_wrap_wxDateTime_ParseTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5548 | PyObject * _resultobj; | |
5549 | char * _result; | |
5550 | wxDateTime * _arg0; | |
5551 | char * _arg1; | |
5552 | PyObject * _argo0 = 0; | |
5553 | char *_kwnames[] = { "self","time", NULL }; | |
5554 | ||
5555 | self = self; | |
5556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Os:wxDateTime_ParseTime",_kwnames,&_argo0,&_arg1)) | |
5557 | return NULL; | |
5558 | if (_argo0) { | |
5559 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5560 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
5561 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_ParseTime. Expected _wxDateTime_p."); | |
5562 | return NULL; | |
5563 | } | |
5564 | } | |
5565 | { | |
5566 | wxPy_BEGIN_ALLOW_THREADS; | |
5567 | _result = (char *)wxDateTime_ParseTime(_arg0,_arg1); | |
5568 | ||
5569 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5570 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
5571 | } _resultobj = Py_BuildValue("s", _result); |
5572 | return _resultobj; | |
5573 | } | |
5574 | ||
5575 | #define wxDateTime_Format(_swigobj,_swigarg0,_swigarg1) (_swigobj->Format(_swigarg0,_swigarg1)) | |
5576 | static PyObject *_wrap_wxDateTime_Format(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5577 | PyObject * _resultobj; | |
5578 | wxString * _result; | |
5579 | wxDateTime * _arg0; | |
5580 | char * _arg1 = (char *) "%c"; | |
5581 | wxDateTime::TimeZone * _arg2 = (wxDateTime::TimeZone *) &LOCAL; | |
5582 | PyObject * _argo0 = 0; | |
5583 | PyObject * _obj2 = 0; | |
5584 | char *_kwnames[] = { "self","format","tz", NULL }; | |
5585 | ||
5586 | self = self; | |
5587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|sO:wxDateTime_Format",_kwnames,&_argo0,&_arg1,&_obj2)) | |
5588 | return NULL; | |
5589 | if (_argo0) { | |
5590 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5591 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
5592 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_Format. Expected _wxDateTime_p."); | |
5593 | return NULL; | |
5594 | } | |
5595 | } | |
5596 | if (_obj2) | |
5597 | { | |
5598 | _arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(_obj2)); | |
5599 | } | |
5600 | { | |
5601 | wxPy_BEGIN_ALLOW_THREADS; | |
5602 | _result = new wxString (wxDateTime_Format(_arg0,_arg1,*_arg2)); | |
5603 | ||
5604 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5605 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
5606 | }{ |
5607 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
5608 | } | |
5609 | { | |
5610 | if (_arg2) delete _arg2; | |
5611 | } | |
5612 | { | |
5613 | delete _result; | |
5614 | } | |
5615 | return _resultobj; | |
5616 | } | |
5617 | ||
5618 | #define wxDateTime_FormatDate(_swigobj) (_swigobj->FormatDate()) | |
5619 | static PyObject *_wrap_wxDateTime_FormatDate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5620 | PyObject * _resultobj; | |
5621 | wxString * _result; | |
5622 | wxDateTime * _arg0; | |
5623 | PyObject * _argo0 = 0; | |
5624 | char *_kwnames[] = { "self", NULL }; | |
5625 | ||
5626 | self = self; | |
5627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDateTime_FormatDate",_kwnames,&_argo0)) | |
5628 | return NULL; | |
5629 | if (_argo0) { | |
5630 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5631 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
5632 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_FormatDate. Expected _wxDateTime_p."); | |
5633 | return NULL; | |
5634 | } | |
5635 | } | |
5636 | { | |
5637 | wxPy_BEGIN_ALLOW_THREADS; | |
5638 | _result = new wxString (wxDateTime_FormatDate(_arg0)); | |
5639 | ||
5640 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5641 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
5642 | }{ |
5643 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
5644 | } | |
5645 | { | |
5646 | delete _result; | |
5647 | } | |
5648 | return _resultobj; | |
5649 | } | |
5650 | ||
5651 | #define wxDateTime_FormatTime(_swigobj) (_swigobj->FormatTime()) | |
5652 | static PyObject *_wrap_wxDateTime_FormatTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5653 | PyObject * _resultobj; | |
5654 | wxString * _result; | |
5655 | wxDateTime * _arg0; | |
5656 | PyObject * _argo0 = 0; | |
5657 | char *_kwnames[] = { "self", NULL }; | |
5658 | ||
5659 | self = self; | |
5660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDateTime_FormatTime",_kwnames,&_argo0)) | |
5661 | return NULL; | |
5662 | if (_argo0) { | |
5663 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5664 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
5665 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_FormatTime. Expected _wxDateTime_p."); | |
5666 | return NULL; | |
5667 | } | |
5668 | } | |
5669 | { | |
5670 | wxPy_BEGIN_ALLOW_THREADS; | |
5671 | _result = new wxString (wxDateTime_FormatTime(_arg0)); | |
5672 | ||
5673 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5674 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
5675 | }{ |
5676 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
5677 | } | |
5678 | { | |
5679 | delete _result; | |
5680 | } | |
5681 | return _resultobj; | |
5682 | } | |
5683 | ||
5684 | #define wxDateTime_FormatISODate(_swigobj) (_swigobj->FormatISODate()) | |
5685 | static PyObject *_wrap_wxDateTime_FormatISODate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5686 | PyObject * _resultobj; | |
5687 | wxString * _result; | |
5688 | wxDateTime * _arg0; | |
5689 | PyObject * _argo0 = 0; | |
5690 | char *_kwnames[] = { "self", NULL }; | |
5691 | ||
5692 | self = self; | |
5693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDateTime_FormatISODate",_kwnames,&_argo0)) | |
5694 | return NULL; | |
5695 | if (_argo0) { | |
5696 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5697 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
5698 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_FormatISODate. Expected _wxDateTime_p."); | |
5699 | return NULL; | |
5700 | } | |
5701 | } | |
5702 | { | |
5703 | wxPy_BEGIN_ALLOW_THREADS; | |
5704 | _result = new wxString (wxDateTime_FormatISODate(_arg0)); | |
5705 | ||
5706 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5707 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
5708 | }{ |
5709 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
5710 | } | |
5711 | { | |
5712 | delete _result; | |
5713 | } | |
5714 | return _resultobj; | |
5715 | } | |
5716 | ||
5717 | #define wxDateTime_FormatISOTime(_swigobj) (_swigobj->FormatISOTime()) | |
5718 | static PyObject *_wrap_wxDateTime_FormatISOTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5719 | PyObject * _resultobj; | |
5720 | wxString * _result; | |
5721 | wxDateTime * _arg0; | |
5722 | PyObject * _argo0 = 0; | |
5723 | char *_kwnames[] = { "self", NULL }; | |
5724 | ||
5725 | self = self; | |
5726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDateTime_FormatISOTime",_kwnames,&_argo0)) | |
5727 | return NULL; | |
5728 | if (_argo0) { | |
5729 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5730 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) { | |
5731 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_FormatISOTime. Expected _wxDateTime_p."); | |
5732 | return NULL; | |
5733 | } | |
5734 | } | |
5735 | { | |
5736 | wxPy_BEGIN_ALLOW_THREADS; | |
5737 | _result = new wxString (wxDateTime_FormatISOTime(_arg0)); | |
5738 | ||
5739 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5740 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
5741 | }{ |
5742 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
5743 | } | |
5744 | { | |
5745 | delete _result; | |
5746 | } | |
5747 | return _resultobj; | |
5748 | } | |
5749 | ||
5750 | static PyObject *_wrap_wxTimeSpan_Seconds(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5751 | PyObject * _resultobj; | |
5752 | wxTimeSpan * _result; | |
5753 | long _arg0; | |
5754 | char *_kwnames[] = { "sec", NULL }; | |
5755 | char _ptemp[128]; | |
5756 | ||
5757 | self = self; | |
5758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"l:wxTimeSpan_Seconds",_kwnames,&_arg0)) | |
5759 | return NULL; | |
5760 | { | |
5761 | wxPy_BEGIN_ALLOW_THREADS; | |
5762 | _result = new wxTimeSpan (wxTimeSpan::Seconds(_arg0)); | |
5763 | ||
5764 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5765 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
5766 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTimeSpan_p"); |
5767 | _resultobj = Py_BuildValue("s",_ptemp); | |
5768 | return _resultobj; | |
5769 | } | |
5770 | ||
5771 | static PyObject *_wrap_wxTimeSpan_Second(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5772 | PyObject * _resultobj; | |
5773 | wxTimeSpan * _result; | |
5774 | char *_kwnames[] = { NULL }; | |
5775 | char _ptemp[128]; | |
5776 | ||
5777 | self = self; | |
5778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxTimeSpan_Second",_kwnames)) | |
5779 | return NULL; | |
5780 | { | |
5781 | wxPy_BEGIN_ALLOW_THREADS; | |
5782 | _result = new wxTimeSpan (wxTimeSpan::Second()); | |
5783 | ||
5784 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5785 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
5786 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTimeSpan_p"); |
5787 | _resultobj = Py_BuildValue("s",_ptemp); | |
5788 | return _resultobj; | |
5789 | } | |
5790 | ||
5791 | static PyObject *_wrap_wxTimeSpan_Minutes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5792 | PyObject * _resultobj; | |
5793 | wxTimeSpan * _result; | |
5794 | long _arg0; | |
5795 | char *_kwnames[] = { "min", NULL }; | |
5796 | char _ptemp[128]; | |
5797 | ||
5798 | self = self; | |
5799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"l:wxTimeSpan_Minutes",_kwnames,&_arg0)) | |
5800 | return NULL; | |
5801 | { | |
5802 | wxPy_BEGIN_ALLOW_THREADS; | |
5803 | _result = new wxTimeSpan (wxTimeSpan::Minutes(_arg0)); | |
5804 | ||
5805 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5806 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
5807 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTimeSpan_p"); |
5808 | _resultobj = Py_BuildValue("s",_ptemp); | |
5809 | return _resultobj; | |
5810 | } | |
5811 | ||
5812 | static PyObject *_wrap_wxTimeSpan_Minute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5813 | PyObject * _resultobj; | |
5814 | wxTimeSpan * _result; | |
5815 | char *_kwnames[] = { NULL }; | |
5816 | char _ptemp[128]; | |
5817 | ||
5818 | self = self; | |
5819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxTimeSpan_Minute",_kwnames)) | |
5820 | return NULL; | |
5821 | { | |
5822 | wxPy_BEGIN_ALLOW_THREADS; | |
5823 | _result = new wxTimeSpan (wxTimeSpan::Minute()); | |
5824 | ||
5825 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5826 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
5827 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTimeSpan_p"); |
5828 | _resultobj = Py_BuildValue("s",_ptemp); | |
5829 | return _resultobj; | |
5830 | } | |
5831 | ||
5832 | static PyObject *_wrap_wxTimeSpan_Hours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5833 | PyObject * _resultobj; | |
5834 | wxTimeSpan * _result; | |
5835 | long _arg0; | |
5836 | char *_kwnames[] = { "hours", NULL }; | |
5837 | char _ptemp[128]; | |
5838 | ||
5839 | self = self; | |
5840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"l:wxTimeSpan_Hours",_kwnames,&_arg0)) | |
5841 | return NULL; | |
5842 | { | |
5843 | wxPy_BEGIN_ALLOW_THREADS; | |
5844 | _result = new wxTimeSpan (wxTimeSpan::Hours(_arg0)); | |
5845 | ||
5846 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5847 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
5848 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTimeSpan_p"); |
5849 | _resultobj = Py_BuildValue("s",_ptemp); | |
5850 | return _resultobj; | |
5851 | } | |
5852 | ||
5853 | static PyObject *_wrap_wxTimeSpan_Hour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5854 | PyObject * _resultobj; | |
5855 | wxTimeSpan * _result; | |
5856 | char *_kwnames[] = { NULL }; | |
5857 | char _ptemp[128]; | |
5858 | ||
5859 | self = self; | |
5860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxTimeSpan_Hour",_kwnames)) | |
5861 | return NULL; | |
5862 | { | |
5863 | wxPy_BEGIN_ALLOW_THREADS; | |
5864 | _result = new wxTimeSpan (wxTimeSpan::Hour()); | |
5865 | ||
5866 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5867 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
5868 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTimeSpan_p"); |
5869 | _resultobj = Py_BuildValue("s",_ptemp); | |
5870 | return _resultobj; | |
5871 | } | |
5872 | ||
5873 | static PyObject *_wrap_wxTimeSpan_Days(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5874 | PyObject * _resultobj; | |
5875 | wxTimeSpan * _result; | |
5876 | long _arg0; | |
5877 | char *_kwnames[] = { "days", NULL }; | |
5878 | char _ptemp[128]; | |
5879 | ||
5880 | self = self; | |
5881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"l:wxTimeSpan_Days",_kwnames,&_arg0)) | |
5882 | return NULL; | |
5883 | { | |
5884 | wxPy_BEGIN_ALLOW_THREADS; | |
5885 | _result = new wxTimeSpan (wxTimeSpan::Days(_arg0)); | |
5886 | ||
5887 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5888 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
5889 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTimeSpan_p"); |
5890 | _resultobj = Py_BuildValue("s",_ptemp); | |
5891 | return _resultobj; | |
5892 | } | |
5893 | ||
5894 | static PyObject *_wrap_wxTimeSpan_Day(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5895 | PyObject * _resultobj; | |
5896 | wxTimeSpan * _result; | |
5897 | char *_kwnames[] = { NULL }; | |
5898 | char _ptemp[128]; | |
5899 | ||
5900 | self = self; | |
5901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxTimeSpan_Day",_kwnames)) | |
5902 | return NULL; | |
5903 | { | |
5904 | wxPy_BEGIN_ALLOW_THREADS; | |
5905 | _result = new wxTimeSpan (wxTimeSpan::Day()); | |
5906 | ||
5907 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5908 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
5909 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTimeSpan_p"); |
5910 | _resultobj = Py_BuildValue("s",_ptemp); | |
5911 | return _resultobj; | |
5912 | } | |
5913 | ||
5914 | static PyObject *_wrap_wxTimeSpan_Weeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5915 | PyObject * _resultobj; | |
5916 | wxTimeSpan * _result; | |
5917 | long _arg0; | |
5918 | char *_kwnames[] = { "days", NULL }; | |
5919 | char _ptemp[128]; | |
5920 | ||
5921 | self = self; | |
5922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"l:wxTimeSpan_Weeks",_kwnames,&_arg0)) | |
5923 | return NULL; | |
5924 | { | |
5925 | wxPy_BEGIN_ALLOW_THREADS; | |
5926 | _result = new wxTimeSpan (wxTimeSpan::Weeks(_arg0)); | |
5927 | ||
5928 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5929 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
5930 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTimeSpan_p"); |
5931 | _resultobj = Py_BuildValue("s",_ptemp); | |
5932 | return _resultobj; | |
5933 | } | |
5934 | ||
5935 | static PyObject *_wrap_wxTimeSpan_Week(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5936 | PyObject * _resultobj; | |
5937 | wxTimeSpan * _result; | |
5938 | char *_kwnames[] = { NULL }; | |
5939 | char _ptemp[128]; | |
5940 | ||
5941 | self = self; | |
5942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxTimeSpan_Week",_kwnames)) | |
5943 | return NULL; | |
5944 | { | |
5945 | wxPy_BEGIN_ALLOW_THREADS; | |
5946 | _result = new wxTimeSpan (wxTimeSpan::Week()); | |
5947 | ||
5948 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5949 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
5950 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTimeSpan_p"); |
5951 | _resultobj = Py_BuildValue("s",_ptemp); | |
5952 | return _resultobj; | |
5953 | } | |
5954 | ||
5955 | #define new_wxTimeSpan(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxTimeSpan(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
5956 | static PyObject *_wrap_new_wxTimeSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5957 | PyObject * _resultobj; | |
5958 | wxTimeSpan * _result; | |
5959 | long _arg0 = (long ) 0; | |
5960 | long _arg1 = (long ) 0; | |
5961 | long _arg2 = (long ) 0; | |
5962 | long _arg3 = (long ) 0; | |
5963 | char *_kwnames[] = { "hours","minutes","seconds","milliseconds", NULL }; | |
5964 | char _ptemp[128]; | |
5965 | ||
5966 | self = self; | |
5967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|llll:new_wxTimeSpan",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3)) | |
5968 | return NULL; | |
5969 | { | |
5970 | wxPy_BEGIN_ALLOW_THREADS; | |
5971 | _result = (wxTimeSpan *)new_wxTimeSpan(_arg0,_arg1,_arg2,_arg3); | |
5972 | ||
5973 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5974 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
5975 | } if (_result) { |
5976 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTimeSpan_p"); | |
5977 | _resultobj = Py_BuildValue("s",_ptemp); | |
5978 | } else { | |
5979 | Py_INCREF(Py_None); | |
5980 | _resultobj = Py_None; | |
5981 | } | |
5982 | return _resultobj; | |
5983 | } | |
5984 | ||
5985 | #define delete_wxTimeSpan(_swigobj) (delete _swigobj) | |
5986 | static PyObject *_wrap_delete_wxTimeSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5987 | PyObject * _resultobj; | |
5988 | wxTimeSpan * _arg0; | |
5989 | PyObject * _argo0 = 0; | |
5990 | char *_kwnames[] = { "self", NULL }; | |
5991 | ||
5992 | self = self; | |
5993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxTimeSpan",_kwnames,&_argo0)) | |
5994 | return NULL; | |
5995 | if (_argo0) { | |
5996 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5997 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTimeSpan_p")) { | |
5998 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxTimeSpan. Expected _wxTimeSpan_p."); | |
5999 | return NULL; | |
6000 | } | |
6001 | } | |
6002 | { | |
6003 | wxPy_BEGIN_ALLOW_THREADS; | |
6004 | delete_wxTimeSpan(_arg0); | |
6005 | ||
6006 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6007 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
6008 | } Py_INCREF(Py_None); |
6009 | _resultobj = Py_None; | |
6010 | return _resultobj; | |
6011 | } | |
6012 | ||
6013 | #define wxTimeSpan_Add(_swigobj,_swigarg0) (_swigobj->Add(_swigarg0)) | |
6014 | static PyObject *_wrap_wxTimeSpan_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6015 | PyObject * _resultobj; | |
6016 | wxTimeSpan * _result; | |
6017 | wxTimeSpan * _arg0; | |
6018 | wxTimeSpan * _arg1; | |
6019 | PyObject * _argo0 = 0; | |
6020 | PyObject * _argo1 = 0; | |
6021 | char *_kwnames[] = { "self","diff", NULL }; | |
6022 | char _ptemp[128]; | |
6023 | ||
6024 | self = self; | |
6025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTimeSpan_Add",_kwnames,&_argo0,&_argo1)) | |
6026 | return NULL; | |
6027 | if (_argo0) { | |
6028 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6029 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTimeSpan_p")) { | |
6030 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTimeSpan_Add. Expected _wxTimeSpan_p."); | |
6031 | return NULL; | |
6032 | } | |
6033 | } | |
6034 | if (_argo1) { | |
6035 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6036 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTimeSpan_p")) { | |
6037 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTimeSpan_Add. Expected _wxTimeSpan_p."); | |
6038 | return NULL; | |
6039 | } | |
6040 | } | |
6041 | { | |
6042 | wxPy_BEGIN_ALLOW_THREADS; | |
6043 | wxTimeSpan & _result_ref = wxTimeSpan_Add(_arg0,*_arg1); | |
6044 | _result = (wxTimeSpan *) &_result_ref; | |
6045 | ||
6046 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6047 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
6048 | } if (_result) { |
6049 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTimeSpan_p"); | |
6050 | _resultobj = Py_BuildValue("s",_ptemp); | |
6051 | } else { | |
6052 | Py_INCREF(Py_None); | |
6053 | _resultobj = Py_None; | |
6054 | } | |
6055 | return _resultobj; | |
6056 | } | |
6057 | ||
6058 | #define wxTimeSpan_Subtract(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0)) | |
6059 | static PyObject *_wrap_wxTimeSpan_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6060 | PyObject * _resultobj; | |
6061 | wxTimeSpan * _result; | |
6062 | wxTimeSpan * _arg0; | |
6063 | wxTimeSpan * _arg1; | |
6064 | PyObject * _argo0 = 0; | |
6065 | PyObject * _argo1 = 0; | |
6066 | char *_kwnames[] = { "self","diff", NULL }; | |
6067 | char _ptemp[128]; | |
6068 | ||
6069 | self = self; | |
6070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTimeSpan_Subtract",_kwnames,&_argo0,&_argo1)) | |
6071 | return NULL; | |
6072 | if (_argo0) { | |
6073 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6074 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTimeSpan_p")) { | |
6075 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTimeSpan_Subtract. Expected _wxTimeSpan_p."); | |
6076 | return NULL; | |
6077 | } | |
6078 | } | |
6079 | if (_argo1) { | |
6080 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6081 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTimeSpan_p")) { | |
6082 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTimeSpan_Subtract. Expected _wxTimeSpan_p."); | |
6083 | return NULL; | |
6084 | } | |
6085 | } | |
6086 | { | |
6087 | wxPy_BEGIN_ALLOW_THREADS; | |
6088 | wxTimeSpan & _result_ref = wxTimeSpan_Subtract(_arg0,*_arg1); | |
6089 | _result = (wxTimeSpan *) &_result_ref; | |
6090 | ||
6091 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6092 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
6093 | } if (_result) { |
6094 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTimeSpan_p"); | |
6095 | _resultobj = Py_BuildValue("s",_ptemp); | |
6096 | } else { | |
6097 | Py_INCREF(Py_None); | |
6098 | _resultobj = Py_None; | |
6099 | } | |
6100 | return _resultobj; | |
6101 | } | |
6102 | ||
6103 | #define wxTimeSpan_Multiply(_swigobj,_swigarg0) (_swigobj->Multiply(_swigarg0)) | |
6104 | static PyObject *_wrap_wxTimeSpan_Multiply(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6105 | PyObject * _resultobj; | |
6106 | wxTimeSpan * _result; | |
6107 | wxTimeSpan * _arg0; | |
6108 | int _arg1; | |
6109 | PyObject * _argo0 = 0; | |
6110 | char *_kwnames[] = { "self","n", NULL }; | |
6111 | char _ptemp[128]; | |
6112 | ||
6113 | self = self; | |
6114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTimeSpan_Multiply",_kwnames,&_argo0,&_arg1)) | |
6115 | return NULL; | |
6116 | if (_argo0) { | |
6117 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6118 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTimeSpan_p")) { | |
6119 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTimeSpan_Multiply. Expected _wxTimeSpan_p."); | |
6120 | return NULL; | |
6121 | } | |
6122 | } | |
6123 | { | |
6124 | wxPy_BEGIN_ALLOW_THREADS; | |
6125 | wxTimeSpan & _result_ref = wxTimeSpan_Multiply(_arg0,_arg1); | |
6126 | _result = (wxTimeSpan *) &_result_ref; | |
6127 | ||
6128 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6129 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
6130 | } if (_result) { |
6131 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTimeSpan_p"); | |
6132 | _resultobj = Py_BuildValue("s",_ptemp); | |
6133 | } else { | |
6134 | Py_INCREF(Py_None); | |
6135 | _resultobj = Py_None; | |
6136 | } | |
6137 | return _resultobj; | |
6138 | } | |
6139 | ||
6140 | #define wxTimeSpan_Neg(_swigobj) (_swigobj->Neg()) | |
6141 | static PyObject *_wrap_wxTimeSpan_Neg(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6142 | PyObject * _resultobj; | |
6143 | wxTimeSpan * _result; | |
6144 | wxTimeSpan * _arg0; | |
6145 | PyObject * _argo0 = 0; | |
6146 | char *_kwnames[] = { "self", NULL }; | |
6147 | char _ptemp[128]; | |
6148 | ||
6149 | self = self; | |
6150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTimeSpan_Neg",_kwnames,&_argo0)) | |
6151 | return NULL; | |
6152 | if (_argo0) { | |
6153 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6154 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTimeSpan_p")) { | |
6155 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTimeSpan_Neg. Expected _wxTimeSpan_p."); | |
6156 | return NULL; | |
6157 | } | |
6158 | } | |
6159 | { | |
6160 | wxPy_BEGIN_ALLOW_THREADS; | |
6161 | wxTimeSpan & _result_ref = wxTimeSpan_Neg(_arg0); | |
6162 | _result = (wxTimeSpan *) &_result_ref; | |
6163 | ||
6164 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6165 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
6166 | } if (_result) { |
6167 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTimeSpan_p"); | |
6168 | _resultobj = Py_BuildValue("s",_ptemp); | |
6169 | } else { | |
6170 | Py_INCREF(Py_None); | |
6171 | _resultobj = Py_None; | |
6172 | } | |
6173 | return _resultobj; | |
6174 | } | |
6175 | ||
6176 | #define wxTimeSpan_Abs(_swigobj) (_swigobj->Abs()) | |
6177 | static PyObject *_wrap_wxTimeSpan_Abs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6178 | PyObject * _resultobj; | |
6179 | wxTimeSpan * _result; | |
6180 | wxTimeSpan * _arg0; | |
6181 | PyObject * _argo0 = 0; | |
6182 | char *_kwnames[] = { "self", NULL }; | |
6183 | char _ptemp[128]; | |
6184 | ||
6185 | self = self; | |
6186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTimeSpan_Abs",_kwnames,&_argo0)) | |
6187 | return NULL; | |
6188 | if (_argo0) { | |
6189 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6190 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTimeSpan_p")) { | |
6191 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTimeSpan_Abs. Expected _wxTimeSpan_p."); | |
6192 | return NULL; | |
6193 | } | |
6194 | } | |
6195 | { | |
6196 | wxPy_BEGIN_ALLOW_THREADS; | |
6197 | _result = new wxTimeSpan (wxTimeSpan_Abs(_arg0)); | |
6198 | ||
6199 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6200 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
6201 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTimeSpan_p"); |
6202 | _resultobj = Py_BuildValue("s",_ptemp); | |
6203 | return _resultobj; | |
6204 | } | |
6205 | ||
6206 | static wxTimeSpan wxTimeSpan___add__(wxTimeSpan *self,const wxTimeSpan & other) { return *self + other; } | |
6207 | static PyObject *_wrap_wxTimeSpan___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6208 | PyObject * _resultobj; | |
6209 | wxTimeSpan * _result; | |
6210 | wxTimeSpan * _arg0; | |
6211 | wxTimeSpan * _arg1; | |
6212 | PyObject * _argo0 = 0; | |
6213 | PyObject * _argo1 = 0; | |
6214 | char *_kwnames[] = { "self","other", NULL }; | |
6215 | char _ptemp[128]; | |
6216 | ||
6217 | self = self; | |
6218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTimeSpan___add__",_kwnames,&_argo0,&_argo1)) | |
6219 | return NULL; | |
6220 | if (_argo0) { | |
6221 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6222 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTimeSpan_p")) { | |
6223 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTimeSpan___add__. Expected _wxTimeSpan_p."); | |
6224 | return NULL; | |
6225 | } | |
6226 | } | |
6227 | if (_argo1) { | |
6228 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6229 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTimeSpan_p")) { | |
6230 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTimeSpan___add__. Expected _wxTimeSpan_p."); | |
6231 | return NULL; | |
6232 | } | |
6233 | } | |
6234 | { | |
6235 | wxPy_BEGIN_ALLOW_THREADS; | |
6236 | _result = new wxTimeSpan (wxTimeSpan___add__(_arg0,*_arg1)); | |
6237 | ||
6238 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6239 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
6240 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTimeSpan_p"); |
6241 | _resultobj = Py_BuildValue("s",_ptemp); | |
6242 | return _resultobj; | |
6243 | } | |
6244 | ||
6245 | static wxTimeSpan wxTimeSpan___sub__(wxTimeSpan *self,const wxTimeSpan & other) { return *self - other; } | |
6246 | static PyObject *_wrap_wxTimeSpan___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6247 | PyObject * _resultobj; | |
6248 | wxTimeSpan * _result; | |
6249 | wxTimeSpan * _arg0; | |
6250 | wxTimeSpan * _arg1; | |
6251 | PyObject * _argo0 = 0; | |
6252 | PyObject * _argo1 = 0; | |
6253 | char *_kwnames[] = { "self","other", NULL }; | |
6254 | char _ptemp[128]; | |
6255 | ||
6256 | self = self; | |
6257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTimeSpan___sub__",_kwnames,&_argo0,&_argo1)) | |
6258 | return NULL; | |
6259 | if (_argo0) { | |
6260 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6261 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTimeSpan_p")) { | |
6262 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTimeSpan___sub__. Expected _wxTimeSpan_p."); | |
6263 | return NULL; | |
6264 | } | |
6265 | } | |
6266 | if (_argo1) { | |
6267 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6268 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTimeSpan_p")) { | |
6269 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTimeSpan___sub__. Expected _wxTimeSpan_p."); | |
6270 | return NULL; | |
6271 | } | |
6272 | } | |
6273 | { | |
6274 | wxPy_BEGIN_ALLOW_THREADS; | |
6275 | _result = new wxTimeSpan (wxTimeSpan___sub__(_arg0,*_arg1)); | |
6276 | ||
6277 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6278 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
6279 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTimeSpan_p"); |
6280 | _resultobj = Py_BuildValue("s",_ptemp); | |
6281 | return _resultobj; | |
6282 | } | |
6283 | ||
6284 | static wxTimeSpan wxTimeSpan___mul__(wxTimeSpan *self,int n) { return *self * n; } | |
6285 | static PyObject *_wrap_wxTimeSpan___mul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6286 | PyObject * _resultobj; | |
6287 | wxTimeSpan * _result; | |
6288 | wxTimeSpan * _arg0; | |
6289 | int _arg1; | |
6290 | PyObject * _argo0 = 0; | |
6291 | char *_kwnames[] = { "self","n", NULL }; | |
6292 | char _ptemp[128]; | |
6293 | ||
6294 | self = self; | |
6295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTimeSpan___mul__",_kwnames,&_argo0,&_arg1)) | |
6296 | return NULL; | |
6297 | if (_argo0) { | |
6298 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6299 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTimeSpan_p")) { | |
6300 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTimeSpan___mul__. Expected _wxTimeSpan_p."); | |
6301 | return NULL; | |
6302 | } | |
6303 | } | |
6304 | { | |
6305 | wxPy_BEGIN_ALLOW_THREADS; | |
6306 | _result = new wxTimeSpan (wxTimeSpan___mul__(_arg0,_arg1)); | |
6307 | ||
6308 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6309 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
6310 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTimeSpan_p"); |
6311 | _resultobj = Py_BuildValue("s",_ptemp); | |
6312 | return _resultobj; | |
6313 | } | |
6314 | ||
6315 | static wxTimeSpan wxTimeSpan___rmul__(wxTimeSpan *self,int n) { return n * *self; } | |
6316 | static PyObject *_wrap_wxTimeSpan___rmul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6317 | PyObject * _resultobj; | |
6318 | wxTimeSpan * _result; | |
6319 | wxTimeSpan * _arg0; | |
6320 | int _arg1; | |
6321 | PyObject * _argo0 = 0; | |
6322 | char *_kwnames[] = { "self","n", NULL }; | |
6323 | char _ptemp[128]; | |
6324 | ||
6325 | self = self; | |
6326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTimeSpan___rmul__",_kwnames,&_argo0,&_arg1)) | |
6327 | return NULL; | |
6328 | if (_argo0) { | |
6329 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6330 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTimeSpan_p")) { | |
6331 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTimeSpan___rmul__. Expected _wxTimeSpan_p."); | |
6332 | return NULL; | |
6333 | } | |
6334 | } | |
6335 | { | |
6336 | wxPy_BEGIN_ALLOW_THREADS; | |
6337 | _result = new wxTimeSpan (wxTimeSpan___rmul__(_arg0,_arg1)); | |
6338 | ||
6339 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6340 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
6341 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTimeSpan_p"); |
6342 | _resultobj = Py_BuildValue("s",_ptemp); | |
6343 | return _resultobj; | |
6344 | } | |
6345 | ||
6346 | static wxTimeSpan wxTimeSpan___neg__(wxTimeSpan *self) { return self->Negate(); } | |
6347 | static PyObject *_wrap_wxTimeSpan___neg__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6348 | PyObject * _resultobj; | |
6349 | wxTimeSpan * _result; | |
6350 | wxTimeSpan * _arg0; | |
6351 | PyObject * _argo0 = 0; | |
6352 | char *_kwnames[] = { "self", NULL }; | |
6353 | char _ptemp[128]; | |
6354 | ||
6355 | self = self; | |
6356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTimeSpan___neg__",_kwnames,&_argo0)) | |
6357 | return NULL; | |
6358 | if (_argo0) { | |
6359 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6360 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTimeSpan_p")) { | |
6361 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTimeSpan___neg__. Expected _wxTimeSpan_p."); | |
6362 | return NULL; | |
6363 | } | |
6364 | } | |
6365 | { | |
6366 | wxPy_BEGIN_ALLOW_THREADS; | |
6367 | _result = new wxTimeSpan (wxTimeSpan___neg__(_arg0)); | |
6368 | ||
6369 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6370 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
6371 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTimeSpan_p"); |
6372 | _resultobj = Py_BuildValue("s",_ptemp); | |
6373 | return _resultobj; | |
6374 | } | |
6375 | ||
6376 | static int wxTimeSpan___cmp__(wxTimeSpan *self,const wxTimeSpan & other) { | |
6377 | if (*self < other) return -1; | |
6378 | if (*self == other) return 0; | |
6379 | return 1; | |
6380 | } | |
6381 | static PyObject *_wrap_wxTimeSpan___cmp__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6382 | PyObject * _resultobj; | |
6383 | int _result; | |
6384 | wxTimeSpan * _arg0; | |
6385 | wxTimeSpan * _arg1; | |
6386 | PyObject * _argo0 = 0; | |
6387 | PyObject * _argo1 = 0; | |
6388 | char *_kwnames[] = { "self","other", NULL }; | |
6389 | ||
6390 | self = self; | |
6391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTimeSpan___cmp__",_kwnames,&_argo0,&_argo1)) | |
6392 | return NULL; | |
6393 | if (_argo0) { | |
6394 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6395 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTimeSpan_p")) { | |
6396 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTimeSpan___cmp__. Expected _wxTimeSpan_p."); | |
6397 | return NULL; | |
6398 | } | |
6399 | } | |
6400 | if (_argo1) { | |
6401 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6402 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTimeSpan_p")) { | |
6403 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTimeSpan___cmp__. Expected _wxTimeSpan_p."); | |
6404 | return NULL; | |
6405 | } | |
6406 | } | |
6407 | { | |
6408 | wxPy_BEGIN_ALLOW_THREADS; | |
6409 | _result = (int )wxTimeSpan___cmp__(_arg0,*_arg1); | |
6410 | ||
6411 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6412 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
6413 | } _resultobj = Py_BuildValue("i",_result); |
6414 | return _resultobj; | |
6415 | } | |
6416 | ||
6417 | #define wxTimeSpan_IsNull(_swigobj) (_swigobj->IsNull()) | |
6418 | static PyObject *_wrap_wxTimeSpan_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6419 | PyObject * _resultobj; | |
6420 | bool _result; | |
6421 | wxTimeSpan * _arg0; | |
6422 | PyObject * _argo0 = 0; | |
6423 | char *_kwnames[] = { "self", NULL }; | |
6424 | ||
6425 | self = self; | |
6426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTimeSpan_IsNull",_kwnames,&_argo0)) | |
6427 | return NULL; | |
6428 | if (_argo0) { | |
6429 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6430 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTimeSpan_p")) { | |
6431 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTimeSpan_IsNull. Expected _wxTimeSpan_p."); | |
6432 | return NULL; | |
6433 | } | |
6434 | } | |
6435 | { | |
6436 | wxPy_BEGIN_ALLOW_THREADS; | |
6437 | _result = (bool )wxTimeSpan_IsNull(_arg0); | |
6438 | ||
6439 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6440 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
6441 | } _resultobj = Py_BuildValue("i",_result); |
6442 | return _resultobj; | |
6443 | } | |
6444 | ||
6445 | #define wxTimeSpan_IsPositive(_swigobj) (_swigobj->IsPositive()) | |
6446 | static PyObject *_wrap_wxTimeSpan_IsPositive(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6447 | PyObject * _resultobj; | |
6448 | bool _result; | |
6449 | wxTimeSpan * _arg0; | |
6450 | PyObject * _argo0 = 0; | |
6451 | char *_kwnames[] = { "self", NULL }; | |
6452 | ||
6453 | self = self; | |
6454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTimeSpan_IsPositive",_kwnames,&_argo0)) | |
6455 | return NULL; | |
6456 | if (_argo0) { | |
6457 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6458 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTimeSpan_p")) { | |
6459 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTimeSpan_IsPositive. Expected _wxTimeSpan_p."); | |
6460 | return NULL; | |
6461 | } | |
6462 | } | |
6463 | { | |
6464 | wxPy_BEGIN_ALLOW_THREADS; | |
6465 | _result = (bool )wxTimeSpan_IsPositive(_arg0); | |
6466 | ||
6467 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6468 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
6469 | } _resultobj = Py_BuildValue("i",_result); |
6470 | return _resultobj; | |
6471 | } | |
6472 | ||
6473 | #define wxTimeSpan_IsNegative(_swigobj) (_swigobj->IsNegative()) | |
6474 | static PyObject *_wrap_wxTimeSpan_IsNegative(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6475 | PyObject * _resultobj; | |
6476 | bool _result; | |
6477 | wxTimeSpan * _arg0; | |
6478 | PyObject * _argo0 = 0; | |
6479 | char *_kwnames[] = { "self", NULL }; | |
6480 | ||
6481 | self = self; | |
6482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTimeSpan_IsNegative",_kwnames,&_argo0)) | |
6483 | return NULL; | |
6484 | if (_argo0) { | |
6485 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6486 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTimeSpan_p")) { | |
6487 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTimeSpan_IsNegative. Expected _wxTimeSpan_p."); | |
6488 | return NULL; | |
6489 | } | |
6490 | } | |
6491 | { | |
6492 | wxPy_BEGIN_ALLOW_THREADS; | |
6493 | _result = (bool )wxTimeSpan_IsNegative(_arg0); | |
6494 | ||
6495 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6496 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
6497 | } _resultobj = Py_BuildValue("i",_result); |
6498 | return _resultobj; | |
6499 | } | |
6500 | ||
6501 | #define wxTimeSpan_IsEqualTo(_swigobj,_swigarg0) (_swigobj->IsEqualTo(_swigarg0)) | |
6502 | static PyObject *_wrap_wxTimeSpan_IsEqualTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6503 | PyObject * _resultobj; | |
6504 | bool _result; | |
6505 | wxTimeSpan * _arg0; | |
6506 | wxTimeSpan * _arg1; | |
6507 | PyObject * _argo0 = 0; | |
6508 | PyObject * _argo1 = 0; | |
6509 | char *_kwnames[] = { "self","ts", NULL }; | |
6510 | ||
6511 | self = self; | |
6512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTimeSpan_IsEqualTo",_kwnames,&_argo0,&_argo1)) | |
6513 | return NULL; | |
6514 | if (_argo0) { | |
6515 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6516 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTimeSpan_p")) { | |
6517 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTimeSpan_IsEqualTo. Expected _wxTimeSpan_p."); | |
6518 | return NULL; | |
6519 | } | |
6520 | } | |
6521 | if (_argo1) { | |
6522 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6523 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTimeSpan_p")) { | |
6524 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTimeSpan_IsEqualTo. Expected _wxTimeSpan_p."); | |
6525 | return NULL; | |
6526 | } | |
6527 | } | |
6528 | { | |
6529 | wxPy_BEGIN_ALLOW_THREADS; | |
6530 | _result = (bool )wxTimeSpan_IsEqualTo(_arg0,*_arg1); | |
6531 | ||
6532 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6533 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
6534 | } _resultobj = Py_BuildValue("i",_result); |
6535 | return _resultobj; | |
6536 | } | |
6537 | ||
6538 | #define wxTimeSpan_IsLongerThan(_swigobj,_swigarg0) (_swigobj->IsLongerThan(_swigarg0)) | |
6539 | static PyObject *_wrap_wxTimeSpan_IsLongerThan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6540 | PyObject * _resultobj; | |
6541 | bool _result; | |
6542 | wxTimeSpan * _arg0; | |
6543 | wxTimeSpan * _arg1; | |
6544 | PyObject * _argo0 = 0; | |
6545 | PyObject * _argo1 = 0; | |
6546 | char *_kwnames[] = { "self","ts", NULL }; | |
6547 | ||
6548 | self = self; | |
6549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTimeSpan_IsLongerThan",_kwnames,&_argo0,&_argo1)) | |
6550 | return NULL; | |
6551 | if (_argo0) { | |
6552 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6553 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTimeSpan_p")) { | |
6554 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTimeSpan_IsLongerThan. Expected _wxTimeSpan_p."); | |
6555 | return NULL; | |
6556 | } | |
6557 | } | |
6558 | if (_argo1) { | |
6559 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6560 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTimeSpan_p")) { | |
6561 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTimeSpan_IsLongerThan. Expected _wxTimeSpan_p."); | |
6562 | return NULL; | |
6563 | } | |
6564 | } | |
6565 | { | |
6566 | wxPy_BEGIN_ALLOW_THREADS; | |
6567 | _result = (bool )wxTimeSpan_IsLongerThan(_arg0,*_arg1); | |
6568 | ||
6569 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6570 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
6571 | } _resultobj = Py_BuildValue("i",_result); |
6572 | return _resultobj; | |
6573 | } | |
6574 | ||
6575 | #define wxTimeSpan_IsShorterThan(_swigobj,_swigarg0) (_swigobj->IsShorterThan(_swigarg0)) | |
6576 | static PyObject *_wrap_wxTimeSpan_IsShorterThan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6577 | PyObject * _resultobj; | |
6578 | bool _result; | |
6579 | wxTimeSpan * _arg0; | |
6580 | wxTimeSpan * _arg1; | |
6581 | PyObject * _argo0 = 0; | |
6582 | PyObject * _argo1 = 0; | |
6583 | char *_kwnames[] = { "self","t", NULL }; | |
6584 | ||
6585 | self = self; | |
6586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTimeSpan_IsShorterThan",_kwnames,&_argo0,&_argo1)) | |
6587 | return NULL; | |
6588 | if (_argo0) { | |
6589 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6590 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTimeSpan_p")) { | |
6591 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTimeSpan_IsShorterThan. Expected _wxTimeSpan_p."); | |
6592 | return NULL; | |
6593 | } | |
6594 | } | |
6595 | if (_argo1) { | |
6596 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6597 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTimeSpan_p")) { | |
6598 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTimeSpan_IsShorterThan. Expected _wxTimeSpan_p."); | |
6599 | return NULL; | |
6600 | } | |
6601 | } | |
6602 | { | |
6603 | wxPy_BEGIN_ALLOW_THREADS; | |
6604 | _result = (bool )wxTimeSpan_IsShorterThan(_arg0,*_arg1); | |
6605 | ||
6606 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6607 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
6608 | } _resultobj = Py_BuildValue("i",_result); |
6609 | return _resultobj; | |
6610 | } | |
6611 | ||
6612 | #define wxTimeSpan_GetWeeks(_swigobj) (_swigobj->GetWeeks()) | |
6613 | static PyObject *_wrap_wxTimeSpan_GetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6614 | PyObject * _resultobj; | |
6615 | int _result; | |
6616 | wxTimeSpan * _arg0; | |
6617 | PyObject * _argo0 = 0; | |
6618 | char *_kwnames[] = { "self", NULL }; | |
6619 | ||
6620 | self = self; | |
6621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTimeSpan_GetWeeks",_kwnames,&_argo0)) | |
6622 | return NULL; | |
6623 | if (_argo0) { | |
6624 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6625 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTimeSpan_p")) { | |
6626 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTimeSpan_GetWeeks. Expected _wxTimeSpan_p."); | |
6627 | return NULL; | |
6628 | } | |
6629 | } | |
6630 | { | |
6631 | wxPy_BEGIN_ALLOW_THREADS; | |
6632 | _result = (int )wxTimeSpan_GetWeeks(_arg0); | |
6633 | ||
6634 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6635 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
6636 | } _resultobj = Py_BuildValue("i",_result); |
6637 | return _resultobj; | |
6638 | } | |
6639 | ||
6640 | #define wxTimeSpan_GetDays(_swigobj) (_swigobj->GetDays()) | |
6641 | static PyObject *_wrap_wxTimeSpan_GetDays(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6642 | PyObject * _resultobj; | |
6643 | int _result; | |
6644 | wxTimeSpan * _arg0; | |
6645 | PyObject * _argo0 = 0; | |
6646 | char *_kwnames[] = { "self", NULL }; | |
6647 | ||
6648 | self = self; | |
6649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTimeSpan_GetDays",_kwnames,&_argo0)) | |
6650 | return NULL; | |
6651 | if (_argo0) { | |
6652 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6653 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTimeSpan_p")) { | |
6654 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTimeSpan_GetDays. Expected _wxTimeSpan_p."); | |
6655 | return NULL; | |
6656 | } | |
6657 | } | |
6658 | { | |
6659 | wxPy_BEGIN_ALLOW_THREADS; | |
6660 | _result = (int )wxTimeSpan_GetDays(_arg0); | |
6661 | ||
6662 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6663 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
6664 | } _resultobj = Py_BuildValue("i",_result); |
6665 | return _resultobj; | |
6666 | } | |
6667 | ||
6668 | #define wxTimeSpan_GetHours(_swigobj) (_swigobj->GetHours()) | |
6669 | static PyObject *_wrap_wxTimeSpan_GetHours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6670 | PyObject * _resultobj; | |
6671 | int _result; | |
6672 | wxTimeSpan * _arg0; | |
6673 | PyObject * _argo0 = 0; | |
6674 | char *_kwnames[] = { "self", NULL }; | |
6675 | ||
6676 | self = self; | |
6677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTimeSpan_GetHours",_kwnames,&_argo0)) | |
6678 | return NULL; | |
6679 | if (_argo0) { | |
6680 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6681 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTimeSpan_p")) { | |
6682 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTimeSpan_GetHours. Expected _wxTimeSpan_p."); | |
6683 | return NULL; | |
6684 | } | |
6685 | } | |
6686 | { | |
6687 | wxPy_BEGIN_ALLOW_THREADS; | |
6688 | _result = (int )wxTimeSpan_GetHours(_arg0); | |
6689 | ||
6690 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6691 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
6692 | } _resultobj = Py_BuildValue("i",_result); |
6693 | return _resultobj; | |
6694 | } | |
6695 | ||
6696 | #define wxTimeSpan_GetMinutes(_swigobj) (_swigobj->GetMinutes()) | |
6697 | static PyObject *_wrap_wxTimeSpan_GetMinutes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6698 | PyObject * _resultobj; | |
6699 | int _result; | |
6700 | wxTimeSpan * _arg0; | |
6701 | PyObject * _argo0 = 0; | |
6702 | char *_kwnames[] = { "self", NULL }; | |
6703 | ||
6704 | self = self; | |
6705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTimeSpan_GetMinutes",_kwnames,&_argo0)) | |
6706 | return NULL; | |
6707 | if (_argo0) { | |
6708 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6709 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTimeSpan_p")) { | |
6710 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTimeSpan_GetMinutes. Expected _wxTimeSpan_p."); | |
6711 | return NULL; | |
6712 | } | |
6713 | } | |
6714 | { | |
6715 | wxPy_BEGIN_ALLOW_THREADS; | |
6716 | _result = (int )wxTimeSpan_GetMinutes(_arg0); | |
6717 | ||
6718 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6719 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
6720 | } _resultobj = Py_BuildValue("i",_result); |
6721 | return _resultobj; | |
6722 | } | |
6723 | ||
6724 | #define wxTimeSpan_GetSeconds(_swigobj) (_swigobj->GetSeconds()) | |
6725 | static PyObject *_wrap_wxTimeSpan_GetSeconds(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6726 | PyObject * _resultobj; | |
6727 | wxLongLong * _result; | |
6728 | wxTimeSpan * _arg0; | |
6729 | PyObject * _argo0 = 0; | |
6730 | char *_kwnames[] = { "self", NULL }; | |
6731 | ||
6732 | self = self; | |
6733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTimeSpan_GetSeconds",_kwnames,&_argo0)) | |
6734 | return NULL; | |
6735 | if (_argo0) { | |
6736 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6737 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTimeSpan_p")) { | |
6738 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTimeSpan_GetSeconds. Expected _wxTimeSpan_p."); | |
6739 | return NULL; | |
6740 | } | |
6741 | } | |
6742 | { | |
6743 | wxPy_BEGIN_ALLOW_THREADS; | |
6744 | _result = new wxLongLong (wxTimeSpan_GetSeconds(_arg0)); | |
6745 | ||
6746 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6747 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
6748 | }{ |
6749 | PyObject *hi, *lo, *shifter, *shifted; | |
6750 | hi = PyLong_FromLong(_result->GetHi()); | |
6751 | lo = PyLong_FromLong(_result->GetLo()); | |
6752 | shifter = PyLong_FromLong(32); | |
6753 | shifted = PyNumber_Lshift(hi, shifter); | |
6754 | _resultobj = PyNumber_Or(shifted, lo); | |
6755 | Py_DECREF(hi); | |
6756 | Py_DECREF(lo); | |
6757 | Py_DECREF(shifter); | |
6758 | Py_DECREF(shifted); | |
6759 | } | |
6760 | return _resultobj; | |
6761 | } | |
6762 | ||
6763 | #define wxTimeSpan_GetMilliseconds(_swigobj) (_swigobj->GetMilliseconds()) | |
6764 | static PyObject *_wrap_wxTimeSpan_GetMilliseconds(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6765 | PyObject * _resultobj; | |
6766 | wxLongLong * _result; | |
6767 | wxTimeSpan * _arg0; | |
6768 | PyObject * _argo0 = 0; | |
6769 | char *_kwnames[] = { "self", NULL }; | |
6770 | ||
6771 | self = self; | |
6772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTimeSpan_GetMilliseconds",_kwnames,&_argo0)) | |
6773 | return NULL; | |
6774 | if (_argo0) { | |
6775 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6776 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTimeSpan_p")) { | |
6777 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTimeSpan_GetMilliseconds. Expected _wxTimeSpan_p."); | |
6778 | return NULL; | |
6779 | } | |
6780 | } | |
6781 | { | |
6782 | wxPy_BEGIN_ALLOW_THREADS; | |
6783 | _result = new wxLongLong (wxTimeSpan_GetMilliseconds(_arg0)); | |
6784 | ||
6785 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6786 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
6787 | }{ |
6788 | PyObject *hi, *lo, *shifter, *shifted; | |
6789 | hi = PyLong_FromLong(_result->GetHi()); | |
6790 | lo = PyLong_FromLong(_result->GetLo()); | |
6791 | shifter = PyLong_FromLong(32); | |
6792 | shifted = PyNumber_Lshift(hi, shifter); | |
6793 | _resultobj = PyNumber_Or(shifted, lo); | |
6794 | Py_DECREF(hi); | |
6795 | Py_DECREF(lo); | |
6796 | Py_DECREF(shifter); | |
6797 | Py_DECREF(shifted); | |
6798 | } | |
6799 | return _resultobj; | |
6800 | } | |
6801 | ||
6802 | #define wxTimeSpan_Format(_swigobj,_swigarg0) (_swigobj->Format(_swigarg0)) | |
6803 | static PyObject *_wrap_wxTimeSpan_Format(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6804 | PyObject * _resultobj; | |
6805 | wxString * _result; | |
6806 | wxTimeSpan * _arg0; | |
6807 | char * _arg1 = (char *) "%c"; | |
6808 | PyObject * _argo0 = 0; | |
6809 | char *_kwnames[] = { "self","format", NULL }; | |
6810 | ||
6811 | self = self; | |
6812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|s:wxTimeSpan_Format",_kwnames,&_argo0,&_arg1)) | |
6813 | return NULL; | |
6814 | if (_argo0) { | |
6815 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6816 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTimeSpan_p")) { | |
6817 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTimeSpan_Format. Expected _wxTimeSpan_p."); | |
6818 | return NULL; | |
6819 | } | |
6820 | } | |
6821 | { | |
6822 | wxPy_BEGIN_ALLOW_THREADS; | |
6823 | _result = new wxString (wxTimeSpan_Format(_arg0,_arg1)); | |
6824 | ||
6825 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6826 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
6827 | }{ |
6828 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
6829 | } | |
6830 | { | |
6831 | delete _result; | |
6832 | } | |
6833 | return _resultobj; | |
6834 | } | |
6835 | ||
6836 | #define new_wxDateSpan(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxDateSpan(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
6837 | static PyObject *_wrap_new_wxDateSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6838 | PyObject * _resultobj; | |
6839 | wxDateSpan * _result; | |
6840 | int _arg0 = (int ) 0; | |
6841 | int _arg1 = (int ) 0; | |
6842 | int _arg2 = (int ) 0; | |
6843 | int _arg3 = (int ) 0; | |
6844 | char *_kwnames[] = { "years","months","weeks","days", NULL }; | |
6845 | char _ptemp[128]; | |
6846 | ||
6847 | self = self; | |
6848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|iiii:new_wxDateSpan",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3)) | |
6849 | return NULL; | |
6850 | { | |
6851 | wxPy_BEGIN_ALLOW_THREADS; | |
6852 | _result = (wxDateSpan *)new_wxDateSpan(_arg0,_arg1,_arg2,_arg3); | |
6853 | ||
6854 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6855 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
6856 | } if (_result) { |
6857 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateSpan_p"); | |
6858 | _resultobj = Py_BuildValue("s",_ptemp); | |
6859 | } else { | |
6860 | Py_INCREF(Py_None); | |
6861 | _resultobj = Py_None; | |
6862 | } | |
6863 | return _resultobj; | |
6864 | } | |
6865 | ||
6866 | #define delete_wxDateSpan(_swigobj) (delete _swigobj) | |
6867 | static PyObject *_wrap_delete_wxDateSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6868 | PyObject * _resultobj; | |
6869 | wxDateSpan * _arg0; | |
6870 | PyObject * _argo0 = 0; | |
6871 | char *_kwnames[] = { "self", NULL }; | |
6872 | ||
6873 | self = self; | |
6874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxDateSpan",_kwnames,&_argo0)) | |
6875 | return NULL; | |
6876 | if (_argo0) { | |
6877 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6878 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateSpan_p")) { | |
6879 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxDateSpan. Expected _wxDateSpan_p."); | |
6880 | return NULL; | |
6881 | } | |
6882 | } | |
6883 | { | |
6884 | wxPy_BEGIN_ALLOW_THREADS; | |
6885 | delete_wxDateSpan(_arg0); | |
6886 | ||
6887 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6888 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
6889 | } Py_INCREF(Py_None); |
6890 | _resultobj = Py_None; | |
6891 | return _resultobj; | |
6892 | } | |
6893 | ||
6894 | static PyObject *_wrap_wxDateSpan_Days(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6895 | PyObject * _resultobj; | |
6896 | wxDateSpan * _result; | |
6897 | int _arg0; | |
6898 | char *_kwnames[] = { "days", NULL }; | |
6899 | char _ptemp[128]; | |
6900 | ||
6901 | self = self; | |
6902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxDateSpan_Days",_kwnames,&_arg0)) | |
6903 | return NULL; | |
6904 | { | |
6905 | wxPy_BEGIN_ALLOW_THREADS; | |
6906 | _result = new wxDateSpan (wxDateSpan::Days(_arg0)); | |
6907 | ||
6908 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6909 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
6910 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxDateSpan_p"); |
6911 | _resultobj = Py_BuildValue("s",_ptemp); | |
6912 | return _resultobj; | |
6913 | } | |
6914 | ||
6915 | static PyObject *_wrap_wxDateSpan_Day(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6916 | PyObject * _resultobj; | |
6917 | wxDateSpan * _result; | |
6918 | char *_kwnames[] = { NULL }; | |
6919 | char _ptemp[128]; | |
6920 | ||
6921 | self = self; | |
6922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxDateSpan_Day",_kwnames)) | |
6923 | return NULL; | |
6924 | { | |
6925 | wxPy_BEGIN_ALLOW_THREADS; | |
6926 | _result = new wxDateSpan (wxDateSpan::Day()); | |
6927 | ||
6928 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6929 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
6930 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxDateSpan_p"); |
6931 | _resultobj = Py_BuildValue("s",_ptemp); | |
6932 | return _resultobj; | |
6933 | } | |
6934 | ||
6935 | static PyObject *_wrap_wxDateSpan_Weeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6936 | PyObject * _resultobj; | |
6937 | wxDateSpan * _result; | |
6938 | int _arg0; | |
6939 | char *_kwnames[] = { "weeks", NULL }; | |
6940 | char _ptemp[128]; | |
6941 | ||
6942 | self = self; | |
6943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxDateSpan_Weeks",_kwnames,&_arg0)) | |
6944 | return NULL; | |
6945 | { | |
6946 | wxPy_BEGIN_ALLOW_THREADS; | |
6947 | _result = new wxDateSpan (wxDateSpan::Weeks(_arg0)); | |
6948 | ||
6949 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6950 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
6951 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxDateSpan_p"); |
6952 | _resultobj = Py_BuildValue("s",_ptemp); | |
6953 | return _resultobj; | |
6954 | } | |
6955 | ||
6956 | static PyObject *_wrap_wxDateSpan_Week(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6957 | PyObject * _resultobj; | |
6958 | wxDateSpan * _result; | |
6959 | char *_kwnames[] = { NULL }; | |
6960 | char _ptemp[128]; | |
6961 | ||
6962 | self = self; | |
6963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxDateSpan_Week",_kwnames)) | |
6964 | return NULL; | |
6965 | { | |
6966 | wxPy_BEGIN_ALLOW_THREADS; | |
6967 | _result = new wxDateSpan (wxDateSpan::Week()); | |
6968 | ||
6969 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6970 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
6971 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxDateSpan_p"); |
6972 | _resultobj = Py_BuildValue("s",_ptemp); | |
6973 | return _resultobj; | |
6974 | } | |
6975 | ||
6976 | static PyObject *_wrap_wxDateSpan_Months(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6977 | PyObject * _resultobj; | |
6978 | wxDateSpan * _result; | |
6979 | int _arg0; | |
6980 | char *_kwnames[] = { "mon", NULL }; | |
6981 | char _ptemp[128]; | |
6982 | ||
6983 | self = self; | |
6984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxDateSpan_Months",_kwnames,&_arg0)) | |
6985 | return NULL; | |
6986 | { | |
6987 | wxPy_BEGIN_ALLOW_THREADS; | |
6988 | _result = new wxDateSpan (wxDateSpan::Months(_arg0)); | |
6989 | ||
6990 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6991 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
6992 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxDateSpan_p"); |
6993 | _resultobj = Py_BuildValue("s",_ptemp); | |
6994 | return _resultobj; | |
6995 | } | |
6996 | ||
6997 | static PyObject *_wrap_wxDateSpan_Month(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6998 | PyObject * _resultobj; | |
6999 | wxDateSpan * _result; | |
7000 | char *_kwnames[] = { NULL }; | |
7001 | char _ptemp[128]; | |
7002 | ||
7003 | self = self; | |
7004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxDateSpan_Month",_kwnames)) | |
7005 | return NULL; | |
7006 | { | |
7007 | wxPy_BEGIN_ALLOW_THREADS; | |
7008 | _result = new wxDateSpan (wxDateSpan::Month()); | |
7009 | ||
7010 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7011 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
7012 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxDateSpan_p"); |
7013 | _resultobj = Py_BuildValue("s",_ptemp); | |
7014 | return _resultobj; | |
7015 | } | |
7016 | ||
7017 | static PyObject *_wrap_wxDateSpan_Years(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7018 | PyObject * _resultobj; | |
7019 | wxDateSpan * _result; | |
7020 | int _arg0; | |
7021 | char *_kwnames[] = { "years", NULL }; | |
7022 | char _ptemp[128]; | |
7023 | ||
7024 | self = self; | |
7025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxDateSpan_Years",_kwnames,&_arg0)) | |
7026 | return NULL; | |
7027 | { | |
7028 | wxPy_BEGIN_ALLOW_THREADS; | |
7029 | _result = new wxDateSpan (wxDateSpan::Years(_arg0)); | |
7030 | ||
7031 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7032 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
7033 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxDateSpan_p"); |
7034 | _resultobj = Py_BuildValue("s",_ptemp); | |
7035 | return _resultobj; | |
7036 | } | |
7037 | ||
7038 | static PyObject *_wrap_wxDateSpan_Year(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7039 | PyObject * _resultobj; | |
7040 | wxDateSpan * _result; | |
7041 | char *_kwnames[] = { NULL }; | |
7042 | char _ptemp[128]; | |
7043 | ||
7044 | self = self; | |
7045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxDateSpan_Year",_kwnames)) | |
7046 | return NULL; | |
7047 | { | |
7048 | wxPy_BEGIN_ALLOW_THREADS; | |
7049 | _result = new wxDateSpan (wxDateSpan::Year()); | |
7050 | ||
7051 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7052 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
7053 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxDateSpan_p"); |
7054 | _resultobj = Py_BuildValue("s",_ptemp); | |
7055 | return _resultobj; | |
7056 | } | |
7057 | ||
7058 | #define wxDateSpan_SetYears(_swigobj,_swigarg0) (_swigobj->SetYears(_swigarg0)) | |
7059 | static PyObject *_wrap_wxDateSpan_SetYears(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7060 | PyObject * _resultobj; | |
7061 | wxDateSpan * _result; | |
7062 | wxDateSpan * _arg0; | |
7063 | int _arg1; | |
7064 | PyObject * _argo0 = 0; | |
7065 | char *_kwnames[] = { "self","n", NULL }; | |
7066 | char _ptemp[128]; | |
7067 | ||
7068 | self = self; | |
7069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDateSpan_SetYears",_kwnames,&_argo0,&_arg1)) | |
7070 | return NULL; | |
7071 | if (_argo0) { | |
7072 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7073 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateSpan_p")) { | |
7074 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateSpan_SetYears. Expected _wxDateSpan_p."); | |
7075 | return NULL; | |
7076 | } | |
7077 | } | |
7078 | { | |
7079 | wxPy_BEGIN_ALLOW_THREADS; | |
7080 | wxDateSpan & _result_ref = wxDateSpan_SetYears(_arg0,_arg1); | |
7081 | _result = (wxDateSpan *) &_result_ref; | |
7082 | ||
7083 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7084 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
7085 | } if (_result) { |
7086 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateSpan_p"); | |
7087 | _resultobj = Py_BuildValue("s",_ptemp); | |
7088 | } else { | |
7089 | Py_INCREF(Py_None); | |
7090 | _resultobj = Py_None; | |
7091 | } | |
7092 | return _resultobj; | |
7093 | } | |
7094 | ||
7095 | #define wxDateSpan_SetMonths(_swigobj,_swigarg0) (_swigobj->SetMonths(_swigarg0)) | |
7096 | static PyObject *_wrap_wxDateSpan_SetMonths(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7097 | PyObject * _resultobj; | |
7098 | wxDateSpan * _result; | |
7099 | wxDateSpan * _arg0; | |
7100 | int _arg1; | |
7101 | PyObject * _argo0 = 0; | |
7102 | char *_kwnames[] = { "self","n", NULL }; | |
7103 | char _ptemp[128]; | |
7104 | ||
7105 | self = self; | |
7106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDateSpan_SetMonths",_kwnames,&_argo0,&_arg1)) | |
7107 | return NULL; | |
7108 | if (_argo0) { | |
7109 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7110 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateSpan_p")) { | |
7111 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateSpan_SetMonths. Expected _wxDateSpan_p."); | |
7112 | return NULL; | |
7113 | } | |
7114 | } | |
7115 | { | |
7116 | wxPy_BEGIN_ALLOW_THREADS; | |
7117 | wxDateSpan & _result_ref = wxDateSpan_SetMonths(_arg0,_arg1); | |
7118 | _result = (wxDateSpan *) &_result_ref; | |
7119 | ||
7120 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7121 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
7122 | } if (_result) { |
7123 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateSpan_p"); | |
7124 | _resultobj = Py_BuildValue("s",_ptemp); | |
7125 | } else { | |
7126 | Py_INCREF(Py_None); | |
7127 | _resultobj = Py_None; | |
7128 | } | |
7129 | return _resultobj; | |
7130 | } | |
7131 | ||
7132 | #define wxDateSpan_SetWeeks(_swigobj,_swigarg0) (_swigobj->SetWeeks(_swigarg0)) | |
7133 | static PyObject *_wrap_wxDateSpan_SetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7134 | PyObject * _resultobj; | |
7135 | wxDateSpan * _result; | |
7136 | wxDateSpan * _arg0; | |
7137 | int _arg1; | |
7138 | PyObject * _argo0 = 0; | |
7139 | char *_kwnames[] = { "self","n", NULL }; | |
7140 | char _ptemp[128]; | |
7141 | ||
7142 | self = self; | |
7143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDateSpan_SetWeeks",_kwnames,&_argo0,&_arg1)) | |
7144 | return NULL; | |
7145 | if (_argo0) { | |
7146 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7147 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateSpan_p")) { | |
7148 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateSpan_SetWeeks. Expected _wxDateSpan_p."); | |
7149 | return NULL; | |
7150 | } | |
7151 | } | |
7152 | { | |
7153 | wxPy_BEGIN_ALLOW_THREADS; | |
7154 | wxDateSpan & _result_ref = wxDateSpan_SetWeeks(_arg0,_arg1); | |
7155 | _result = (wxDateSpan *) &_result_ref; | |
7156 | ||
7157 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7158 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
7159 | } if (_result) { |
7160 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateSpan_p"); | |
7161 | _resultobj = Py_BuildValue("s",_ptemp); | |
7162 | } else { | |
7163 | Py_INCREF(Py_None); | |
7164 | _resultobj = Py_None; | |
7165 | } | |
7166 | return _resultobj; | |
7167 | } | |
7168 | ||
7169 | #define wxDateSpan_SetDays(_swigobj,_swigarg0) (_swigobj->SetDays(_swigarg0)) | |
7170 | static PyObject *_wrap_wxDateSpan_SetDays(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7171 | PyObject * _resultobj; | |
7172 | wxDateSpan * _result; | |
7173 | wxDateSpan * _arg0; | |
7174 | int _arg1; | |
7175 | PyObject * _argo0 = 0; | |
7176 | char *_kwnames[] = { "self","n", NULL }; | |
7177 | char _ptemp[128]; | |
7178 | ||
7179 | self = self; | |
7180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDateSpan_SetDays",_kwnames,&_argo0,&_arg1)) | |
7181 | return NULL; | |
7182 | if (_argo0) { | |
7183 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7184 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateSpan_p")) { | |
7185 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateSpan_SetDays. Expected _wxDateSpan_p."); | |
7186 | return NULL; | |
7187 | } | |
7188 | } | |
7189 | { | |
7190 | wxPy_BEGIN_ALLOW_THREADS; | |
7191 | wxDateSpan & _result_ref = wxDateSpan_SetDays(_arg0,_arg1); | |
7192 | _result = (wxDateSpan *) &_result_ref; | |
7193 | ||
7194 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7195 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
7196 | } if (_result) { |
7197 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateSpan_p"); | |
7198 | _resultobj = Py_BuildValue("s",_ptemp); | |
7199 | } else { | |
7200 | Py_INCREF(Py_None); | |
7201 | _resultobj = Py_None; | |
7202 | } | |
7203 | return _resultobj; | |
7204 | } | |
7205 | ||
7206 | #define wxDateSpan_GetYears(_swigobj) (_swigobj->GetYears()) | |
7207 | static PyObject *_wrap_wxDateSpan_GetYears(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7208 | PyObject * _resultobj; | |
7209 | int _result; | |
7210 | wxDateSpan * _arg0; | |
7211 | PyObject * _argo0 = 0; | |
7212 | char *_kwnames[] = { "self", NULL }; | |
7213 | ||
7214 | self = self; | |
7215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDateSpan_GetYears",_kwnames,&_argo0)) | |
7216 | return NULL; | |
7217 | if (_argo0) { | |
7218 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7219 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateSpan_p")) { | |
7220 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateSpan_GetYears. Expected _wxDateSpan_p."); | |
7221 | return NULL; | |
7222 | } | |
7223 | } | |
7224 | { | |
7225 | wxPy_BEGIN_ALLOW_THREADS; | |
7226 | _result = (int )wxDateSpan_GetYears(_arg0); | |
7227 | ||
7228 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7229 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
7230 | } _resultobj = Py_BuildValue("i",_result); |
7231 | return _resultobj; | |
7232 | } | |
7233 | ||
7234 | #define wxDateSpan_GetMonths(_swigobj) (_swigobj->GetMonths()) | |
7235 | static PyObject *_wrap_wxDateSpan_GetMonths(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7236 | PyObject * _resultobj; | |
7237 | int _result; | |
7238 | wxDateSpan * _arg0; | |
7239 | PyObject * _argo0 = 0; | |
7240 | char *_kwnames[] = { "self", NULL }; | |
7241 | ||
7242 | self = self; | |
7243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDateSpan_GetMonths",_kwnames,&_argo0)) | |
7244 | return NULL; | |
7245 | if (_argo0) { | |
7246 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7247 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateSpan_p")) { | |
7248 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateSpan_GetMonths. Expected _wxDateSpan_p."); | |
7249 | return NULL; | |
7250 | } | |
7251 | } | |
7252 | { | |
7253 | wxPy_BEGIN_ALLOW_THREADS; | |
7254 | _result = (int )wxDateSpan_GetMonths(_arg0); | |
7255 | ||
7256 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7257 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
7258 | } _resultobj = Py_BuildValue("i",_result); |
7259 | return _resultobj; | |
7260 | } | |
7261 | ||
7262 | #define wxDateSpan_GetWeeks(_swigobj) (_swigobj->GetWeeks()) | |
7263 | static PyObject *_wrap_wxDateSpan_GetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7264 | PyObject * _resultobj; | |
7265 | int _result; | |
7266 | wxDateSpan * _arg0; | |
7267 | PyObject * _argo0 = 0; | |
7268 | char *_kwnames[] = { "self", NULL }; | |
7269 | ||
7270 | self = self; | |
7271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDateSpan_GetWeeks",_kwnames,&_argo0)) | |
7272 | return NULL; | |
7273 | if (_argo0) { | |
7274 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7275 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateSpan_p")) { | |
7276 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateSpan_GetWeeks. Expected _wxDateSpan_p."); | |
7277 | return NULL; | |
7278 | } | |
7279 | } | |
7280 | { | |
7281 | wxPy_BEGIN_ALLOW_THREADS; | |
7282 | _result = (int )wxDateSpan_GetWeeks(_arg0); | |
7283 | ||
7284 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7285 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
7286 | } _resultobj = Py_BuildValue("i",_result); |
7287 | return _resultobj; | |
7288 | } | |
7289 | ||
7290 | #define wxDateSpan_GetDays(_swigobj) (_swigobj->GetDays()) | |
7291 | static PyObject *_wrap_wxDateSpan_GetDays(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7292 | PyObject * _resultobj; | |
7293 | int _result; | |
7294 | wxDateSpan * _arg0; | |
7295 | PyObject * _argo0 = 0; | |
7296 | char *_kwnames[] = { "self", NULL }; | |
7297 | ||
7298 | self = self; | |
7299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDateSpan_GetDays",_kwnames,&_argo0)) | |
7300 | return NULL; | |
7301 | if (_argo0) { | |
7302 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7303 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateSpan_p")) { | |
7304 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateSpan_GetDays. Expected _wxDateSpan_p."); | |
7305 | return NULL; | |
7306 | } | |
7307 | } | |
7308 | { | |
7309 | wxPy_BEGIN_ALLOW_THREADS; | |
7310 | _result = (int )wxDateSpan_GetDays(_arg0); | |
7311 | ||
7312 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7313 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
7314 | } _resultobj = Py_BuildValue("i",_result); |
7315 | return _resultobj; | |
7316 | } | |
7317 | ||
7318 | #define wxDateSpan_GetTotalDays(_swigobj) (_swigobj->GetTotalDays()) | |
7319 | static PyObject *_wrap_wxDateSpan_GetTotalDays(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7320 | PyObject * _resultobj; | |
7321 | int _result; | |
7322 | wxDateSpan * _arg0; | |
7323 | PyObject * _argo0 = 0; | |
7324 | char *_kwnames[] = { "self", NULL }; | |
7325 | ||
7326 | self = self; | |
7327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDateSpan_GetTotalDays",_kwnames,&_argo0)) | |
7328 | return NULL; | |
7329 | if (_argo0) { | |
7330 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7331 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateSpan_p")) { | |
7332 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateSpan_GetTotalDays. Expected _wxDateSpan_p."); | |
7333 | return NULL; | |
7334 | } | |
7335 | } | |
7336 | { | |
7337 | wxPy_BEGIN_ALLOW_THREADS; | |
7338 | _result = (int )wxDateSpan_GetTotalDays(_arg0); | |
7339 | ||
7340 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7341 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
7342 | } _resultobj = Py_BuildValue("i",_result); |
7343 | return _resultobj; | |
7344 | } | |
7345 | ||
7346 | #define wxDateSpan_Add(_swigobj,_swigarg0) (_swigobj->Add(_swigarg0)) | |
7347 | static PyObject *_wrap_wxDateSpan_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7348 | PyObject * _resultobj; | |
7349 | wxDateSpan * _result; | |
7350 | wxDateSpan * _arg0; | |
7351 | wxDateSpan * _arg1; | |
7352 | PyObject * _argo0 = 0; | |
7353 | PyObject * _argo1 = 0; | |
7354 | char *_kwnames[] = { "self","other", NULL }; | |
7355 | char _ptemp[128]; | |
7356 | ||
7357 | self = self; | |
7358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDateSpan_Add",_kwnames,&_argo0,&_argo1)) | |
7359 | return NULL; | |
7360 | if (_argo0) { | |
7361 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7362 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateSpan_p")) { | |
7363 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateSpan_Add. Expected _wxDateSpan_p."); | |
7364 | return NULL; | |
7365 | } | |
7366 | } | |
7367 | if (_argo1) { | |
7368 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7369 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDateSpan_p")) { | |
7370 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDateSpan_Add. Expected _wxDateSpan_p."); | |
7371 | return NULL; | |
7372 | } | |
7373 | } | |
7374 | { | |
7375 | wxPy_BEGIN_ALLOW_THREADS; | |
7376 | wxDateSpan & _result_ref = wxDateSpan_Add(_arg0,*_arg1); | |
7377 | _result = (wxDateSpan *) &_result_ref; | |
7378 | ||
7379 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7380 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
7381 | } if (_result) { |
7382 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateSpan_p"); | |
7383 | _resultobj = Py_BuildValue("s",_ptemp); | |
7384 | } else { | |
7385 | Py_INCREF(Py_None); | |
7386 | _resultobj = Py_None; | |
7387 | } | |
7388 | return _resultobj; | |
7389 | } | |
7390 | ||
7391 | #define wxDateSpan_Subtract(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0)) | |
7392 | static PyObject *_wrap_wxDateSpan_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7393 | PyObject * _resultobj; | |
7394 | wxDateSpan * _result; | |
7395 | wxDateSpan * _arg0; | |
7396 | wxDateSpan * _arg1; | |
7397 | PyObject * _argo0 = 0; | |
7398 | PyObject * _argo1 = 0; | |
7399 | char *_kwnames[] = { "self","other", NULL }; | |
7400 | char _ptemp[128]; | |
7401 | ||
7402 | self = self; | |
7403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDateSpan_Subtract",_kwnames,&_argo0,&_argo1)) | |
7404 | return NULL; | |
7405 | if (_argo0) { | |
7406 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7407 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateSpan_p")) { | |
7408 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateSpan_Subtract. Expected _wxDateSpan_p."); | |
7409 | return NULL; | |
7410 | } | |
7411 | } | |
7412 | if (_argo1) { | |
7413 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7414 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDateSpan_p")) { | |
7415 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDateSpan_Subtract. Expected _wxDateSpan_p."); | |
7416 | return NULL; | |
7417 | } | |
7418 | } | |
7419 | { | |
7420 | wxPy_BEGIN_ALLOW_THREADS; | |
7421 | wxDateSpan & _result_ref = wxDateSpan_Subtract(_arg0,*_arg1); | |
7422 | _result = (wxDateSpan *) &_result_ref; | |
7423 | ||
7424 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7425 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
7426 | } if (_result) { |
7427 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateSpan_p"); | |
7428 | _resultobj = Py_BuildValue("s",_ptemp); | |
7429 | } else { | |
7430 | Py_INCREF(Py_None); | |
7431 | _resultobj = Py_None; | |
7432 | } | |
7433 | return _resultobj; | |
7434 | } | |
7435 | ||
7436 | #define wxDateSpan_Neg(_swigobj) (_swigobj->Neg()) | |
7437 | static PyObject *_wrap_wxDateSpan_Neg(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7438 | PyObject * _resultobj; | |
7439 | wxDateSpan * _result; | |
7440 | wxDateSpan * _arg0; | |
7441 | PyObject * _argo0 = 0; | |
7442 | char *_kwnames[] = { "self", NULL }; | |
7443 | char _ptemp[128]; | |
7444 | ||
7445 | self = self; | |
7446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDateSpan_Neg",_kwnames,&_argo0)) | |
7447 | return NULL; | |
7448 | if (_argo0) { | |
7449 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7450 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateSpan_p")) { | |
7451 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateSpan_Neg. Expected _wxDateSpan_p."); | |
7452 | return NULL; | |
7453 | } | |
7454 | } | |
7455 | { | |
7456 | wxPy_BEGIN_ALLOW_THREADS; | |
7457 | wxDateSpan & _result_ref = wxDateSpan_Neg(_arg0); | |
7458 | _result = (wxDateSpan *) &_result_ref; | |
7459 | ||
7460 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7461 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
7462 | } if (_result) { |
7463 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateSpan_p"); | |
7464 | _resultobj = Py_BuildValue("s",_ptemp); | |
7465 | } else { | |
7466 | Py_INCREF(Py_None); | |
7467 | _resultobj = Py_None; | |
7468 | } | |
7469 | return _resultobj; | |
7470 | } | |
7471 | ||
7472 | #define wxDateSpan_Multiply(_swigobj,_swigarg0) (_swigobj->Multiply(_swigarg0)) | |
7473 | static PyObject *_wrap_wxDateSpan_Multiply(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7474 | PyObject * _resultobj; | |
7475 | wxDateSpan * _result; | |
7476 | wxDateSpan * _arg0; | |
7477 | int _arg1; | |
7478 | PyObject * _argo0 = 0; | |
7479 | char *_kwnames[] = { "self","factor", NULL }; | |
7480 | char _ptemp[128]; | |
7481 | ||
7482 | self = self; | |
7483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDateSpan_Multiply",_kwnames,&_argo0,&_arg1)) | |
7484 | return NULL; | |
7485 | if (_argo0) { | |
7486 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7487 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateSpan_p")) { | |
7488 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateSpan_Multiply. Expected _wxDateSpan_p."); | |
7489 | return NULL; | |
7490 | } | |
7491 | } | |
7492 | { | |
7493 | wxPy_BEGIN_ALLOW_THREADS; | |
7494 | wxDateSpan & _result_ref = wxDateSpan_Multiply(_arg0,_arg1); | |
7495 | _result = (wxDateSpan *) &_result_ref; | |
7496 | ||
7497 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7498 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
7499 | } if (_result) { |
7500 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateSpan_p"); | |
7501 | _resultobj = Py_BuildValue("s",_ptemp); | |
7502 | } else { | |
7503 | Py_INCREF(Py_None); | |
7504 | _resultobj = Py_None; | |
7505 | } | |
7506 | return _resultobj; | |
7507 | } | |
7508 | ||
7509 | static wxDateSpan wxDateSpan___add__(wxDateSpan *self,const wxDateSpan & other) { return *self + other; } | |
7510 | static PyObject *_wrap_wxDateSpan___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7511 | PyObject * _resultobj; | |
7512 | wxDateSpan * _result; | |
7513 | wxDateSpan * _arg0; | |
7514 | wxDateSpan * _arg1; | |
7515 | PyObject * _argo0 = 0; | |
7516 | PyObject * _argo1 = 0; | |
7517 | char *_kwnames[] = { "self","other", NULL }; | |
7518 | char _ptemp[128]; | |
7519 | ||
7520 | self = self; | |
7521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDateSpan___add__",_kwnames,&_argo0,&_argo1)) | |
7522 | return NULL; | |
7523 | if (_argo0) { | |
7524 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7525 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateSpan_p")) { | |
7526 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateSpan___add__. Expected _wxDateSpan_p."); | |
7527 | return NULL; | |
7528 | } | |
7529 | } | |
7530 | if (_argo1) { | |
7531 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7532 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDateSpan_p")) { | |
7533 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDateSpan___add__. Expected _wxDateSpan_p."); | |
7534 | return NULL; | |
7535 | } | |
7536 | } | |
7537 | { | |
7538 | wxPy_BEGIN_ALLOW_THREADS; | |
7539 | _result = new wxDateSpan (wxDateSpan___add__(_arg0,*_arg1)); | |
7540 | ||
7541 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7542 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
7543 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxDateSpan_p"); |
7544 | _resultobj = Py_BuildValue("s",_ptemp); | |
7545 | return _resultobj; | |
7546 | } | |
7547 | ||
7548 | static wxDateSpan wxDateSpan___sub__(wxDateSpan *self,const wxDateSpan & other) { return *self - other; } | |
7549 | static PyObject *_wrap_wxDateSpan___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7550 | PyObject * _resultobj; | |
7551 | wxDateSpan * _result; | |
7552 | wxDateSpan * _arg0; | |
7553 | wxDateSpan * _arg1; | |
7554 | PyObject * _argo0 = 0; | |
7555 | PyObject * _argo1 = 0; | |
7556 | char *_kwnames[] = { "self","other", NULL }; | |
7557 | char _ptemp[128]; | |
7558 | ||
7559 | self = self; | |
7560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDateSpan___sub__",_kwnames,&_argo0,&_argo1)) | |
7561 | return NULL; | |
7562 | if (_argo0) { | |
7563 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7564 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateSpan_p")) { | |
7565 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateSpan___sub__. Expected _wxDateSpan_p."); | |
7566 | return NULL; | |
7567 | } | |
7568 | } | |
7569 | if (_argo1) { | |
7570 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7571 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDateSpan_p")) { | |
7572 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDateSpan___sub__. Expected _wxDateSpan_p."); | |
7573 | return NULL; | |
7574 | } | |
7575 | } | |
7576 | { | |
7577 | wxPy_BEGIN_ALLOW_THREADS; | |
7578 | _result = new wxDateSpan (wxDateSpan___sub__(_arg0,*_arg1)); | |
7579 | ||
7580 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7581 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
7582 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxDateSpan_p"); |
7583 | _resultobj = Py_BuildValue("s",_ptemp); | |
7584 | return _resultobj; | |
7585 | } | |
7586 | ||
7587 | static wxDateSpan wxDateSpan___mul__(wxDateSpan *self,int n) { return *self * n; } | |
7588 | static PyObject *_wrap_wxDateSpan___mul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7589 | PyObject * _resultobj; | |
7590 | wxDateSpan * _result; | |
7591 | wxDateSpan * _arg0; | |
7592 | int _arg1; | |
7593 | PyObject * _argo0 = 0; | |
7594 | char *_kwnames[] = { "self","n", NULL }; | |
7595 | char _ptemp[128]; | |
7596 | ||
7597 | self = self; | |
7598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDateSpan___mul__",_kwnames,&_argo0,&_arg1)) | |
7599 | return NULL; | |
7600 | if (_argo0) { | |
7601 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7602 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateSpan_p")) { | |
7603 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateSpan___mul__. Expected _wxDateSpan_p."); | |
7604 | return NULL; | |
7605 | } | |
7606 | } | |
7607 | { | |
7608 | wxPy_BEGIN_ALLOW_THREADS; | |
7609 | _result = new wxDateSpan (wxDateSpan___mul__(_arg0,_arg1)); | |
7610 | ||
7611 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7612 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
7613 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxDateSpan_p"); |
7614 | _resultobj = Py_BuildValue("s",_ptemp); | |
7615 | return _resultobj; | |
7616 | } | |
7617 | ||
7618 | static wxDateSpan wxDateSpan___rmul__(wxDateSpan *self,int n) { return n * *self; } | |
7619 | static PyObject *_wrap_wxDateSpan___rmul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7620 | PyObject * _resultobj; | |
7621 | wxDateSpan * _result; | |
7622 | wxDateSpan * _arg0; | |
7623 | int _arg1; | |
7624 | PyObject * _argo0 = 0; | |
7625 | char *_kwnames[] = { "self","n", NULL }; | |
7626 | char _ptemp[128]; | |
7627 | ||
7628 | self = self; | |
7629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDateSpan___rmul__",_kwnames,&_argo0,&_arg1)) | |
7630 | return NULL; | |
7631 | if (_argo0) { | |
7632 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7633 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateSpan_p")) { | |
7634 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateSpan___rmul__. Expected _wxDateSpan_p."); | |
7635 | return NULL; | |
7636 | } | |
7637 | } | |
7638 | { | |
7639 | wxPy_BEGIN_ALLOW_THREADS; | |
7640 | _result = new wxDateSpan (wxDateSpan___rmul__(_arg0,_arg1)); | |
7641 | ||
7642 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7643 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
7644 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxDateSpan_p"); |
7645 | _resultobj = Py_BuildValue("s",_ptemp); | |
7646 | return _resultobj; | |
7647 | } | |
7648 | ||
7649 | static wxDateSpan wxDateSpan___neg__(wxDateSpan *self) { return self->Negate(); } | |
7650 | static PyObject *_wrap_wxDateSpan___neg__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7651 | PyObject * _resultobj; | |
7652 | wxDateSpan * _result; | |
7653 | wxDateSpan * _arg0; | |
7654 | PyObject * _argo0 = 0; | |
7655 | char *_kwnames[] = { "self", NULL }; | |
7656 | char _ptemp[128]; | |
7657 | ||
7658 | self = self; | |
7659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDateSpan___neg__",_kwnames,&_argo0)) | |
7660 | return NULL; | |
7661 | if (_argo0) { | |
7662 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7663 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateSpan_p")) { | |
7664 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateSpan___neg__. Expected _wxDateSpan_p."); | |
7665 | return NULL; | |
7666 | } | |
7667 | } | |
7668 | { | |
7669 | wxPy_BEGIN_ALLOW_THREADS; | |
7670 | _result = new wxDateSpan (wxDateSpan___neg__(_arg0)); | |
7671 | ||
7672 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7673 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
7674 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxDateSpan_p"); |
7675 | _resultobj = Py_BuildValue("s",_ptemp); | |
7676 | return _resultobj; | |
7677 | } | |
7678 | ||
7679 | static PyMethodDef utilscMethods[] = { | |
7680 | { "wxDateSpan___neg__", (PyCFunction) _wrap_wxDateSpan___neg__, METH_VARARGS | METH_KEYWORDS }, | |
7681 | { "wxDateSpan___rmul__", (PyCFunction) _wrap_wxDateSpan___rmul__, METH_VARARGS | METH_KEYWORDS }, | |
7682 | { "wxDateSpan___mul__", (PyCFunction) _wrap_wxDateSpan___mul__, METH_VARARGS | METH_KEYWORDS }, | |
7683 | { "wxDateSpan___sub__", (PyCFunction) _wrap_wxDateSpan___sub__, METH_VARARGS | METH_KEYWORDS }, | |
7684 | { "wxDateSpan___add__", (PyCFunction) _wrap_wxDateSpan___add__, METH_VARARGS | METH_KEYWORDS }, | |
7685 | { "wxDateSpan_Multiply", (PyCFunction) _wrap_wxDateSpan_Multiply, METH_VARARGS | METH_KEYWORDS }, | |
7686 | { "wxDateSpan_Neg", (PyCFunction) _wrap_wxDateSpan_Neg, METH_VARARGS | METH_KEYWORDS }, | |
7687 | { "wxDateSpan_Subtract", (PyCFunction) _wrap_wxDateSpan_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
7688 | { "wxDateSpan_Add", (PyCFunction) _wrap_wxDateSpan_Add, METH_VARARGS | METH_KEYWORDS }, | |
7689 | { "wxDateSpan_GetTotalDays", (PyCFunction) _wrap_wxDateSpan_GetTotalDays, METH_VARARGS | METH_KEYWORDS }, | |
7690 | { "wxDateSpan_GetDays", (PyCFunction) _wrap_wxDateSpan_GetDays, METH_VARARGS | METH_KEYWORDS }, | |
7691 | { "wxDateSpan_GetWeeks", (PyCFunction) _wrap_wxDateSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS }, | |
7692 | { "wxDateSpan_GetMonths", (PyCFunction) _wrap_wxDateSpan_GetMonths, METH_VARARGS | METH_KEYWORDS }, | |
7693 | { "wxDateSpan_GetYears", (PyCFunction) _wrap_wxDateSpan_GetYears, METH_VARARGS | METH_KEYWORDS }, | |
7694 | { "wxDateSpan_SetDays", (PyCFunction) _wrap_wxDateSpan_SetDays, METH_VARARGS | METH_KEYWORDS }, | |
7695 | { "wxDateSpan_SetWeeks", (PyCFunction) _wrap_wxDateSpan_SetWeeks, METH_VARARGS | METH_KEYWORDS }, | |
7696 | { "wxDateSpan_SetMonths", (PyCFunction) _wrap_wxDateSpan_SetMonths, METH_VARARGS | METH_KEYWORDS }, | |
7697 | { "wxDateSpan_SetYears", (PyCFunction) _wrap_wxDateSpan_SetYears, METH_VARARGS | METH_KEYWORDS }, | |
7698 | { "wxDateSpan_Year", (PyCFunction) _wrap_wxDateSpan_Year, METH_VARARGS | METH_KEYWORDS }, | |
7699 | { "wxDateSpan_Years", (PyCFunction) _wrap_wxDateSpan_Years, METH_VARARGS | METH_KEYWORDS }, | |
7700 | { "wxDateSpan_Month", (PyCFunction) _wrap_wxDateSpan_Month, METH_VARARGS | METH_KEYWORDS }, | |
7701 | { "wxDateSpan_Months", (PyCFunction) _wrap_wxDateSpan_Months, METH_VARARGS | METH_KEYWORDS }, | |
7702 | { "wxDateSpan_Week", (PyCFunction) _wrap_wxDateSpan_Week, METH_VARARGS | METH_KEYWORDS }, | |
7703 | { "wxDateSpan_Weeks", (PyCFunction) _wrap_wxDateSpan_Weeks, METH_VARARGS | METH_KEYWORDS }, | |
7704 | { "wxDateSpan_Day", (PyCFunction) _wrap_wxDateSpan_Day, METH_VARARGS | METH_KEYWORDS }, | |
7705 | { "wxDateSpan_Days", (PyCFunction) _wrap_wxDateSpan_Days, METH_VARARGS | METH_KEYWORDS }, | |
7706 | { "delete_wxDateSpan", (PyCFunction) _wrap_delete_wxDateSpan, METH_VARARGS | METH_KEYWORDS }, | |
7707 | { "new_wxDateSpan", (PyCFunction) _wrap_new_wxDateSpan, METH_VARARGS | METH_KEYWORDS }, | |
7708 | { "wxTimeSpan_Format", (PyCFunction) _wrap_wxTimeSpan_Format, METH_VARARGS | METH_KEYWORDS }, | |
7709 | { "wxTimeSpan_GetMilliseconds", (PyCFunction) _wrap_wxTimeSpan_GetMilliseconds, METH_VARARGS | METH_KEYWORDS }, | |
7710 | { "wxTimeSpan_GetSeconds", (PyCFunction) _wrap_wxTimeSpan_GetSeconds, METH_VARARGS | METH_KEYWORDS }, | |
7711 | { "wxTimeSpan_GetMinutes", (PyCFunction) _wrap_wxTimeSpan_GetMinutes, METH_VARARGS | METH_KEYWORDS }, | |
7712 | { "wxTimeSpan_GetHours", (PyCFunction) _wrap_wxTimeSpan_GetHours, METH_VARARGS | METH_KEYWORDS }, | |
7713 | { "wxTimeSpan_GetDays", (PyCFunction) _wrap_wxTimeSpan_GetDays, METH_VARARGS | METH_KEYWORDS }, | |
7714 | { "wxTimeSpan_GetWeeks", (PyCFunction) _wrap_wxTimeSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS }, | |
7715 | { "wxTimeSpan_IsShorterThan", (PyCFunction) _wrap_wxTimeSpan_IsShorterThan, METH_VARARGS | METH_KEYWORDS }, | |
7716 | { "wxTimeSpan_IsLongerThan", (PyCFunction) _wrap_wxTimeSpan_IsLongerThan, METH_VARARGS | METH_KEYWORDS }, | |
7717 | { "wxTimeSpan_IsEqualTo", (PyCFunction) _wrap_wxTimeSpan_IsEqualTo, METH_VARARGS | METH_KEYWORDS }, | |
7718 | { "wxTimeSpan_IsNegative", (PyCFunction) _wrap_wxTimeSpan_IsNegative, METH_VARARGS | METH_KEYWORDS }, | |
7719 | { "wxTimeSpan_IsPositive", (PyCFunction) _wrap_wxTimeSpan_IsPositive, METH_VARARGS | METH_KEYWORDS }, | |
7720 | { "wxTimeSpan_IsNull", (PyCFunction) _wrap_wxTimeSpan_IsNull, METH_VARARGS | METH_KEYWORDS }, | |
7721 | { "wxTimeSpan___cmp__", (PyCFunction) _wrap_wxTimeSpan___cmp__, METH_VARARGS | METH_KEYWORDS }, | |
7722 | { "wxTimeSpan___neg__", (PyCFunction) _wrap_wxTimeSpan___neg__, METH_VARARGS | METH_KEYWORDS }, | |
7723 | { "wxTimeSpan___rmul__", (PyCFunction) _wrap_wxTimeSpan___rmul__, METH_VARARGS | METH_KEYWORDS }, | |
7724 | { "wxTimeSpan___mul__", (PyCFunction) _wrap_wxTimeSpan___mul__, METH_VARARGS | METH_KEYWORDS }, | |
7725 | { "wxTimeSpan___sub__", (PyCFunction) _wrap_wxTimeSpan___sub__, METH_VARARGS | METH_KEYWORDS }, | |
7726 | { "wxTimeSpan___add__", (PyCFunction) _wrap_wxTimeSpan___add__, METH_VARARGS | METH_KEYWORDS }, | |
7727 | { "wxTimeSpan_Abs", (PyCFunction) _wrap_wxTimeSpan_Abs, METH_VARARGS | METH_KEYWORDS }, | |
7728 | { "wxTimeSpan_Neg", (PyCFunction) _wrap_wxTimeSpan_Neg, METH_VARARGS | METH_KEYWORDS }, | |
7729 | { "wxTimeSpan_Multiply", (PyCFunction) _wrap_wxTimeSpan_Multiply, METH_VARARGS | METH_KEYWORDS }, | |
7730 | { "wxTimeSpan_Subtract", (PyCFunction) _wrap_wxTimeSpan_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
7731 | { "wxTimeSpan_Add", (PyCFunction) _wrap_wxTimeSpan_Add, METH_VARARGS | METH_KEYWORDS }, | |
7732 | { "delete_wxTimeSpan", (PyCFunction) _wrap_delete_wxTimeSpan, METH_VARARGS | METH_KEYWORDS }, | |
7733 | { "new_wxTimeSpan", (PyCFunction) _wrap_new_wxTimeSpan, METH_VARARGS | METH_KEYWORDS }, | |
7734 | { "wxTimeSpan_Week", (PyCFunction) _wrap_wxTimeSpan_Week, METH_VARARGS | METH_KEYWORDS }, | |
7735 | { "wxTimeSpan_Weeks", (PyCFunction) _wrap_wxTimeSpan_Weeks, METH_VARARGS | METH_KEYWORDS }, | |
7736 | { "wxTimeSpan_Day", (PyCFunction) _wrap_wxTimeSpan_Day, METH_VARARGS | METH_KEYWORDS }, | |
7737 | { "wxTimeSpan_Days", (PyCFunction) _wrap_wxTimeSpan_Days, METH_VARARGS | METH_KEYWORDS }, | |
7738 | { "wxTimeSpan_Hour", (PyCFunction) _wrap_wxTimeSpan_Hour, METH_VARARGS | METH_KEYWORDS }, | |
7739 | { "wxTimeSpan_Hours", (PyCFunction) _wrap_wxTimeSpan_Hours, METH_VARARGS | METH_KEYWORDS }, | |
7740 | { "wxTimeSpan_Minute", (PyCFunction) _wrap_wxTimeSpan_Minute, METH_VARARGS | METH_KEYWORDS }, | |
7741 | { "wxTimeSpan_Minutes", (PyCFunction) _wrap_wxTimeSpan_Minutes, METH_VARARGS | METH_KEYWORDS }, | |
7742 | { "wxTimeSpan_Second", (PyCFunction) _wrap_wxTimeSpan_Second, METH_VARARGS | METH_KEYWORDS }, | |
7743 | { "wxTimeSpan_Seconds", (PyCFunction) _wrap_wxTimeSpan_Seconds, METH_VARARGS | METH_KEYWORDS }, | |
7744 | { "wxDateTime_FormatISOTime", (PyCFunction) _wrap_wxDateTime_FormatISOTime, METH_VARARGS | METH_KEYWORDS }, | |
7745 | { "wxDateTime_FormatISODate", (PyCFunction) _wrap_wxDateTime_FormatISODate, METH_VARARGS | METH_KEYWORDS }, | |
7746 | { "wxDateTime_FormatTime", (PyCFunction) _wrap_wxDateTime_FormatTime, METH_VARARGS | METH_KEYWORDS }, | |
7747 | { "wxDateTime_FormatDate", (PyCFunction) _wrap_wxDateTime_FormatDate, METH_VARARGS | METH_KEYWORDS }, | |
7748 | { "wxDateTime_Format", (PyCFunction) _wrap_wxDateTime_Format, METH_VARARGS | METH_KEYWORDS }, | |
7749 | { "wxDateTime_ParseTime", (PyCFunction) _wrap_wxDateTime_ParseTime, METH_VARARGS | METH_KEYWORDS }, | |
7750 | { "wxDateTime_ParseDate", (PyCFunction) _wrap_wxDateTime_ParseDate, METH_VARARGS | METH_KEYWORDS }, | |
7751 | { "wxDateTime_ParseDateTime", (PyCFunction) _wrap_wxDateTime_ParseDateTime, METH_VARARGS | METH_KEYWORDS }, | |
7752 | { "wxDateTime_ParseFormat", (PyCFunction) _wrap_wxDateTime_ParseFormat, METH_VARARGS | METH_KEYWORDS }, | |
7753 | { "wxDateTime_ParseRfc822Date", (PyCFunction) _wrap_wxDateTime_ParseRfc822Date, METH_VARARGS | METH_KEYWORDS }, | |
7754 | { "wxDateTime___cmp__", (PyCFunction) _wrap_wxDateTime___cmp__, METH_VARARGS | METH_KEYWORDS }, | |
7755 | { "wxDateTime___sub__DS", (PyCFunction) _wrap_wxDateTime___sub__DS, METH_VARARGS | METH_KEYWORDS }, | |
7756 | { "wxDateTime___sub__TS", (PyCFunction) _wrap_wxDateTime___sub__TS, METH_VARARGS | METH_KEYWORDS }, | |
7757 | { "wxDateTime___sub__DT", (PyCFunction) _wrap_wxDateTime___sub__DT, METH_VARARGS | METH_KEYWORDS }, | |
7758 | { "wxDateTime___add__DS", (PyCFunction) _wrap_wxDateTime___add__DS, METH_VARARGS | METH_KEYWORDS }, | |
7759 | { "wxDateTime___add__TS", (PyCFunction) _wrap_wxDateTime___add__TS, METH_VARARGS | METH_KEYWORDS }, | |
7760 | { "wxDateTime_Subtract", (PyCFunction) _wrap_wxDateTime_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
7761 | { "wxDateTime_SubtractDS", (PyCFunction) _wrap_wxDateTime_SubtractDS, METH_VARARGS | METH_KEYWORDS }, | |
7762 | { "wxDateTime_SubtractTS", (PyCFunction) _wrap_wxDateTime_SubtractTS, METH_VARARGS | METH_KEYWORDS }, | |
7763 | { "wxDateTime_AddDS", (PyCFunction) _wrap_wxDateTime_AddDS, METH_VARARGS | METH_KEYWORDS }, | |
7764 | { "wxDateTime_AddTS", (PyCFunction) _wrap_wxDateTime_AddTS, METH_VARARGS | METH_KEYWORDS }, | |
7765 | { "wxDateTime_IsEqualUpTo", (PyCFunction) _wrap_wxDateTime_IsEqualUpTo, METH_VARARGS | METH_KEYWORDS }, | |
7766 | { "wxDateTime_IsSameTime", (PyCFunction) _wrap_wxDateTime_IsSameTime, METH_VARARGS | METH_KEYWORDS }, | |
7767 | { "wxDateTime_IsSameDate", (PyCFunction) _wrap_wxDateTime_IsSameDate, METH_VARARGS | METH_KEYWORDS }, | |
7768 | { "wxDateTime_IsBetween", (PyCFunction) _wrap_wxDateTime_IsBetween, METH_VARARGS | METH_KEYWORDS }, | |
7769 | { "wxDateTime_IsStrictlyBetween", (PyCFunction) _wrap_wxDateTime_IsStrictlyBetween, METH_VARARGS | METH_KEYWORDS }, | |
7770 | { "wxDateTime_IsLaterThan", (PyCFunction) _wrap_wxDateTime_IsLaterThan, METH_VARARGS | METH_KEYWORDS }, | |
7771 | { "wxDateTime_IsEarlierThan", (PyCFunction) _wrap_wxDateTime_IsEarlierThan, METH_VARARGS | METH_KEYWORDS }, | |
7772 | { "wxDateTime_IsEqualTo", (PyCFunction) _wrap_wxDateTime_IsEqualTo, METH_VARARGS | METH_KEYWORDS }, | |
7773 | { "wxDateTime_IsWorkDay", (PyCFunction) _wrap_wxDateTime_IsWorkDay, METH_VARARGS | METH_KEYWORDS }, | |
7774 | { "wxDateTime_GetWeekOfMonth", (PyCFunction) _wrap_wxDateTime_GetWeekOfMonth, METH_VARARGS | METH_KEYWORDS }, | |
7775 | { "wxDateTime_GetWeekOfYear", (PyCFunction) _wrap_wxDateTime_GetWeekOfYear, METH_VARARGS | METH_KEYWORDS }, | |
7776 | { "wxDateTime_GetDayOfYear", (PyCFunction) _wrap_wxDateTime_GetDayOfYear, METH_VARARGS | METH_KEYWORDS }, | |
7777 | { "wxDateTime_GetMillisecond", (PyCFunction) _wrap_wxDateTime_GetMillisecond, METH_VARARGS | METH_KEYWORDS }, | |
7778 | { "wxDateTime_GetSecond", (PyCFunction) _wrap_wxDateTime_GetSecond, METH_VARARGS | METH_KEYWORDS }, | |
7779 | { "wxDateTime_GetMinute", (PyCFunction) _wrap_wxDateTime_GetMinute, METH_VARARGS | METH_KEYWORDS }, | |
7780 | { "wxDateTime_GetHour", (PyCFunction) _wrap_wxDateTime_GetHour, METH_VARARGS | METH_KEYWORDS }, | |
65191ae8 | 7781 | { "wxDateTime_GetWeekDay", (PyCFunction) _wrap_wxDateTime_GetWeekDay, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 BP |
7782 | { "wxDateTime_GetDay", (PyCFunction) _wrap_wxDateTime_GetDay, METH_VARARGS | METH_KEYWORDS }, |
7783 | { "wxDateTime_GetMonth", (PyCFunction) _wrap_wxDateTime_GetMonth, METH_VARARGS | METH_KEYWORDS }, | |
7784 | { "wxDateTime_GetYear", (PyCFunction) _wrap_wxDateTime_GetYear, METH_VARARGS | METH_KEYWORDS }, | |
7785 | { "wxDateTime_GetTicks", (PyCFunction) _wrap_wxDateTime_GetTicks, METH_VARARGS | METH_KEYWORDS }, | |
7786 | { "wxDateTime_IsValid", (PyCFunction) _wrap_wxDateTime_IsValid, METH_VARARGS | METH_KEYWORDS }, | |
7787 | { "wxDateTime_IsDST", (PyCFunction) _wrap_wxDateTime_IsDST, METH_VARARGS | METH_KEYWORDS }, | |
7788 | { "wxDateTime_MakeGMT", (PyCFunction) _wrap_wxDateTime_MakeGMT, METH_VARARGS | METH_KEYWORDS }, | |
7789 | { "wxDateTime_ToGMT", (PyCFunction) _wrap_wxDateTime_ToGMT, METH_VARARGS | METH_KEYWORDS }, | |
7790 | { "wxDateTime_MakeTimezone", (PyCFunction) _wrap_wxDateTime_MakeTimezone, METH_VARARGS | METH_KEYWORDS }, | |
7791 | { "wxDateTime_ToTimezone", (PyCFunction) _wrap_wxDateTime_ToTimezone, METH_VARARGS | METH_KEYWORDS }, | |
7792 | { "wxDateTime_GetRataDie", (PyCFunction) _wrap_wxDateTime_GetRataDie, METH_VARARGS | METH_KEYWORDS }, | |
7793 | { "wxDateTime_GetMJD", (PyCFunction) _wrap_wxDateTime_GetMJD, METH_VARARGS | METH_KEYWORDS }, | |
7794 | { "wxDateTime_GetModifiedJulianDayNumber", (PyCFunction) _wrap_wxDateTime_GetModifiedJulianDayNumber, METH_VARARGS | METH_KEYWORDS }, | |
7795 | { "wxDateTime_GetJDN", (PyCFunction) _wrap_wxDateTime_GetJDN, METH_VARARGS | METH_KEYWORDS }, | |
7796 | { "wxDateTime_GetJulianDayNumber", (PyCFunction) _wrap_wxDateTime_GetJulianDayNumber, METH_VARARGS | METH_KEYWORDS }, | |
7797 | { "wxDateTime_GetYearDay", (PyCFunction) _wrap_wxDateTime_GetYearDay, METH_VARARGS | METH_KEYWORDS }, | |
7798 | { "wxDateTime_SetToYearDay", (PyCFunction) _wrap_wxDateTime_SetToYearDay, METH_VARARGS | METH_KEYWORDS }, | |
7799 | { "wxDateTime_GetLastMonthDay", (PyCFunction) _wrap_wxDateTime_GetLastMonthDay, METH_VARARGS | METH_KEYWORDS }, | |
7800 | { "wxDateTime_SetToLastMonthDay", (PyCFunction) _wrap_wxDateTime_SetToLastMonthDay, METH_VARARGS | METH_KEYWORDS }, | |
7801 | { "wxDateTime_GetWeek", (PyCFunction) _wrap_wxDateTime_GetWeek, METH_VARARGS | METH_KEYWORDS }, | |
7802 | { "wxDateTime_SetToTheWeek", (PyCFunction) _wrap_wxDateTime_SetToTheWeek, METH_VARARGS | METH_KEYWORDS }, | |
7803 | { "wxDateTime_GetLastWeekDay", (PyCFunction) _wrap_wxDateTime_GetLastWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
7804 | { "wxDateTime_SetToLastWeekDay", (PyCFunction) _wrap_wxDateTime_SetToLastWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
7805 | { "wxDateTime_SetToWeekDay", (PyCFunction) _wrap_wxDateTime_SetToWeekDay, METH_VARARGS | METH_KEYWORDS }, |
7806 | { "wxDateTime_GetPrevWeekDay", (PyCFunction) _wrap_wxDateTime_GetPrevWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
7807 | { "wxDateTime_SetToPrevWeekDay", (PyCFunction) _wrap_wxDateTime_SetToPrevWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
7808 | { "wxDateTime_GetNextWeekDay", (PyCFunction) _wrap_wxDateTime_GetNextWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
7809 | { "wxDateTime_SetToNextWeekDay", (PyCFunction) _wrap_wxDateTime_SetToNextWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
7810 | { "wxDateTime_GetWeekDayInSameWeek", (PyCFunction) _wrap_wxDateTime_GetWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS }, | |
7811 | { "wxDateTime_SetToWeekDayInSameWeek", (PyCFunction) _wrap_wxDateTime_SetToWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS }, | |
7812 | { "wxDateTime_SetMillisecond", (PyCFunction) _wrap_wxDateTime_SetMillisecond, METH_VARARGS | METH_KEYWORDS }, | |
7813 | { "wxDateTime_SetSecond", (PyCFunction) _wrap_wxDateTime_SetSecond, METH_VARARGS | METH_KEYWORDS }, | |
7814 | { "wxDateTime_SetMinute", (PyCFunction) _wrap_wxDateTime_SetMinute, METH_VARARGS | METH_KEYWORDS }, | |
7815 | { "wxDateTime_SetHour", (PyCFunction) _wrap_wxDateTime_SetHour, METH_VARARGS | METH_KEYWORDS }, | |
7816 | { "wxDateTime_SetDay", (PyCFunction) _wrap_wxDateTime_SetDay, METH_VARARGS | METH_KEYWORDS }, | |
7817 | { "wxDateTime_SetMonth", (PyCFunction) _wrap_wxDateTime_SetMonth, METH_VARARGS | METH_KEYWORDS }, | |
7818 | { "wxDateTime_SetYear", (PyCFunction) _wrap_wxDateTime_SetYear, METH_VARARGS | METH_KEYWORDS }, | |
7819 | { "wxDateTime_ResetTime", (PyCFunction) _wrap_wxDateTime_ResetTime, METH_VARARGS | METH_KEYWORDS }, | |
7820 | { "wxDateTime_Set", (PyCFunction) _wrap_wxDateTime_Set, METH_VARARGS | METH_KEYWORDS }, | |
7821 | { "wxDateTime_SetHMS", (PyCFunction) _wrap_wxDateTime_SetHMS, METH_VARARGS | METH_KEYWORDS }, | |
7822 | { "wxDateTime_SetJDN", (PyCFunction) _wrap_wxDateTime_SetJDN, METH_VARARGS | METH_KEYWORDS }, | |
7823 | { "wxDateTime_SetTimeT", (PyCFunction) _wrap_wxDateTime_SetTimeT, METH_VARARGS | METH_KEYWORDS }, | |
7824 | { "wxDateTime_SetToCurrent", (PyCFunction) _wrap_wxDateTime_SetToCurrent, METH_VARARGS | METH_KEYWORDS }, | |
7825 | { "delete_wxDateTime", (PyCFunction) _wrap_delete_wxDateTime, METH_VARARGS | METH_KEYWORDS }, | |
7826 | { "new_wxDateTimeFromDMY", (PyCFunction) _wrap_new_wxDateTimeFromDMY, METH_VARARGS | METH_KEYWORDS }, | |
7827 | { "new_wxDateTimeFromHMS", (PyCFunction) _wrap_new_wxDateTimeFromHMS, METH_VARARGS | METH_KEYWORDS }, | |
7828 | { "new_wxDateTimeFromJDN", (PyCFunction) _wrap_new_wxDateTimeFromJDN, METH_VARARGS | METH_KEYWORDS }, | |
7829 | { "new_wxDateTimeFromTimeT", (PyCFunction) _wrap_new_wxDateTimeFromTimeT, METH_VARARGS | METH_KEYWORDS }, | |
7830 | { "new_wxDateTime", (PyCFunction) _wrap_new_wxDateTime, METH_VARARGS | METH_KEYWORDS }, | |
7831 | { "wxDateTime_Today", (PyCFunction) _wrap_wxDateTime_Today, METH_VARARGS | METH_KEYWORDS }, | |
7832 | { "wxDateTime_Now", (PyCFunction) _wrap_wxDateTime_Now, METH_VARARGS | METH_KEYWORDS }, | |
7833 | { "wxDateTime_GetEndDST", (PyCFunction) _wrap_wxDateTime_GetEndDST, METH_VARARGS | METH_KEYWORDS }, | |
7834 | { "wxDateTime_GetBeginDST", (PyCFunction) _wrap_wxDateTime_GetBeginDST, METH_VARARGS | METH_KEYWORDS }, | |
7835 | { "wxDateTime_IsDSTApplicable", (PyCFunction) _wrap_wxDateTime_IsDSTApplicable, METH_VARARGS | METH_KEYWORDS }, | |
7836 | { "wxDateTime_GetAmPmStrings", (PyCFunction) _wrap_wxDateTime_GetAmPmStrings, METH_VARARGS | METH_KEYWORDS }, | |
7837 | { "wxDateTime_GetWeekDayName", (PyCFunction) _wrap_wxDateTime_GetWeekDayName, METH_VARARGS | METH_KEYWORDS }, | |
7838 | { "wxDateTime_GetMonthName", (PyCFunction) _wrap_wxDateTime_GetMonthName, METH_VARARGS | METH_KEYWORDS }, | |
7839 | { "wxDateTime_GetNumberOfDaysInMonth", (PyCFunction) _wrap_wxDateTime_GetNumberOfDaysInMonth, METH_VARARGS | METH_KEYWORDS }, | |
7840 | { "wxDateTime_GetNumberOfDaysinYear", (PyCFunction) _wrap_wxDateTime_GetNumberOfDaysinYear, METH_VARARGS | METH_KEYWORDS }, | |
7841 | { "wxDateTime_GetCentury", (PyCFunction) _wrap_wxDateTime_GetCentury, METH_VARARGS | METH_KEYWORDS }, | |
7842 | { "wxDateTime_IsLeapYear", (PyCFunction) _wrap_wxDateTime_IsLeapYear, METH_VARARGS | METH_KEYWORDS }, | |
7843 | { "wxDateTime_GetCurrentMonth", (PyCFunction) _wrap_wxDateTime_GetCurrentMonth, METH_VARARGS | METH_KEYWORDS }, | |
7844 | { "wxDateTime_ConvertYearToBC", (PyCFunction) _wrap_wxDateTime_ConvertYearToBC, METH_VARARGS | METH_KEYWORDS }, | |
7845 | { "wxDateTime_GetCurrentYear", (PyCFunction) _wrap_wxDateTime_GetCurrentYear, METH_VARARGS | METH_KEYWORDS }, | |
7846 | { "wxDateTime_IsWestEuropeanCountry", (PyCFunction) _wrap_wxDateTime_IsWestEuropeanCountry, METH_VARARGS | METH_KEYWORDS }, | |
7847 | { "wxDateTime_GetCountry", (PyCFunction) _wrap_wxDateTime_GetCountry, METH_VARARGS | METH_KEYWORDS }, | |
7848 | { "wxDateTime_SetCountry", (PyCFunction) _wrap_wxDateTime_SetCountry, METH_VARARGS | METH_KEYWORDS }, | |
7849 | { "delete_wxFileConfig", (PyCFunction) _wrap_delete_wxFileConfig, METH_VARARGS | METH_KEYWORDS }, | |
7850 | { "new_wxFileConfig", (PyCFunction) _wrap_new_wxFileConfig, METH_VARARGS | METH_KEYWORDS }, | |
7851 | { "delete_wxConfig", (PyCFunction) _wrap_delete_wxConfig, METH_VARARGS | METH_KEYWORDS }, | |
7852 | { "new_wxConfig", (PyCFunction) _wrap_new_wxConfig, METH_VARARGS | METH_KEYWORDS }, | |
7853 | { "wxConfigBase_ExpandEnvVars", (PyCFunction) _wrap_wxConfigBase_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS }, | |
7854 | { "wxConfigBase_RenameGroup", (PyCFunction) _wrap_wxConfigBase_RenameGroup, METH_VARARGS | METH_KEYWORDS }, | |
7855 | { "wxConfigBase_RenameEntry", (PyCFunction) _wrap_wxConfigBase_RenameEntry, METH_VARARGS | METH_KEYWORDS }, | |
7856 | { "wxConfigBase_GetEntryType", (PyCFunction) _wrap_wxConfigBase_GetEntryType, METH_VARARGS | METH_KEYWORDS }, | |
7857 | { "wxConfigBase_WriteFloat", (PyCFunction) _wrap_wxConfigBase_WriteFloat, METH_VARARGS | METH_KEYWORDS }, | |
7858 | { "wxConfigBase_WriteInt", (PyCFunction) _wrap_wxConfigBase_WriteInt, METH_VARARGS | METH_KEYWORDS }, | |
7859 | { "wxConfigBase_Write", (PyCFunction) _wrap_wxConfigBase_Write, METH_VARARGS | METH_KEYWORDS }, | |
7860 | { "wxConfigBase_GetStyle", (PyCFunction) _wrap_wxConfigBase_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
7861 | { "wxConfigBase_SetStyle", (PyCFunction) _wrap_wxConfigBase_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
7862 | { "wxConfigBase_SetVendorName", (PyCFunction) _wrap_wxConfigBase_SetVendorName, METH_VARARGS | METH_KEYWORDS }, | |
7863 | { "wxConfigBase_SetAppName", (PyCFunction) _wrap_wxConfigBase_SetAppName, METH_VARARGS | METH_KEYWORDS }, | |
7864 | { "wxConfigBase_SetRecordDefaults", (PyCFunction) _wrap_wxConfigBase_SetRecordDefaults, METH_VARARGS | METH_KEYWORDS }, | |
7865 | { "wxConfigBase_SetPath", (PyCFunction) _wrap_wxConfigBase_SetPath, METH_VARARGS | METH_KEYWORDS }, | |
7866 | { "wxConfigBase_SetExpandEnvVars", (PyCFunction) _wrap_wxConfigBase_SetExpandEnvVars, METH_VARARGS | METH_KEYWORDS }, | |
7867 | { "wxConfigBase_ReadFloat", (PyCFunction) _wrap_wxConfigBase_ReadFloat, METH_VARARGS | METH_KEYWORDS }, | |
7868 | { "wxConfigBase_ReadInt", (PyCFunction) _wrap_wxConfigBase_ReadInt, METH_VARARGS | METH_KEYWORDS }, | |
7869 | { "wxConfigBase_Read", (PyCFunction) _wrap_wxConfigBase_Read, METH_VARARGS | METH_KEYWORDS }, | |
7870 | { "wxConfigBase_IsRecordingDefaults", (PyCFunction) _wrap_wxConfigBase_IsRecordingDefaults, METH_VARARGS | METH_KEYWORDS }, | |
7871 | { "wxConfigBase_IsExpandingEnvVars", (PyCFunction) _wrap_wxConfigBase_IsExpandingEnvVars, METH_VARARGS | METH_KEYWORDS }, | |
7872 | { "wxConfigBase_HasGroup", (PyCFunction) _wrap_wxConfigBase_HasGroup, METH_VARARGS | METH_KEYWORDS }, | |
7873 | { "wxConfigBase_HasEntry", (PyCFunction) _wrap_wxConfigBase_HasEntry, METH_VARARGS | METH_KEYWORDS }, | |
7874 | { "wxConfigBase_GetVendorName", (PyCFunction) _wrap_wxConfigBase_GetVendorName, METH_VARARGS | METH_KEYWORDS }, | |
7875 | { "wxConfigBase_GetPath", (PyCFunction) _wrap_wxConfigBase_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
7876 | { "wxConfigBase_GetNumberOfGroups", (PyCFunction) _wrap_wxConfigBase_GetNumberOfGroups, METH_VARARGS | METH_KEYWORDS }, | |
7877 | { "wxConfigBase_GetNumberOfEntries", (PyCFunction) _wrap_wxConfigBase_GetNumberOfEntries, METH_VARARGS | METH_KEYWORDS }, | |
7878 | { "wxConfigBase_GetNextEntry", (PyCFunction) _wrap_wxConfigBase_GetNextEntry, METH_VARARGS | METH_KEYWORDS }, | |
7879 | { "wxConfigBase_GetNextGroup", (PyCFunction) _wrap_wxConfigBase_GetNextGroup, METH_VARARGS | METH_KEYWORDS }, | |
7880 | { "wxConfigBase_GetFirstEntry", (PyCFunction) _wrap_wxConfigBase_GetFirstEntry, METH_VARARGS | METH_KEYWORDS }, | |
7881 | { "wxConfigBase_GetFirstGroup", (PyCFunction) _wrap_wxConfigBase_GetFirstGroup, METH_VARARGS | METH_KEYWORDS }, | |
7882 | { "wxConfigBase_GetAppName", (PyCFunction) _wrap_wxConfigBase_GetAppName, METH_VARARGS | METH_KEYWORDS }, | |
7883 | { "wxConfigBase_Flush", (PyCFunction) _wrap_wxConfigBase_Flush, METH_VARARGS | METH_KEYWORDS }, | |
7884 | { "wxConfigBase_Exists", (PyCFunction) _wrap_wxConfigBase_Exists, METH_VARARGS | METH_KEYWORDS }, | |
7885 | { "wxConfigBase_DeleteGroup", (PyCFunction) _wrap_wxConfigBase_DeleteGroup, METH_VARARGS | METH_KEYWORDS }, | |
7886 | { "wxConfigBase_DeleteEntry", (PyCFunction) _wrap_wxConfigBase_DeleteEntry, METH_VARARGS | METH_KEYWORDS }, | |
7887 | { "wxConfigBase_DeleteAll", (PyCFunction) _wrap_wxConfigBase_DeleteAll, METH_VARARGS | METH_KEYWORDS }, | |
7888 | { "wxConfigBase_DontCreateOnDemand", (PyCFunction) _wrap_wxConfigBase_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS }, | |
7889 | { "wxConfigBase_Create", (PyCFunction) _wrap_wxConfigBase_Create, METH_VARARGS | METH_KEYWORDS }, | |
7890 | { "wxConfigBase_Get", (PyCFunction) _wrap_wxConfigBase_Get, METH_VARARGS | METH_KEYWORDS }, | |
7891 | { "wxConfigBase_Set", (PyCFunction) _wrap_wxConfigBase_Set, METH_VARARGS | METH_KEYWORDS }, | |
7892 | { "delete_wxConfigBase", (PyCFunction) _wrap_delete_wxConfigBase, METH_VARARGS | METH_KEYWORDS }, | |
7893 | { "wxGetLocalTimeMillis", (PyCFunction) _wrap_wxGetLocalTimeMillis, METH_VARARGS | METH_KEYWORDS }, | |
7894 | { "wxGetCurrentTime", (PyCFunction) _wrap_wxGetCurrentTime, METH_VARARGS | METH_KEYWORDS }, | |
7895 | { "wxGetUTCTime", (PyCFunction) _wrap_wxGetUTCTime, METH_VARARGS | METH_KEYWORDS }, | |
7896 | { "wxGetLocalTime", (PyCFunction) _wrap_wxGetLocalTime, METH_VARARGS | METH_KEYWORDS }, | |
7897 | { NULL, NULL } | |
7898 | }; | |
7899 | #ifdef __cplusplus | |
7900 | } | |
7901 | #endif | |
7902 | /* | |
7903 | * This table is used by the pointer type-checker | |
7904 | */ | |
7905 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
7906 | { "_signed_long","_long",0}, | |
c368d904 RD |
7907 | { "_wxPrintQuality","_wxCoord",0}, |
7908 | { "_wxPrintQuality","_int",0}, | |
7909 | { "_wxPrintQuality","_signed_int",0}, | |
7910 | { "_wxPrintQuality","_unsigned_int",0}, | |
7911 | { "_wxPrintQuality","_wxWindowID",0}, | |
7912 | { "_wxPrintQuality","_uint",0}, | |
7913 | { "_wxPrintQuality","_EBool",0}, | |
7914 | { "_wxPrintQuality","_size_t",0}, | |
7915 | { "_wxPrintQuality","_time_t",0}, | |
7916 | { "_byte","_unsigned_char",0}, | |
f6bcfd97 BP |
7917 | { "_long","_unsigned_long",0}, |
7918 | { "_long","_signed_long",0}, | |
c368d904 RD |
7919 | { "_size_t","_wxCoord",0}, |
7920 | { "_size_t","_wxPrintQuality",0}, | |
7921 | { "_size_t","_time_t",0}, | |
7922 | { "_size_t","_unsigned_int",0}, | |
7923 | { "_size_t","_int",0}, | |
7924 | { "_size_t","_wxWindowID",0}, | |
7925 | { "_size_t","_uint",0}, | |
c368d904 RD |
7926 | { "_uint","_wxCoord",0}, |
7927 | { "_uint","_wxPrintQuality",0}, | |
7928 | { "_uint","_time_t",0}, | |
7929 | { "_uint","_size_t",0}, | |
7930 | { "_uint","_unsigned_int",0}, | |
7931 | { "_uint","_int",0}, | |
7932 | { "_uint","_wxWindowID",0}, | |
7933 | { "_wxChar","_char",0}, | |
7934 | { "_char","_wxChar",0}, | |
c368d904 RD |
7935 | { "_EBool","_wxCoord",0}, |
7936 | { "_EBool","_wxPrintQuality",0}, | |
7937 | { "_EBool","_signed_int",0}, | |
7938 | { "_EBool","_int",0}, | |
7939 | { "_EBool","_wxWindowID",0}, | |
f6bcfd97 | 7940 | { "_unsigned_long","_long",0}, |
c368d904 RD |
7941 | { "_signed_int","_wxCoord",0}, |
7942 | { "_signed_int","_wxPrintQuality",0}, | |
7943 | { "_signed_int","_EBool",0}, | |
7944 | { "_signed_int","_wxWindowID",0}, | |
f6bcfd97 | 7945 | { "_signed_int","_int",0}, |
c368d904 RD |
7946 | { "_WXTYPE","_wxDateTime_t",0}, |
7947 | { "_WXTYPE","_short",0}, | |
7948 | { "_WXTYPE","_signed_short",0}, | |
7949 | { "_WXTYPE","_unsigned_short",0}, | |
f6bcfd97 | 7950 | { "_unsigned_short","_wxDateTime_t",0}, |
c368d904 | 7951 | { "_unsigned_short","_WXTYPE",0}, |
f6bcfd97 | 7952 | { "_unsigned_short","_short",0}, |
c368d904 | 7953 | { "_signed_short","_WXTYPE",0}, |
f6bcfd97 | 7954 | { "_signed_short","_short",0}, |
c368d904 RD |
7955 | { "_unsigned_char","_byte",0}, |
7956 | { "_unsigned_int","_wxCoord",0}, | |
7957 | { "_unsigned_int","_wxPrintQuality",0}, | |
7958 | { "_unsigned_int","_time_t",0}, | |
7959 | { "_unsigned_int","_size_t",0}, | |
7960 | { "_unsigned_int","_uint",0}, | |
7961 | { "_unsigned_int","_wxWindowID",0}, | |
f6bcfd97 BP |
7962 | { "_unsigned_int","_int",0}, |
7963 | { "_wxConfigBase","_class_wxFileConfig",SwigwxFileConfigTowxConfigBase}, | |
7964 | { "_wxConfigBase","_wxFileConfig",SwigwxFileConfigTowxConfigBase}, | |
7965 | { "_wxConfigBase","_class_wxConfig",SwigwxConfigTowxConfigBase}, | |
7966 | { "_wxConfigBase","_wxConfig",SwigwxConfigTowxConfigBase}, | |
f6bcfd97 | 7967 | { "_short","_wxDateTime_t",0}, |
c368d904 | 7968 | { "_short","_WXTYPE",0}, |
f6bcfd97 BP |
7969 | { "_short","_unsigned_short",0}, |
7970 | { "_short","_signed_short",0}, | |
c368d904 RD |
7971 | { "_wxWindowID","_wxCoord",0}, |
7972 | { "_wxWindowID","_wxPrintQuality",0}, | |
7973 | { "_wxWindowID","_time_t",0}, | |
7974 | { "_wxWindowID","_size_t",0}, | |
7975 | { "_wxWindowID","_EBool",0}, | |
7976 | { "_wxWindowID","_uint",0}, | |
7977 | { "_wxWindowID","_int",0}, | |
7978 | { "_wxWindowID","_signed_int",0}, | |
7979 | { "_wxWindowID","_unsigned_int",0}, | |
7980 | { "_int","_wxCoord",0}, | |
7981 | { "_int","_wxPrintQuality",0}, | |
7982 | { "_int","_time_t",0}, | |
7983 | { "_int","_size_t",0}, | |
7984 | { "_int","_EBool",0}, | |
7985 | { "_int","_uint",0}, | |
7986 | { "_int","_wxWindowID",0}, | |
f6bcfd97 BP |
7987 | { "_int","_unsigned_int",0}, |
7988 | { "_int","_signed_int",0}, | |
7989 | { "_wxDateTime_t","_unsigned_short",0}, | |
7990 | { "_wxDateTime_t","_short",0}, | |
c368d904 | 7991 | { "_wxDateTime_t","_WXTYPE",0}, |
c368d904 RD |
7992 | { "_time_t","_wxCoord",0}, |
7993 | { "_time_t","_wxPrintQuality",0}, | |
7994 | { "_time_t","_unsigned_int",0}, | |
7995 | { "_time_t","_int",0}, | |
7996 | { "_time_t","_wxWindowID",0}, | |
7997 | { "_time_t","_uint",0}, | |
7998 | { "_time_t","_size_t",0}, | |
f6bcfd97 BP |
7999 | { "_class_wxConfigBase","_class_wxFileConfig",SwigwxFileConfigTowxConfigBase}, |
8000 | { "_class_wxConfigBase","_wxFileConfig",SwigwxFileConfigTowxConfigBase}, | |
8001 | { "_class_wxConfigBase","_class_wxConfig",SwigwxConfigTowxConfigBase}, | |
8002 | { "_class_wxConfigBase","_wxConfig",SwigwxConfigTowxConfigBase}, | |
c368d904 RD |
8003 | { "_wxCoord","_int",0}, |
8004 | { "_wxCoord","_signed_int",0}, | |
8005 | { "_wxCoord","_unsigned_int",0}, | |
8006 | { "_wxCoord","_wxWindowID",0}, | |
8007 | { "_wxCoord","_uint",0}, | |
8008 | { "_wxCoord","_EBool",0}, | |
8009 | { "_wxCoord","_size_t",0}, | |
8010 | { "_wxCoord","_time_t",0}, | |
8011 | { "_wxCoord","_wxPrintQuality",0}, | |
f6bcfd97 BP |
8012 | {0,0,0}}; |
8013 | ||
8014 | static PyObject *SWIG_globals; | |
8015 | #ifdef __cplusplus | |
8016 | extern "C" | |
8017 | #endif | |
8018 | SWIGEXPORT(void) initutilsc() { | |
8019 | PyObject *m, *d; | |
8020 | SWIG_globals = SWIG_newvarlink(); | |
8021 | m = Py_InitModule("utilsc", utilscMethods); | |
8022 | d = PyModule_GetDict(m); | |
8023 | PyDict_SetItemString(d,"wxCONFIG_USE_LOCAL_FILE", PyInt_FromLong((long) wxCONFIG_USE_LOCAL_FILE)); | |
8024 | PyDict_SetItemString(d,"wxCONFIG_USE_GLOBAL_FILE", PyInt_FromLong((long) wxCONFIG_USE_GLOBAL_FILE)); | |
8025 | PyDict_SetItemString(d,"wxCONFIG_USE_RELATIVE_PATH", PyInt_FromLong((long) wxCONFIG_USE_RELATIVE_PATH)); | |
8026 | ||
3a70a282 RD |
8027 | wxClassInfo::CleanUpClasses(); |
8028 | wxClassInfo::InitializeClasses(); | |
f6bcfd97 BP |
8029 | PyDict_SetItemString(d,"wxConfigBase_Type_Unknown", PyInt_FromLong((long) wxConfigBase::Type_Unknown)); |
8030 | PyDict_SetItemString(d,"wxConfigBase_Type_String", PyInt_FromLong((long) wxConfigBase::Type_String)); | |
8031 | PyDict_SetItemString(d,"wxConfigBase_Type_Boolean", PyInt_FromLong((long) wxConfigBase::Type_Boolean)); | |
8032 | PyDict_SetItemString(d,"wxConfigBase_Type_Integer", PyInt_FromLong((long) wxConfigBase::Type_Integer)); | |
8033 | PyDict_SetItemString(d,"wxConfigBase_Type_Float", PyInt_FromLong((long) wxConfigBase::Type_Float)); | |
8034 | PyDict_SetItemString(d,"wxDateTime_Local", PyInt_FromLong((long) wxDateTime::Local)); | |
8035 | PyDict_SetItemString(d,"wxDateTime_GMT_12", PyInt_FromLong((long) wxDateTime::GMT_12)); | |
8036 | PyDict_SetItemString(d,"wxDateTime_GMT_11", PyInt_FromLong((long) wxDateTime::GMT_11)); | |
8037 | PyDict_SetItemString(d,"wxDateTime_GMT_10", PyInt_FromLong((long) wxDateTime::GMT_10)); | |
8038 | PyDict_SetItemString(d,"wxDateTime_GMT_9", PyInt_FromLong((long) wxDateTime::GMT_9)); | |
8039 | PyDict_SetItemString(d,"wxDateTime_GMT_8", PyInt_FromLong((long) wxDateTime::GMT_8)); | |
8040 | PyDict_SetItemString(d,"wxDateTime_GMT_7", PyInt_FromLong((long) wxDateTime::GMT_7)); | |
8041 | PyDict_SetItemString(d,"wxDateTime_GMT_6", PyInt_FromLong((long) wxDateTime::GMT_6)); | |
8042 | PyDict_SetItemString(d,"wxDateTime_GMT_5", PyInt_FromLong((long) wxDateTime::GMT_5)); | |
8043 | PyDict_SetItemString(d,"wxDateTime_GMT_4", PyInt_FromLong((long) wxDateTime::GMT_4)); | |
8044 | PyDict_SetItemString(d,"wxDateTime_GMT_3", PyInt_FromLong((long) wxDateTime::GMT_3)); | |
8045 | PyDict_SetItemString(d,"wxDateTime_GMT_2", PyInt_FromLong((long) wxDateTime::GMT_2)); | |
8046 | PyDict_SetItemString(d,"wxDateTime_GMT_1", PyInt_FromLong((long) wxDateTime::GMT_1)); | |
8047 | PyDict_SetItemString(d,"wxDateTime_GMT0", PyInt_FromLong((long) wxDateTime::GMT0)); | |
8048 | PyDict_SetItemString(d,"wxDateTime_GMT1", PyInt_FromLong((long) wxDateTime::GMT1)); | |
8049 | PyDict_SetItemString(d,"wxDateTime_GMT2", PyInt_FromLong((long) wxDateTime::GMT2)); | |
8050 | PyDict_SetItemString(d,"wxDateTime_GMT3", PyInt_FromLong((long) wxDateTime::GMT3)); | |
8051 | PyDict_SetItemString(d,"wxDateTime_GMT4", PyInt_FromLong((long) wxDateTime::GMT4)); | |
8052 | PyDict_SetItemString(d,"wxDateTime_GMT5", PyInt_FromLong((long) wxDateTime::GMT5)); | |
8053 | PyDict_SetItemString(d,"wxDateTime_GMT6", PyInt_FromLong((long) wxDateTime::GMT6)); | |
8054 | PyDict_SetItemString(d,"wxDateTime_GMT7", PyInt_FromLong((long) wxDateTime::GMT7)); | |
8055 | PyDict_SetItemString(d,"wxDateTime_GMT8", PyInt_FromLong((long) wxDateTime::GMT8)); | |
8056 | PyDict_SetItemString(d,"wxDateTime_GMT9", PyInt_FromLong((long) wxDateTime::GMT9)); | |
8057 | PyDict_SetItemString(d,"wxDateTime_GMT10", PyInt_FromLong((long) wxDateTime::GMT10)); | |
8058 | PyDict_SetItemString(d,"wxDateTime_GMT11", PyInt_FromLong((long) wxDateTime::GMT11)); | |
8059 | PyDict_SetItemString(d,"wxDateTime_GMT12", PyInt_FromLong((long) wxDateTime::GMT12)); | |
8060 | PyDict_SetItemString(d,"wxDateTime_WET", PyInt_FromLong((long) wxDateTime::WET)); | |
8061 | PyDict_SetItemString(d,"wxDateTime_WEST", PyInt_FromLong((long) wxDateTime::WEST)); | |
8062 | PyDict_SetItemString(d,"wxDateTime_CET", PyInt_FromLong((long) wxDateTime::CET)); | |
8063 | PyDict_SetItemString(d,"wxDateTime_CEST", PyInt_FromLong((long) wxDateTime::CEST)); | |
8064 | PyDict_SetItemString(d,"wxDateTime_EET", PyInt_FromLong((long) wxDateTime::EET)); | |
8065 | PyDict_SetItemString(d,"wxDateTime_EEST", PyInt_FromLong((long) wxDateTime::EEST)); | |
8066 | PyDict_SetItemString(d,"wxDateTime_MSK", PyInt_FromLong((long) wxDateTime::MSK)); | |
8067 | PyDict_SetItemString(d,"wxDateTime_MSD", PyInt_FromLong((long) wxDateTime::MSD)); | |
8068 | PyDict_SetItemString(d,"wxDateTime_AST", PyInt_FromLong((long) wxDateTime::AST)); | |
8069 | PyDict_SetItemString(d,"wxDateTime_ADT", PyInt_FromLong((long) wxDateTime::ADT)); | |
8070 | PyDict_SetItemString(d,"wxDateTime_EST", PyInt_FromLong((long) wxDateTime::EST)); | |
8071 | PyDict_SetItemString(d,"wxDateTime_EDT", PyInt_FromLong((long) wxDateTime::EDT)); | |
8072 | PyDict_SetItemString(d,"wxDateTime_CST", PyInt_FromLong((long) wxDateTime::CST)); | |
8073 | PyDict_SetItemString(d,"wxDateTime_CDT", PyInt_FromLong((long) wxDateTime::CDT)); | |
8074 | PyDict_SetItemString(d,"wxDateTime_MST", PyInt_FromLong((long) wxDateTime::MST)); | |
8075 | PyDict_SetItemString(d,"wxDateTime_MDT", PyInt_FromLong((long) wxDateTime::MDT)); | |
8076 | PyDict_SetItemString(d,"wxDateTime_PST", PyInt_FromLong((long) wxDateTime::PST)); | |
8077 | PyDict_SetItemString(d,"wxDateTime_PDT", PyInt_FromLong((long) wxDateTime::PDT)); | |
8078 | PyDict_SetItemString(d,"wxDateTime_HST", PyInt_FromLong((long) wxDateTime::HST)); | |
8079 | PyDict_SetItemString(d,"wxDateTime_AKST", PyInt_FromLong((long) wxDateTime::AKST)); | |
8080 | PyDict_SetItemString(d,"wxDateTime_AKDT", PyInt_FromLong((long) wxDateTime::AKDT)); | |
8081 | PyDict_SetItemString(d,"wxDateTime_A_WST", PyInt_FromLong((long) wxDateTime::A_WST)); | |
8082 | PyDict_SetItemString(d,"wxDateTime_A_CST", PyInt_FromLong((long) wxDateTime::A_CST)); | |
8083 | PyDict_SetItemString(d,"wxDateTime_A_EST", PyInt_FromLong((long) wxDateTime::A_EST)); | |
8084 | PyDict_SetItemString(d,"wxDateTime_A_ESST", PyInt_FromLong((long) wxDateTime::A_ESST)); | |
8085 | PyDict_SetItemString(d,"wxDateTime_UTC", PyInt_FromLong((long) wxDateTime::UTC)); | |
8086 | PyDict_SetItemString(d,"wxDateTime_Gregorian", PyInt_FromLong((long) wxDateTime::Gregorian)); | |
8087 | PyDict_SetItemString(d,"wxDateTime_Julian", PyInt_FromLong((long) wxDateTime::Julian)); | |
8088 | PyDict_SetItemString(d,"wxDateTime_Country_Unknown", PyInt_FromLong((long) wxDateTime::Country_Unknown)); | |
8089 | PyDict_SetItemString(d,"wxDateTime_Country_Default", PyInt_FromLong((long) wxDateTime::Country_Default)); | |
8090 | PyDict_SetItemString(d,"wxDateTime_Country_WesternEurope_Start", PyInt_FromLong((long) wxDateTime::Country_WesternEurope_Start)); | |
8091 | PyDict_SetItemString(d,"wxDateTime_Country_EEC", PyInt_FromLong((long) wxDateTime::Country_EEC)); | |
8092 | PyDict_SetItemString(d,"wxDateTime_France", PyInt_FromLong((long) wxDateTime::France)); | |
8093 | PyDict_SetItemString(d,"wxDateTime_Germany", PyInt_FromLong((long) wxDateTime::Germany)); | |
8094 | PyDict_SetItemString(d,"wxDateTime_UK", PyInt_FromLong((long) wxDateTime::UK)); | |
8095 | PyDict_SetItemString(d,"wxDateTime_Country_WesternEurope_End", PyInt_FromLong((long) wxDateTime::Country_WesternEurope_End)); | |
8096 | PyDict_SetItemString(d,"wxDateTime_Russia", PyInt_FromLong((long) wxDateTime::Russia)); | |
8097 | PyDict_SetItemString(d,"wxDateTime_USA", PyInt_FromLong((long) wxDateTime::USA)); | |
8098 | PyDict_SetItemString(d,"wxDateTime_Jan", PyInt_FromLong((long) wxDateTime::Jan)); | |
8099 | PyDict_SetItemString(d,"wxDateTime_Feb", PyInt_FromLong((long) wxDateTime::Feb)); | |
8100 | PyDict_SetItemString(d,"wxDateTime_Mar", PyInt_FromLong((long) wxDateTime::Mar)); | |
8101 | PyDict_SetItemString(d,"wxDateTime_Apr", PyInt_FromLong((long) wxDateTime::Apr)); | |
8102 | PyDict_SetItemString(d,"wxDateTime_May", PyInt_FromLong((long) wxDateTime::May)); | |
8103 | PyDict_SetItemString(d,"wxDateTime_Jun", PyInt_FromLong((long) wxDateTime::Jun)); | |
8104 | PyDict_SetItemString(d,"wxDateTime_Jul", PyInt_FromLong((long) wxDateTime::Jul)); | |
8105 | PyDict_SetItemString(d,"wxDateTime_Aug", PyInt_FromLong((long) wxDateTime::Aug)); | |
8106 | PyDict_SetItemString(d,"wxDateTime_Sep", PyInt_FromLong((long) wxDateTime::Sep)); | |
8107 | PyDict_SetItemString(d,"wxDateTime_Oct", PyInt_FromLong((long) wxDateTime::Oct)); | |
8108 | PyDict_SetItemString(d,"wxDateTime_Nov", PyInt_FromLong((long) wxDateTime::Nov)); | |
8109 | PyDict_SetItemString(d,"wxDateTime_Dec", PyInt_FromLong((long) wxDateTime::Dec)); | |
8110 | PyDict_SetItemString(d,"wxDateTime_Inv_Month", PyInt_FromLong((long) wxDateTime::Inv_Month)); | |
8111 | PyDict_SetItemString(d,"wxDateTime_Sun", PyInt_FromLong((long) wxDateTime::Sun)); | |
8112 | PyDict_SetItemString(d,"wxDateTime_Mon", PyInt_FromLong((long) wxDateTime::Mon)); | |
8113 | PyDict_SetItemString(d,"wxDateTime_Tue", PyInt_FromLong((long) wxDateTime::Tue)); | |
8114 | PyDict_SetItemString(d,"wxDateTime_Wed", PyInt_FromLong((long) wxDateTime::Wed)); | |
8115 | PyDict_SetItemString(d,"wxDateTime_Thu", PyInt_FromLong((long) wxDateTime::Thu)); | |
8116 | PyDict_SetItemString(d,"wxDateTime_Fri", PyInt_FromLong((long) wxDateTime::Fri)); | |
8117 | PyDict_SetItemString(d,"wxDateTime_Sat", PyInt_FromLong((long) wxDateTime::Sat)); | |
8118 | PyDict_SetItemString(d,"wxDateTime_Inv_WeekDay", PyInt_FromLong((long) wxDateTime::Inv_WeekDay)); | |
8119 | PyDict_SetItemString(d,"wxDateTime_Inv_Year", PyInt_FromLong((long) wxDateTime::Inv_Year)); | |
8120 | PyDict_SetItemString(d,"wxDateTime_Name_Full", PyInt_FromLong((long) wxDateTime::Name_Full)); | |
8121 | PyDict_SetItemString(d,"wxDateTime_Name_Abbr", PyInt_FromLong((long) wxDateTime::Name_Abbr)); | |
8122 | PyDict_SetItemString(d,"wxDateTime_Default_First", PyInt_FromLong((long) wxDateTime::Default_First)); | |
8123 | PyDict_SetItemString(d,"wxDateTime_Monday_First", PyInt_FromLong((long) wxDateTime::Monday_First)); | |
8124 | PyDict_SetItemString(d,"wxDateTime_Sunday_First", PyInt_FromLong((long) wxDateTime::Sunday_First)); | |
8125 | { | |
8126 | int i; | |
8127 | for (i = 0; _swig_mapping[i].n1; i++) | |
8128 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
8129 | } | |
8130 | } |