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