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