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