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