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