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