]> git.saurik.com Git - wxWidgets.git/blob - utils/wxPython/src/msw/utils.cpp
Minor wxPython changes for wxWin 2.0
[wxWidgets.git] / utils / wxPython / src / msw / utils.cpp
1 /*
2 * FILE : msw/utils.cpp
3 *
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Patch 5)
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,b) __declspec(dllexport) a b
28 # else
29 # if defined(__BORLANDC__)
30 # define SWIGEXPORT(a,b) a _export b
31 # else
32 # define SWIGEXPORT(a,b) a b
33 # endif
34 # endif
35 #else
36 # define SWIGEXPORT(a,b) a b
37 #endif
38
39 #ifdef __cplusplus
40 extern "C" {
41 #endif
42 #include "Python.h"
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 void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
47 extern PyObject *SWIG_newvarlink(void);
48 #ifdef __cplusplus
49 }
50 #endif
51
52 #define SWIG_init initutilsc
53
54 #define SWIG_name "utilsc"
55
56 #include "helpers.h"
57 #include <wx/config.h>
58
59 static PyObject* l_output_helper(PyObject* target, PyObject* o) {
60 PyObject* o2;
61 if (!target) {
62 target = o;
63 } else if (target == Py_None) {
64 Py_DECREF(Py_None);
65 target = o;
66 } else {
67 if (!PyList_Check(target)) {
68 o2 = target;
69 target = PyList_New(0);
70 PyList_Append(target, o2);
71 Py_XDECREF(o2);
72 }
73 PyList_Append(target,o);
74 Py_XDECREF(o);
75 }
76 return target;
77 }
78
79 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
80 PyObject* o2;
81 PyObject* o3;
82
83 if (!target) {
84 target = o;
85 } else if (target == Py_None) {
86 Py_DECREF(Py_None);
87 target = o;
88 } else {
89 if (!PyTuple_Check(target)) {
90 o2 = target;
91 target = PyTuple_New(1);
92 PyTuple_SetItem(target, 0, o2);
93 }
94 o3 = PyTuple_New(1);
95 PyTuple_SetItem(o3, 0, o);
96
97 o2 = target;
98 target = PySequence_Concat(o2, o3);
99 Py_DECREF(o2);
100 Py_DECREF(o3);
101 }
102 return target;
103 }
104
105
106 extern byte* byte_LIST_helper(PyObject* source);
107 extern int* int_LIST_helper(PyObject* source);
108 extern long* long_LIST_helper(PyObject* source);
109 extern char** string_LIST_helper(PyObject* source);
110 extern wxPoint* wxPoint_LIST_helper(PyObject* source);
111 extern wxBitmap** wxBitmap_LIST_helper(PyObject* source);
112 extern wxString* wxString_LIST_helper(PyObject* source);
113 extern wxAcceleratorEntry* wxAcceleratorEntry_LIST_helper(PyObject* source);
114
115
116 static char* wxStringErrorMsg = "string type is required for parameter";
117
118 #ifdef SEPARATE
119 static wxString wxPyEmptyStr("");
120 #endif
121
122 static PyObject* __EnumerationHelper(bool flag, wxString& str, long index) {
123 PyObject* ret = PyTuple_New(3);
124 if (ret) {
125 PyTuple_SET_ITEM(ret, 0, PyInt_FromLong(flag));
126 PyTuple_SET_ITEM(ret, 1, PyString_FromString(str));
127 PyTuple_SET_ITEM(ret, 2, PyInt_FromLong(index));
128 }
129 return ret;
130 }
131 #define new_wxConfig(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (new wxConfig(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
132 static PyObject *_wrap_new_wxConfig(PyObject *self, PyObject *args) {
133 PyObject * _resultobj;
134 wxConfig * _result;
135 wxString * _arg0 = &wxPyEmptyStr;
136 wxString * _arg1 = &wxPyEmptyStr;
137 wxString * _arg2 = &wxPyEmptyStr;
138 wxString * _arg3 = &wxPyEmptyStr;
139 long _arg4 = 0;
140 PyObject * _obj0 = 0;
141 PyObject * _obj1 = 0;
142 PyObject * _obj2 = 0;
143 PyObject * _obj3 = 0;
144 char _ptemp[128];
145
146 self = self;
147 if(!PyArg_ParseTuple(args,"|OOOOl:new_wxConfig",&_obj0,&_obj1,&_obj2,&_obj3,&_arg4))
148 return NULL;
149 if (_obj0)
150 {
151 if (!PyString_Check(_obj0)) {
152 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
153 return NULL;
154 }
155 _arg0 = new wxString(PyString_AsString(_obj0));
156 }
157 if (_obj1)
158 {
159 if (!PyString_Check(_obj1)) {
160 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
161 return NULL;
162 }
163 _arg1 = new wxString(PyString_AsString(_obj1));
164 }
165 if (_obj2)
166 {
167 if (!PyString_Check(_obj2)) {
168 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
169 return NULL;
170 }
171 _arg2 = new wxString(PyString_AsString(_obj2));
172 }
173 if (_obj3)
174 {
175 if (!PyString_Check(_obj3)) {
176 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
177 return NULL;
178 }
179 _arg3 = new wxString(PyString_AsString(_obj3));
180 }
181 _result = (wxConfig *)new_wxConfig(*_arg0,*_arg1,*_arg2,*_arg3,_arg4);
182 SWIG_MakePtr(_ptemp, (char *) _result,"_wxConfig_p");
183 _resultobj = Py_BuildValue("s",_ptemp);
184 {
185 if (_obj0)
186 delete _arg0;
187 }
188 {
189 if (_obj1)
190 delete _arg1;
191 }
192 {
193 if (_obj2)
194 delete _arg2;
195 }
196 {
197 if (_obj3)
198 delete _arg3;
199 }
200 return _resultobj;
201 }
202
203 #define delete_wxConfig(_swigobj) (delete _swigobj)
204 static PyObject *_wrap_delete_wxConfig(PyObject *self, PyObject *args) {
205 PyObject * _resultobj;
206 wxConfig * _arg0;
207 char * _argc0 = 0;
208
209 self = self;
210 if(!PyArg_ParseTuple(args,"s:delete_wxConfig",&_argc0))
211 return NULL;
212 if (_argc0) {
213 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxConfig_p")) {
214 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxConfig. Expected _wxConfig_p.");
215 return NULL;
216 }
217 }
218 delete_wxConfig(_arg0);
219 Py_INCREF(Py_None);
220 _resultobj = Py_None;
221 return _resultobj;
222 }
223
224 #define wxConfig_DontCreateOnDemand(_swigobj) (_swigobj->DontCreateOnDemand())
225 static PyObject *_wrap_wxConfig_DontCreateOnDemand(PyObject *self, PyObject *args) {
226 PyObject * _resultobj;
227 wxConfig * _arg0;
228 char * _argc0 = 0;
229
230 self = self;
231 if(!PyArg_ParseTuple(args,"s:wxConfig_DontCreateOnDemand",&_argc0))
232 return NULL;
233 if (_argc0) {
234 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxConfig_p")) {
235 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfig_DontCreateOnDemand. Expected _wxConfig_p.");
236 return NULL;
237 }
238 }
239 wxConfig_DontCreateOnDemand(_arg0);
240 Py_INCREF(Py_None);
241 _resultobj = Py_None;
242 return _resultobj;
243 }
244
245 #define wxConfig_DeleteAll(_swigobj) (_swigobj->DeleteAll())
246 static PyObject *_wrap_wxConfig_DeleteAll(PyObject *self, PyObject *args) {
247 PyObject * _resultobj;
248 bool _result;
249 wxConfig * _arg0;
250 char * _argc0 = 0;
251
252 self = self;
253 if(!PyArg_ParseTuple(args,"s:wxConfig_DeleteAll",&_argc0))
254 return NULL;
255 if (_argc0) {
256 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxConfig_p")) {
257 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfig_DeleteAll. Expected _wxConfig_p.");
258 return NULL;
259 }
260 }
261 _result = (bool )wxConfig_DeleteAll(_arg0);
262 _resultobj = Py_BuildValue("i",_result);
263 return _resultobj;
264 }
265
266 #define wxConfig_DeleteEntry(_swigobj,_swigarg0,_swigarg1) (_swigobj->DeleteEntry(_swigarg0,_swigarg1))
267 static PyObject *_wrap_wxConfig_DeleteEntry(PyObject *self, PyObject *args) {
268 PyObject * _resultobj;
269 bool _result;
270 wxConfig * _arg0;
271 wxString * _arg1;
272 bool _arg2 = TRUE;
273 char * _argc0 = 0;
274 PyObject * _obj1 = 0;
275 int tempbool2;
276
277 self = self;
278 if(!PyArg_ParseTuple(args,"sO|i:wxConfig_DeleteEntry",&_argc0,&_obj1,&tempbool2))
279 return NULL;
280 if (_argc0) {
281 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxConfig_p")) {
282 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfig_DeleteEntry. Expected _wxConfig_p.");
283 return NULL;
284 }
285 }
286 {
287 if (!PyString_Check(_obj1)) {
288 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
289 return NULL;
290 }
291 _arg1 = new wxString(PyString_AsString(_obj1));
292 }
293 _arg2 = (bool ) tempbool2;
294 _result = (bool )wxConfig_DeleteEntry(_arg0,*_arg1,_arg2);
295 _resultobj = Py_BuildValue("i",_result);
296 {
297 if (_obj1)
298 delete _arg1;
299 }
300 return _resultobj;
301 }
302
303 #define wxConfig_DeleteGroup(_swigobj,_swigarg0) (_swigobj->DeleteGroup(_swigarg0))
304 static PyObject *_wrap_wxConfig_DeleteGroup(PyObject *self, PyObject *args) {
305 PyObject * _resultobj;
306 bool _result;
307 wxConfig * _arg0;
308 wxString * _arg1;
309 char * _argc0 = 0;
310 PyObject * _obj1 = 0;
311
312 self = self;
313 if(!PyArg_ParseTuple(args,"sO:wxConfig_DeleteGroup",&_argc0,&_obj1))
314 return NULL;
315 if (_argc0) {
316 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxConfig_p")) {
317 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfig_DeleteGroup. Expected _wxConfig_p.");
318 return NULL;
319 }
320 }
321 {
322 if (!PyString_Check(_obj1)) {
323 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
324 return NULL;
325 }
326 _arg1 = new wxString(PyString_AsString(_obj1));
327 }
328 _result = (bool )wxConfig_DeleteGroup(_arg0,*_arg1);
329 _resultobj = Py_BuildValue("i",_result);
330 {
331 if (_obj1)
332 delete _arg1;
333 }
334 return _resultobj;
335 }
336
337 #define wxConfig_Exists(_swigobj,_swigarg0) (_swigobj->Exists(_swigarg0))
338 static PyObject *_wrap_wxConfig_Exists(PyObject *self, PyObject *args) {
339 PyObject * _resultobj;
340 bool _result;
341 wxConfig * _arg0;
342 wxString * _arg1;
343 char * _argc0 = 0;
344 PyObject * _obj1 = 0;
345
346 self = self;
347 if(!PyArg_ParseTuple(args,"sO:wxConfig_Exists",&_argc0,&_obj1))
348 return NULL;
349 if (_argc0) {
350 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxConfig_p")) {
351 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfig_Exists. Expected _wxConfig_p.");
352 return NULL;
353 }
354 }
355 {
356 if (!PyString_Check(_obj1)) {
357 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
358 return NULL;
359 }
360 _arg1 = new wxString(PyString_AsString(_obj1));
361 }
362 _result = (bool )wxConfig_Exists(_arg0,*_arg1);
363 _resultobj = Py_BuildValue("i",_result);
364 {
365 if (_obj1)
366 delete _arg1;
367 }
368 return _resultobj;
369 }
370
371 #define wxConfig_Flush(_swigobj,_swigarg0) (_swigobj->Flush(_swigarg0))
372 static PyObject *_wrap_wxConfig_Flush(PyObject *self, PyObject *args) {
373 PyObject * _resultobj;
374 bool _result;
375 wxConfig * _arg0;
376 bool _arg1 = FALSE;
377 char * _argc0 = 0;
378 int tempbool1;
379
380 self = self;
381 if(!PyArg_ParseTuple(args,"s|i:wxConfig_Flush",&_argc0,&tempbool1))
382 return NULL;
383 if (_argc0) {
384 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxConfig_p")) {
385 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfig_Flush. Expected _wxConfig_p.");
386 return NULL;
387 }
388 }
389 _arg1 = (bool ) tempbool1;
390 _result = (bool )wxConfig_Flush(_arg0,_arg1);
391 _resultobj = Py_BuildValue("i",_result);
392 return _resultobj;
393 }
394
395 #define wxConfig_GetAppName(_swigobj) (_swigobj->GetAppName())
396 static PyObject *_wrap_wxConfig_GetAppName(PyObject *self, PyObject *args) {
397 PyObject * _resultobj;
398 wxString * _result;
399 wxConfig * _arg0;
400 char * _argc0 = 0;
401
402 self = self;
403 if(!PyArg_ParseTuple(args,"s:wxConfig_GetAppName",&_argc0))
404 return NULL;
405 if (_argc0) {
406 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxConfig_p")) {
407 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfig_GetAppName. Expected _wxConfig_p.");
408 return NULL;
409 }
410 }
411 _result = new wxString (wxConfig_GetAppName(_arg0));
412 {
413 _resultobj = PyString_FromString(WXSTRINGCAST *(_result));
414 }
415 {
416 delete _result;
417 }
418 return _resultobj;
419 }
420
421 static PyObject * wxConfig_GetFirstGroup(wxConfig *self) {
422 bool cont;
423 long index = 0;
424 wxString value;
425
426 cont = self->GetFirstGroup(value, index);
427 return __EnumerationHelper(cont, value, index);
428 }
429 static PyObject *_wrap_wxConfig_GetFirstGroup(PyObject *self, PyObject *args) {
430 PyObject * _resultobj;
431 PyObject * _result;
432 wxConfig * _arg0;
433 char * _argc0 = 0;
434
435 self = self;
436 if(!PyArg_ParseTuple(args,"s:wxConfig_GetFirstGroup",&_argc0))
437 return NULL;
438 if (_argc0) {
439 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxConfig_p")) {
440 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfig_GetFirstGroup. Expected _wxConfig_p.");
441 return NULL;
442 }
443 }
444 _result = (PyObject *)wxConfig_GetFirstGroup(_arg0);
445 {
446 _resultobj = _result;
447 }
448 return _resultobj;
449 }
450
451 static PyObject * wxConfig_GetFirstEntry(wxConfig *self) {
452 bool cont;
453 long index = 0;
454 wxString value;
455
456 cont = self->GetFirstEntry(value, index);
457 return __EnumerationHelper(cont, value, index);
458 }
459 static PyObject *_wrap_wxConfig_GetFirstEntry(PyObject *self, PyObject *args) {
460 PyObject * _resultobj;
461 PyObject * _result;
462 wxConfig * _arg0;
463 char * _argc0 = 0;
464
465 self = self;
466 if(!PyArg_ParseTuple(args,"s:wxConfig_GetFirstEntry",&_argc0))
467 return NULL;
468 if (_argc0) {
469 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxConfig_p")) {
470 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfig_GetFirstEntry. Expected _wxConfig_p.");
471 return NULL;
472 }
473 }
474 _result = (PyObject *)wxConfig_GetFirstEntry(_arg0);
475 {
476 _resultobj = _result;
477 }
478 return _resultobj;
479 }
480
481 static PyObject * wxConfig_GetNextGroup(wxConfig *self,long index) {
482 bool cont;
483 wxString value;
484
485 cont = self->GetNextGroup(value, index);
486 return __EnumerationHelper(cont, value, index);
487 }
488 static PyObject *_wrap_wxConfig_GetNextGroup(PyObject *self, PyObject *args) {
489 PyObject * _resultobj;
490 PyObject * _result;
491 wxConfig * _arg0;
492 long _arg1;
493 char * _argc0 = 0;
494
495 self = self;
496 if(!PyArg_ParseTuple(args,"sl:wxConfig_GetNextGroup",&_argc0,&_arg1))
497 return NULL;
498 if (_argc0) {
499 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxConfig_p")) {
500 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfig_GetNextGroup. Expected _wxConfig_p.");
501 return NULL;
502 }
503 }
504 _result = (PyObject *)wxConfig_GetNextGroup(_arg0,_arg1);
505 {
506 _resultobj = _result;
507 }
508 return _resultobj;
509 }
510
511 static PyObject * wxConfig_GetNextEntry(wxConfig *self,long index) {
512 bool cont;
513 wxString value;
514
515 cont = self->GetNextEntry(value, index);
516 return __EnumerationHelper(cont, value, index);
517 }
518 static PyObject *_wrap_wxConfig_GetNextEntry(PyObject *self, PyObject *args) {
519 PyObject * _resultobj;
520 PyObject * _result;
521 wxConfig * _arg0;
522 long _arg1;
523 char * _argc0 = 0;
524
525 self = self;
526 if(!PyArg_ParseTuple(args,"sl:wxConfig_GetNextEntry",&_argc0,&_arg1))
527 return NULL;
528 if (_argc0) {
529 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxConfig_p")) {
530 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfig_GetNextEntry. Expected _wxConfig_p.");
531 return NULL;
532 }
533 }
534 _result = (PyObject *)wxConfig_GetNextEntry(_arg0,_arg1);
535 {
536 _resultobj = _result;
537 }
538 return _resultobj;
539 }
540
541 #define wxConfig_GetNumberOfEntries(_swigobj,_swigarg0) (_swigobj->GetNumberOfEntries(_swigarg0))
542 static PyObject *_wrap_wxConfig_GetNumberOfEntries(PyObject *self, PyObject *args) {
543 PyObject * _resultobj;
544 int _result;
545 wxConfig * _arg0;
546 bool _arg1 = FALSE;
547 char * _argc0 = 0;
548 int tempbool1;
549
550 self = self;
551 if(!PyArg_ParseTuple(args,"s|i:wxConfig_GetNumberOfEntries",&_argc0,&tempbool1))
552 return NULL;
553 if (_argc0) {
554 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxConfig_p")) {
555 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfig_GetNumberOfEntries. Expected _wxConfig_p.");
556 return NULL;
557 }
558 }
559 _arg1 = (bool ) tempbool1;
560 _result = (int )wxConfig_GetNumberOfEntries(_arg0,_arg1);
561 _resultobj = Py_BuildValue("i",_result);
562 return _resultobj;
563 }
564
565 #define wxConfig_GetNumberOfGroups(_swigobj,_swigarg0) (_swigobj->GetNumberOfGroups(_swigarg0))
566 static PyObject *_wrap_wxConfig_GetNumberOfGroups(PyObject *self, PyObject *args) {
567 PyObject * _resultobj;
568 int _result;
569 wxConfig * _arg0;
570 bool _arg1 = FALSE;
571 char * _argc0 = 0;
572 int tempbool1;
573
574 self = self;
575 if(!PyArg_ParseTuple(args,"s|i:wxConfig_GetNumberOfGroups",&_argc0,&tempbool1))
576 return NULL;
577 if (_argc0) {
578 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxConfig_p")) {
579 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfig_GetNumberOfGroups. Expected _wxConfig_p.");
580 return NULL;
581 }
582 }
583 _arg1 = (bool ) tempbool1;
584 _result = (int )wxConfig_GetNumberOfGroups(_arg0,_arg1);
585 _resultobj = Py_BuildValue("i",_result);
586 return _resultobj;
587 }
588
589 #define wxConfig_GetPath(_swigobj) (_swigobj->GetPath())
590 static PyObject *_wrap_wxConfig_GetPath(PyObject *self, PyObject *args) {
591 PyObject * _resultobj;
592 wxString * _result;
593 wxConfig * _arg0;
594 char * _argc0 = 0;
595
596 self = self;
597 if(!PyArg_ParseTuple(args,"s:wxConfig_GetPath",&_argc0))
598 return NULL;
599 if (_argc0) {
600 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxConfig_p")) {
601 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfig_GetPath. Expected _wxConfig_p.");
602 return NULL;
603 }
604 }
605 _result = new wxString (wxConfig_GetPath(_arg0));
606 {
607 _resultobj = PyString_FromString(WXSTRINGCAST *(_result));
608 }
609 {
610 delete _result;
611 }
612 return _resultobj;
613 }
614
615 #define wxConfig_GetVendorName(_swigobj) (_swigobj->GetVendorName())
616 static PyObject *_wrap_wxConfig_GetVendorName(PyObject *self, PyObject *args) {
617 PyObject * _resultobj;
618 wxString * _result;
619 wxConfig * _arg0;
620 char * _argc0 = 0;
621
622 self = self;
623 if(!PyArg_ParseTuple(args,"s:wxConfig_GetVendorName",&_argc0))
624 return NULL;
625 if (_argc0) {
626 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxConfig_p")) {
627 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfig_GetVendorName. Expected _wxConfig_p.");
628 return NULL;
629 }
630 }
631 _result = new wxString (wxConfig_GetVendorName(_arg0));
632 {
633 _resultobj = PyString_FromString(WXSTRINGCAST *(_result));
634 }
635 {
636 delete _result;
637 }
638 return _resultobj;
639 }
640
641 #define wxConfig_HasEntry(_swigobj,_swigarg0) (_swigobj->HasEntry(_swigarg0))
642 static PyObject *_wrap_wxConfig_HasEntry(PyObject *self, PyObject *args) {
643 PyObject * _resultobj;
644 bool _result;
645 wxConfig * _arg0;
646 wxString * _arg1;
647 char * _argc0 = 0;
648 PyObject * _obj1 = 0;
649
650 self = self;
651 if(!PyArg_ParseTuple(args,"sO:wxConfig_HasEntry",&_argc0,&_obj1))
652 return NULL;
653 if (_argc0) {
654 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxConfig_p")) {
655 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfig_HasEntry. Expected _wxConfig_p.");
656 return NULL;
657 }
658 }
659 {
660 if (!PyString_Check(_obj1)) {
661 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
662 return NULL;
663 }
664 _arg1 = new wxString(PyString_AsString(_obj1));
665 }
666 _result = (bool )wxConfig_HasEntry(_arg0,*_arg1);
667 _resultobj = Py_BuildValue("i",_result);
668 {
669 if (_obj1)
670 delete _arg1;
671 }
672 return _resultobj;
673 }
674
675 #define wxConfig_HasGroup(_swigobj,_swigarg0) (_swigobj->HasGroup(_swigarg0))
676 static PyObject *_wrap_wxConfig_HasGroup(PyObject *self, PyObject *args) {
677 PyObject * _resultobj;
678 bool _result;
679 wxConfig * _arg0;
680 wxString * _arg1;
681 char * _argc0 = 0;
682 PyObject * _obj1 = 0;
683
684 self = self;
685 if(!PyArg_ParseTuple(args,"sO:wxConfig_HasGroup",&_argc0,&_obj1))
686 return NULL;
687 if (_argc0) {
688 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxConfig_p")) {
689 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfig_HasGroup. Expected _wxConfig_p.");
690 return NULL;
691 }
692 }
693 {
694 if (!PyString_Check(_obj1)) {
695 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
696 return NULL;
697 }
698 _arg1 = new wxString(PyString_AsString(_obj1));
699 }
700 _result = (bool )wxConfig_HasGroup(_arg0,*_arg1);
701 _resultobj = Py_BuildValue("i",_result);
702 {
703 if (_obj1)
704 delete _arg1;
705 }
706 return _resultobj;
707 }
708
709 #define wxConfig_IsExpandingEnvVars(_swigobj) (_swigobj->IsExpandingEnvVars())
710 static PyObject *_wrap_wxConfig_IsExpandingEnvVars(PyObject *self, PyObject *args) {
711 PyObject * _resultobj;
712 bool _result;
713 wxConfig * _arg0;
714 char * _argc0 = 0;
715
716 self = self;
717 if(!PyArg_ParseTuple(args,"s:wxConfig_IsExpandingEnvVars",&_argc0))
718 return NULL;
719 if (_argc0) {
720 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxConfig_p")) {
721 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfig_IsExpandingEnvVars. Expected _wxConfig_p.");
722 return NULL;
723 }
724 }
725 _result = (bool )wxConfig_IsExpandingEnvVars(_arg0);
726 _resultobj = Py_BuildValue("i",_result);
727 return _resultobj;
728 }
729
730 #define wxConfig_IsRecordingDefaults(_swigobj) (_swigobj->IsRecordingDefaults())
731 static PyObject *_wrap_wxConfig_IsRecordingDefaults(PyObject *self, PyObject *args) {
732 PyObject * _resultobj;
733 bool _result;
734 wxConfig * _arg0;
735 char * _argc0 = 0;
736
737 self = self;
738 if(!PyArg_ParseTuple(args,"s:wxConfig_IsRecordingDefaults",&_argc0))
739 return NULL;
740 if (_argc0) {
741 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxConfig_p")) {
742 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfig_IsRecordingDefaults. Expected _wxConfig_p.");
743 return NULL;
744 }
745 }
746 _result = (bool )wxConfig_IsRecordingDefaults(_arg0);
747 _resultobj = Py_BuildValue("i",_result);
748 return _resultobj;
749 }
750
751 #define wxConfig_Read(_swigobj,_swigarg0,_swigarg1) (_swigobj->Read(_swigarg0,_swigarg1))
752 static PyObject *_wrap_wxConfig_Read(PyObject *self, PyObject *args) {
753 PyObject * _resultobj;
754 wxString * _result;
755 wxConfig * _arg0;
756 wxString * _arg1;
757 wxString * _arg2 = &wxPyEmptyStr;
758 char * _argc0 = 0;
759 PyObject * _obj1 = 0;
760 PyObject * _obj2 = 0;
761
762 self = self;
763 if(!PyArg_ParseTuple(args,"sO|O:wxConfig_Read",&_argc0,&_obj1,&_obj2))
764 return NULL;
765 if (_argc0) {
766 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxConfig_p")) {
767 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfig_Read. Expected _wxConfig_p.");
768 return NULL;
769 }
770 }
771 {
772 if (!PyString_Check(_obj1)) {
773 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
774 return NULL;
775 }
776 _arg1 = new wxString(PyString_AsString(_obj1));
777 }
778 if (_obj2)
779 {
780 if (!PyString_Check(_obj2)) {
781 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
782 return NULL;
783 }
784 _arg2 = new wxString(PyString_AsString(_obj2));
785 }
786 _result = new wxString (wxConfig_Read(_arg0,*_arg1,*_arg2));
787 {
788 _resultobj = PyString_FromString(WXSTRINGCAST *(_result));
789 }
790 {
791 if (_obj1)
792 delete _arg1;
793 }
794 {
795 if (_obj2)
796 delete _arg2;
797 }
798 {
799 delete _result;
800 }
801 return _resultobj;
802 }
803
804 #define wxConfig_ReadInt(_swigobj,_swigarg0,_swigarg1) (_swigobj->Read(_swigarg0,_swigarg1))
805 static PyObject *_wrap_wxConfig_ReadInt(PyObject *self, PyObject *args) {
806 PyObject * _resultobj;
807 long _result;
808 wxConfig * _arg0;
809 wxString * _arg1;
810 long _arg2 = 0;
811 char * _argc0 = 0;
812 PyObject * _obj1 = 0;
813
814 self = self;
815 if(!PyArg_ParseTuple(args,"sO|l:wxConfig_ReadInt",&_argc0,&_obj1,&_arg2))
816 return NULL;
817 if (_argc0) {
818 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxConfig_p")) {
819 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfig_ReadInt. Expected _wxConfig_p.");
820 return NULL;
821 }
822 }
823 {
824 if (!PyString_Check(_obj1)) {
825 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
826 return NULL;
827 }
828 _arg1 = new wxString(PyString_AsString(_obj1));
829 }
830 _result = (long )wxConfig_ReadInt(_arg0,*_arg1,_arg2);
831 _resultobj = Py_BuildValue("l",_result);
832 {
833 if (_obj1)
834 delete _arg1;
835 }
836 return _resultobj;
837 }
838
839 #define wxConfig_ReadFloat(_swigobj,_swigarg0,_swigarg1) (_swigobj->Read(_swigarg0,_swigarg1))
840 static PyObject *_wrap_wxConfig_ReadFloat(PyObject *self, PyObject *args) {
841 PyObject * _resultobj;
842 double _result;
843 wxConfig * _arg0;
844 wxString * _arg1;
845 double _arg2 = 0.0;
846 char * _argc0 = 0;
847 PyObject * _obj1 = 0;
848
849 self = self;
850 if(!PyArg_ParseTuple(args,"sO|d:wxConfig_ReadFloat",&_argc0,&_obj1,&_arg2))
851 return NULL;
852 if (_argc0) {
853 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxConfig_p")) {
854 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfig_ReadFloat. Expected _wxConfig_p.");
855 return NULL;
856 }
857 }
858 {
859 if (!PyString_Check(_obj1)) {
860 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
861 return NULL;
862 }
863 _arg1 = new wxString(PyString_AsString(_obj1));
864 }
865 _result = (double )wxConfig_ReadFloat(_arg0,*_arg1,_arg2);
866 _resultobj = Py_BuildValue("d",_result);
867 {
868 if (_obj1)
869 delete _arg1;
870 }
871 return _resultobj;
872 }
873
874 #define wxConfig_SetAppName(_swigobj,_swigarg0) (_swigobj->SetAppName(_swigarg0))
875 static PyObject *_wrap_wxConfig_SetAppName(PyObject *self, PyObject *args) {
876 PyObject * _resultobj;
877 wxConfig * _arg0;
878 wxString * _arg1;
879 char * _argc0 = 0;
880 PyObject * _obj1 = 0;
881
882 self = self;
883 if(!PyArg_ParseTuple(args,"sO:wxConfig_SetAppName",&_argc0,&_obj1))
884 return NULL;
885 if (_argc0) {
886 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxConfig_p")) {
887 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfig_SetAppName. Expected _wxConfig_p.");
888 return NULL;
889 }
890 }
891 {
892 if (!PyString_Check(_obj1)) {
893 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
894 return NULL;
895 }
896 _arg1 = new wxString(PyString_AsString(_obj1));
897 }
898 wxConfig_SetAppName(_arg0,*_arg1);
899 Py_INCREF(Py_None);
900 _resultobj = Py_None;
901 {
902 if (_obj1)
903 delete _arg1;
904 }
905 return _resultobj;
906 }
907
908 #define wxConfig_SetExpandEnvVars(_swigobj,_swigarg0) (_swigobj->SetExpandEnvVars(_swigarg0))
909 static PyObject *_wrap_wxConfig_SetExpandEnvVars(PyObject *self, PyObject *args) {
910 PyObject * _resultobj;
911 wxConfig * _arg0;
912 bool _arg1 = TRUE;
913 char * _argc0 = 0;
914 int tempbool1;
915
916 self = self;
917 if(!PyArg_ParseTuple(args,"s|i:wxConfig_SetExpandEnvVars",&_argc0,&tempbool1))
918 return NULL;
919 if (_argc0) {
920 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxConfig_p")) {
921 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfig_SetExpandEnvVars. Expected _wxConfig_p.");
922 return NULL;
923 }
924 }
925 _arg1 = (bool ) tempbool1;
926 wxConfig_SetExpandEnvVars(_arg0,_arg1);
927 Py_INCREF(Py_None);
928 _resultobj = Py_None;
929 return _resultobj;
930 }
931
932 #define wxConfig_SetPath(_swigobj,_swigarg0) (_swigobj->SetPath(_swigarg0))
933 static PyObject *_wrap_wxConfig_SetPath(PyObject *self, PyObject *args) {
934 PyObject * _resultobj;
935 wxConfig * _arg0;
936 wxString * _arg1;
937 char * _argc0 = 0;
938 PyObject * _obj1 = 0;
939
940 self = self;
941 if(!PyArg_ParseTuple(args,"sO:wxConfig_SetPath",&_argc0,&_obj1))
942 return NULL;
943 if (_argc0) {
944 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxConfig_p")) {
945 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfig_SetPath. Expected _wxConfig_p.");
946 return NULL;
947 }
948 }
949 {
950 if (!PyString_Check(_obj1)) {
951 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
952 return NULL;
953 }
954 _arg1 = new wxString(PyString_AsString(_obj1));
955 }
956 wxConfig_SetPath(_arg0,*_arg1);
957 Py_INCREF(Py_None);
958 _resultobj = Py_None;
959 {
960 if (_obj1)
961 delete _arg1;
962 }
963 return _resultobj;
964 }
965
966 #define wxConfig_SetRecordDefaults(_swigobj,_swigarg0) (_swigobj->SetRecordDefaults(_swigarg0))
967 static PyObject *_wrap_wxConfig_SetRecordDefaults(PyObject *self, PyObject *args) {
968 PyObject * _resultobj;
969 wxConfig * _arg0;
970 bool _arg1 = TRUE;
971 char * _argc0 = 0;
972 int tempbool1;
973
974 self = self;
975 if(!PyArg_ParseTuple(args,"s|i:wxConfig_SetRecordDefaults",&_argc0,&tempbool1))
976 return NULL;
977 if (_argc0) {
978 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxConfig_p")) {
979 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfig_SetRecordDefaults. Expected _wxConfig_p.");
980 return NULL;
981 }
982 }
983 _arg1 = (bool ) tempbool1;
984 wxConfig_SetRecordDefaults(_arg0,_arg1);
985 Py_INCREF(Py_None);
986 _resultobj = Py_None;
987 return _resultobj;
988 }
989
990 #define wxConfig_SetVendorName(_swigobj,_swigarg0) (_swigobj->SetVendorName(_swigarg0))
991 static PyObject *_wrap_wxConfig_SetVendorName(PyObject *self, PyObject *args) {
992 PyObject * _resultobj;
993 wxConfig * _arg0;
994 wxString * _arg1;
995 char * _argc0 = 0;
996 PyObject * _obj1 = 0;
997
998 self = self;
999 if(!PyArg_ParseTuple(args,"sO:wxConfig_SetVendorName",&_argc0,&_obj1))
1000 return NULL;
1001 if (_argc0) {
1002 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxConfig_p")) {
1003 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfig_SetVendorName. Expected _wxConfig_p.");
1004 return NULL;
1005 }
1006 }
1007 {
1008 if (!PyString_Check(_obj1)) {
1009 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1010 return NULL;
1011 }
1012 _arg1 = new wxString(PyString_AsString(_obj1));
1013 }
1014 wxConfig_SetVendorName(_arg0,*_arg1);
1015 Py_INCREF(Py_None);
1016 _resultobj = Py_None;
1017 {
1018 if (_obj1)
1019 delete _arg1;
1020 }
1021 return _resultobj;
1022 }
1023
1024 #define wxConfig_Write(_swigobj,_swigarg0,_swigarg1) (_swigobj->Write(_swigarg0,_swigarg1))
1025 static PyObject *_wrap_wxConfig_Write(PyObject *self, PyObject *args) {
1026 PyObject * _resultobj;
1027 bool _result;
1028 wxConfig * _arg0;
1029 wxString * _arg1;
1030 wxString * _arg2;
1031 char * _argc0 = 0;
1032 PyObject * _obj1 = 0;
1033 PyObject * _obj2 = 0;
1034
1035 self = self;
1036 if(!PyArg_ParseTuple(args,"sOO:wxConfig_Write",&_argc0,&_obj1,&_obj2))
1037 return NULL;
1038 if (_argc0) {
1039 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxConfig_p")) {
1040 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfig_Write. Expected _wxConfig_p.");
1041 return NULL;
1042 }
1043 }
1044 {
1045 if (!PyString_Check(_obj1)) {
1046 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1047 return NULL;
1048 }
1049 _arg1 = new wxString(PyString_AsString(_obj1));
1050 }
1051 {
1052 if (!PyString_Check(_obj2)) {
1053 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1054 return NULL;
1055 }
1056 _arg2 = new wxString(PyString_AsString(_obj2));
1057 }
1058 _result = (bool )wxConfig_Write(_arg0,*_arg1,*_arg2);
1059 _resultobj = Py_BuildValue("i",_result);
1060 {
1061 if (_obj1)
1062 delete _arg1;
1063 }
1064 {
1065 if (_obj2)
1066 delete _arg2;
1067 }
1068 return _resultobj;
1069 }
1070
1071 #define wxConfig_WriteInt(_swigobj,_swigarg0,_swigarg1) (_swigobj->Write(_swigarg0,_swigarg1))
1072 static PyObject *_wrap_wxConfig_WriteInt(PyObject *self, PyObject *args) {
1073 PyObject * _resultobj;
1074 bool _result;
1075 wxConfig * _arg0;
1076 wxString * _arg1;
1077 long _arg2;
1078 char * _argc0 = 0;
1079 PyObject * _obj1 = 0;
1080
1081 self = self;
1082 if(!PyArg_ParseTuple(args,"sOl:wxConfig_WriteInt",&_argc0,&_obj1,&_arg2))
1083 return NULL;
1084 if (_argc0) {
1085 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxConfig_p")) {
1086 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfig_WriteInt. Expected _wxConfig_p.");
1087 return NULL;
1088 }
1089 }
1090 {
1091 if (!PyString_Check(_obj1)) {
1092 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1093 return NULL;
1094 }
1095 _arg1 = new wxString(PyString_AsString(_obj1));
1096 }
1097 _result = (bool )wxConfig_WriteInt(_arg0,*_arg1,_arg2);
1098 _resultobj = Py_BuildValue("i",_result);
1099 {
1100 if (_obj1)
1101 delete _arg1;
1102 }
1103 return _resultobj;
1104 }
1105
1106 #define wxConfig_WriteFloat(_swigobj,_swigarg0,_swigarg1) (_swigobj->Write(_swigarg0,_swigarg1))
1107 static PyObject *_wrap_wxConfig_WriteFloat(PyObject *self, PyObject *args) {
1108 PyObject * _resultobj;
1109 bool _result;
1110 wxConfig * _arg0;
1111 wxString * _arg1;
1112 double _arg2;
1113 char * _argc0 = 0;
1114 PyObject * _obj1 = 0;
1115
1116 self = self;
1117 if(!PyArg_ParseTuple(args,"sOd:wxConfig_WriteFloat",&_argc0,&_obj1,&_arg2))
1118 return NULL;
1119 if (_argc0) {
1120 if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxConfig_p")) {
1121 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfig_WriteFloat. Expected _wxConfig_p.");
1122 return NULL;
1123 }
1124 }
1125 {
1126 if (!PyString_Check(_obj1)) {
1127 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1128 return NULL;
1129 }
1130 _arg1 = new wxString(PyString_AsString(_obj1));
1131 }
1132 _result = (bool )wxConfig_WriteFloat(_arg0,*_arg1,_arg2);
1133 _resultobj = Py_BuildValue("i",_result);
1134 {
1135 if (_obj1)
1136 delete _arg1;
1137 }
1138 return _resultobj;
1139 }
1140
1141 static PyMethodDef utilscMethods[] = {
1142 { "wxConfig_WriteFloat", _wrap_wxConfig_WriteFloat, 1 },
1143 { "wxConfig_WriteInt", _wrap_wxConfig_WriteInt, 1 },
1144 { "wxConfig_Write", _wrap_wxConfig_Write, 1 },
1145 { "wxConfig_SetVendorName", _wrap_wxConfig_SetVendorName, 1 },
1146 { "wxConfig_SetRecordDefaults", _wrap_wxConfig_SetRecordDefaults, 1 },
1147 { "wxConfig_SetPath", _wrap_wxConfig_SetPath, 1 },
1148 { "wxConfig_SetExpandEnvVars", _wrap_wxConfig_SetExpandEnvVars, 1 },
1149 { "wxConfig_SetAppName", _wrap_wxConfig_SetAppName, 1 },
1150 { "wxConfig_ReadFloat", _wrap_wxConfig_ReadFloat, 1 },
1151 { "wxConfig_ReadInt", _wrap_wxConfig_ReadInt, 1 },
1152 { "wxConfig_Read", _wrap_wxConfig_Read, 1 },
1153 { "wxConfig_IsRecordingDefaults", _wrap_wxConfig_IsRecordingDefaults, 1 },
1154 { "wxConfig_IsExpandingEnvVars", _wrap_wxConfig_IsExpandingEnvVars, 1 },
1155 { "wxConfig_HasGroup", _wrap_wxConfig_HasGroup, 1 },
1156 { "wxConfig_HasEntry", _wrap_wxConfig_HasEntry, 1 },
1157 { "wxConfig_GetVendorName", _wrap_wxConfig_GetVendorName, 1 },
1158 { "wxConfig_GetPath", _wrap_wxConfig_GetPath, 1 },
1159 { "wxConfig_GetNumberOfGroups", _wrap_wxConfig_GetNumberOfGroups, 1 },
1160 { "wxConfig_GetNumberOfEntries", _wrap_wxConfig_GetNumberOfEntries, 1 },
1161 { "wxConfig_GetNextEntry", _wrap_wxConfig_GetNextEntry, 1 },
1162 { "wxConfig_GetNextGroup", _wrap_wxConfig_GetNextGroup, 1 },
1163 { "wxConfig_GetFirstEntry", _wrap_wxConfig_GetFirstEntry, 1 },
1164 { "wxConfig_GetFirstGroup", _wrap_wxConfig_GetFirstGroup, 1 },
1165 { "wxConfig_GetAppName", _wrap_wxConfig_GetAppName, 1 },
1166 { "wxConfig_Flush", _wrap_wxConfig_Flush, 1 },
1167 { "wxConfig_Exists", _wrap_wxConfig_Exists, 1 },
1168 { "wxConfig_DeleteGroup", _wrap_wxConfig_DeleteGroup, 1 },
1169 { "wxConfig_DeleteEntry", _wrap_wxConfig_DeleteEntry, 1 },
1170 { "wxConfig_DeleteAll", _wrap_wxConfig_DeleteAll, 1 },
1171 { "wxConfig_DontCreateOnDemand", _wrap_wxConfig_DontCreateOnDemand, 1 },
1172 { "delete_wxConfig", _wrap_delete_wxConfig, 1 },
1173 { "new_wxConfig", _wrap_new_wxConfig, 1 },
1174 { NULL, NULL }
1175 };
1176 static PyObject *SWIG_globals;
1177 #ifdef __cplusplus
1178 extern "C"
1179 #endif
1180 SWIGEXPORT(void,initutilsc)() {
1181 PyObject *m, *d;
1182 SWIG_globals = SWIG_newvarlink();
1183 m = Py_InitModule("utilsc", utilscMethods);
1184 d = PyModule_GetDict(m);
1185 /*
1186 * These are the pointer type-equivalency mappings.
1187 * (Used by the SWIG pointer type-checker).
1188 */
1189 SWIG_RegisterMapping("_signed_long","_long",0);
1190 SWIG_RegisterMapping("_long","_unsigned_long",0);
1191 SWIG_RegisterMapping("_long","_signed_long",0);
1192 SWIG_RegisterMapping("_wxConfig","_class_wxConfig",0);
1193 SWIG_RegisterMapping("_unsigned_long","_long",0);
1194 SWIG_RegisterMapping("_signed_int","_int",0);
1195 SWIG_RegisterMapping("_unsigned_short","_short",0);
1196 SWIG_RegisterMapping("_signed_short","_short",0);
1197 SWIG_RegisterMapping("_unsigned_int","_int",0);
1198 SWIG_RegisterMapping("_short","_unsigned_short",0);
1199 SWIG_RegisterMapping("_short","_signed_short",0);
1200 SWIG_RegisterMapping("_int","_unsigned_int",0);
1201 SWIG_RegisterMapping("_int","_signed_int",0);
1202 SWIG_RegisterMapping("_class_wxConfig","_wxConfig",0);
1203 }