]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/utils.cpp
minor updates
[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 #define wxDateTime_ParseRfc822Date(_swigobj,_swigarg0) (_swigobj->ParseRfc822Date(_swigarg0))
5131 static PyObject *_wrap_wxDateTime_ParseRfc822Date(PyObject *self, PyObject *args, PyObject *kwargs) {
5132 PyObject * _resultobj;
5133 wxString * _result;
5134 wxDateTime * _arg0;
5135 wxString * _arg1;
5136 PyObject * _argo0 = 0;
5137 PyObject * _obj1 = 0;
5138 char *_kwnames[] = { "self","date", NULL };
5139
5140 self = self;
5141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDateTime_ParseRfc822Date",_kwnames,&_argo0,&_obj1))
5142 return NULL;
5143 if (_argo0) {
5144 if (_argo0 == Py_None) { _arg0 = NULL; }
5145 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) {
5146 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_ParseRfc822Date. Expected _wxDateTime_p.");
5147 return NULL;
5148 }
5149 }
5150 {
5151 _arg1 = wxString_in_helper(_obj1);
5152 if (_arg1 == NULL)
5153 return NULL;
5154 }
5155 {
5156 PyThreadState* __tstate = wxPyBeginAllowThreads();
5157 _result = new wxString (wxDateTime_ParseRfc822Date(_arg0,*_arg1));
5158
5159 wxPyEndAllowThreads(__tstate);
5160 if (PyErr_Occurred()) return NULL;
5161 }{
5162 #if wxUSE_UNICODE
5163 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
5164 #else
5165 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
5166 #endif
5167 }
5168 {
5169 if (_obj1)
5170 delete _arg1;
5171 }
5172 {
5173 delete _result;
5174 }
5175 return _resultobj;
5176 }
5177
5178 #define wxDateTime_ParseFormat(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->ParseFormat(_swigarg0,_swigarg1,_swigarg2))
5179 static PyObject *_wrap_wxDateTime_ParseFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
5180 PyObject * _resultobj;
5181 wxString * _result;
5182 wxDateTime * _arg0;
5183 wxString * _arg1;
5184 wxString * _arg2 = (wxString *) &wxPyDateFormatStr;
5185 wxDateTime * _arg3 = (wxDateTime *) &wxDefaultDateTime;
5186 PyObject * _argo0 = 0;
5187 PyObject * _obj1 = 0;
5188 PyObject * _obj2 = 0;
5189 PyObject * _argo3 = 0;
5190 char *_kwnames[] = { "self","date","format","dateDef", NULL };
5191
5192 self = self;
5193 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|OO:wxDateTime_ParseFormat",_kwnames,&_argo0,&_obj1,&_obj2,&_argo3))
5194 return NULL;
5195 if (_argo0) {
5196 if (_argo0 == Py_None) { _arg0 = NULL; }
5197 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) {
5198 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_ParseFormat. Expected _wxDateTime_p.");
5199 return NULL;
5200 }
5201 }
5202 {
5203 _arg1 = wxString_in_helper(_obj1);
5204 if (_arg1 == NULL)
5205 return NULL;
5206 }
5207 if (_obj2)
5208 {
5209 _arg2 = wxString_in_helper(_obj2);
5210 if (_arg2 == NULL)
5211 return NULL;
5212 }
5213 if (_argo3) {
5214 if (_argo3 == Py_None) { _arg3 = NULL; }
5215 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxDateTime_p")) {
5216 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxDateTime_ParseFormat. Expected _wxDateTime_p.");
5217 return NULL;
5218 }
5219 }
5220 {
5221 PyThreadState* __tstate = wxPyBeginAllowThreads();
5222 _result = new wxString (wxDateTime_ParseFormat(_arg0,*_arg1,*_arg2,*_arg3));
5223
5224 wxPyEndAllowThreads(__tstate);
5225 if (PyErr_Occurred()) return NULL;
5226 }{
5227 #if wxUSE_UNICODE
5228 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
5229 #else
5230 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
5231 #endif
5232 }
5233 {
5234 if (_obj1)
5235 delete _arg1;
5236 }
5237 {
5238 if (_obj2)
5239 delete _arg2;
5240 }
5241 {
5242 delete _result;
5243 }
5244 return _resultobj;
5245 }
5246
5247 #define wxDateTime_ParseDateTime(_swigobj,_swigarg0) (_swigobj->ParseDateTime(_swigarg0))
5248 static PyObject *_wrap_wxDateTime_ParseDateTime(PyObject *self, PyObject *args, PyObject *kwargs) {
5249 PyObject * _resultobj;
5250 wxString * _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 = new wxString (wxDateTime_ParseDateTime(_arg0,*_arg1));
5275
5276 wxPyEndAllowThreads(__tstate);
5277 if (PyErr_Occurred()) return NULL;
5278 }{
5279 #if wxUSE_UNICODE
5280 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
5281 #else
5282 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
5283 #endif
5284 }
5285 {
5286 if (_obj1)
5287 delete _arg1;
5288 }
5289 {
5290 delete _result;
5291 }
5292 return _resultobj;
5293 }
5294
5295 #define wxDateTime_ParseDate(_swigobj,_swigarg0) (_swigobj->ParseDate(_swigarg0))
5296 static PyObject *_wrap_wxDateTime_ParseDate(PyObject *self, PyObject *args, PyObject *kwargs) {
5297 PyObject * _resultobj;
5298 wxString * _result;
5299 wxDateTime * _arg0;
5300 wxString * _arg1;
5301 PyObject * _argo0 = 0;
5302 PyObject * _obj1 = 0;
5303 char *_kwnames[] = { "self","date", NULL };
5304
5305 self = self;
5306 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDateTime_ParseDate",_kwnames,&_argo0,&_obj1))
5307 return NULL;
5308 if (_argo0) {
5309 if (_argo0 == Py_None) { _arg0 = NULL; }
5310 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) {
5311 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_ParseDate. Expected _wxDateTime_p.");
5312 return NULL;
5313 }
5314 }
5315 {
5316 _arg1 = wxString_in_helper(_obj1);
5317 if (_arg1 == NULL)
5318 return NULL;
5319 }
5320 {
5321 PyThreadState* __tstate = wxPyBeginAllowThreads();
5322 _result = new wxString (wxDateTime_ParseDate(_arg0,*_arg1));
5323
5324 wxPyEndAllowThreads(__tstate);
5325 if (PyErr_Occurred()) return NULL;
5326 }{
5327 #if wxUSE_UNICODE
5328 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
5329 #else
5330 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
5331 #endif
5332 }
5333 {
5334 if (_obj1)
5335 delete _arg1;
5336 }
5337 {
5338 delete _result;
5339 }
5340 return _resultobj;
5341 }
5342
5343 #define wxDateTime_ParseTime(_swigobj,_swigarg0) (_swigobj->ParseTime(_swigarg0))
5344 static PyObject *_wrap_wxDateTime_ParseTime(PyObject *self, PyObject *args, PyObject *kwargs) {
5345 PyObject * _resultobj;
5346 wxString * _result;
5347 wxDateTime * _arg0;
5348 wxString * _arg1;
5349 PyObject * _argo0 = 0;
5350 PyObject * _obj1 = 0;
5351 char *_kwnames[] = { "self","time", NULL };
5352
5353 self = self;
5354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDateTime_ParseTime",_kwnames,&_argo0,&_obj1))
5355 return NULL;
5356 if (_argo0) {
5357 if (_argo0 == Py_None) { _arg0 = NULL; }
5358 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) {
5359 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_ParseTime. Expected _wxDateTime_p.");
5360 return NULL;
5361 }
5362 }
5363 {
5364 _arg1 = wxString_in_helper(_obj1);
5365 if (_arg1 == NULL)
5366 return NULL;
5367 }
5368 {
5369 PyThreadState* __tstate = wxPyBeginAllowThreads();
5370 _result = new wxString (wxDateTime_ParseTime(_arg0,*_arg1));
5371
5372 wxPyEndAllowThreads(__tstate);
5373 if (PyErr_Occurred()) return NULL;
5374 }{
5375 #if wxUSE_UNICODE
5376 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
5377 #else
5378 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
5379 #endif
5380 }
5381 {
5382 if (_obj1)
5383 delete _arg1;
5384 }
5385 {
5386 delete _result;
5387 }
5388 return _resultobj;
5389 }
5390
5391 #define wxDateTime_Format(_swigobj,_swigarg0,_swigarg1) (_swigobj->Format(_swigarg0,_swigarg1))
5392 static PyObject *_wrap_wxDateTime_Format(PyObject *self, PyObject *args, PyObject *kwargs) {
5393 PyObject * _resultobj;
5394 wxString * _result;
5395 wxDateTime * _arg0;
5396 wxString * _arg1 = (wxString *) &wxPyDateFormatStr;
5397 wxDateTime::TimeZone * _arg2 = (wxDateTime::TimeZone *) &LOCAL;
5398 PyObject * _argo0 = 0;
5399 PyObject * _obj1 = 0;
5400 PyObject * _obj2 = 0;
5401 char *_kwnames[] = { "self","format","tz", NULL };
5402
5403 self = self;
5404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|OO:wxDateTime_Format",_kwnames,&_argo0,&_obj1,&_obj2))
5405 return NULL;
5406 if (_argo0) {
5407 if (_argo0 == Py_None) { _arg0 = NULL; }
5408 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) {
5409 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_Format. Expected _wxDateTime_p.");
5410 return NULL;
5411 }
5412 }
5413 if (_obj1)
5414 {
5415 _arg1 = wxString_in_helper(_obj1);
5416 if (_arg1 == NULL)
5417 return NULL;
5418 }
5419 if (_obj2)
5420 {
5421 _arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(_obj2));
5422 }
5423 {
5424 PyThreadState* __tstate = wxPyBeginAllowThreads();
5425 _result = new wxString (wxDateTime_Format(_arg0,*_arg1,*_arg2));
5426
5427 wxPyEndAllowThreads(__tstate);
5428 if (PyErr_Occurred()) return NULL;
5429 }{
5430 #if wxUSE_UNICODE
5431 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
5432 #else
5433 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
5434 #endif
5435 }
5436 {
5437 if (_obj1)
5438 delete _arg1;
5439 }
5440 {
5441 if (_arg2) delete _arg2;
5442 }
5443 {
5444 delete _result;
5445 }
5446 return _resultobj;
5447 }
5448
5449 #define wxDateTime_FormatDate(_swigobj) (_swigobj->FormatDate())
5450 static PyObject *_wrap_wxDateTime_FormatDate(PyObject *self, PyObject *args, PyObject *kwargs) {
5451 PyObject * _resultobj;
5452 wxString * _result;
5453 wxDateTime * _arg0;
5454 PyObject * _argo0 = 0;
5455 char *_kwnames[] = { "self", NULL };
5456
5457 self = self;
5458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDateTime_FormatDate",_kwnames,&_argo0))
5459 return NULL;
5460 if (_argo0) {
5461 if (_argo0 == Py_None) { _arg0 = NULL; }
5462 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) {
5463 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_FormatDate. Expected _wxDateTime_p.");
5464 return NULL;
5465 }
5466 }
5467 {
5468 PyThreadState* __tstate = wxPyBeginAllowThreads();
5469 _result = new wxString (wxDateTime_FormatDate(_arg0));
5470
5471 wxPyEndAllowThreads(__tstate);
5472 if (PyErr_Occurred()) return NULL;
5473 }{
5474 #if wxUSE_UNICODE
5475 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
5476 #else
5477 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
5478 #endif
5479 }
5480 {
5481 delete _result;
5482 }
5483 return _resultobj;
5484 }
5485
5486 #define wxDateTime_FormatTime(_swigobj) (_swigobj->FormatTime())
5487 static PyObject *_wrap_wxDateTime_FormatTime(PyObject *self, PyObject *args, PyObject *kwargs) {
5488 PyObject * _resultobj;
5489 wxString * _result;
5490 wxDateTime * _arg0;
5491 PyObject * _argo0 = 0;
5492 char *_kwnames[] = { "self", NULL };
5493
5494 self = self;
5495 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDateTime_FormatTime",_kwnames,&_argo0))
5496 return NULL;
5497 if (_argo0) {
5498 if (_argo0 == Py_None) { _arg0 = NULL; }
5499 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) {
5500 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_FormatTime. Expected _wxDateTime_p.");
5501 return NULL;
5502 }
5503 }
5504 {
5505 PyThreadState* __tstate = wxPyBeginAllowThreads();
5506 _result = new wxString (wxDateTime_FormatTime(_arg0));
5507
5508 wxPyEndAllowThreads(__tstate);
5509 if (PyErr_Occurred()) return NULL;
5510 }{
5511 #if wxUSE_UNICODE
5512 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
5513 #else
5514 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
5515 #endif
5516 }
5517 {
5518 delete _result;
5519 }
5520 return _resultobj;
5521 }
5522
5523 #define wxDateTime_FormatISODate(_swigobj) (_swigobj->FormatISODate())
5524 static PyObject *_wrap_wxDateTime_FormatISODate(PyObject *self, PyObject *args, PyObject *kwargs) {
5525 PyObject * _resultobj;
5526 wxString * _result;
5527 wxDateTime * _arg0;
5528 PyObject * _argo0 = 0;
5529 char *_kwnames[] = { "self", NULL };
5530
5531 self = self;
5532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDateTime_FormatISODate",_kwnames,&_argo0))
5533 return NULL;
5534 if (_argo0) {
5535 if (_argo0 == Py_None) { _arg0 = NULL; }
5536 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) {
5537 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_FormatISODate. Expected _wxDateTime_p.");
5538 return NULL;
5539 }
5540 }
5541 {
5542 PyThreadState* __tstate = wxPyBeginAllowThreads();
5543 _result = new wxString (wxDateTime_FormatISODate(_arg0));
5544
5545 wxPyEndAllowThreads(__tstate);
5546 if (PyErr_Occurred()) return NULL;
5547 }{
5548 #if wxUSE_UNICODE
5549 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
5550 #else
5551 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
5552 #endif
5553 }
5554 {
5555 delete _result;
5556 }
5557 return _resultobj;
5558 }
5559
5560 #define wxDateTime_FormatISOTime(_swigobj) (_swigobj->FormatISOTime())
5561 static PyObject *_wrap_wxDateTime_FormatISOTime(PyObject *self, PyObject *args, PyObject *kwargs) {
5562 PyObject * _resultobj;
5563 wxString * _result;
5564 wxDateTime * _arg0;
5565 PyObject * _argo0 = 0;
5566 char *_kwnames[] = { "self", NULL };
5567
5568 self = self;
5569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDateTime_FormatISOTime",_kwnames,&_argo0))
5570 return NULL;
5571 if (_argo0) {
5572 if (_argo0 == Py_None) { _arg0 = NULL; }
5573 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateTime_p")) {
5574 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateTime_FormatISOTime. Expected _wxDateTime_p.");
5575 return NULL;
5576 }
5577 }
5578 {
5579 PyThreadState* __tstate = wxPyBeginAllowThreads();
5580 _result = new wxString (wxDateTime_FormatISOTime(_arg0));
5581
5582 wxPyEndAllowThreads(__tstate);
5583 if (PyErr_Occurred()) return NULL;
5584 }{
5585 #if wxUSE_UNICODE
5586 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
5587 #else
5588 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
5589 #endif
5590 }
5591 {
5592 delete _result;
5593 }
5594 return _resultobj;
5595 }
5596
5597 static PyObject *_wrap_wxTimeSpan_Seconds(PyObject *self, PyObject *args, PyObject *kwargs) {
5598 PyObject * _resultobj;
5599 wxTimeSpan * _result;
5600 long _arg0;
5601 char *_kwnames[] = { "sec", NULL };
5602 char _ptemp[128];
5603
5604 self = self;
5605 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"l:wxTimeSpan_Seconds",_kwnames,&_arg0))
5606 return NULL;
5607 {
5608 PyThreadState* __tstate = wxPyBeginAllowThreads();
5609 _result = new wxTimeSpan (wxTimeSpan::Seconds(_arg0));
5610
5611 wxPyEndAllowThreads(__tstate);
5612 if (PyErr_Occurred()) return NULL;
5613 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTimeSpan_p");
5614 _resultobj = Py_BuildValue("s",_ptemp);
5615 return _resultobj;
5616 }
5617
5618 static PyObject *_wrap_wxTimeSpan_Second(PyObject *self, PyObject *args, PyObject *kwargs) {
5619 PyObject * _resultobj;
5620 wxTimeSpan * _result;
5621 char *_kwnames[] = { NULL };
5622 char _ptemp[128];
5623
5624 self = self;
5625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxTimeSpan_Second",_kwnames))
5626 return NULL;
5627 {
5628 PyThreadState* __tstate = wxPyBeginAllowThreads();
5629 _result = new wxTimeSpan (wxTimeSpan::Second());
5630
5631 wxPyEndAllowThreads(__tstate);
5632 if (PyErr_Occurred()) return NULL;
5633 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTimeSpan_p");
5634 _resultobj = Py_BuildValue("s",_ptemp);
5635 return _resultobj;
5636 }
5637
5638 static PyObject *_wrap_wxTimeSpan_Minutes(PyObject *self, PyObject *args, PyObject *kwargs) {
5639 PyObject * _resultobj;
5640 wxTimeSpan * _result;
5641 long _arg0;
5642 char *_kwnames[] = { "min", NULL };
5643 char _ptemp[128];
5644
5645 self = self;
5646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"l:wxTimeSpan_Minutes",_kwnames,&_arg0))
5647 return NULL;
5648 {
5649 PyThreadState* __tstate = wxPyBeginAllowThreads();
5650 _result = new wxTimeSpan (wxTimeSpan::Minutes(_arg0));
5651
5652 wxPyEndAllowThreads(__tstate);
5653 if (PyErr_Occurred()) return NULL;
5654 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTimeSpan_p");
5655 _resultobj = Py_BuildValue("s",_ptemp);
5656 return _resultobj;
5657 }
5658
5659 static PyObject *_wrap_wxTimeSpan_Minute(PyObject *self, PyObject *args, PyObject *kwargs) {
5660 PyObject * _resultobj;
5661 wxTimeSpan * _result;
5662 char *_kwnames[] = { NULL };
5663 char _ptemp[128];
5664
5665 self = self;
5666 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxTimeSpan_Minute",_kwnames))
5667 return NULL;
5668 {
5669 PyThreadState* __tstate = wxPyBeginAllowThreads();
5670 _result = new wxTimeSpan (wxTimeSpan::Minute());
5671
5672 wxPyEndAllowThreads(__tstate);
5673 if (PyErr_Occurred()) return NULL;
5674 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTimeSpan_p");
5675 _resultobj = Py_BuildValue("s",_ptemp);
5676 return _resultobj;
5677 }
5678
5679 static PyObject *_wrap_wxTimeSpan_Hours(PyObject *self, PyObject *args, PyObject *kwargs) {
5680 PyObject * _resultobj;
5681 wxTimeSpan * _result;
5682 long _arg0;
5683 char *_kwnames[] = { "hours", NULL };
5684 char _ptemp[128];
5685
5686 self = self;
5687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"l:wxTimeSpan_Hours",_kwnames,&_arg0))
5688 return NULL;
5689 {
5690 PyThreadState* __tstate = wxPyBeginAllowThreads();
5691 _result = new wxTimeSpan (wxTimeSpan::Hours(_arg0));
5692
5693 wxPyEndAllowThreads(__tstate);
5694 if (PyErr_Occurred()) return NULL;
5695 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTimeSpan_p");
5696 _resultobj = Py_BuildValue("s",_ptemp);
5697 return _resultobj;
5698 }
5699
5700 static PyObject *_wrap_wxTimeSpan_Hour(PyObject *self, PyObject *args, PyObject *kwargs) {
5701 PyObject * _resultobj;
5702 wxTimeSpan * _result;
5703 char *_kwnames[] = { NULL };
5704 char _ptemp[128];
5705
5706 self = self;
5707 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxTimeSpan_Hour",_kwnames))
5708 return NULL;
5709 {
5710 PyThreadState* __tstate = wxPyBeginAllowThreads();
5711 _result = new wxTimeSpan (wxTimeSpan::Hour());
5712
5713 wxPyEndAllowThreads(__tstate);
5714 if (PyErr_Occurred()) return NULL;
5715 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTimeSpan_p");
5716 _resultobj = Py_BuildValue("s",_ptemp);
5717 return _resultobj;
5718 }
5719
5720 static PyObject *_wrap_wxTimeSpan_Days(PyObject *self, PyObject *args, PyObject *kwargs) {
5721 PyObject * _resultobj;
5722 wxTimeSpan * _result;
5723 long _arg0;
5724 char *_kwnames[] = { "days", NULL };
5725 char _ptemp[128];
5726
5727 self = self;
5728 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"l:wxTimeSpan_Days",_kwnames,&_arg0))
5729 return NULL;
5730 {
5731 PyThreadState* __tstate = wxPyBeginAllowThreads();
5732 _result = new wxTimeSpan (wxTimeSpan::Days(_arg0));
5733
5734 wxPyEndAllowThreads(__tstate);
5735 if (PyErr_Occurred()) return NULL;
5736 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTimeSpan_p");
5737 _resultobj = Py_BuildValue("s",_ptemp);
5738 return _resultobj;
5739 }
5740
5741 static PyObject *_wrap_wxTimeSpan_Day(PyObject *self, PyObject *args, PyObject *kwargs) {
5742 PyObject * _resultobj;
5743 wxTimeSpan * _result;
5744 char *_kwnames[] = { NULL };
5745 char _ptemp[128];
5746
5747 self = self;
5748 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxTimeSpan_Day",_kwnames))
5749 return NULL;
5750 {
5751 PyThreadState* __tstate = wxPyBeginAllowThreads();
5752 _result = new wxTimeSpan (wxTimeSpan::Day());
5753
5754 wxPyEndAllowThreads(__tstate);
5755 if (PyErr_Occurred()) return NULL;
5756 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTimeSpan_p");
5757 _resultobj = Py_BuildValue("s",_ptemp);
5758 return _resultobj;
5759 }
5760
5761 static PyObject *_wrap_wxTimeSpan_Weeks(PyObject *self, PyObject *args, PyObject *kwargs) {
5762 PyObject * _resultobj;
5763 wxTimeSpan * _result;
5764 long _arg0;
5765 char *_kwnames[] = { "days", NULL };
5766 char _ptemp[128];
5767
5768 self = self;
5769 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"l:wxTimeSpan_Weeks",_kwnames,&_arg0))
5770 return NULL;
5771 {
5772 PyThreadState* __tstate = wxPyBeginAllowThreads();
5773 _result = new wxTimeSpan (wxTimeSpan::Weeks(_arg0));
5774
5775 wxPyEndAllowThreads(__tstate);
5776 if (PyErr_Occurred()) return NULL;
5777 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTimeSpan_p");
5778 _resultobj = Py_BuildValue("s",_ptemp);
5779 return _resultobj;
5780 }
5781
5782 static PyObject *_wrap_wxTimeSpan_Week(PyObject *self, PyObject *args, PyObject *kwargs) {
5783 PyObject * _resultobj;
5784 wxTimeSpan * _result;
5785 char *_kwnames[] = { NULL };
5786 char _ptemp[128];
5787
5788 self = self;
5789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxTimeSpan_Week",_kwnames))
5790 return NULL;
5791 {
5792 PyThreadState* __tstate = wxPyBeginAllowThreads();
5793 _result = new wxTimeSpan (wxTimeSpan::Week());
5794
5795 wxPyEndAllowThreads(__tstate);
5796 if (PyErr_Occurred()) return NULL;
5797 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTimeSpan_p");
5798 _resultobj = Py_BuildValue("s",_ptemp);
5799 return _resultobj;
5800 }
5801
5802 #define new_wxTimeSpan(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxTimeSpan(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5803 static PyObject *_wrap_new_wxTimeSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
5804 PyObject * _resultobj;
5805 wxTimeSpan * _result;
5806 long _arg0 = (long ) 0;
5807 long _arg1 = (long ) 0;
5808 long _arg2 = (long ) 0;
5809 long _arg3 = (long ) 0;
5810 char *_kwnames[] = { "hours","minutes","seconds","milliseconds", NULL };
5811 char _ptemp[128];
5812
5813 self = self;
5814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|llll:new_wxTimeSpan",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3))
5815 return NULL;
5816 {
5817 PyThreadState* __tstate = wxPyBeginAllowThreads();
5818 _result = (wxTimeSpan *)new_wxTimeSpan(_arg0,_arg1,_arg2,_arg3);
5819
5820 wxPyEndAllowThreads(__tstate);
5821 if (PyErr_Occurred()) return NULL;
5822 } if (_result) {
5823 SWIG_MakePtr(_ptemp, (char *) _result,"_wxTimeSpan_p");
5824 _resultobj = Py_BuildValue("s",_ptemp);
5825 } else {
5826 Py_INCREF(Py_None);
5827 _resultobj = Py_None;
5828 }
5829 return _resultobj;
5830 }
5831
5832 #define delete_wxTimeSpan(_swigobj) (delete _swigobj)
5833 static PyObject *_wrap_delete_wxTimeSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
5834 PyObject * _resultobj;
5835 wxTimeSpan * _arg0;
5836 PyObject * _argo0 = 0;
5837 char *_kwnames[] = { "self", NULL };
5838
5839 self = self;
5840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxTimeSpan",_kwnames,&_argo0))
5841 return NULL;
5842 if (_argo0) {
5843 if (_argo0 == Py_None) { _arg0 = NULL; }
5844 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTimeSpan_p")) {
5845 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxTimeSpan. Expected _wxTimeSpan_p.");
5846 return NULL;
5847 }
5848 }
5849 {
5850 PyThreadState* __tstate = wxPyBeginAllowThreads();
5851 delete_wxTimeSpan(_arg0);
5852
5853 wxPyEndAllowThreads(__tstate);
5854 if (PyErr_Occurred()) return NULL;
5855 } Py_INCREF(Py_None);
5856 _resultobj = Py_None;
5857 return _resultobj;
5858 }
5859
5860 #define wxTimeSpan_Add(_swigobj,_swigarg0) (_swigobj->Add(_swigarg0))
5861 static PyObject *_wrap_wxTimeSpan_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
5862 PyObject * _resultobj;
5863 wxTimeSpan * _result;
5864 wxTimeSpan * _arg0;
5865 wxTimeSpan * _arg1;
5866 PyObject * _argo0 = 0;
5867 PyObject * _argo1 = 0;
5868 char *_kwnames[] = { "self","diff", NULL };
5869 char _ptemp[128];
5870
5871 self = self;
5872 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTimeSpan_Add",_kwnames,&_argo0,&_argo1))
5873 return NULL;
5874 if (_argo0) {
5875 if (_argo0 == Py_None) { _arg0 = NULL; }
5876 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTimeSpan_p")) {
5877 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTimeSpan_Add. Expected _wxTimeSpan_p.");
5878 return NULL;
5879 }
5880 }
5881 if (_argo1) {
5882 if (_argo1 == Py_None) { _arg1 = NULL; }
5883 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTimeSpan_p")) {
5884 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTimeSpan_Add. Expected _wxTimeSpan_p.");
5885 return NULL;
5886 }
5887 }
5888 {
5889 PyThreadState* __tstate = wxPyBeginAllowThreads();
5890 wxTimeSpan & _result_ref = wxTimeSpan_Add(_arg0,*_arg1);
5891 _result = (wxTimeSpan *) &_result_ref;
5892
5893 wxPyEndAllowThreads(__tstate);
5894 if (PyErr_Occurred()) return NULL;
5895 } if (_result) {
5896 SWIG_MakePtr(_ptemp, (char *) _result,"_wxTimeSpan_p");
5897 _resultobj = Py_BuildValue("s",_ptemp);
5898 } else {
5899 Py_INCREF(Py_None);
5900 _resultobj = Py_None;
5901 }
5902 return _resultobj;
5903 }
5904
5905 #define wxTimeSpan_Subtract(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
5906 static PyObject *_wrap_wxTimeSpan_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
5907 PyObject * _resultobj;
5908 wxTimeSpan * _result;
5909 wxTimeSpan * _arg0;
5910 wxTimeSpan * _arg1;
5911 PyObject * _argo0 = 0;
5912 PyObject * _argo1 = 0;
5913 char *_kwnames[] = { "self","diff", NULL };
5914 char _ptemp[128];
5915
5916 self = self;
5917 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTimeSpan_Subtract",_kwnames,&_argo0,&_argo1))
5918 return NULL;
5919 if (_argo0) {
5920 if (_argo0 == Py_None) { _arg0 = NULL; }
5921 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTimeSpan_p")) {
5922 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTimeSpan_Subtract. Expected _wxTimeSpan_p.");
5923 return NULL;
5924 }
5925 }
5926 if (_argo1) {
5927 if (_argo1 == Py_None) { _arg1 = NULL; }
5928 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTimeSpan_p")) {
5929 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTimeSpan_Subtract. Expected _wxTimeSpan_p.");
5930 return NULL;
5931 }
5932 }
5933 {
5934 PyThreadState* __tstate = wxPyBeginAllowThreads();
5935 wxTimeSpan & _result_ref = wxTimeSpan_Subtract(_arg0,*_arg1);
5936 _result = (wxTimeSpan *) &_result_ref;
5937
5938 wxPyEndAllowThreads(__tstate);
5939 if (PyErr_Occurred()) return NULL;
5940 } if (_result) {
5941 SWIG_MakePtr(_ptemp, (char *) _result,"_wxTimeSpan_p");
5942 _resultobj = Py_BuildValue("s",_ptemp);
5943 } else {
5944 Py_INCREF(Py_None);
5945 _resultobj = Py_None;
5946 }
5947 return _resultobj;
5948 }
5949
5950 #define wxTimeSpan_Multiply(_swigobj,_swigarg0) (_swigobj->Multiply(_swigarg0))
5951 static PyObject *_wrap_wxTimeSpan_Multiply(PyObject *self, PyObject *args, PyObject *kwargs) {
5952 PyObject * _resultobj;
5953 wxTimeSpan * _result;
5954 wxTimeSpan * _arg0;
5955 int _arg1;
5956 PyObject * _argo0 = 0;
5957 char *_kwnames[] = { "self","n", NULL };
5958 char _ptemp[128];
5959
5960 self = self;
5961 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTimeSpan_Multiply",_kwnames,&_argo0,&_arg1))
5962 return NULL;
5963 if (_argo0) {
5964 if (_argo0 == Py_None) { _arg0 = NULL; }
5965 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTimeSpan_p")) {
5966 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTimeSpan_Multiply. Expected _wxTimeSpan_p.");
5967 return NULL;
5968 }
5969 }
5970 {
5971 PyThreadState* __tstate = wxPyBeginAllowThreads();
5972 wxTimeSpan & _result_ref = wxTimeSpan_Multiply(_arg0,_arg1);
5973 _result = (wxTimeSpan *) &_result_ref;
5974
5975 wxPyEndAllowThreads(__tstate);
5976 if (PyErr_Occurred()) return NULL;
5977 } if (_result) {
5978 SWIG_MakePtr(_ptemp, (char *) _result,"_wxTimeSpan_p");
5979 _resultobj = Py_BuildValue("s",_ptemp);
5980 } else {
5981 Py_INCREF(Py_None);
5982 _resultobj = Py_None;
5983 }
5984 return _resultobj;
5985 }
5986
5987 #define wxTimeSpan_Neg(_swigobj) (_swigobj->Neg())
5988 static PyObject *_wrap_wxTimeSpan_Neg(PyObject *self, PyObject *args, PyObject *kwargs) {
5989 PyObject * _resultobj;
5990 wxTimeSpan * _result;
5991 wxTimeSpan * _arg0;
5992 PyObject * _argo0 = 0;
5993 char *_kwnames[] = { "self", NULL };
5994 char _ptemp[128];
5995
5996 self = self;
5997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTimeSpan_Neg",_kwnames,&_argo0))
5998 return NULL;
5999 if (_argo0) {
6000 if (_argo0 == Py_None) { _arg0 = NULL; }
6001 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTimeSpan_p")) {
6002 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTimeSpan_Neg. Expected _wxTimeSpan_p.");
6003 return NULL;
6004 }
6005 }
6006 {
6007 PyThreadState* __tstate = wxPyBeginAllowThreads();
6008 wxTimeSpan & _result_ref = wxTimeSpan_Neg(_arg0);
6009 _result = (wxTimeSpan *) &_result_ref;
6010
6011 wxPyEndAllowThreads(__tstate);
6012 if (PyErr_Occurred()) return NULL;
6013 } if (_result) {
6014 SWIG_MakePtr(_ptemp, (char *) _result,"_wxTimeSpan_p");
6015 _resultobj = Py_BuildValue("s",_ptemp);
6016 } else {
6017 Py_INCREF(Py_None);
6018 _resultobj = Py_None;
6019 }
6020 return _resultobj;
6021 }
6022
6023 #define wxTimeSpan_Abs(_swigobj) (_swigobj->Abs())
6024 static PyObject *_wrap_wxTimeSpan_Abs(PyObject *self, PyObject *args, PyObject *kwargs) {
6025 PyObject * _resultobj;
6026 wxTimeSpan * _result;
6027 wxTimeSpan * _arg0;
6028 PyObject * _argo0 = 0;
6029 char *_kwnames[] = { "self", NULL };
6030 char _ptemp[128];
6031
6032 self = self;
6033 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTimeSpan_Abs",_kwnames,&_argo0))
6034 return NULL;
6035 if (_argo0) {
6036 if (_argo0 == Py_None) { _arg0 = NULL; }
6037 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTimeSpan_p")) {
6038 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTimeSpan_Abs. Expected _wxTimeSpan_p.");
6039 return NULL;
6040 }
6041 }
6042 {
6043 PyThreadState* __tstate = wxPyBeginAllowThreads();
6044 _result = new wxTimeSpan (wxTimeSpan_Abs(_arg0));
6045
6046 wxPyEndAllowThreads(__tstate);
6047 if (PyErr_Occurred()) return NULL;
6048 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTimeSpan_p");
6049 _resultobj = Py_BuildValue("s",_ptemp);
6050 return _resultobj;
6051 }
6052
6053 static wxTimeSpan wxTimeSpan___add__(wxTimeSpan *self,const wxTimeSpan & other) { return *self + other; }
6054 static PyObject *_wrap_wxTimeSpan___add__(PyObject *self, PyObject *args, PyObject *kwargs) {
6055 PyObject * _resultobj;
6056 wxTimeSpan * _result;
6057 wxTimeSpan * _arg0;
6058 wxTimeSpan * _arg1;
6059 PyObject * _argo0 = 0;
6060 PyObject * _argo1 = 0;
6061 char *_kwnames[] = { "self","other", NULL };
6062 char _ptemp[128];
6063
6064 self = self;
6065 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTimeSpan___add__",_kwnames,&_argo0,&_argo1))
6066 return NULL;
6067 if (_argo0) {
6068 if (_argo0 == Py_None) { _arg0 = NULL; }
6069 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTimeSpan_p")) {
6070 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTimeSpan___add__. Expected _wxTimeSpan_p.");
6071 return NULL;
6072 }
6073 }
6074 if (_argo1) {
6075 if (_argo1 == Py_None) { _arg1 = NULL; }
6076 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTimeSpan_p")) {
6077 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTimeSpan___add__. Expected _wxTimeSpan_p.");
6078 return NULL;
6079 }
6080 }
6081 {
6082 PyThreadState* __tstate = wxPyBeginAllowThreads();
6083 _result = new wxTimeSpan (wxTimeSpan___add__(_arg0,*_arg1));
6084
6085 wxPyEndAllowThreads(__tstate);
6086 if (PyErr_Occurred()) return NULL;
6087 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTimeSpan_p");
6088 _resultobj = Py_BuildValue("s",_ptemp);
6089 return _resultobj;
6090 }
6091
6092 static wxTimeSpan wxTimeSpan___sub__(wxTimeSpan *self,const wxTimeSpan & other) { return *self - other; }
6093 static PyObject *_wrap_wxTimeSpan___sub__(PyObject *self, PyObject *args, PyObject *kwargs) {
6094 PyObject * _resultobj;
6095 wxTimeSpan * _result;
6096 wxTimeSpan * _arg0;
6097 wxTimeSpan * _arg1;
6098 PyObject * _argo0 = 0;
6099 PyObject * _argo1 = 0;
6100 char *_kwnames[] = { "self","other", NULL };
6101 char _ptemp[128];
6102
6103 self = self;
6104 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTimeSpan___sub__",_kwnames,&_argo0,&_argo1))
6105 return NULL;
6106 if (_argo0) {
6107 if (_argo0 == Py_None) { _arg0 = NULL; }
6108 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTimeSpan_p")) {
6109 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTimeSpan___sub__. Expected _wxTimeSpan_p.");
6110 return NULL;
6111 }
6112 }
6113 if (_argo1) {
6114 if (_argo1 == Py_None) { _arg1 = NULL; }
6115 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTimeSpan_p")) {
6116 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTimeSpan___sub__. Expected _wxTimeSpan_p.");
6117 return NULL;
6118 }
6119 }
6120 {
6121 PyThreadState* __tstate = wxPyBeginAllowThreads();
6122 _result = new wxTimeSpan (wxTimeSpan___sub__(_arg0,*_arg1));
6123
6124 wxPyEndAllowThreads(__tstate);
6125 if (PyErr_Occurred()) return NULL;
6126 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTimeSpan_p");
6127 _resultobj = Py_BuildValue("s",_ptemp);
6128 return _resultobj;
6129 }
6130
6131 static wxTimeSpan wxTimeSpan___mul__(wxTimeSpan *self,int n) { return *self * n; }
6132 static PyObject *_wrap_wxTimeSpan___mul__(PyObject *self, PyObject *args, PyObject *kwargs) {
6133 PyObject * _resultobj;
6134 wxTimeSpan * _result;
6135 wxTimeSpan * _arg0;
6136 int _arg1;
6137 PyObject * _argo0 = 0;
6138 char *_kwnames[] = { "self","n", NULL };
6139 char _ptemp[128];
6140
6141 self = self;
6142 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTimeSpan___mul__",_kwnames,&_argo0,&_arg1))
6143 return NULL;
6144 if (_argo0) {
6145 if (_argo0 == Py_None) { _arg0 = NULL; }
6146 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTimeSpan_p")) {
6147 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTimeSpan___mul__. Expected _wxTimeSpan_p.");
6148 return NULL;
6149 }
6150 }
6151 {
6152 PyThreadState* __tstate = wxPyBeginAllowThreads();
6153 _result = new wxTimeSpan (wxTimeSpan___mul__(_arg0,_arg1));
6154
6155 wxPyEndAllowThreads(__tstate);
6156 if (PyErr_Occurred()) return NULL;
6157 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTimeSpan_p");
6158 _resultobj = Py_BuildValue("s",_ptemp);
6159 return _resultobj;
6160 }
6161
6162 static wxTimeSpan wxTimeSpan___rmul__(wxTimeSpan *self,int n) { return n * *self; }
6163 static PyObject *_wrap_wxTimeSpan___rmul__(PyObject *self, PyObject *args, PyObject *kwargs) {
6164 PyObject * _resultobj;
6165 wxTimeSpan * _result;
6166 wxTimeSpan * _arg0;
6167 int _arg1;
6168 PyObject * _argo0 = 0;
6169 char *_kwnames[] = { "self","n", NULL };
6170 char _ptemp[128];
6171
6172 self = self;
6173 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTimeSpan___rmul__",_kwnames,&_argo0,&_arg1))
6174 return NULL;
6175 if (_argo0) {
6176 if (_argo0 == Py_None) { _arg0 = NULL; }
6177 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTimeSpan_p")) {
6178 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTimeSpan___rmul__. Expected _wxTimeSpan_p.");
6179 return NULL;
6180 }
6181 }
6182 {
6183 PyThreadState* __tstate = wxPyBeginAllowThreads();
6184 _result = new wxTimeSpan (wxTimeSpan___rmul__(_arg0,_arg1));
6185
6186 wxPyEndAllowThreads(__tstate);
6187 if (PyErr_Occurred()) return NULL;
6188 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTimeSpan_p");
6189 _resultobj = Py_BuildValue("s",_ptemp);
6190 return _resultobj;
6191 }
6192
6193 static wxTimeSpan wxTimeSpan___neg__(wxTimeSpan *self) { return self->Negate(); }
6194 static PyObject *_wrap_wxTimeSpan___neg__(PyObject *self, PyObject *args, PyObject *kwargs) {
6195 PyObject * _resultobj;
6196 wxTimeSpan * _result;
6197 wxTimeSpan * _arg0;
6198 PyObject * _argo0 = 0;
6199 char *_kwnames[] = { "self", NULL };
6200 char _ptemp[128];
6201
6202 self = self;
6203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTimeSpan___neg__",_kwnames,&_argo0))
6204 return NULL;
6205 if (_argo0) {
6206 if (_argo0 == Py_None) { _arg0 = NULL; }
6207 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTimeSpan_p")) {
6208 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTimeSpan___neg__. Expected _wxTimeSpan_p.");
6209 return NULL;
6210 }
6211 }
6212 {
6213 PyThreadState* __tstate = wxPyBeginAllowThreads();
6214 _result = new wxTimeSpan (wxTimeSpan___neg__(_arg0));
6215
6216 wxPyEndAllowThreads(__tstate);
6217 if (PyErr_Occurred()) return NULL;
6218 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTimeSpan_p");
6219 _resultobj = Py_BuildValue("s",_ptemp);
6220 return _resultobj;
6221 }
6222
6223 static int wxTimeSpan___cmp__(wxTimeSpan *self,const wxTimeSpan * other) {
6224 if (! other) return -1;
6225 if (*self < *other) return -1;
6226 if (*self == *other) return 0;
6227 return 1;
6228 }
6229 static PyObject *_wrap_wxTimeSpan___cmp__(PyObject *self, PyObject *args, PyObject *kwargs) {
6230 PyObject * _resultobj;
6231 int _result;
6232 wxTimeSpan * _arg0;
6233 wxTimeSpan * _arg1;
6234 PyObject * _argo0 = 0;
6235 PyObject * _argo1 = 0;
6236 char *_kwnames[] = { "self","other", NULL };
6237
6238 self = self;
6239 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTimeSpan___cmp__",_kwnames,&_argo0,&_argo1))
6240 return NULL;
6241 if (_argo0) {
6242 if (_argo0 == Py_None) { _arg0 = NULL; }
6243 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTimeSpan_p")) {
6244 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTimeSpan___cmp__. Expected _wxTimeSpan_p.");
6245 return NULL;
6246 }
6247 }
6248 if (_argo1) {
6249 if (_argo1 == Py_None) { _arg1 = NULL; }
6250 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTimeSpan_p")) {
6251 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTimeSpan___cmp__. Expected _wxTimeSpan_p.");
6252 return NULL;
6253 }
6254 }
6255 {
6256 PyThreadState* __tstate = wxPyBeginAllowThreads();
6257 _result = (int )wxTimeSpan___cmp__(_arg0,_arg1);
6258
6259 wxPyEndAllowThreads(__tstate);
6260 if (PyErr_Occurred()) return NULL;
6261 } _resultobj = Py_BuildValue("i",_result);
6262 return _resultobj;
6263 }
6264
6265 #define wxTimeSpan_IsNull(_swigobj) (_swigobj->IsNull())
6266 static PyObject *_wrap_wxTimeSpan_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) {
6267 PyObject * _resultobj;
6268 bool _result;
6269 wxTimeSpan * _arg0;
6270 PyObject * _argo0 = 0;
6271 char *_kwnames[] = { "self", NULL };
6272
6273 self = self;
6274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTimeSpan_IsNull",_kwnames,&_argo0))
6275 return NULL;
6276 if (_argo0) {
6277 if (_argo0 == Py_None) { _arg0 = NULL; }
6278 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTimeSpan_p")) {
6279 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTimeSpan_IsNull. Expected _wxTimeSpan_p.");
6280 return NULL;
6281 }
6282 }
6283 {
6284 PyThreadState* __tstate = wxPyBeginAllowThreads();
6285 _result = (bool )wxTimeSpan_IsNull(_arg0);
6286
6287 wxPyEndAllowThreads(__tstate);
6288 if (PyErr_Occurred()) return NULL;
6289 } _resultobj = Py_BuildValue("i",_result);
6290 return _resultobj;
6291 }
6292
6293 #define wxTimeSpan_IsPositive(_swigobj) (_swigobj->IsPositive())
6294 static PyObject *_wrap_wxTimeSpan_IsPositive(PyObject *self, PyObject *args, PyObject *kwargs) {
6295 PyObject * _resultobj;
6296 bool _result;
6297 wxTimeSpan * _arg0;
6298 PyObject * _argo0 = 0;
6299 char *_kwnames[] = { "self", NULL };
6300
6301 self = self;
6302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTimeSpan_IsPositive",_kwnames,&_argo0))
6303 return NULL;
6304 if (_argo0) {
6305 if (_argo0 == Py_None) { _arg0 = NULL; }
6306 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTimeSpan_p")) {
6307 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTimeSpan_IsPositive. Expected _wxTimeSpan_p.");
6308 return NULL;
6309 }
6310 }
6311 {
6312 PyThreadState* __tstate = wxPyBeginAllowThreads();
6313 _result = (bool )wxTimeSpan_IsPositive(_arg0);
6314
6315 wxPyEndAllowThreads(__tstate);
6316 if (PyErr_Occurred()) return NULL;
6317 } _resultobj = Py_BuildValue("i",_result);
6318 return _resultobj;
6319 }
6320
6321 #define wxTimeSpan_IsNegative(_swigobj) (_swigobj->IsNegative())
6322 static PyObject *_wrap_wxTimeSpan_IsNegative(PyObject *self, PyObject *args, PyObject *kwargs) {
6323 PyObject * _resultobj;
6324 bool _result;
6325 wxTimeSpan * _arg0;
6326 PyObject * _argo0 = 0;
6327 char *_kwnames[] = { "self", NULL };
6328
6329 self = self;
6330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTimeSpan_IsNegative",_kwnames,&_argo0))
6331 return NULL;
6332 if (_argo0) {
6333 if (_argo0 == Py_None) { _arg0 = NULL; }
6334 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTimeSpan_p")) {
6335 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTimeSpan_IsNegative. Expected _wxTimeSpan_p.");
6336 return NULL;
6337 }
6338 }
6339 {
6340 PyThreadState* __tstate = wxPyBeginAllowThreads();
6341 _result = (bool )wxTimeSpan_IsNegative(_arg0);
6342
6343 wxPyEndAllowThreads(__tstate);
6344 if (PyErr_Occurred()) return NULL;
6345 } _resultobj = Py_BuildValue("i",_result);
6346 return _resultobj;
6347 }
6348
6349 #define wxTimeSpan_IsEqualTo(_swigobj,_swigarg0) (_swigobj->IsEqualTo(_swigarg0))
6350 static PyObject *_wrap_wxTimeSpan_IsEqualTo(PyObject *self, PyObject *args, PyObject *kwargs) {
6351 PyObject * _resultobj;
6352 bool _result;
6353 wxTimeSpan * _arg0;
6354 wxTimeSpan * _arg1;
6355 PyObject * _argo0 = 0;
6356 PyObject * _argo1 = 0;
6357 char *_kwnames[] = { "self","ts", NULL };
6358
6359 self = self;
6360 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTimeSpan_IsEqualTo",_kwnames,&_argo0,&_argo1))
6361 return NULL;
6362 if (_argo0) {
6363 if (_argo0 == Py_None) { _arg0 = NULL; }
6364 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTimeSpan_p")) {
6365 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTimeSpan_IsEqualTo. Expected _wxTimeSpan_p.");
6366 return NULL;
6367 }
6368 }
6369 if (_argo1) {
6370 if (_argo1 == Py_None) { _arg1 = NULL; }
6371 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTimeSpan_p")) {
6372 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTimeSpan_IsEqualTo. Expected _wxTimeSpan_p.");
6373 return NULL;
6374 }
6375 }
6376 {
6377 PyThreadState* __tstate = wxPyBeginAllowThreads();
6378 _result = (bool )wxTimeSpan_IsEqualTo(_arg0,*_arg1);
6379
6380 wxPyEndAllowThreads(__tstate);
6381 if (PyErr_Occurred()) return NULL;
6382 } _resultobj = Py_BuildValue("i",_result);
6383 return _resultobj;
6384 }
6385
6386 #define wxTimeSpan_IsLongerThan(_swigobj,_swigarg0) (_swigobj->IsLongerThan(_swigarg0))
6387 static PyObject *_wrap_wxTimeSpan_IsLongerThan(PyObject *self, PyObject *args, PyObject *kwargs) {
6388 PyObject * _resultobj;
6389 bool _result;
6390 wxTimeSpan * _arg0;
6391 wxTimeSpan * _arg1;
6392 PyObject * _argo0 = 0;
6393 PyObject * _argo1 = 0;
6394 char *_kwnames[] = { "self","ts", NULL };
6395
6396 self = self;
6397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTimeSpan_IsLongerThan",_kwnames,&_argo0,&_argo1))
6398 return NULL;
6399 if (_argo0) {
6400 if (_argo0 == Py_None) { _arg0 = NULL; }
6401 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTimeSpan_p")) {
6402 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTimeSpan_IsLongerThan. Expected _wxTimeSpan_p.");
6403 return NULL;
6404 }
6405 }
6406 if (_argo1) {
6407 if (_argo1 == Py_None) { _arg1 = NULL; }
6408 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTimeSpan_p")) {
6409 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTimeSpan_IsLongerThan. Expected _wxTimeSpan_p.");
6410 return NULL;
6411 }
6412 }
6413 {
6414 PyThreadState* __tstate = wxPyBeginAllowThreads();
6415 _result = (bool )wxTimeSpan_IsLongerThan(_arg0,*_arg1);
6416
6417 wxPyEndAllowThreads(__tstate);
6418 if (PyErr_Occurred()) return NULL;
6419 } _resultobj = Py_BuildValue("i",_result);
6420 return _resultobj;
6421 }
6422
6423 #define wxTimeSpan_IsShorterThan(_swigobj,_swigarg0) (_swigobj->IsShorterThan(_swigarg0))
6424 static PyObject *_wrap_wxTimeSpan_IsShorterThan(PyObject *self, PyObject *args, PyObject *kwargs) {
6425 PyObject * _resultobj;
6426 bool _result;
6427 wxTimeSpan * _arg0;
6428 wxTimeSpan * _arg1;
6429 PyObject * _argo0 = 0;
6430 PyObject * _argo1 = 0;
6431 char *_kwnames[] = { "self","t", NULL };
6432
6433 self = self;
6434 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTimeSpan_IsShorterThan",_kwnames,&_argo0,&_argo1))
6435 return NULL;
6436 if (_argo0) {
6437 if (_argo0 == Py_None) { _arg0 = NULL; }
6438 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTimeSpan_p")) {
6439 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTimeSpan_IsShorterThan. Expected _wxTimeSpan_p.");
6440 return NULL;
6441 }
6442 }
6443 if (_argo1) {
6444 if (_argo1 == Py_None) { _arg1 = NULL; }
6445 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTimeSpan_p")) {
6446 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTimeSpan_IsShorterThan. Expected _wxTimeSpan_p.");
6447 return NULL;
6448 }
6449 }
6450 {
6451 PyThreadState* __tstate = wxPyBeginAllowThreads();
6452 _result = (bool )wxTimeSpan_IsShorterThan(_arg0,*_arg1);
6453
6454 wxPyEndAllowThreads(__tstate);
6455 if (PyErr_Occurred()) return NULL;
6456 } _resultobj = Py_BuildValue("i",_result);
6457 return _resultobj;
6458 }
6459
6460 #define wxTimeSpan_GetWeeks(_swigobj) (_swigobj->GetWeeks())
6461 static PyObject *_wrap_wxTimeSpan_GetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) {
6462 PyObject * _resultobj;
6463 int _result;
6464 wxTimeSpan * _arg0;
6465 PyObject * _argo0 = 0;
6466 char *_kwnames[] = { "self", NULL };
6467
6468 self = self;
6469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTimeSpan_GetWeeks",_kwnames,&_argo0))
6470 return NULL;
6471 if (_argo0) {
6472 if (_argo0 == Py_None) { _arg0 = NULL; }
6473 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTimeSpan_p")) {
6474 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTimeSpan_GetWeeks. Expected _wxTimeSpan_p.");
6475 return NULL;
6476 }
6477 }
6478 {
6479 PyThreadState* __tstate = wxPyBeginAllowThreads();
6480 _result = (int )wxTimeSpan_GetWeeks(_arg0);
6481
6482 wxPyEndAllowThreads(__tstate);
6483 if (PyErr_Occurred()) return NULL;
6484 } _resultobj = Py_BuildValue("i",_result);
6485 return _resultobj;
6486 }
6487
6488 #define wxTimeSpan_GetDays(_swigobj) (_swigobj->GetDays())
6489 static PyObject *_wrap_wxTimeSpan_GetDays(PyObject *self, PyObject *args, PyObject *kwargs) {
6490 PyObject * _resultobj;
6491 int _result;
6492 wxTimeSpan * _arg0;
6493 PyObject * _argo0 = 0;
6494 char *_kwnames[] = { "self", NULL };
6495
6496 self = self;
6497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTimeSpan_GetDays",_kwnames,&_argo0))
6498 return NULL;
6499 if (_argo0) {
6500 if (_argo0 == Py_None) { _arg0 = NULL; }
6501 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTimeSpan_p")) {
6502 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTimeSpan_GetDays. Expected _wxTimeSpan_p.");
6503 return NULL;
6504 }
6505 }
6506 {
6507 PyThreadState* __tstate = wxPyBeginAllowThreads();
6508 _result = (int )wxTimeSpan_GetDays(_arg0);
6509
6510 wxPyEndAllowThreads(__tstate);
6511 if (PyErr_Occurred()) return NULL;
6512 } _resultobj = Py_BuildValue("i",_result);
6513 return _resultobj;
6514 }
6515
6516 #define wxTimeSpan_GetHours(_swigobj) (_swigobj->GetHours())
6517 static PyObject *_wrap_wxTimeSpan_GetHours(PyObject *self, PyObject *args, PyObject *kwargs) {
6518 PyObject * _resultobj;
6519 int _result;
6520 wxTimeSpan * _arg0;
6521 PyObject * _argo0 = 0;
6522 char *_kwnames[] = { "self", NULL };
6523
6524 self = self;
6525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTimeSpan_GetHours",_kwnames,&_argo0))
6526 return NULL;
6527 if (_argo0) {
6528 if (_argo0 == Py_None) { _arg0 = NULL; }
6529 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTimeSpan_p")) {
6530 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTimeSpan_GetHours. Expected _wxTimeSpan_p.");
6531 return NULL;
6532 }
6533 }
6534 {
6535 PyThreadState* __tstate = wxPyBeginAllowThreads();
6536 _result = (int )wxTimeSpan_GetHours(_arg0);
6537
6538 wxPyEndAllowThreads(__tstate);
6539 if (PyErr_Occurred()) return NULL;
6540 } _resultobj = Py_BuildValue("i",_result);
6541 return _resultobj;
6542 }
6543
6544 #define wxTimeSpan_GetMinutes(_swigobj) (_swigobj->GetMinutes())
6545 static PyObject *_wrap_wxTimeSpan_GetMinutes(PyObject *self, PyObject *args, PyObject *kwargs) {
6546 PyObject * _resultobj;
6547 int _result;
6548 wxTimeSpan * _arg0;
6549 PyObject * _argo0 = 0;
6550 char *_kwnames[] = { "self", NULL };
6551
6552 self = self;
6553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTimeSpan_GetMinutes",_kwnames,&_argo0))
6554 return NULL;
6555 if (_argo0) {
6556 if (_argo0 == Py_None) { _arg0 = NULL; }
6557 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTimeSpan_p")) {
6558 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTimeSpan_GetMinutes. Expected _wxTimeSpan_p.");
6559 return NULL;
6560 }
6561 }
6562 {
6563 PyThreadState* __tstate = wxPyBeginAllowThreads();
6564 _result = (int )wxTimeSpan_GetMinutes(_arg0);
6565
6566 wxPyEndAllowThreads(__tstate);
6567 if (PyErr_Occurred()) return NULL;
6568 } _resultobj = Py_BuildValue("i",_result);
6569 return _resultobj;
6570 }
6571
6572 #define wxTimeSpan_GetSeconds(_swigobj) (_swigobj->GetSeconds())
6573 static PyObject *_wrap_wxTimeSpan_GetSeconds(PyObject *self, PyObject *args, PyObject *kwargs) {
6574 PyObject * _resultobj;
6575 wxLongLong * _result;
6576 wxTimeSpan * _arg0;
6577 PyObject * _argo0 = 0;
6578 char *_kwnames[] = { "self", NULL };
6579
6580 self = self;
6581 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTimeSpan_GetSeconds",_kwnames,&_argo0))
6582 return NULL;
6583 if (_argo0) {
6584 if (_argo0 == Py_None) { _arg0 = NULL; }
6585 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTimeSpan_p")) {
6586 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTimeSpan_GetSeconds. Expected _wxTimeSpan_p.");
6587 return NULL;
6588 }
6589 }
6590 {
6591 PyThreadState* __tstate = wxPyBeginAllowThreads();
6592 _result = new wxLongLong (wxTimeSpan_GetSeconds(_arg0));
6593
6594 wxPyEndAllowThreads(__tstate);
6595 if (PyErr_Occurred()) return NULL;
6596 }{
6597 PyObject *hi, *lo, *shifter, *shifted;
6598 hi = PyLong_FromLong(_result->GetHi());
6599 lo = PyLong_FromLong(_result->GetLo());
6600 shifter = PyLong_FromLong(32);
6601 shifted = PyNumber_Lshift(hi, shifter);
6602 _resultobj = PyNumber_Or(shifted, lo);
6603 Py_DECREF(hi);
6604 Py_DECREF(lo);
6605 Py_DECREF(shifter);
6606 Py_DECREF(shifted);
6607 }
6608 return _resultobj;
6609 }
6610
6611 #define wxTimeSpan_GetMilliseconds(_swigobj) (_swigobj->GetMilliseconds())
6612 static PyObject *_wrap_wxTimeSpan_GetMilliseconds(PyObject *self, PyObject *args, PyObject *kwargs) {
6613 PyObject * _resultobj;
6614 wxLongLong * _result;
6615 wxTimeSpan * _arg0;
6616 PyObject * _argo0 = 0;
6617 char *_kwnames[] = { "self", NULL };
6618
6619 self = self;
6620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTimeSpan_GetMilliseconds",_kwnames,&_argo0))
6621 return NULL;
6622 if (_argo0) {
6623 if (_argo0 == Py_None) { _arg0 = NULL; }
6624 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTimeSpan_p")) {
6625 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTimeSpan_GetMilliseconds. Expected _wxTimeSpan_p.");
6626 return NULL;
6627 }
6628 }
6629 {
6630 PyThreadState* __tstate = wxPyBeginAllowThreads();
6631 _result = new wxLongLong (wxTimeSpan_GetMilliseconds(_arg0));
6632
6633 wxPyEndAllowThreads(__tstate);
6634 if (PyErr_Occurred()) return NULL;
6635 }{
6636 PyObject *hi, *lo, *shifter, *shifted;
6637 hi = PyLong_FromLong(_result->GetHi());
6638 lo = PyLong_FromLong(_result->GetLo());
6639 shifter = PyLong_FromLong(32);
6640 shifted = PyNumber_Lshift(hi, shifter);
6641 _resultobj = PyNumber_Or(shifted, lo);
6642 Py_DECREF(hi);
6643 Py_DECREF(lo);
6644 Py_DECREF(shifter);
6645 Py_DECREF(shifted);
6646 }
6647 return _resultobj;
6648 }
6649
6650 #define wxTimeSpan_Format(_swigobj,_swigarg0) (_swigobj->Format(_swigarg0))
6651 static PyObject *_wrap_wxTimeSpan_Format(PyObject *self, PyObject *args, PyObject *kwargs) {
6652 PyObject * _resultobj;
6653 wxString * _result;
6654 wxTimeSpan * _arg0;
6655 wxString * _arg1 = (wxString *) &wxPyDateFormatStr;
6656 PyObject * _argo0 = 0;
6657 PyObject * _obj1 = 0;
6658 char *_kwnames[] = { "self","format", NULL };
6659
6660 self = self;
6661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxTimeSpan_Format",_kwnames,&_argo0,&_obj1))
6662 return NULL;
6663 if (_argo0) {
6664 if (_argo0 == Py_None) { _arg0 = NULL; }
6665 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTimeSpan_p")) {
6666 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTimeSpan_Format. Expected _wxTimeSpan_p.");
6667 return NULL;
6668 }
6669 }
6670 if (_obj1)
6671 {
6672 _arg1 = wxString_in_helper(_obj1);
6673 if (_arg1 == NULL)
6674 return NULL;
6675 }
6676 {
6677 PyThreadState* __tstate = wxPyBeginAllowThreads();
6678 _result = new wxString (wxTimeSpan_Format(_arg0,*_arg1));
6679
6680 wxPyEndAllowThreads(__tstate);
6681 if (PyErr_Occurred()) return NULL;
6682 }{
6683 #if wxUSE_UNICODE
6684 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
6685 #else
6686 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
6687 #endif
6688 }
6689 {
6690 if (_obj1)
6691 delete _arg1;
6692 }
6693 {
6694 delete _result;
6695 }
6696 return _resultobj;
6697 }
6698
6699 #define new_wxDateSpan(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxDateSpan(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6700 static PyObject *_wrap_new_wxDateSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
6701 PyObject * _resultobj;
6702 wxDateSpan * _result;
6703 int _arg0 = (int ) 0;
6704 int _arg1 = (int ) 0;
6705 int _arg2 = (int ) 0;
6706 int _arg3 = (int ) 0;
6707 char *_kwnames[] = { "years","months","weeks","days", NULL };
6708 char _ptemp[128];
6709
6710 self = self;
6711 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|iiii:new_wxDateSpan",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3))
6712 return NULL;
6713 {
6714 PyThreadState* __tstate = wxPyBeginAllowThreads();
6715 _result = (wxDateSpan *)new_wxDateSpan(_arg0,_arg1,_arg2,_arg3);
6716
6717 wxPyEndAllowThreads(__tstate);
6718 if (PyErr_Occurred()) return NULL;
6719 } if (_result) {
6720 SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateSpan_p");
6721 _resultobj = Py_BuildValue("s",_ptemp);
6722 } else {
6723 Py_INCREF(Py_None);
6724 _resultobj = Py_None;
6725 }
6726 return _resultobj;
6727 }
6728
6729 #define delete_wxDateSpan(_swigobj) (delete _swigobj)
6730 static PyObject *_wrap_delete_wxDateSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
6731 PyObject * _resultobj;
6732 wxDateSpan * _arg0;
6733 PyObject * _argo0 = 0;
6734 char *_kwnames[] = { "self", NULL };
6735
6736 self = self;
6737 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxDateSpan",_kwnames,&_argo0))
6738 return NULL;
6739 if (_argo0) {
6740 if (_argo0 == Py_None) { _arg0 = NULL; }
6741 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateSpan_p")) {
6742 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxDateSpan. Expected _wxDateSpan_p.");
6743 return NULL;
6744 }
6745 }
6746 {
6747 PyThreadState* __tstate = wxPyBeginAllowThreads();
6748 delete_wxDateSpan(_arg0);
6749
6750 wxPyEndAllowThreads(__tstate);
6751 if (PyErr_Occurred()) return NULL;
6752 } Py_INCREF(Py_None);
6753 _resultobj = Py_None;
6754 return _resultobj;
6755 }
6756
6757 static PyObject *_wrap_wxDateSpan_Days(PyObject *self, PyObject *args, PyObject *kwargs) {
6758 PyObject * _resultobj;
6759 wxDateSpan * _result;
6760 int _arg0;
6761 char *_kwnames[] = { "days", NULL };
6762 char _ptemp[128];
6763
6764 self = self;
6765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxDateSpan_Days",_kwnames,&_arg0))
6766 return NULL;
6767 {
6768 PyThreadState* __tstate = wxPyBeginAllowThreads();
6769 _result = new wxDateSpan (wxDateSpan::Days(_arg0));
6770
6771 wxPyEndAllowThreads(__tstate);
6772 if (PyErr_Occurred()) return NULL;
6773 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxDateSpan_p");
6774 _resultobj = Py_BuildValue("s",_ptemp);
6775 return _resultobj;
6776 }
6777
6778 static PyObject *_wrap_wxDateSpan_Day(PyObject *self, PyObject *args, PyObject *kwargs) {
6779 PyObject * _resultobj;
6780 wxDateSpan * _result;
6781 char *_kwnames[] = { NULL };
6782 char _ptemp[128];
6783
6784 self = self;
6785 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxDateSpan_Day",_kwnames))
6786 return NULL;
6787 {
6788 PyThreadState* __tstate = wxPyBeginAllowThreads();
6789 _result = new wxDateSpan (wxDateSpan::Day());
6790
6791 wxPyEndAllowThreads(__tstate);
6792 if (PyErr_Occurred()) return NULL;
6793 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxDateSpan_p");
6794 _resultobj = Py_BuildValue("s",_ptemp);
6795 return _resultobj;
6796 }
6797
6798 static PyObject *_wrap_wxDateSpan_Weeks(PyObject *self, PyObject *args, PyObject *kwargs) {
6799 PyObject * _resultobj;
6800 wxDateSpan * _result;
6801 int _arg0;
6802 char *_kwnames[] = { "weeks", NULL };
6803 char _ptemp[128];
6804
6805 self = self;
6806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxDateSpan_Weeks",_kwnames,&_arg0))
6807 return NULL;
6808 {
6809 PyThreadState* __tstate = wxPyBeginAllowThreads();
6810 _result = new wxDateSpan (wxDateSpan::Weeks(_arg0));
6811
6812 wxPyEndAllowThreads(__tstate);
6813 if (PyErr_Occurred()) return NULL;
6814 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxDateSpan_p");
6815 _resultobj = Py_BuildValue("s",_ptemp);
6816 return _resultobj;
6817 }
6818
6819 static PyObject *_wrap_wxDateSpan_Week(PyObject *self, PyObject *args, PyObject *kwargs) {
6820 PyObject * _resultobj;
6821 wxDateSpan * _result;
6822 char *_kwnames[] = { NULL };
6823 char _ptemp[128];
6824
6825 self = self;
6826 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxDateSpan_Week",_kwnames))
6827 return NULL;
6828 {
6829 PyThreadState* __tstate = wxPyBeginAllowThreads();
6830 _result = new wxDateSpan (wxDateSpan::Week());
6831
6832 wxPyEndAllowThreads(__tstate);
6833 if (PyErr_Occurred()) return NULL;
6834 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxDateSpan_p");
6835 _resultobj = Py_BuildValue("s",_ptemp);
6836 return _resultobj;
6837 }
6838
6839 static PyObject *_wrap_wxDateSpan_Months(PyObject *self, PyObject *args, PyObject *kwargs) {
6840 PyObject * _resultobj;
6841 wxDateSpan * _result;
6842 int _arg0;
6843 char *_kwnames[] = { "mon", NULL };
6844 char _ptemp[128];
6845
6846 self = self;
6847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxDateSpan_Months",_kwnames,&_arg0))
6848 return NULL;
6849 {
6850 PyThreadState* __tstate = wxPyBeginAllowThreads();
6851 _result = new wxDateSpan (wxDateSpan::Months(_arg0));
6852
6853 wxPyEndAllowThreads(__tstate);
6854 if (PyErr_Occurred()) return NULL;
6855 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxDateSpan_p");
6856 _resultobj = Py_BuildValue("s",_ptemp);
6857 return _resultobj;
6858 }
6859
6860 static PyObject *_wrap_wxDateSpan_Month(PyObject *self, PyObject *args, PyObject *kwargs) {
6861 PyObject * _resultobj;
6862 wxDateSpan * _result;
6863 char *_kwnames[] = { NULL };
6864 char _ptemp[128];
6865
6866 self = self;
6867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxDateSpan_Month",_kwnames))
6868 return NULL;
6869 {
6870 PyThreadState* __tstate = wxPyBeginAllowThreads();
6871 _result = new wxDateSpan (wxDateSpan::Month());
6872
6873 wxPyEndAllowThreads(__tstate);
6874 if (PyErr_Occurred()) return NULL;
6875 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxDateSpan_p");
6876 _resultobj = Py_BuildValue("s",_ptemp);
6877 return _resultobj;
6878 }
6879
6880 static PyObject *_wrap_wxDateSpan_Years(PyObject *self, PyObject *args, PyObject *kwargs) {
6881 PyObject * _resultobj;
6882 wxDateSpan * _result;
6883 int _arg0;
6884 char *_kwnames[] = { "years", NULL };
6885 char _ptemp[128];
6886
6887 self = self;
6888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxDateSpan_Years",_kwnames,&_arg0))
6889 return NULL;
6890 {
6891 PyThreadState* __tstate = wxPyBeginAllowThreads();
6892 _result = new wxDateSpan (wxDateSpan::Years(_arg0));
6893
6894 wxPyEndAllowThreads(__tstate);
6895 if (PyErr_Occurred()) return NULL;
6896 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxDateSpan_p");
6897 _resultobj = Py_BuildValue("s",_ptemp);
6898 return _resultobj;
6899 }
6900
6901 static PyObject *_wrap_wxDateSpan_Year(PyObject *self, PyObject *args, PyObject *kwargs) {
6902 PyObject * _resultobj;
6903 wxDateSpan * _result;
6904 char *_kwnames[] = { NULL };
6905 char _ptemp[128];
6906
6907 self = self;
6908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxDateSpan_Year",_kwnames))
6909 return NULL;
6910 {
6911 PyThreadState* __tstate = wxPyBeginAllowThreads();
6912 _result = new wxDateSpan (wxDateSpan::Year());
6913
6914 wxPyEndAllowThreads(__tstate);
6915 if (PyErr_Occurred()) return NULL;
6916 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxDateSpan_p");
6917 _resultobj = Py_BuildValue("s",_ptemp);
6918 return _resultobj;
6919 }
6920
6921 #define wxDateSpan_SetYears(_swigobj,_swigarg0) (_swigobj->SetYears(_swigarg0))
6922 static PyObject *_wrap_wxDateSpan_SetYears(PyObject *self, PyObject *args, PyObject *kwargs) {
6923 PyObject * _resultobj;
6924 wxDateSpan * _result;
6925 wxDateSpan * _arg0;
6926 int _arg1;
6927 PyObject * _argo0 = 0;
6928 char *_kwnames[] = { "self","n", NULL };
6929 char _ptemp[128];
6930
6931 self = self;
6932 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDateSpan_SetYears",_kwnames,&_argo0,&_arg1))
6933 return NULL;
6934 if (_argo0) {
6935 if (_argo0 == Py_None) { _arg0 = NULL; }
6936 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateSpan_p")) {
6937 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateSpan_SetYears. Expected _wxDateSpan_p.");
6938 return NULL;
6939 }
6940 }
6941 {
6942 PyThreadState* __tstate = wxPyBeginAllowThreads();
6943 wxDateSpan & _result_ref = wxDateSpan_SetYears(_arg0,_arg1);
6944 _result = (wxDateSpan *) &_result_ref;
6945
6946 wxPyEndAllowThreads(__tstate);
6947 if (PyErr_Occurred()) return NULL;
6948 } if (_result) {
6949 SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateSpan_p");
6950 _resultobj = Py_BuildValue("s",_ptemp);
6951 } else {
6952 Py_INCREF(Py_None);
6953 _resultobj = Py_None;
6954 }
6955 return _resultobj;
6956 }
6957
6958 #define wxDateSpan_SetMonths(_swigobj,_swigarg0) (_swigobj->SetMonths(_swigarg0))
6959 static PyObject *_wrap_wxDateSpan_SetMonths(PyObject *self, PyObject *args, PyObject *kwargs) {
6960 PyObject * _resultobj;
6961 wxDateSpan * _result;
6962 wxDateSpan * _arg0;
6963 int _arg1;
6964 PyObject * _argo0 = 0;
6965 char *_kwnames[] = { "self","n", NULL };
6966 char _ptemp[128];
6967
6968 self = self;
6969 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDateSpan_SetMonths",_kwnames,&_argo0,&_arg1))
6970 return NULL;
6971 if (_argo0) {
6972 if (_argo0 == Py_None) { _arg0 = NULL; }
6973 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateSpan_p")) {
6974 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateSpan_SetMonths. Expected _wxDateSpan_p.");
6975 return NULL;
6976 }
6977 }
6978 {
6979 PyThreadState* __tstate = wxPyBeginAllowThreads();
6980 wxDateSpan & _result_ref = wxDateSpan_SetMonths(_arg0,_arg1);
6981 _result = (wxDateSpan *) &_result_ref;
6982
6983 wxPyEndAllowThreads(__tstate);
6984 if (PyErr_Occurred()) return NULL;
6985 } if (_result) {
6986 SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateSpan_p");
6987 _resultobj = Py_BuildValue("s",_ptemp);
6988 } else {
6989 Py_INCREF(Py_None);
6990 _resultobj = Py_None;
6991 }
6992 return _resultobj;
6993 }
6994
6995 #define wxDateSpan_SetWeeks(_swigobj,_swigarg0) (_swigobj->SetWeeks(_swigarg0))
6996 static PyObject *_wrap_wxDateSpan_SetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) {
6997 PyObject * _resultobj;
6998 wxDateSpan * _result;
6999 wxDateSpan * _arg0;
7000 int _arg1;
7001 PyObject * _argo0 = 0;
7002 char *_kwnames[] = { "self","n", NULL };
7003 char _ptemp[128];
7004
7005 self = self;
7006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDateSpan_SetWeeks",_kwnames,&_argo0,&_arg1))
7007 return NULL;
7008 if (_argo0) {
7009 if (_argo0 == Py_None) { _arg0 = NULL; }
7010 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateSpan_p")) {
7011 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateSpan_SetWeeks. Expected _wxDateSpan_p.");
7012 return NULL;
7013 }
7014 }
7015 {
7016 PyThreadState* __tstate = wxPyBeginAllowThreads();
7017 wxDateSpan & _result_ref = wxDateSpan_SetWeeks(_arg0,_arg1);
7018 _result = (wxDateSpan *) &_result_ref;
7019
7020 wxPyEndAllowThreads(__tstate);
7021 if (PyErr_Occurred()) return NULL;
7022 } if (_result) {
7023 SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateSpan_p");
7024 _resultobj = Py_BuildValue("s",_ptemp);
7025 } else {
7026 Py_INCREF(Py_None);
7027 _resultobj = Py_None;
7028 }
7029 return _resultobj;
7030 }
7031
7032 #define wxDateSpan_SetDays(_swigobj,_swigarg0) (_swigobj->SetDays(_swigarg0))
7033 static PyObject *_wrap_wxDateSpan_SetDays(PyObject *self, PyObject *args, PyObject *kwargs) {
7034 PyObject * _resultobj;
7035 wxDateSpan * _result;
7036 wxDateSpan * _arg0;
7037 int _arg1;
7038 PyObject * _argo0 = 0;
7039 char *_kwnames[] = { "self","n", NULL };
7040 char _ptemp[128];
7041
7042 self = self;
7043 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDateSpan_SetDays",_kwnames,&_argo0,&_arg1))
7044 return NULL;
7045 if (_argo0) {
7046 if (_argo0 == Py_None) { _arg0 = NULL; }
7047 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateSpan_p")) {
7048 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateSpan_SetDays. Expected _wxDateSpan_p.");
7049 return NULL;
7050 }
7051 }
7052 {
7053 PyThreadState* __tstate = wxPyBeginAllowThreads();
7054 wxDateSpan & _result_ref = wxDateSpan_SetDays(_arg0,_arg1);
7055 _result = (wxDateSpan *) &_result_ref;
7056
7057 wxPyEndAllowThreads(__tstate);
7058 if (PyErr_Occurred()) return NULL;
7059 } if (_result) {
7060 SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateSpan_p");
7061 _resultobj = Py_BuildValue("s",_ptemp);
7062 } else {
7063 Py_INCREF(Py_None);
7064 _resultobj = Py_None;
7065 }
7066 return _resultobj;
7067 }
7068
7069 #define wxDateSpan_GetYears(_swigobj) (_swigobj->GetYears())
7070 static PyObject *_wrap_wxDateSpan_GetYears(PyObject *self, PyObject *args, PyObject *kwargs) {
7071 PyObject * _resultobj;
7072 int _result;
7073 wxDateSpan * _arg0;
7074 PyObject * _argo0 = 0;
7075 char *_kwnames[] = { "self", NULL };
7076
7077 self = self;
7078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDateSpan_GetYears",_kwnames,&_argo0))
7079 return NULL;
7080 if (_argo0) {
7081 if (_argo0 == Py_None) { _arg0 = NULL; }
7082 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateSpan_p")) {
7083 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateSpan_GetYears. Expected _wxDateSpan_p.");
7084 return NULL;
7085 }
7086 }
7087 {
7088 PyThreadState* __tstate = wxPyBeginAllowThreads();
7089 _result = (int )wxDateSpan_GetYears(_arg0);
7090
7091 wxPyEndAllowThreads(__tstate);
7092 if (PyErr_Occurred()) return NULL;
7093 } _resultobj = Py_BuildValue("i",_result);
7094 return _resultobj;
7095 }
7096
7097 #define wxDateSpan_GetMonths(_swigobj) (_swigobj->GetMonths())
7098 static PyObject *_wrap_wxDateSpan_GetMonths(PyObject *self, PyObject *args, PyObject *kwargs) {
7099 PyObject * _resultobj;
7100 int _result;
7101 wxDateSpan * _arg0;
7102 PyObject * _argo0 = 0;
7103 char *_kwnames[] = { "self", NULL };
7104
7105 self = self;
7106 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDateSpan_GetMonths",_kwnames,&_argo0))
7107 return NULL;
7108 if (_argo0) {
7109 if (_argo0 == Py_None) { _arg0 = NULL; }
7110 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateSpan_p")) {
7111 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateSpan_GetMonths. Expected _wxDateSpan_p.");
7112 return NULL;
7113 }
7114 }
7115 {
7116 PyThreadState* __tstate = wxPyBeginAllowThreads();
7117 _result = (int )wxDateSpan_GetMonths(_arg0);
7118
7119 wxPyEndAllowThreads(__tstate);
7120 if (PyErr_Occurred()) return NULL;
7121 } _resultobj = Py_BuildValue("i",_result);
7122 return _resultobj;
7123 }
7124
7125 #define wxDateSpan_GetWeeks(_swigobj) (_swigobj->GetWeeks())
7126 static PyObject *_wrap_wxDateSpan_GetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) {
7127 PyObject * _resultobj;
7128 int _result;
7129 wxDateSpan * _arg0;
7130 PyObject * _argo0 = 0;
7131 char *_kwnames[] = { "self", NULL };
7132
7133 self = self;
7134 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDateSpan_GetWeeks",_kwnames,&_argo0))
7135 return NULL;
7136 if (_argo0) {
7137 if (_argo0 == Py_None) { _arg0 = NULL; }
7138 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateSpan_p")) {
7139 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateSpan_GetWeeks. Expected _wxDateSpan_p.");
7140 return NULL;
7141 }
7142 }
7143 {
7144 PyThreadState* __tstate = wxPyBeginAllowThreads();
7145 _result = (int )wxDateSpan_GetWeeks(_arg0);
7146
7147 wxPyEndAllowThreads(__tstate);
7148 if (PyErr_Occurred()) return NULL;
7149 } _resultobj = Py_BuildValue("i",_result);
7150 return _resultobj;
7151 }
7152
7153 #define wxDateSpan_GetDays(_swigobj) (_swigobj->GetDays())
7154 static PyObject *_wrap_wxDateSpan_GetDays(PyObject *self, PyObject *args, PyObject *kwargs) {
7155 PyObject * _resultobj;
7156 int _result;
7157 wxDateSpan * _arg0;
7158 PyObject * _argo0 = 0;
7159 char *_kwnames[] = { "self", NULL };
7160
7161 self = self;
7162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDateSpan_GetDays",_kwnames,&_argo0))
7163 return NULL;
7164 if (_argo0) {
7165 if (_argo0 == Py_None) { _arg0 = NULL; }
7166 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateSpan_p")) {
7167 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateSpan_GetDays. Expected _wxDateSpan_p.");
7168 return NULL;
7169 }
7170 }
7171 {
7172 PyThreadState* __tstate = wxPyBeginAllowThreads();
7173 _result = (int )wxDateSpan_GetDays(_arg0);
7174
7175 wxPyEndAllowThreads(__tstate);
7176 if (PyErr_Occurred()) return NULL;
7177 } _resultobj = Py_BuildValue("i",_result);
7178 return _resultobj;
7179 }
7180
7181 #define wxDateSpan_GetTotalDays(_swigobj) (_swigobj->GetTotalDays())
7182 static PyObject *_wrap_wxDateSpan_GetTotalDays(PyObject *self, PyObject *args, PyObject *kwargs) {
7183 PyObject * _resultobj;
7184 int _result;
7185 wxDateSpan * _arg0;
7186 PyObject * _argo0 = 0;
7187 char *_kwnames[] = { "self", NULL };
7188
7189 self = self;
7190 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDateSpan_GetTotalDays",_kwnames,&_argo0))
7191 return NULL;
7192 if (_argo0) {
7193 if (_argo0 == Py_None) { _arg0 = NULL; }
7194 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateSpan_p")) {
7195 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateSpan_GetTotalDays. Expected _wxDateSpan_p.");
7196 return NULL;
7197 }
7198 }
7199 {
7200 PyThreadState* __tstate = wxPyBeginAllowThreads();
7201 _result = (int )wxDateSpan_GetTotalDays(_arg0);
7202
7203 wxPyEndAllowThreads(__tstate);
7204 if (PyErr_Occurred()) return NULL;
7205 } _resultobj = Py_BuildValue("i",_result);
7206 return _resultobj;
7207 }
7208
7209 #define wxDateSpan_Add(_swigobj,_swigarg0) (_swigobj->Add(_swigarg0))
7210 static PyObject *_wrap_wxDateSpan_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
7211 PyObject * _resultobj;
7212 wxDateSpan * _result;
7213 wxDateSpan * _arg0;
7214 wxDateSpan * _arg1;
7215 PyObject * _argo0 = 0;
7216 PyObject * _argo1 = 0;
7217 char *_kwnames[] = { "self","other", NULL };
7218 char _ptemp[128];
7219
7220 self = self;
7221 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDateSpan_Add",_kwnames,&_argo0,&_argo1))
7222 return NULL;
7223 if (_argo0) {
7224 if (_argo0 == Py_None) { _arg0 = NULL; }
7225 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateSpan_p")) {
7226 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateSpan_Add. Expected _wxDateSpan_p.");
7227 return NULL;
7228 }
7229 }
7230 if (_argo1) {
7231 if (_argo1 == Py_None) { _arg1 = NULL; }
7232 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDateSpan_p")) {
7233 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDateSpan_Add. Expected _wxDateSpan_p.");
7234 return NULL;
7235 }
7236 }
7237 {
7238 PyThreadState* __tstate = wxPyBeginAllowThreads();
7239 wxDateSpan & _result_ref = wxDateSpan_Add(_arg0,*_arg1);
7240 _result = (wxDateSpan *) &_result_ref;
7241
7242 wxPyEndAllowThreads(__tstate);
7243 if (PyErr_Occurred()) return NULL;
7244 } if (_result) {
7245 SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateSpan_p");
7246 _resultobj = Py_BuildValue("s",_ptemp);
7247 } else {
7248 Py_INCREF(Py_None);
7249 _resultobj = Py_None;
7250 }
7251 return _resultobj;
7252 }
7253
7254 #define wxDateSpan_Subtract(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
7255 static PyObject *_wrap_wxDateSpan_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
7256 PyObject * _resultobj;
7257 wxDateSpan * _result;
7258 wxDateSpan * _arg0;
7259 wxDateSpan * _arg1;
7260 PyObject * _argo0 = 0;
7261 PyObject * _argo1 = 0;
7262 char *_kwnames[] = { "self","other", NULL };
7263 char _ptemp[128];
7264
7265 self = self;
7266 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDateSpan_Subtract",_kwnames,&_argo0,&_argo1))
7267 return NULL;
7268 if (_argo0) {
7269 if (_argo0 == Py_None) { _arg0 = NULL; }
7270 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateSpan_p")) {
7271 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateSpan_Subtract. Expected _wxDateSpan_p.");
7272 return NULL;
7273 }
7274 }
7275 if (_argo1) {
7276 if (_argo1 == Py_None) { _arg1 = NULL; }
7277 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDateSpan_p")) {
7278 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDateSpan_Subtract. Expected _wxDateSpan_p.");
7279 return NULL;
7280 }
7281 }
7282 {
7283 PyThreadState* __tstate = wxPyBeginAllowThreads();
7284 wxDateSpan & _result_ref = wxDateSpan_Subtract(_arg0,*_arg1);
7285 _result = (wxDateSpan *) &_result_ref;
7286
7287 wxPyEndAllowThreads(__tstate);
7288 if (PyErr_Occurred()) return NULL;
7289 } if (_result) {
7290 SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateSpan_p");
7291 _resultobj = Py_BuildValue("s",_ptemp);
7292 } else {
7293 Py_INCREF(Py_None);
7294 _resultobj = Py_None;
7295 }
7296 return _resultobj;
7297 }
7298
7299 #define wxDateSpan_Neg(_swigobj) (_swigobj->Neg())
7300 static PyObject *_wrap_wxDateSpan_Neg(PyObject *self, PyObject *args, PyObject *kwargs) {
7301 PyObject * _resultobj;
7302 wxDateSpan * _result;
7303 wxDateSpan * _arg0;
7304 PyObject * _argo0 = 0;
7305 char *_kwnames[] = { "self", NULL };
7306 char _ptemp[128];
7307
7308 self = self;
7309 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDateSpan_Neg",_kwnames,&_argo0))
7310 return NULL;
7311 if (_argo0) {
7312 if (_argo0 == Py_None) { _arg0 = NULL; }
7313 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateSpan_p")) {
7314 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateSpan_Neg. Expected _wxDateSpan_p.");
7315 return NULL;
7316 }
7317 }
7318 {
7319 PyThreadState* __tstate = wxPyBeginAllowThreads();
7320 wxDateSpan & _result_ref = wxDateSpan_Neg(_arg0);
7321 _result = (wxDateSpan *) &_result_ref;
7322
7323 wxPyEndAllowThreads(__tstate);
7324 if (PyErr_Occurred()) return NULL;
7325 } if (_result) {
7326 SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateSpan_p");
7327 _resultobj = Py_BuildValue("s",_ptemp);
7328 } else {
7329 Py_INCREF(Py_None);
7330 _resultobj = Py_None;
7331 }
7332 return _resultobj;
7333 }
7334
7335 #define wxDateSpan_Multiply(_swigobj,_swigarg0) (_swigobj->Multiply(_swigarg0))
7336 static PyObject *_wrap_wxDateSpan_Multiply(PyObject *self, PyObject *args, PyObject *kwargs) {
7337 PyObject * _resultobj;
7338 wxDateSpan * _result;
7339 wxDateSpan * _arg0;
7340 int _arg1;
7341 PyObject * _argo0 = 0;
7342 char *_kwnames[] = { "self","factor", NULL };
7343 char _ptemp[128];
7344
7345 self = self;
7346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDateSpan_Multiply",_kwnames,&_argo0,&_arg1))
7347 return NULL;
7348 if (_argo0) {
7349 if (_argo0 == Py_None) { _arg0 = NULL; }
7350 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateSpan_p")) {
7351 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateSpan_Multiply. Expected _wxDateSpan_p.");
7352 return NULL;
7353 }
7354 }
7355 {
7356 PyThreadState* __tstate = wxPyBeginAllowThreads();
7357 wxDateSpan & _result_ref = wxDateSpan_Multiply(_arg0,_arg1);
7358 _result = (wxDateSpan *) &_result_ref;
7359
7360 wxPyEndAllowThreads(__tstate);
7361 if (PyErr_Occurred()) return NULL;
7362 } if (_result) {
7363 SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateSpan_p");
7364 _resultobj = Py_BuildValue("s",_ptemp);
7365 } else {
7366 Py_INCREF(Py_None);
7367 _resultobj = Py_None;
7368 }
7369 return _resultobj;
7370 }
7371
7372 static wxDateSpan wxDateSpan___add__(wxDateSpan *self,const wxDateSpan & other) { return *self + other; }
7373 static PyObject *_wrap_wxDateSpan___add__(PyObject *self, PyObject *args, PyObject *kwargs) {
7374 PyObject * _resultobj;
7375 wxDateSpan * _result;
7376 wxDateSpan * _arg0;
7377 wxDateSpan * _arg1;
7378 PyObject * _argo0 = 0;
7379 PyObject * _argo1 = 0;
7380 char *_kwnames[] = { "self","other", NULL };
7381 char _ptemp[128];
7382
7383 self = self;
7384 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDateSpan___add__",_kwnames,&_argo0,&_argo1))
7385 return NULL;
7386 if (_argo0) {
7387 if (_argo0 == Py_None) { _arg0 = NULL; }
7388 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateSpan_p")) {
7389 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateSpan___add__. Expected _wxDateSpan_p.");
7390 return NULL;
7391 }
7392 }
7393 if (_argo1) {
7394 if (_argo1 == Py_None) { _arg1 = NULL; }
7395 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDateSpan_p")) {
7396 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDateSpan___add__. Expected _wxDateSpan_p.");
7397 return NULL;
7398 }
7399 }
7400 {
7401 PyThreadState* __tstate = wxPyBeginAllowThreads();
7402 _result = new wxDateSpan (wxDateSpan___add__(_arg0,*_arg1));
7403
7404 wxPyEndAllowThreads(__tstate);
7405 if (PyErr_Occurred()) return NULL;
7406 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxDateSpan_p");
7407 _resultobj = Py_BuildValue("s",_ptemp);
7408 return _resultobj;
7409 }
7410
7411 static wxDateSpan wxDateSpan___sub__(wxDateSpan *self,const wxDateSpan & other) { return *self - other; }
7412 static PyObject *_wrap_wxDateSpan___sub__(PyObject *self, PyObject *args, PyObject *kwargs) {
7413 PyObject * _resultobj;
7414 wxDateSpan * _result;
7415 wxDateSpan * _arg0;
7416 wxDateSpan * _arg1;
7417 PyObject * _argo0 = 0;
7418 PyObject * _argo1 = 0;
7419 char *_kwnames[] = { "self","other", NULL };
7420 char _ptemp[128];
7421
7422 self = self;
7423 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDateSpan___sub__",_kwnames,&_argo0,&_argo1))
7424 return NULL;
7425 if (_argo0) {
7426 if (_argo0 == Py_None) { _arg0 = NULL; }
7427 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateSpan_p")) {
7428 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateSpan___sub__. Expected _wxDateSpan_p.");
7429 return NULL;
7430 }
7431 }
7432 if (_argo1) {
7433 if (_argo1 == Py_None) { _arg1 = NULL; }
7434 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDateSpan_p")) {
7435 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDateSpan___sub__. Expected _wxDateSpan_p.");
7436 return NULL;
7437 }
7438 }
7439 {
7440 PyThreadState* __tstate = wxPyBeginAllowThreads();
7441 _result = new wxDateSpan (wxDateSpan___sub__(_arg0,*_arg1));
7442
7443 wxPyEndAllowThreads(__tstate);
7444 if (PyErr_Occurred()) return NULL;
7445 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxDateSpan_p");
7446 _resultobj = Py_BuildValue("s",_ptemp);
7447 return _resultobj;
7448 }
7449
7450 static wxDateSpan wxDateSpan___mul__(wxDateSpan *self,int n) { return *self * n; }
7451 static PyObject *_wrap_wxDateSpan___mul__(PyObject *self, PyObject *args, PyObject *kwargs) {
7452 PyObject * _resultobj;
7453 wxDateSpan * _result;
7454 wxDateSpan * _arg0;
7455 int _arg1;
7456 PyObject * _argo0 = 0;
7457 char *_kwnames[] = { "self","n", NULL };
7458 char _ptemp[128];
7459
7460 self = self;
7461 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDateSpan___mul__",_kwnames,&_argo0,&_arg1))
7462 return NULL;
7463 if (_argo0) {
7464 if (_argo0 == Py_None) { _arg0 = NULL; }
7465 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateSpan_p")) {
7466 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateSpan___mul__. Expected _wxDateSpan_p.");
7467 return NULL;
7468 }
7469 }
7470 {
7471 PyThreadState* __tstate = wxPyBeginAllowThreads();
7472 _result = new wxDateSpan (wxDateSpan___mul__(_arg0,_arg1));
7473
7474 wxPyEndAllowThreads(__tstate);
7475 if (PyErr_Occurred()) return NULL;
7476 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxDateSpan_p");
7477 _resultobj = Py_BuildValue("s",_ptemp);
7478 return _resultobj;
7479 }
7480
7481 static wxDateSpan wxDateSpan___rmul__(wxDateSpan *self,int n) { return n * *self; }
7482 static PyObject *_wrap_wxDateSpan___rmul__(PyObject *self, PyObject *args, PyObject *kwargs) {
7483 PyObject * _resultobj;
7484 wxDateSpan * _result;
7485 wxDateSpan * _arg0;
7486 int _arg1;
7487 PyObject * _argo0 = 0;
7488 char *_kwnames[] = { "self","n", NULL };
7489 char _ptemp[128];
7490
7491 self = self;
7492 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDateSpan___rmul__",_kwnames,&_argo0,&_arg1))
7493 return NULL;
7494 if (_argo0) {
7495 if (_argo0 == Py_None) { _arg0 = NULL; }
7496 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateSpan_p")) {
7497 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateSpan___rmul__. Expected _wxDateSpan_p.");
7498 return NULL;
7499 }
7500 }
7501 {
7502 PyThreadState* __tstate = wxPyBeginAllowThreads();
7503 _result = new wxDateSpan (wxDateSpan___rmul__(_arg0,_arg1));
7504
7505 wxPyEndAllowThreads(__tstate);
7506 if (PyErr_Occurred()) return NULL;
7507 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxDateSpan_p");
7508 _resultobj = Py_BuildValue("s",_ptemp);
7509 return _resultobj;
7510 }
7511
7512 static wxDateSpan wxDateSpan___neg__(wxDateSpan *self) { return self->Negate(); }
7513 static PyObject *_wrap_wxDateSpan___neg__(PyObject *self, PyObject *args, PyObject *kwargs) {
7514 PyObject * _resultobj;
7515 wxDateSpan * _result;
7516 wxDateSpan * _arg0;
7517 PyObject * _argo0 = 0;
7518 char *_kwnames[] = { "self", NULL };
7519 char _ptemp[128];
7520
7521 self = self;
7522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDateSpan___neg__",_kwnames,&_argo0))
7523 return NULL;
7524 if (_argo0) {
7525 if (_argo0 == Py_None) { _arg0 = NULL; }
7526 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateSpan_p")) {
7527 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateSpan___neg__. Expected _wxDateSpan_p.");
7528 return NULL;
7529 }
7530 }
7531 {
7532 PyThreadState* __tstate = wxPyBeginAllowThreads();
7533 _result = new wxDateSpan (wxDateSpan___neg__(_arg0));
7534
7535 wxPyEndAllowThreads(__tstate);
7536 if (PyErr_Occurred()) return NULL;
7537 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxDateSpan_p");
7538 _resultobj = Py_BuildValue("s",_ptemp);
7539 return _resultobj;
7540 }
7541
7542 static PyMethodDef utilscMethods[] = {
7543 { "wxDateSpan___neg__", (PyCFunction) _wrap_wxDateSpan___neg__, METH_VARARGS | METH_KEYWORDS },
7544 { "wxDateSpan___rmul__", (PyCFunction) _wrap_wxDateSpan___rmul__, METH_VARARGS | METH_KEYWORDS },
7545 { "wxDateSpan___mul__", (PyCFunction) _wrap_wxDateSpan___mul__, METH_VARARGS | METH_KEYWORDS },
7546 { "wxDateSpan___sub__", (PyCFunction) _wrap_wxDateSpan___sub__, METH_VARARGS | METH_KEYWORDS },
7547 { "wxDateSpan___add__", (PyCFunction) _wrap_wxDateSpan___add__, METH_VARARGS | METH_KEYWORDS },
7548 { "wxDateSpan_Multiply", (PyCFunction) _wrap_wxDateSpan_Multiply, METH_VARARGS | METH_KEYWORDS },
7549 { "wxDateSpan_Neg", (PyCFunction) _wrap_wxDateSpan_Neg, METH_VARARGS | METH_KEYWORDS },
7550 { "wxDateSpan_Subtract", (PyCFunction) _wrap_wxDateSpan_Subtract, METH_VARARGS | METH_KEYWORDS },
7551 { "wxDateSpan_Add", (PyCFunction) _wrap_wxDateSpan_Add, METH_VARARGS | METH_KEYWORDS },
7552 { "wxDateSpan_GetTotalDays", (PyCFunction) _wrap_wxDateSpan_GetTotalDays, METH_VARARGS | METH_KEYWORDS },
7553 { "wxDateSpan_GetDays", (PyCFunction) _wrap_wxDateSpan_GetDays, METH_VARARGS | METH_KEYWORDS },
7554 { "wxDateSpan_GetWeeks", (PyCFunction) _wrap_wxDateSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS },
7555 { "wxDateSpan_GetMonths", (PyCFunction) _wrap_wxDateSpan_GetMonths, METH_VARARGS | METH_KEYWORDS },
7556 { "wxDateSpan_GetYears", (PyCFunction) _wrap_wxDateSpan_GetYears, METH_VARARGS | METH_KEYWORDS },
7557 { "wxDateSpan_SetDays", (PyCFunction) _wrap_wxDateSpan_SetDays, METH_VARARGS | METH_KEYWORDS },
7558 { "wxDateSpan_SetWeeks", (PyCFunction) _wrap_wxDateSpan_SetWeeks, METH_VARARGS | METH_KEYWORDS },
7559 { "wxDateSpan_SetMonths", (PyCFunction) _wrap_wxDateSpan_SetMonths, METH_VARARGS | METH_KEYWORDS },
7560 { "wxDateSpan_SetYears", (PyCFunction) _wrap_wxDateSpan_SetYears, METH_VARARGS | METH_KEYWORDS },
7561 { "wxDateSpan_Year", (PyCFunction) _wrap_wxDateSpan_Year, METH_VARARGS | METH_KEYWORDS },
7562 { "wxDateSpan_Years", (PyCFunction) _wrap_wxDateSpan_Years, METH_VARARGS | METH_KEYWORDS },
7563 { "wxDateSpan_Month", (PyCFunction) _wrap_wxDateSpan_Month, METH_VARARGS | METH_KEYWORDS },
7564 { "wxDateSpan_Months", (PyCFunction) _wrap_wxDateSpan_Months, METH_VARARGS | METH_KEYWORDS },
7565 { "wxDateSpan_Week", (PyCFunction) _wrap_wxDateSpan_Week, METH_VARARGS | METH_KEYWORDS },
7566 { "wxDateSpan_Weeks", (PyCFunction) _wrap_wxDateSpan_Weeks, METH_VARARGS | METH_KEYWORDS },
7567 { "wxDateSpan_Day", (PyCFunction) _wrap_wxDateSpan_Day, METH_VARARGS | METH_KEYWORDS },
7568 { "wxDateSpan_Days", (PyCFunction) _wrap_wxDateSpan_Days, METH_VARARGS | METH_KEYWORDS },
7569 { "delete_wxDateSpan", (PyCFunction) _wrap_delete_wxDateSpan, METH_VARARGS | METH_KEYWORDS },
7570 { "new_wxDateSpan", (PyCFunction) _wrap_new_wxDateSpan, METH_VARARGS | METH_KEYWORDS },
7571 { "wxTimeSpan_Format", (PyCFunction) _wrap_wxTimeSpan_Format, METH_VARARGS | METH_KEYWORDS },
7572 { "wxTimeSpan_GetMilliseconds", (PyCFunction) _wrap_wxTimeSpan_GetMilliseconds, METH_VARARGS | METH_KEYWORDS },
7573 { "wxTimeSpan_GetSeconds", (PyCFunction) _wrap_wxTimeSpan_GetSeconds, METH_VARARGS | METH_KEYWORDS },
7574 { "wxTimeSpan_GetMinutes", (PyCFunction) _wrap_wxTimeSpan_GetMinutes, METH_VARARGS | METH_KEYWORDS },
7575 { "wxTimeSpan_GetHours", (PyCFunction) _wrap_wxTimeSpan_GetHours, METH_VARARGS | METH_KEYWORDS },
7576 { "wxTimeSpan_GetDays", (PyCFunction) _wrap_wxTimeSpan_GetDays, METH_VARARGS | METH_KEYWORDS },
7577 { "wxTimeSpan_GetWeeks", (PyCFunction) _wrap_wxTimeSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS },
7578 { "wxTimeSpan_IsShorterThan", (PyCFunction) _wrap_wxTimeSpan_IsShorterThan, METH_VARARGS | METH_KEYWORDS },
7579 { "wxTimeSpan_IsLongerThan", (PyCFunction) _wrap_wxTimeSpan_IsLongerThan, METH_VARARGS | METH_KEYWORDS },
7580 { "wxTimeSpan_IsEqualTo", (PyCFunction) _wrap_wxTimeSpan_IsEqualTo, METH_VARARGS | METH_KEYWORDS },
7581 { "wxTimeSpan_IsNegative", (PyCFunction) _wrap_wxTimeSpan_IsNegative, METH_VARARGS | METH_KEYWORDS },
7582 { "wxTimeSpan_IsPositive", (PyCFunction) _wrap_wxTimeSpan_IsPositive, METH_VARARGS | METH_KEYWORDS },
7583 { "wxTimeSpan_IsNull", (PyCFunction) _wrap_wxTimeSpan_IsNull, METH_VARARGS | METH_KEYWORDS },
7584 { "wxTimeSpan___cmp__", (PyCFunction) _wrap_wxTimeSpan___cmp__, METH_VARARGS | METH_KEYWORDS },
7585 { "wxTimeSpan___neg__", (PyCFunction) _wrap_wxTimeSpan___neg__, METH_VARARGS | METH_KEYWORDS },
7586 { "wxTimeSpan___rmul__", (PyCFunction) _wrap_wxTimeSpan___rmul__, METH_VARARGS | METH_KEYWORDS },
7587 { "wxTimeSpan___mul__", (PyCFunction) _wrap_wxTimeSpan___mul__, METH_VARARGS | METH_KEYWORDS },
7588 { "wxTimeSpan___sub__", (PyCFunction) _wrap_wxTimeSpan___sub__, METH_VARARGS | METH_KEYWORDS },
7589 { "wxTimeSpan___add__", (PyCFunction) _wrap_wxTimeSpan___add__, METH_VARARGS | METH_KEYWORDS },
7590 { "wxTimeSpan_Abs", (PyCFunction) _wrap_wxTimeSpan_Abs, METH_VARARGS | METH_KEYWORDS },
7591 { "wxTimeSpan_Neg", (PyCFunction) _wrap_wxTimeSpan_Neg, METH_VARARGS | METH_KEYWORDS },
7592 { "wxTimeSpan_Multiply", (PyCFunction) _wrap_wxTimeSpan_Multiply, METH_VARARGS | METH_KEYWORDS },
7593 { "wxTimeSpan_Subtract", (PyCFunction) _wrap_wxTimeSpan_Subtract, METH_VARARGS | METH_KEYWORDS },
7594 { "wxTimeSpan_Add", (PyCFunction) _wrap_wxTimeSpan_Add, METH_VARARGS | METH_KEYWORDS },
7595 { "delete_wxTimeSpan", (PyCFunction) _wrap_delete_wxTimeSpan, METH_VARARGS | METH_KEYWORDS },
7596 { "new_wxTimeSpan", (PyCFunction) _wrap_new_wxTimeSpan, METH_VARARGS | METH_KEYWORDS },
7597 { "wxTimeSpan_Week", (PyCFunction) _wrap_wxTimeSpan_Week, METH_VARARGS | METH_KEYWORDS },
7598 { "wxTimeSpan_Weeks", (PyCFunction) _wrap_wxTimeSpan_Weeks, METH_VARARGS | METH_KEYWORDS },
7599 { "wxTimeSpan_Day", (PyCFunction) _wrap_wxTimeSpan_Day, METH_VARARGS | METH_KEYWORDS },
7600 { "wxTimeSpan_Days", (PyCFunction) _wrap_wxTimeSpan_Days, METH_VARARGS | METH_KEYWORDS },
7601 { "wxTimeSpan_Hour", (PyCFunction) _wrap_wxTimeSpan_Hour, METH_VARARGS | METH_KEYWORDS },
7602 { "wxTimeSpan_Hours", (PyCFunction) _wrap_wxTimeSpan_Hours, METH_VARARGS | METH_KEYWORDS },
7603 { "wxTimeSpan_Minute", (PyCFunction) _wrap_wxTimeSpan_Minute, METH_VARARGS | METH_KEYWORDS },
7604 { "wxTimeSpan_Minutes", (PyCFunction) _wrap_wxTimeSpan_Minutes, METH_VARARGS | METH_KEYWORDS },
7605 { "wxTimeSpan_Second", (PyCFunction) _wrap_wxTimeSpan_Second, METH_VARARGS | METH_KEYWORDS },
7606 { "wxTimeSpan_Seconds", (PyCFunction) _wrap_wxTimeSpan_Seconds, METH_VARARGS | METH_KEYWORDS },
7607 { "wxDateTime_FormatISOTime", (PyCFunction) _wrap_wxDateTime_FormatISOTime, METH_VARARGS | METH_KEYWORDS },
7608 { "wxDateTime_FormatISODate", (PyCFunction) _wrap_wxDateTime_FormatISODate, METH_VARARGS | METH_KEYWORDS },
7609 { "wxDateTime_FormatTime", (PyCFunction) _wrap_wxDateTime_FormatTime, METH_VARARGS | METH_KEYWORDS },
7610 { "wxDateTime_FormatDate", (PyCFunction) _wrap_wxDateTime_FormatDate, METH_VARARGS | METH_KEYWORDS },
7611 { "wxDateTime_Format", (PyCFunction) _wrap_wxDateTime_Format, METH_VARARGS | METH_KEYWORDS },
7612 { "wxDateTime_ParseTime", (PyCFunction) _wrap_wxDateTime_ParseTime, METH_VARARGS | METH_KEYWORDS },
7613 { "wxDateTime_ParseDate", (PyCFunction) _wrap_wxDateTime_ParseDate, METH_VARARGS | METH_KEYWORDS },
7614 { "wxDateTime_ParseDateTime", (PyCFunction) _wrap_wxDateTime_ParseDateTime, METH_VARARGS | METH_KEYWORDS },
7615 { "wxDateTime_ParseFormat", (PyCFunction) _wrap_wxDateTime_ParseFormat, METH_VARARGS | METH_KEYWORDS },
7616 { "wxDateTime_ParseRfc822Date", (PyCFunction) _wrap_wxDateTime_ParseRfc822Date, METH_VARARGS | METH_KEYWORDS },
7617 { "wxDateTime___cmp__", (PyCFunction) _wrap_wxDateTime___cmp__, METH_VARARGS | METH_KEYWORDS },
7618 { "wxDateTime___sub__DS", (PyCFunction) _wrap_wxDateTime___sub__DS, METH_VARARGS | METH_KEYWORDS },
7619 { "wxDateTime___sub__TS", (PyCFunction) _wrap_wxDateTime___sub__TS, METH_VARARGS | METH_KEYWORDS },
7620 { "wxDateTime___sub__DT", (PyCFunction) _wrap_wxDateTime___sub__DT, METH_VARARGS | METH_KEYWORDS },
7621 { "wxDateTime___add__DS", (PyCFunction) _wrap_wxDateTime___add__DS, METH_VARARGS | METH_KEYWORDS },
7622 { "wxDateTime___add__TS", (PyCFunction) _wrap_wxDateTime___add__TS, METH_VARARGS | METH_KEYWORDS },
7623 { "wxDateTime_Subtract", (PyCFunction) _wrap_wxDateTime_Subtract, METH_VARARGS | METH_KEYWORDS },
7624 { "wxDateTime_SubtractDS", (PyCFunction) _wrap_wxDateTime_SubtractDS, METH_VARARGS | METH_KEYWORDS },
7625 { "wxDateTime_SubtractTS", (PyCFunction) _wrap_wxDateTime_SubtractTS, METH_VARARGS | METH_KEYWORDS },
7626 { "wxDateTime_AddDS", (PyCFunction) _wrap_wxDateTime_AddDS, METH_VARARGS | METH_KEYWORDS },
7627 { "wxDateTime_AddTS", (PyCFunction) _wrap_wxDateTime_AddTS, METH_VARARGS | METH_KEYWORDS },
7628 { "wxDateTime_IsEqualUpTo", (PyCFunction) _wrap_wxDateTime_IsEqualUpTo, METH_VARARGS | METH_KEYWORDS },
7629 { "wxDateTime_IsSameTime", (PyCFunction) _wrap_wxDateTime_IsSameTime, METH_VARARGS | METH_KEYWORDS },
7630 { "wxDateTime_IsSameDate", (PyCFunction) _wrap_wxDateTime_IsSameDate, METH_VARARGS | METH_KEYWORDS },
7631 { "wxDateTime_IsBetween", (PyCFunction) _wrap_wxDateTime_IsBetween, METH_VARARGS | METH_KEYWORDS },
7632 { "wxDateTime_IsStrictlyBetween", (PyCFunction) _wrap_wxDateTime_IsStrictlyBetween, METH_VARARGS | METH_KEYWORDS },
7633 { "wxDateTime_IsLaterThan", (PyCFunction) _wrap_wxDateTime_IsLaterThan, METH_VARARGS | METH_KEYWORDS },
7634 { "wxDateTime_IsEarlierThan", (PyCFunction) _wrap_wxDateTime_IsEarlierThan, METH_VARARGS | METH_KEYWORDS },
7635 { "wxDateTime_IsEqualTo", (PyCFunction) _wrap_wxDateTime_IsEqualTo, METH_VARARGS | METH_KEYWORDS },
7636 { "wxDateTime_IsWorkDay", (PyCFunction) _wrap_wxDateTime_IsWorkDay, METH_VARARGS | METH_KEYWORDS },
7637 { "wxDateTime_GetWeekOfMonth", (PyCFunction) _wrap_wxDateTime_GetWeekOfMonth, METH_VARARGS | METH_KEYWORDS },
7638 { "wxDateTime_GetWeekOfYear", (PyCFunction) _wrap_wxDateTime_GetWeekOfYear, METH_VARARGS | METH_KEYWORDS },
7639 { "wxDateTime_GetDayOfYear", (PyCFunction) _wrap_wxDateTime_GetDayOfYear, METH_VARARGS | METH_KEYWORDS },
7640 { "wxDateTime_GetMillisecond", (PyCFunction) _wrap_wxDateTime_GetMillisecond, METH_VARARGS | METH_KEYWORDS },
7641 { "wxDateTime_GetSecond", (PyCFunction) _wrap_wxDateTime_GetSecond, METH_VARARGS | METH_KEYWORDS },
7642 { "wxDateTime_GetMinute", (PyCFunction) _wrap_wxDateTime_GetMinute, METH_VARARGS | METH_KEYWORDS },
7643 { "wxDateTime_GetHour", (PyCFunction) _wrap_wxDateTime_GetHour, METH_VARARGS | METH_KEYWORDS },
7644 { "wxDateTime_GetWeekDay", (PyCFunction) _wrap_wxDateTime_GetWeekDay, METH_VARARGS | METH_KEYWORDS },
7645 { "wxDateTime_GetDay", (PyCFunction) _wrap_wxDateTime_GetDay, METH_VARARGS | METH_KEYWORDS },
7646 { "wxDateTime_GetMonth", (PyCFunction) _wrap_wxDateTime_GetMonth, METH_VARARGS | METH_KEYWORDS },
7647 { "wxDateTime_GetYear", (PyCFunction) _wrap_wxDateTime_GetYear, METH_VARARGS | METH_KEYWORDS },
7648 { "wxDateTime_GetTicks", (PyCFunction) _wrap_wxDateTime_GetTicks, METH_VARARGS | METH_KEYWORDS },
7649 { "wxDateTime_IsValid", (PyCFunction) _wrap_wxDateTime_IsValid, METH_VARARGS | METH_KEYWORDS },
7650 { "wxDateTime_IsDST", (PyCFunction) _wrap_wxDateTime_IsDST, METH_VARARGS | METH_KEYWORDS },
7651 { "wxDateTime_MakeGMT", (PyCFunction) _wrap_wxDateTime_MakeGMT, METH_VARARGS | METH_KEYWORDS },
7652 { "wxDateTime_ToGMT", (PyCFunction) _wrap_wxDateTime_ToGMT, METH_VARARGS | METH_KEYWORDS },
7653 { "wxDateTime_MakeTimezone", (PyCFunction) _wrap_wxDateTime_MakeTimezone, METH_VARARGS | METH_KEYWORDS },
7654 { "wxDateTime_ToTimezone", (PyCFunction) _wrap_wxDateTime_ToTimezone, METH_VARARGS | METH_KEYWORDS },
7655 { "wxDateTime_GetRataDie", (PyCFunction) _wrap_wxDateTime_GetRataDie, METH_VARARGS | METH_KEYWORDS },
7656 { "wxDateTime_GetMJD", (PyCFunction) _wrap_wxDateTime_GetMJD, METH_VARARGS | METH_KEYWORDS },
7657 { "wxDateTime_GetModifiedJulianDayNumber", (PyCFunction) _wrap_wxDateTime_GetModifiedJulianDayNumber, METH_VARARGS | METH_KEYWORDS },
7658 { "wxDateTime_GetJDN", (PyCFunction) _wrap_wxDateTime_GetJDN, METH_VARARGS | METH_KEYWORDS },
7659 { "wxDateTime_GetJulianDayNumber", (PyCFunction) _wrap_wxDateTime_GetJulianDayNumber, METH_VARARGS | METH_KEYWORDS },
7660 { "wxDateTime_GetYearDay", (PyCFunction) _wrap_wxDateTime_GetYearDay, METH_VARARGS | METH_KEYWORDS },
7661 { "wxDateTime_SetToYearDay", (PyCFunction) _wrap_wxDateTime_SetToYearDay, METH_VARARGS | METH_KEYWORDS },
7662 { "wxDateTime_GetLastMonthDay", (PyCFunction) _wrap_wxDateTime_GetLastMonthDay, METH_VARARGS | METH_KEYWORDS },
7663 { "wxDateTime_SetToLastMonthDay", (PyCFunction) _wrap_wxDateTime_SetToLastMonthDay, METH_VARARGS | METH_KEYWORDS },
7664 { "wxDateTime_GetWeek", (PyCFunction) _wrap_wxDateTime_GetWeek, METH_VARARGS | METH_KEYWORDS },
7665 { "wxDateTime_SetToTheWeek", (PyCFunction) _wrap_wxDateTime_SetToTheWeek, METH_VARARGS | METH_KEYWORDS },
7666 { "wxDateTime_GetLastWeekDay", (PyCFunction) _wrap_wxDateTime_GetLastWeekDay, METH_VARARGS | METH_KEYWORDS },
7667 { "wxDateTime_SetToLastWeekDay", (PyCFunction) _wrap_wxDateTime_SetToLastWeekDay, METH_VARARGS | METH_KEYWORDS },
7668 { "wxDateTime_SetToWeekDay", (PyCFunction) _wrap_wxDateTime_SetToWeekDay, METH_VARARGS | METH_KEYWORDS },
7669 { "wxDateTime_GetPrevWeekDay", (PyCFunction) _wrap_wxDateTime_GetPrevWeekDay, METH_VARARGS | METH_KEYWORDS },
7670 { "wxDateTime_SetToPrevWeekDay", (PyCFunction) _wrap_wxDateTime_SetToPrevWeekDay, METH_VARARGS | METH_KEYWORDS },
7671 { "wxDateTime_GetNextWeekDay", (PyCFunction) _wrap_wxDateTime_GetNextWeekDay, METH_VARARGS | METH_KEYWORDS },
7672 { "wxDateTime_SetToNextWeekDay", (PyCFunction) _wrap_wxDateTime_SetToNextWeekDay, METH_VARARGS | METH_KEYWORDS },
7673 { "wxDateTime_GetWeekDayInSameWeek", (PyCFunction) _wrap_wxDateTime_GetWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS },
7674 { "wxDateTime_SetToWeekDayInSameWeek", (PyCFunction) _wrap_wxDateTime_SetToWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS },
7675 { "wxDateTime_SetMillisecond", (PyCFunction) _wrap_wxDateTime_SetMillisecond, METH_VARARGS | METH_KEYWORDS },
7676 { "wxDateTime_SetSecond", (PyCFunction) _wrap_wxDateTime_SetSecond, METH_VARARGS | METH_KEYWORDS },
7677 { "wxDateTime_SetMinute", (PyCFunction) _wrap_wxDateTime_SetMinute, METH_VARARGS | METH_KEYWORDS },
7678 { "wxDateTime_SetHour", (PyCFunction) _wrap_wxDateTime_SetHour, METH_VARARGS | METH_KEYWORDS },
7679 { "wxDateTime_SetDay", (PyCFunction) _wrap_wxDateTime_SetDay, METH_VARARGS | METH_KEYWORDS },
7680 { "wxDateTime_SetMonth", (PyCFunction) _wrap_wxDateTime_SetMonth, METH_VARARGS | METH_KEYWORDS },
7681 { "wxDateTime_SetYear", (PyCFunction) _wrap_wxDateTime_SetYear, METH_VARARGS | METH_KEYWORDS },
7682 { "wxDateTime_ResetTime", (PyCFunction) _wrap_wxDateTime_ResetTime, METH_VARARGS | METH_KEYWORDS },
7683 { "wxDateTime_Set", (PyCFunction) _wrap_wxDateTime_Set, METH_VARARGS | METH_KEYWORDS },
7684 { "wxDateTime_SetHMS", (PyCFunction) _wrap_wxDateTime_SetHMS, METH_VARARGS | METH_KEYWORDS },
7685 { "wxDateTime_SetJDN", (PyCFunction) _wrap_wxDateTime_SetJDN, METH_VARARGS | METH_KEYWORDS },
7686 { "wxDateTime_SetTimeT", (PyCFunction) _wrap_wxDateTime_SetTimeT, METH_VARARGS | METH_KEYWORDS },
7687 { "wxDateTime_SetToCurrent", (PyCFunction) _wrap_wxDateTime_SetToCurrent, METH_VARARGS | METH_KEYWORDS },
7688 { "delete_wxDateTime", (PyCFunction) _wrap_delete_wxDateTime, METH_VARARGS | METH_KEYWORDS },
7689 { "new_wxDateTimeFromDMY", (PyCFunction) _wrap_new_wxDateTimeFromDMY, METH_VARARGS | METH_KEYWORDS },
7690 { "new_wxDateTimeFromHMS", (PyCFunction) _wrap_new_wxDateTimeFromHMS, METH_VARARGS | METH_KEYWORDS },
7691 { "new_wxDateTimeFromJDN", (PyCFunction) _wrap_new_wxDateTimeFromJDN, METH_VARARGS | METH_KEYWORDS },
7692 { "new_wxDateTimeFromTimeT", (PyCFunction) _wrap_new_wxDateTimeFromTimeT, METH_VARARGS | METH_KEYWORDS },
7693 { "new_wxDateTime", (PyCFunction) _wrap_new_wxDateTime, METH_VARARGS | METH_KEYWORDS },
7694 { "wxDateTime_Today", (PyCFunction) _wrap_wxDateTime_Today, METH_VARARGS | METH_KEYWORDS },
7695 { "wxDateTime_Now", (PyCFunction) _wrap_wxDateTime_Now, METH_VARARGS | METH_KEYWORDS },
7696 { "wxDateTime_GetEndDST", (PyCFunction) _wrap_wxDateTime_GetEndDST, METH_VARARGS | METH_KEYWORDS },
7697 { "wxDateTime_GetBeginDST", (PyCFunction) _wrap_wxDateTime_GetBeginDST, METH_VARARGS | METH_KEYWORDS },
7698 { "wxDateTime_IsDSTApplicable", (PyCFunction) _wrap_wxDateTime_IsDSTApplicable, METH_VARARGS | METH_KEYWORDS },
7699 { "wxDateTime_GetAmPmStrings", (PyCFunction) _wrap_wxDateTime_GetAmPmStrings, METH_VARARGS | METH_KEYWORDS },
7700 { "wxDateTime_GetWeekDayName", (PyCFunction) _wrap_wxDateTime_GetWeekDayName, METH_VARARGS | METH_KEYWORDS },
7701 { "wxDateTime_GetMonthName", (PyCFunction) _wrap_wxDateTime_GetMonthName, METH_VARARGS | METH_KEYWORDS },
7702 { "wxDateTime_GetNumberOfDaysInMonth", (PyCFunction) _wrap_wxDateTime_GetNumberOfDaysInMonth, METH_VARARGS | METH_KEYWORDS },
7703 { "wxDateTime_GetNumberOfDaysinYear", (PyCFunction) _wrap_wxDateTime_GetNumberOfDaysinYear, METH_VARARGS | METH_KEYWORDS },
7704 { "wxDateTime_GetCentury", (PyCFunction) _wrap_wxDateTime_GetCentury, METH_VARARGS | METH_KEYWORDS },
7705 { "wxDateTime_IsLeapYear", (PyCFunction) _wrap_wxDateTime_IsLeapYear, METH_VARARGS | METH_KEYWORDS },
7706 { "wxDateTime_GetCurrentMonth", (PyCFunction) _wrap_wxDateTime_GetCurrentMonth, METH_VARARGS | METH_KEYWORDS },
7707 { "wxDateTime_ConvertYearToBC", (PyCFunction) _wrap_wxDateTime_ConvertYearToBC, METH_VARARGS | METH_KEYWORDS },
7708 { "wxDateTime_GetCurrentYear", (PyCFunction) _wrap_wxDateTime_GetCurrentYear, METH_VARARGS | METH_KEYWORDS },
7709 { "wxDateTime_IsWestEuropeanCountry", (PyCFunction) _wrap_wxDateTime_IsWestEuropeanCountry, METH_VARARGS | METH_KEYWORDS },
7710 { "wxDateTime_GetCountry", (PyCFunction) _wrap_wxDateTime_GetCountry, METH_VARARGS | METH_KEYWORDS },
7711 { "wxDateTime_SetCountry", (PyCFunction) _wrap_wxDateTime_SetCountry, METH_VARARGS | METH_KEYWORDS },
7712 { "delete_wxFileConfig", (PyCFunction) _wrap_delete_wxFileConfig, METH_VARARGS | METH_KEYWORDS },
7713 { "new_wxFileConfig", (PyCFunction) _wrap_new_wxFileConfig, METH_VARARGS | METH_KEYWORDS },
7714 { "delete_wxConfig", (PyCFunction) _wrap_delete_wxConfig, METH_VARARGS | METH_KEYWORDS },
7715 { "new_wxConfig", (PyCFunction) _wrap_new_wxConfig, METH_VARARGS | METH_KEYWORDS },
7716 { "wxConfigBase_ExpandEnvVars", (PyCFunction) _wrap_wxConfigBase_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS },
7717 { "wxConfigBase_RenameGroup", (PyCFunction) _wrap_wxConfigBase_RenameGroup, METH_VARARGS | METH_KEYWORDS },
7718 { "wxConfigBase_RenameEntry", (PyCFunction) _wrap_wxConfigBase_RenameEntry, METH_VARARGS | METH_KEYWORDS },
7719 { "wxConfigBase_GetEntryType", (PyCFunction) _wrap_wxConfigBase_GetEntryType, METH_VARARGS | METH_KEYWORDS },
7720 { "wxConfigBase_WriteBool", (PyCFunction) _wrap_wxConfigBase_WriteBool, METH_VARARGS | METH_KEYWORDS },
7721 { "wxConfigBase_WriteFloat", (PyCFunction) _wrap_wxConfigBase_WriteFloat, METH_VARARGS | METH_KEYWORDS },
7722 { "wxConfigBase_WriteInt", (PyCFunction) _wrap_wxConfigBase_WriteInt, METH_VARARGS | METH_KEYWORDS },
7723 { "wxConfigBase_Write", (PyCFunction) _wrap_wxConfigBase_Write, METH_VARARGS | METH_KEYWORDS },
7724 { "wxConfigBase_GetStyle", (PyCFunction) _wrap_wxConfigBase_GetStyle, METH_VARARGS | METH_KEYWORDS },
7725 { "wxConfigBase_SetStyle", (PyCFunction) _wrap_wxConfigBase_SetStyle, METH_VARARGS | METH_KEYWORDS },
7726 { "wxConfigBase_SetVendorName", (PyCFunction) _wrap_wxConfigBase_SetVendorName, METH_VARARGS | METH_KEYWORDS },
7727 { "wxConfigBase_SetAppName", (PyCFunction) _wrap_wxConfigBase_SetAppName, METH_VARARGS | METH_KEYWORDS },
7728 { "wxConfigBase_SetRecordDefaults", (PyCFunction) _wrap_wxConfigBase_SetRecordDefaults, METH_VARARGS | METH_KEYWORDS },
7729 { "wxConfigBase_SetPath", (PyCFunction) _wrap_wxConfigBase_SetPath, METH_VARARGS | METH_KEYWORDS },
7730 { "wxConfigBase_SetExpandEnvVars", (PyCFunction) _wrap_wxConfigBase_SetExpandEnvVars, METH_VARARGS | METH_KEYWORDS },
7731 { "wxConfigBase_ReadBool", (PyCFunction) _wrap_wxConfigBase_ReadBool, METH_VARARGS | METH_KEYWORDS },
7732 { "wxConfigBase_ReadFloat", (PyCFunction) _wrap_wxConfigBase_ReadFloat, METH_VARARGS | METH_KEYWORDS },
7733 { "wxConfigBase_ReadInt", (PyCFunction) _wrap_wxConfigBase_ReadInt, METH_VARARGS | METH_KEYWORDS },
7734 { "wxConfigBase_Read", (PyCFunction) _wrap_wxConfigBase_Read, METH_VARARGS | METH_KEYWORDS },
7735 { "wxConfigBase_IsRecordingDefaults", (PyCFunction) _wrap_wxConfigBase_IsRecordingDefaults, METH_VARARGS | METH_KEYWORDS },
7736 { "wxConfigBase_IsExpandingEnvVars", (PyCFunction) _wrap_wxConfigBase_IsExpandingEnvVars, METH_VARARGS | METH_KEYWORDS },
7737 { "wxConfigBase_HasGroup", (PyCFunction) _wrap_wxConfigBase_HasGroup, METH_VARARGS | METH_KEYWORDS },
7738 { "wxConfigBase_HasEntry", (PyCFunction) _wrap_wxConfigBase_HasEntry, METH_VARARGS | METH_KEYWORDS },
7739 { "wxConfigBase_GetVendorName", (PyCFunction) _wrap_wxConfigBase_GetVendorName, METH_VARARGS | METH_KEYWORDS },
7740 { "wxConfigBase_GetPath", (PyCFunction) _wrap_wxConfigBase_GetPath, METH_VARARGS | METH_KEYWORDS },
7741 { "wxConfigBase_GetNumberOfGroups", (PyCFunction) _wrap_wxConfigBase_GetNumberOfGroups, METH_VARARGS | METH_KEYWORDS },
7742 { "wxConfigBase_GetNumberOfEntries", (PyCFunction) _wrap_wxConfigBase_GetNumberOfEntries, METH_VARARGS | METH_KEYWORDS },
7743 { "wxConfigBase_GetNextEntry", (PyCFunction) _wrap_wxConfigBase_GetNextEntry, METH_VARARGS | METH_KEYWORDS },
7744 { "wxConfigBase_GetNextGroup", (PyCFunction) _wrap_wxConfigBase_GetNextGroup, METH_VARARGS | METH_KEYWORDS },
7745 { "wxConfigBase_GetFirstEntry", (PyCFunction) _wrap_wxConfigBase_GetFirstEntry, METH_VARARGS | METH_KEYWORDS },
7746 { "wxConfigBase_GetFirstGroup", (PyCFunction) _wrap_wxConfigBase_GetFirstGroup, METH_VARARGS | METH_KEYWORDS },
7747 { "wxConfigBase_GetAppName", (PyCFunction) _wrap_wxConfigBase_GetAppName, METH_VARARGS | METH_KEYWORDS },
7748 { "wxConfigBase_Flush", (PyCFunction) _wrap_wxConfigBase_Flush, METH_VARARGS | METH_KEYWORDS },
7749 { "wxConfigBase_Exists", (PyCFunction) _wrap_wxConfigBase_Exists, METH_VARARGS | METH_KEYWORDS },
7750 { "wxConfigBase_DeleteGroup", (PyCFunction) _wrap_wxConfigBase_DeleteGroup, METH_VARARGS | METH_KEYWORDS },
7751 { "wxConfigBase_DeleteEntry", (PyCFunction) _wrap_wxConfigBase_DeleteEntry, METH_VARARGS | METH_KEYWORDS },
7752 { "wxConfigBase_DeleteAll", (PyCFunction) _wrap_wxConfigBase_DeleteAll, METH_VARARGS | METH_KEYWORDS },
7753 { "wxConfigBase_DontCreateOnDemand", (PyCFunction) _wrap_wxConfigBase_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS },
7754 { "wxConfigBase_Create", (PyCFunction) _wrap_wxConfigBase_Create, METH_VARARGS | METH_KEYWORDS },
7755 { "wxConfigBase_Get", (PyCFunction) _wrap_wxConfigBase_Get, METH_VARARGS | METH_KEYWORDS },
7756 { "wxConfigBase_Set", (PyCFunction) _wrap_wxConfigBase_Set, METH_VARARGS | METH_KEYWORDS },
7757 { "delete_wxConfigBase", (PyCFunction) _wrap_delete_wxConfigBase, METH_VARARGS | METH_KEYWORDS },
7758 { "wxGetLocalTimeMillis", (PyCFunction) _wrap_wxGetLocalTimeMillis, METH_VARARGS | METH_KEYWORDS },
7759 { "wxGetCurrentTime", (PyCFunction) _wrap_wxGetCurrentTime, METH_VARARGS | METH_KEYWORDS },
7760 { "wxGetUTCTime", (PyCFunction) _wrap_wxGetUTCTime, METH_VARARGS | METH_KEYWORDS },
7761 { "wxGetLocalTime", (PyCFunction) _wrap_wxGetLocalTime, METH_VARARGS | METH_KEYWORDS },
7762 { NULL, NULL }
7763 };
7764 #ifdef __cplusplus
7765 }
7766 #endif
7767 /*
7768 * This table is used by the pointer type-checker
7769 */
7770 static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
7771 { "_signed_long","_long",0},
7772 { "_wxPrintQuality","_wxCoord",0},
7773 { "_wxPrintQuality","_int",0},
7774 { "_wxPrintQuality","_signed_int",0},
7775 { "_wxPrintQuality","_unsigned_int",0},
7776 { "_wxPrintQuality","_wxWindowID",0},
7777 { "_wxPrintQuality","_uint",0},
7778 { "_wxPrintQuality","_EBool",0},
7779 { "_wxPrintQuality","_size_t",0},
7780 { "_wxPrintQuality","_time_t",0},
7781 { "_byte","_unsigned_char",0},
7782 { "_long","_unsigned_long",0},
7783 { "_long","_signed_long",0},
7784 { "_size_t","_wxCoord",0},
7785 { "_size_t","_wxPrintQuality",0},
7786 { "_size_t","_time_t",0},
7787 { "_size_t","_unsigned_int",0},
7788 { "_size_t","_int",0},
7789 { "_size_t","_wxWindowID",0},
7790 { "_size_t","_uint",0},
7791 { "_uint","_wxCoord",0},
7792 { "_uint","_wxPrintQuality",0},
7793 { "_uint","_time_t",0},
7794 { "_uint","_size_t",0},
7795 { "_uint","_unsigned_int",0},
7796 { "_uint","_int",0},
7797 { "_uint","_wxWindowID",0},
7798 { "_wxChar","_char",0},
7799 { "_char","_wxChar",0},
7800 { "_EBool","_wxCoord",0},
7801 { "_EBool","_wxPrintQuality",0},
7802 { "_EBool","_signed_int",0},
7803 { "_EBool","_int",0},
7804 { "_EBool","_wxWindowID",0},
7805 { "_unsigned_long","_long",0},
7806 { "_signed_int","_wxCoord",0},
7807 { "_signed_int","_wxPrintQuality",0},
7808 { "_signed_int","_EBool",0},
7809 { "_signed_int","_wxWindowID",0},
7810 { "_signed_int","_int",0},
7811 { "_WXTYPE","_wxDateTime_t",0},
7812 { "_WXTYPE","_short",0},
7813 { "_WXTYPE","_signed_short",0},
7814 { "_WXTYPE","_unsigned_short",0},
7815 { "_unsigned_short","_wxDateTime_t",0},
7816 { "_unsigned_short","_WXTYPE",0},
7817 { "_unsigned_short","_short",0},
7818 { "_signed_short","_WXTYPE",0},
7819 { "_signed_short","_short",0},
7820 { "_unsigned_char","_byte",0},
7821 { "_unsigned_int","_wxCoord",0},
7822 { "_unsigned_int","_wxPrintQuality",0},
7823 { "_unsigned_int","_time_t",0},
7824 { "_unsigned_int","_size_t",0},
7825 { "_unsigned_int","_uint",0},
7826 { "_unsigned_int","_wxWindowID",0},
7827 { "_unsigned_int","_int",0},
7828 { "_wxConfigBase","_wxFileConfig",SwigwxFileConfigTowxConfigBase},
7829 { "_wxConfigBase","_wxConfig",SwigwxConfigTowxConfigBase},
7830 { "_short","_wxDateTime_t",0},
7831 { "_short","_WXTYPE",0},
7832 { "_short","_unsigned_short",0},
7833 { "_short","_signed_short",0},
7834 { "_wxWindowID","_wxCoord",0},
7835 { "_wxWindowID","_wxPrintQuality",0},
7836 { "_wxWindowID","_time_t",0},
7837 { "_wxWindowID","_size_t",0},
7838 { "_wxWindowID","_EBool",0},
7839 { "_wxWindowID","_uint",0},
7840 { "_wxWindowID","_int",0},
7841 { "_wxWindowID","_signed_int",0},
7842 { "_wxWindowID","_unsigned_int",0},
7843 { "_int","_wxCoord",0},
7844 { "_int","_wxPrintQuality",0},
7845 { "_int","_time_t",0},
7846 { "_int","_size_t",0},
7847 { "_int","_EBool",0},
7848 { "_int","_uint",0},
7849 { "_int","_wxWindowID",0},
7850 { "_int","_unsigned_int",0},
7851 { "_int","_signed_int",0},
7852 { "_wxDateTime_t","_unsigned_short",0},
7853 { "_wxDateTime_t","_short",0},
7854 { "_wxDateTime_t","_WXTYPE",0},
7855 { "_time_t","_wxCoord",0},
7856 { "_time_t","_wxPrintQuality",0},
7857 { "_time_t","_unsigned_int",0},
7858 { "_time_t","_int",0},
7859 { "_time_t","_wxWindowID",0},
7860 { "_time_t","_uint",0},
7861 { "_time_t","_size_t",0},
7862 { "_wxCoord","_int",0},
7863 { "_wxCoord","_signed_int",0},
7864 { "_wxCoord","_unsigned_int",0},
7865 { "_wxCoord","_wxWindowID",0},
7866 { "_wxCoord","_uint",0},
7867 { "_wxCoord","_EBool",0},
7868 { "_wxCoord","_size_t",0},
7869 { "_wxCoord","_time_t",0},
7870 { "_wxCoord","_wxPrintQuality",0},
7871 {0,0,0}};
7872
7873 static PyObject *SWIG_globals;
7874 #ifdef __cplusplus
7875 extern "C"
7876 #endif
7877 SWIGEXPORT(void) initutilsc() {
7878 PyObject *m, *d;
7879 SWIG_globals = SWIG_newvarlink();
7880 m = Py_InitModule("utilsc", utilscMethods);
7881 d = PyModule_GetDict(m);
7882 PyDict_SetItemString(d,"wxCONFIG_USE_LOCAL_FILE", PyInt_FromLong((long) wxCONFIG_USE_LOCAL_FILE));
7883 PyDict_SetItemString(d,"wxCONFIG_USE_GLOBAL_FILE", PyInt_FromLong((long) wxCONFIG_USE_GLOBAL_FILE));
7884 PyDict_SetItemString(d,"wxCONFIG_USE_RELATIVE_PATH", PyInt_FromLong((long) wxCONFIG_USE_RELATIVE_PATH));
7885
7886 // These are no longer needed since utils is back in the core
7887 // wxClassInfo::CleanUpClasses();
7888 // wxClassInfo::InitializeClasses();
7889 PyDict_SetItemString(d,"wxConfigBase_Type_Unknown", PyInt_FromLong((long) wxConfigBase::Type_Unknown));
7890 PyDict_SetItemString(d,"wxConfigBase_Type_String", PyInt_FromLong((long) wxConfigBase::Type_String));
7891 PyDict_SetItemString(d,"wxConfigBase_Type_Boolean", PyInt_FromLong((long) wxConfigBase::Type_Boolean));
7892 PyDict_SetItemString(d,"wxConfigBase_Type_Integer", PyInt_FromLong((long) wxConfigBase::Type_Integer));
7893 PyDict_SetItemString(d,"wxConfigBase_Type_Float", PyInt_FromLong((long) wxConfigBase::Type_Float));
7894 PyDict_SetItemString(d,"wxDateTime_Local", PyInt_FromLong((long) wxDateTime::Local));
7895 PyDict_SetItemString(d,"wxDateTime_GMT_12", PyInt_FromLong((long) wxDateTime::GMT_12));
7896 PyDict_SetItemString(d,"wxDateTime_GMT_11", PyInt_FromLong((long) wxDateTime::GMT_11));
7897 PyDict_SetItemString(d,"wxDateTime_GMT_10", PyInt_FromLong((long) wxDateTime::GMT_10));
7898 PyDict_SetItemString(d,"wxDateTime_GMT_9", PyInt_FromLong((long) wxDateTime::GMT_9));
7899 PyDict_SetItemString(d,"wxDateTime_GMT_8", PyInt_FromLong((long) wxDateTime::GMT_8));
7900 PyDict_SetItemString(d,"wxDateTime_GMT_7", PyInt_FromLong((long) wxDateTime::GMT_7));
7901 PyDict_SetItemString(d,"wxDateTime_GMT_6", PyInt_FromLong((long) wxDateTime::GMT_6));
7902 PyDict_SetItemString(d,"wxDateTime_GMT_5", PyInt_FromLong((long) wxDateTime::GMT_5));
7903 PyDict_SetItemString(d,"wxDateTime_GMT_4", PyInt_FromLong((long) wxDateTime::GMT_4));
7904 PyDict_SetItemString(d,"wxDateTime_GMT_3", PyInt_FromLong((long) wxDateTime::GMT_3));
7905 PyDict_SetItemString(d,"wxDateTime_GMT_2", PyInt_FromLong((long) wxDateTime::GMT_2));
7906 PyDict_SetItemString(d,"wxDateTime_GMT_1", PyInt_FromLong((long) wxDateTime::GMT_1));
7907 PyDict_SetItemString(d,"wxDateTime_GMT0", PyInt_FromLong((long) wxDateTime::GMT0));
7908 PyDict_SetItemString(d,"wxDateTime_GMT1", PyInt_FromLong((long) wxDateTime::GMT1));
7909 PyDict_SetItemString(d,"wxDateTime_GMT2", PyInt_FromLong((long) wxDateTime::GMT2));
7910 PyDict_SetItemString(d,"wxDateTime_GMT3", PyInt_FromLong((long) wxDateTime::GMT3));
7911 PyDict_SetItemString(d,"wxDateTime_GMT4", PyInt_FromLong((long) wxDateTime::GMT4));
7912 PyDict_SetItemString(d,"wxDateTime_GMT5", PyInt_FromLong((long) wxDateTime::GMT5));
7913 PyDict_SetItemString(d,"wxDateTime_GMT6", PyInt_FromLong((long) wxDateTime::GMT6));
7914 PyDict_SetItemString(d,"wxDateTime_GMT7", PyInt_FromLong((long) wxDateTime::GMT7));
7915 PyDict_SetItemString(d,"wxDateTime_GMT8", PyInt_FromLong((long) wxDateTime::GMT8));
7916 PyDict_SetItemString(d,"wxDateTime_GMT9", PyInt_FromLong((long) wxDateTime::GMT9));
7917 PyDict_SetItemString(d,"wxDateTime_GMT10", PyInt_FromLong((long) wxDateTime::GMT10));
7918 PyDict_SetItemString(d,"wxDateTime_GMT11", PyInt_FromLong((long) wxDateTime::GMT11));
7919 PyDict_SetItemString(d,"wxDateTime_GMT12", PyInt_FromLong((long) wxDateTime::GMT12));
7920 PyDict_SetItemString(d,"wxDateTime_WET", PyInt_FromLong((long) wxDateTime::WET));
7921 PyDict_SetItemString(d,"wxDateTime_WEST", PyInt_FromLong((long) wxDateTime::WEST));
7922 PyDict_SetItemString(d,"wxDateTime_CET", PyInt_FromLong((long) wxDateTime::CET));
7923 PyDict_SetItemString(d,"wxDateTime_CEST", PyInt_FromLong((long) wxDateTime::CEST));
7924 PyDict_SetItemString(d,"wxDateTime_EET", PyInt_FromLong((long) wxDateTime::EET));
7925 PyDict_SetItemString(d,"wxDateTime_EEST", PyInt_FromLong((long) wxDateTime::EEST));
7926 PyDict_SetItemString(d,"wxDateTime_MSK", PyInt_FromLong((long) wxDateTime::MSK));
7927 PyDict_SetItemString(d,"wxDateTime_MSD", PyInt_FromLong((long) wxDateTime::MSD));
7928 PyDict_SetItemString(d,"wxDateTime_AST", PyInt_FromLong((long) wxDateTime::AST));
7929 PyDict_SetItemString(d,"wxDateTime_ADT", PyInt_FromLong((long) wxDateTime::ADT));
7930 PyDict_SetItemString(d,"wxDateTime_EST", PyInt_FromLong((long) wxDateTime::EST));
7931 PyDict_SetItemString(d,"wxDateTime_EDT", PyInt_FromLong((long) wxDateTime::EDT));
7932 PyDict_SetItemString(d,"wxDateTime_CST", PyInt_FromLong((long) wxDateTime::CST));
7933 PyDict_SetItemString(d,"wxDateTime_CDT", PyInt_FromLong((long) wxDateTime::CDT));
7934 PyDict_SetItemString(d,"wxDateTime_MST", PyInt_FromLong((long) wxDateTime::MST));
7935 PyDict_SetItemString(d,"wxDateTime_MDT", PyInt_FromLong((long) wxDateTime::MDT));
7936 PyDict_SetItemString(d,"wxDateTime_PST", PyInt_FromLong((long) wxDateTime::PST));
7937 PyDict_SetItemString(d,"wxDateTime_PDT", PyInt_FromLong((long) wxDateTime::PDT));
7938 PyDict_SetItemString(d,"wxDateTime_HST", PyInt_FromLong((long) wxDateTime::HST));
7939 PyDict_SetItemString(d,"wxDateTime_AKST", PyInt_FromLong((long) wxDateTime::AKST));
7940 PyDict_SetItemString(d,"wxDateTime_AKDT", PyInt_FromLong((long) wxDateTime::AKDT));
7941 PyDict_SetItemString(d,"wxDateTime_A_WST", PyInt_FromLong((long) wxDateTime::A_WST));
7942 PyDict_SetItemString(d,"wxDateTime_A_CST", PyInt_FromLong((long) wxDateTime::A_CST));
7943 PyDict_SetItemString(d,"wxDateTime_A_EST", PyInt_FromLong((long) wxDateTime::A_EST));
7944 PyDict_SetItemString(d,"wxDateTime_A_ESST", PyInt_FromLong((long) wxDateTime::A_ESST));
7945 PyDict_SetItemString(d,"wxDateTime_UTC", PyInt_FromLong((long) wxDateTime::UTC));
7946 PyDict_SetItemString(d,"wxDateTime_Gregorian", PyInt_FromLong((long) wxDateTime::Gregorian));
7947 PyDict_SetItemString(d,"wxDateTime_Julian", PyInt_FromLong((long) wxDateTime::Julian));
7948 PyDict_SetItemString(d,"wxDateTime_Country_Unknown", PyInt_FromLong((long) wxDateTime::Country_Unknown));
7949 PyDict_SetItemString(d,"wxDateTime_Country_Default", PyInt_FromLong((long) wxDateTime::Country_Default));
7950 PyDict_SetItemString(d,"wxDateTime_Country_WesternEurope_Start", PyInt_FromLong((long) wxDateTime::Country_WesternEurope_Start));
7951 PyDict_SetItemString(d,"wxDateTime_Country_EEC", PyInt_FromLong((long) wxDateTime::Country_EEC));
7952 PyDict_SetItemString(d,"wxDateTime_France", PyInt_FromLong((long) wxDateTime::France));
7953 PyDict_SetItemString(d,"wxDateTime_Germany", PyInt_FromLong((long) wxDateTime::Germany));
7954 PyDict_SetItemString(d,"wxDateTime_UK", PyInt_FromLong((long) wxDateTime::UK));
7955 PyDict_SetItemString(d,"wxDateTime_Country_WesternEurope_End", PyInt_FromLong((long) wxDateTime::Country_WesternEurope_End));
7956 PyDict_SetItemString(d,"wxDateTime_Russia", PyInt_FromLong((long) wxDateTime::Russia));
7957 PyDict_SetItemString(d,"wxDateTime_USA", PyInt_FromLong((long) wxDateTime::USA));
7958 PyDict_SetItemString(d,"wxDateTime_Jan", PyInt_FromLong((long) wxDateTime::Jan));
7959 PyDict_SetItemString(d,"wxDateTime_Feb", PyInt_FromLong((long) wxDateTime::Feb));
7960 PyDict_SetItemString(d,"wxDateTime_Mar", PyInt_FromLong((long) wxDateTime::Mar));
7961 PyDict_SetItemString(d,"wxDateTime_Apr", PyInt_FromLong((long) wxDateTime::Apr));
7962 PyDict_SetItemString(d,"wxDateTime_May", PyInt_FromLong((long) wxDateTime::May));
7963 PyDict_SetItemString(d,"wxDateTime_Jun", PyInt_FromLong((long) wxDateTime::Jun));
7964 PyDict_SetItemString(d,"wxDateTime_Jul", PyInt_FromLong((long) wxDateTime::Jul));
7965 PyDict_SetItemString(d,"wxDateTime_Aug", PyInt_FromLong((long) wxDateTime::Aug));
7966 PyDict_SetItemString(d,"wxDateTime_Sep", PyInt_FromLong((long) wxDateTime::Sep));
7967 PyDict_SetItemString(d,"wxDateTime_Oct", PyInt_FromLong((long) wxDateTime::Oct));
7968 PyDict_SetItemString(d,"wxDateTime_Nov", PyInt_FromLong((long) wxDateTime::Nov));
7969 PyDict_SetItemString(d,"wxDateTime_Dec", PyInt_FromLong((long) wxDateTime::Dec));
7970 PyDict_SetItemString(d,"wxDateTime_Inv_Month", PyInt_FromLong((long) wxDateTime::Inv_Month));
7971 PyDict_SetItemString(d,"wxDateTime_Sun", PyInt_FromLong((long) wxDateTime::Sun));
7972 PyDict_SetItemString(d,"wxDateTime_Mon", PyInt_FromLong((long) wxDateTime::Mon));
7973 PyDict_SetItemString(d,"wxDateTime_Tue", PyInt_FromLong((long) wxDateTime::Tue));
7974 PyDict_SetItemString(d,"wxDateTime_Wed", PyInt_FromLong((long) wxDateTime::Wed));
7975 PyDict_SetItemString(d,"wxDateTime_Thu", PyInt_FromLong((long) wxDateTime::Thu));
7976 PyDict_SetItemString(d,"wxDateTime_Fri", PyInt_FromLong((long) wxDateTime::Fri));
7977 PyDict_SetItemString(d,"wxDateTime_Sat", PyInt_FromLong((long) wxDateTime::Sat));
7978 PyDict_SetItemString(d,"wxDateTime_Inv_WeekDay", PyInt_FromLong((long) wxDateTime::Inv_WeekDay));
7979 PyDict_SetItemString(d,"wxDateTime_Inv_Year", PyInt_FromLong((long) wxDateTime::Inv_Year));
7980 PyDict_SetItemString(d,"wxDateTime_Name_Full", PyInt_FromLong((long) wxDateTime::Name_Full));
7981 PyDict_SetItemString(d,"wxDateTime_Name_Abbr", PyInt_FromLong((long) wxDateTime::Name_Abbr));
7982 PyDict_SetItemString(d,"wxDateTime_Default_First", PyInt_FromLong((long) wxDateTime::Default_First));
7983 PyDict_SetItemString(d,"wxDateTime_Monday_First", PyInt_FromLong((long) wxDateTime::Monday_First));
7984 PyDict_SetItemString(d,"wxDateTime_Sunday_First", PyInt_FromLong((long) wxDateTime::Sunday_First));
7985 {
7986 int i;
7987 for (i = 0; _swig_mapping[i].n1; i++)
7988 SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
7989 }
7990 }