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