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