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