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