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