4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Patch 5)
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.
13 * Do not make changes to this file--changes will be lost!
19 /* Implementation : PYTHON */
24 /* Definitions for Windows/Unix exporting */
25 #if defined(__WIN32__)
26 # if defined(_MSC_VER)
27 # define SWIGEXPORT(a,b) __declspec(dllexport) a b
29 # if defined(__BORLANDC__)
30 # define SWIGEXPORT(a,b) a _export b
32 # define SWIGEXPORT(a,b) a b
36 # define SWIGEXPORT(a,b) a b
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);
52 #define SWIG_init initutilsc
54 #define SWIG_name "utilsc"
57 #include <wx/config.h>
59 static PyObject
* l_output_helper(PyObject
* target
, PyObject
* o
) {
63 } else if (target
== Py_None
) {
67 if (!PyList_Check(target
)) {
69 target
= PyList_New(0);
70 PyList_Append(target
, o2
);
73 PyList_Append(target
,o
);
79 static PyObject
* t_output_helper(PyObject
* target
, PyObject
* o
) {
85 } else if (target
== Py_None
) {
89 if (!PyTuple_Check(target
)) {
91 target
= PyTuple_New(1);
92 PyTuple_SetItem(target
, 0, o2
);
95 PyTuple_SetItem(o3
, 0, o
);
98 target
= PySequence_Concat(o2
, o3
);
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
);
116 static char* wxStringErrorMsg
= "string type is required for parameter";
118 static PyObject
* __EnumerationHelper(bool flag
, wxString
& str
, long index
) {
119 PyObject
* ret
= PyTuple_New(3);
121 PyTuple_SET_ITEM(ret
, 0, PyInt_FromLong(flag
));
122 PyTuple_SET_ITEM(ret
, 1, PyString_FromString(str
));
123 PyTuple_SET_ITEM(ret
, 2, PyInt_FromLong(index
));
127 #define new_wxConfig(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (new wxConfig(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
128 static PyObject
*_wrap_new_wxConfig(PyObject
*self
, PyObject
*args
) {
129 PyObject
* _resultobj
;
131 wxString
* _arg0
= &wxPyEmptyStr
;
132 wxString
* _arg1
= &wxPyEmptyStr
;
133 wxString
* _arg2
= &wxPyEmptyStr
;
134 wxString
* _arg3
= &wxPyEmptyStr
;
136 PyObject
* _obj0
= 0;
137 PyObject
* _obj1
= 0;
138 PyObject
* _obj2
= 0;
139 PyObject
* _obj3
= 0;
143 if(!PyArg_ParseTuple(args
,"|OOOOl:new_wxConfig",&_obj0
,&_obj1
,&_obj2
,&_obj3
,&_arg4
))
147 if (!PyString_Check(_obj0
)) {
148 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
151 _arg0
= new wxString(PyString_AsString(_obj0
));
155 if (!PyString_Check(_obj1
)) {
156 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
159 _arg1
= new wxString(PyString_AsString(_obj1
));
163 if (!PyString_Check(_obj2
)) {
164 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
167 _arg2
= new wxString(PyString_AsString(_obj2
));
171 if (!PyString_Check(_obj3
)) {
172 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
175 _arg3
= new wxString(PyString_AsString(_obj3
));
177 _result
= (wxConfig
*)new_wxConfig(*_arg0
,*_arg1
,*_arg2
,*_arg3
,_arg4
);
178 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxConfig_p");
179 _resultobj
= Py_BuildValue("s",_ptemp
);
199 #define delete_wxConfig(_swigobj) (delete _swigobj)
200 static PyObject
*_wrap_delete_wxConfig(PyObject
*self
, PyObject
*args
) {
201 PyObject
* _resultobj
;
206 if(!PyArg_ParseTuple(args
,"s:delete_wxConfig",&_argc0
))
209 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
210 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxConfig. Expected _wxConfig_p.");
214 delete_wxConfig(_arg0
);
216 _resultobj
= Py_None
;
220 #define wxConfig_DontCreateOnDemand(_swigobj) (_swigobj->DontCreateOnDemand())
221 static PyObject
*_wrap_wxConfig_DontCreateOnDemand(PyObject
*self
, PyObject
*args
) {
222 PyObject
* _resultobj
;
227 if(!PyArg_ParseTuple(args
,"s:wxConfig_DontCreateOnDemand",&_argc0
))
230 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
231 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_DontCreateOnDemand. Expected _wxConfig_p.");
235 wxConfig_DontCreateOnDemand(_arg0
);
237 _resultobj
= Py_None
;
241 #define wxConfig_DeleteEntry(_swigobj,_swigarg0,_swigarg1) (_swigobj->DeleteEntry(_swigarg0,_swigarg1))
242 static PyObject
*_wrap_wxConfig_DeleteEntry(PyObject
*self
, PyObject
*args
) {
243 PyObject
* _resultobj
;
249 PyObject
* _obj1
= 0;
253 if(!PyArg_ParseTuple(args
,"sO|i:wxConfig_DeleteEntry",&_argc0
,&_obj1
,&tempbool2
))
256 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
257 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_DeleteEntry. Expected _wxConfig_p.");
262 if (!PyString_Check(_obj1
)) {
263 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
266 _arg1
= new wxString(PyString_AsString(_obj1
));
268 _arg2
= (bool ) tempbool2
;
269 _result
= (bool )wxConfig_DeleteEntry(_arg0
,*_arg1
,_arg2
);
270 _resultobj
= Py_BuildValue("i",_result
);
278 #define wxConfig_DeleteGroup(_swigobj,_swigarg0) (_swigobj->DeleteGroup(_swigarg0))
279 static PyObject
*_wrap_wxConfig_DeleteGroup(PyObject
*self
, PyObject
*args
) {
280 PyObject
* _resultobj
;
285 PyObject
* _obj1
= 0;
288 if(!PyArg_ParseTuple(args
,"sO:wxConfig_DeleteGroup",&_argc0
,&_obj1
))
291 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
292 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_DeleteGroup. Expected _wxConfig_p.");
297 if (!PyString_Check(_obj1
)) {
298 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
301 _arg1
= new wxString(PyString_AsString(_obj1
));
303 _result
= (bool )wxConfig_DeleteGroup(_arg0
,*_arg1
);
304 _resultobj
= Py_BuildValue("i",_result
);
312 #define wxConfig_Exists(_swigobj,_swigarg0) (_swigobj->Exists(_swigarg0))
313 static PyObject
*_wrap_wxConfig_Exists(PyObject
*self
, PyObject
*args
) {
314 PyObject
* _resultobj
;
319 PyObject
* _obj1
= 0;
322 if(!PyArg_ParseTuple(args
,"sO:wxConfig_Exists",&_argc0
,&_obj1
))
325 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
326 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_Exists. Expected _wxConfig_p.");
331 if (!PyString_Check(_obj1
)) {
332 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
335 _arg1
= new wxString(PyString_AsString(_obj1
));
337 _result
= (bool )wxConfig_Exists(_arg0
,*_arg1
);
338 _resultobj
= Py_BuildValue("i",_result
);
346 #define wxConfig_Flush(_swigobj,_swigarg0) (_swigobj->Flush(_swigarg0))
347 static PyObject
*_wrap_wxConfig_Flush(PyObject
*self
, PyObject
*args
) {
348 PyObject
* _resultobj
;
356 if(!PyArg_ParseTuple(args
,"s|i:wxConfig_Flush",&_argc0
,&tempbool1
))
359 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
360 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_Flush. Expected _wxConfig_p.");
364 _arg1
= (bool ) tempbool1
;
365 _result
= (bool )wxConfig_Flush(_arg0
,_arg1
);
366 _resultobj
= Py_BuildValue("i",_result
);
370 #define wxConfig_GetAppName(_swigobj) (_swigobj->GetAppName())
371 static PyObject
*_wrap_wxConfig_GetAppName(PyObject
*self
, PyObject
*args
) {
372 PyObject
* _resultobj
;
378 if(!PyArg_ParseTuple(args
,"s:wxConfig_GetAppName",&_argc0
))
381 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
382 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_GetAppName. Expected _wxConfig_p.");
386 _result
= new wxString (wxConfig_GetAppName(_arg0
));
388 _resultobj
= PyString_FromString(WXSTRINGCAST
*(_result
));
396 static PyObject
* wxConfig_GetFirstGroup(wxConfig
*self
) {
401 cont
= self
->GetFirstGroup(value
, index
);
402 return __EnumerationHelper(cont
, value
, index
);
404 static PyObject
*_wrap_wxConfig_GetFirstGroup(PyObject
*self
, PyObject
*args
) {
405 PyObject
* _resultobj
;
411 if(!PyArg_ParseTuple(args
,"s:wxConfig_GetFirstGroup",&_argc0
))
414 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
415 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_GetFirstGroup. Expected _wxConfig_p.");
419 _result
= (PyObject
*)wxConfig_GetFirstGroup(_arg0
);
421 _resultobj
= _result
;
426 static PyObject
* wxConfig_GetFirstEntry(wxConfig
*self
) {
431 cont
= self
->GetFirstEntry(value
, index
);
432 return __EnumerationHelper(cont
, value
, index
);
434 static PyObject
*_wrap_wxConfig_GetFirstEntry(PyObject
*self
, PyObject
*args
) {
435 PyObject
* _resultobj
;
441 if(!PyArg_ParseTuple(args
,"s:wxConfig_GetFirstEntry",&_argc0
))
444 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
445 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_GetFirstEntry. Expected _wxConfig_p.");
449 _result
= (PyObject
*)wxConfig_GetFirstEntry(_arg0
);
451 _resultobj
= _result
;
456 static PyObject
* wxConfig_GetNextGroup(wxConfig
*self
,long index
) {
460 cont
= self
->GetNextGroup(value
, index
);
461 return __EnumerationHelper(cont
, value
, index
);
463 static PyObject
*_wrap_wxConfig_GetNextGroup(PyObject
*self
, PyObject
*args
) {
464 PyObject
* _resultobj
;
471 if(!PyArg_ParseTuple(args
,"sl:wxConfig_GetNextGroup",&_argc0
,&_arg1
))
474 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
475 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_GetNextGroup. Expected _wxConfig_p.");
479 _result
= (PyObject
*)wxConfig_GetNextGroup(_arg0
,_arg1
);
481 _resultobj
= _result
;
486 static PyObject
* wxConfig_GetNextEntry(wxConfig
*self
,long index
) {
490 cont
= self
->GetNextEntry(value
, index
);
491 return __EnumerationHelper(cont
, value
, index
);
493 static PyObject
*_wrap_wxConfig_GetNextEntry(PyObject
*self
, PyObject
*args
) {
494 PyObject
* _resultobj
;
501 if(!PyArg_ParseTuple(args
,"sl:wxConfig_GetNextEntry",&_argc0
,&_arg1
))
504 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
505 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_GetNextEntry. Expected _wxConfig_p.");
509 _result
= (PyObject
*)wxConfig_GetNextEntry(_arg0
,_arg1
);
511 _resultobj
= _result
;
516 #define wxConfig_GetNumberOfEntries(_swigobj,_swigarg0) (_swigobj->GetNumberOfEntries(_swigarg0))
517 static PyObject
*_wrap_wxConfig_GetNumberOfEntries(PyObject
*self
, PyObject
*args
) {
518 PyObject
* _resultobj
;
526 if(!PyArg_ParseTuple(args
,"s|i:wxConfig_GetNumberOfEntries",&_argc0
,&tempbool1
))
529 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
530 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_GetNumberOfEntries. Expected _wxConfig_p.");
534 _arg1
= (bool ) tempbool1
;
535 _result
= (int )wxConfig_GetNumberOfEntries(_arg0
,_arg1
);
536 _resultobj
= Py_BuildValue("i",_result
);
540 #define wxConfig_GetNumberOfGroups(_swigobj,_swigarg0) (_swigobj->GetNumberOfGroups(_swigarg0))
541 static PyObject
*_wrap_wxConfig_GetNumberOfGroups(PyObject
*self
, PyObject
*args
) {
542 PyObject
* _resultobj
;
550 if(!PyArg_ParseTuple(args
,"s|i:wxConfig_GetNumberOfGroups",&_argc0
,&tempbool1
))
553 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
554 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_GetNumberOfGroups. Expected _wxConfig_p.");
558 _arg1
= (bool ) tempbool1
;
559 _result
= (int )wxConfig_GetNumberOfGroups(_arg0
,_arg1
);
560 _resultobj
= Py_BuildValue("i",_result
);
564 #define wxConfig_GetPath(_swigobj) (_swigobj->GetPath())
565 static PyObject
*_wrap_wxConfig_GetPath(PyObject
*self
, PyObject
*args
) {
566 PyObject
* _resultobj
;
572 if(!PyArg_ParseTuple(args
,"s:wxConfig_GetPath",&_argc0
))
575 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
576 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_GetPath. Expected _wxConfig_p.");
580 _result
= new wxString (wxConfig_GetPath(_arg0
));
582 _resultobj
= PyString_FromString(WXSTRINGCAST
*(_result
));
590 #define wxConfig_GetVendorName(_swigobj) (_swigobj->GetVendorName())
591 static PyObject
*_wrap_wxConfig_GetVendorName(PyObject
*self
, PyObject
*args
) {
592 PyObject
* _resultobj
;
598 if(!PyArg_ParseTuple(args
,"s:wxConfig_GetVendorName",&_argc0
))
601 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
602 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_GetVendorName. Expected _wxConfig_p.");
606 _result
= new wxString (wxConfig_GetVendorName(_arg0
));
608 _resultobj
= PyString_FromString(WXSTRINGCAST
*(_result
));
616 #define wxConfig_HasEntry(_swigobj,_swigarg0) (_swigobj->HasEntry(_swigarg0))
617 static PyObject
*_wrap_wxConfig_HasEntry(PyObject
*self
, PyObject
*args
) {
618 PyObject
* _resultobj
;
623 PyObject
* _obj1
= 0;
626 if(!PyArg_ParseTuple(args
,"sO:wxConfig_HasEntry",&_argc0
,&_obj1
))
629 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
630 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_HasEntry. Expected _wxConfig_p.");
635 if (!PyString_Check(_obj1
)) {
636 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
639 _arg1
= new wxString(PyString_AsString(_obj1
));
641 _result
= (bool )wxConfig_HasEntry(_arg0
,*_arg1
);
642 _resultobj
= Py_BuildValue("i",_result
);
650 #define wxConfig_HasGroup(_swigobj,_swigarg0) (_swigobj->HasGroup(_swigarg0))
651 static PyObject
*_wrap_wxConfig_HasGroup(PyObject
*self
, PyObject
*args
) {
652 PyObject
* _resultobj
;
657 PyObject
* _obj1
= 0;
660 if(!PyArg_ParseTuple(args
,"sO:wxConfig_HasGroup",&_argc0
,&_obj1
))
663 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
664 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_HasGroup. Expected _wxConfig_p.");
669 if (!PyString_Check(_obj1
)) {
670 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
673 _arg1
= new wxString(PyString_AsString(_obj1
));
675 _result
= (bool )wxConfig_HasGroup(_arg0
,*_arg1
);
676 _resultobj
= Py_BuildValue("i",_result
);
684 #define wxConfig_IsExpandingEnvVars(_swigobj) (_swigobj->IsExpandingEnvVars())
685 static PyObject
*_wrap_wxConfig_IsExpandingEnvVars(PyObject
*self
, PyObject
*args
) {
686 PyObject
* _resultobj
;
692 if(!PyArg_ParseTuple(args
,"s:wxConfig_IsExpandingEnvVars",&_argc0
))
695 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
696 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_IsExpandingEnvVars. Expected _wxConfig_p.");
700 _result
= (bool )wxConfig_IsExpandingEnvVars(_arg0
);
701 _resultobj
= Py_BuildValue("i",_result
);
705 #define wxConfig_IsRecordingDefaults(_swigobj) (_swigobj->IsRecordingDefaults())
706 static PyObject
*_wrap_wxConfig_IsRecordingDefaults(PyObject
*self
, PyObject
*args
) {
707 PyObject
* _resultobj
;
713 if(!PyArg_ParseTuple(args
,"s:wxConfig_IsRecordingDefaults",&_argc0
))
716 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
717 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_IsRecordingDefaults. Expected _wxConfig_p.");
721 _result
= (bool )wxConfig_IsRecordingDefaults(_arg0
);
722 _resultobj
= Py_BuildValue("i",_result
);
726 #define wxConfig_Read(_swigobj,_swigarg0,_swigarg1) (_swigobj->Read(_swigarg0,_swigarg1))
727 static PyObject
*_wrap_wxConfig_Read(PyObject
*self
, PyObject
*args
) {
728 PyObject
* _resultobj
;
732 wxString
* _arg2
= &wxPyEmptyStr
;
734 PyObject
* _obj1
= 0;
735 PyObject
* _obj2
= 0;
738 if(!PyArg_ParseTuple(args
,"sO|O:wxConfig_Read",&_argc0
,&_obj1
,&_obj2
))
741 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
742 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_Read. Expected _wxConfig_p.");
747 if (!PyString_Check(_obj1
)) {
748 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
751 _arg1
= new wxString(PyString_AsString(_obj1
));
755 if (!PyString_Check(_obj2
)) {
756 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
759 _arg2
= new wxString(PyString_AsString(_obj2
));
761 _result
= new wxString (wxConfig_Read(_arg0
,*_arg1
,*_arg2
));
763 _resultobj
= PyString_FromString(WXSTRINGCAST
*(_result
));
779 #define wxConfig_ReadInt(_swigobj,_swigarg0,_swigarg1) (_swigobj->Read(_swigarg0,_swigarg1))
780 static PyObject
*_wrap_wxConfig_ReadInt(PyObject
*self
, PyObject
*args
) {
781 PyObject
* _resultobj
;
787 PyObject
* _obj1
= 0;
790 if(!PyArg_ParseTuple(args
,"sO|l:wxConfig_ReadInt",&_argc0
,&_obj1
,&_arg2
))
793 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
794 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_ReadInt. Expected _wxConfig_p.");
799 if (!PyString_Check(_obj1
)) {
800 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
803 _arg1
= new wxString(PyString_AsString(_obj1
));
805 _result
= (long )wxConfig_ReadInt(_arg0
,*_arg1
,_arg2
);
806 _resultobj
= Py_BuildValue("l",_result
);
814 #define wxConfig_ReadFloat(_swigobj,_swigarg0,_swigarg1) (_swigobj->Read(_swigarg0,_swigarg1))
815 static PyObject
*_wrap_wxConfig_ReadFloat(PyObject
*self
, PyObject
*args
) {
816 PyObject
* _resultobj
;
822 PyObject
* _obj1
= 0;
825 if(!PyArg_ParseTuple(args
,"sO|d:wxConfig_ReadFloat",&_argc0
,&_obj1
,&_arg2
))
828 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
829 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_ReadFloat. Expected _wxConfig_p.");
834 if (!PyString_Check(_obj1
)) {
835 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
838 _arg1
= new wxString(PyString_AsString(_obj1
));
840 _result
= (double )wxConfig_ReadFloat(_arg0
,*_arg1
,_arg2
);
841 _resultobj
= Py_BuildValue("d",_result
);
849 #define wxConfig_SetAppName(_swigobj,_swigarg0) (_swigobj->SetAppName(_swigarg0))
850 static PyObject
*_wrap_wxConfig_SetAppName(PyObject
*self
, PyObject
*args
) {
851 PyObject
* _resultobj
;
855 PyObject
* _obj1
= 0;
858 if(!PyArg_ParseTuple(args
,"sO:wxConfig_SetAppName",&_argc0
,&_obj1
))
861 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
862 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_SetAppName. Expected _wxConfig_p.");
867 if (!PyString_Check(_obj1
)) {
868 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
871 _arg1
= new wxString(PyString_AsString(_obj1
));
873 wxConfig_SetAppName(_arg0
,*_arg1
);
875 _resultobj
= Py_None
;
883 #define wxConfig_SetExpandEnvVars(_swigobj,_swigarg0) (_swigobj->SetExpandEnvVars(_swigarg0))
884 static PyObject
*_wrap_wxConfig_SetExpandEnvVars(PyObject
*self
, PyObject
*args
) {
885 PyObject
* _resultobj
;
892 if(!PyArg_ParseTuple(args
,"s|i:wxConfig_SetExpandEnvVars",&_argc0
,&tempbool1
))
895 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
896 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_SetExpandEnvVars. Expected _wxConfig_p.");
900 _arg1
= (bool ) tempbool1
;
901 wxConfig_SetExpandEnvVars(_arg0
,_arg1
);
903 _resultobj
= Py_None
;
907 #define wxConfig_SetPath(_swigobj,_swigarg0) (_swigobj->SetPath(_swigarg0))
908 static PyObject
*_wrap_wxConfig_SetPath(PyObject
*self
, PyObject
*args
) {
909 PyObject
* _resultobj
;
913 PyObject
* _obj1
= 0;
916 if(!PyArg_ParseTuple(args
,"sO:wxConfig_SetPath",&_argc0
,&_obj1
))
919 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
920 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_SetPath. Expected _wxConfig_p.");
925 if (!PyString_Check(_obj1
)) {
926 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
929 _arg1
= new wxString(PyString_AsString(_obj1
));
931 wxConfig_SetPath(_arg0
,*_arg1
);
933 _resultobj
= Py_None
;
941 #define wxConfig_SetRecordDefaults(_swigobj,_swigarg0) (_swigobj->SetRecordDefaults(_swigarg0))
942 static PyObject
*_wrap_wxConfig_SetRecordDefaults(PyObject
*self
, PyObject
*args
) {
943 PyObject
* _resultobj
;
950 if(!PyArg_ParseTuple(args
,"s|i:wxConfig_SetRecordDefaults",&_argc0
,&tempbool1
))
953 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
954 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_SetRecordDefaults. Expected _wxConfig_p.");
958 _arg1
= (bool ) tempbool1
;
959 wxConfig_SetRecordDefaults(_arg0
,_arg1
);
961 _resultobj
= Py_None
;
965 #define wxConfig_SetVendorName(_swigobj,_swigarg0) (_swigobj->SetVendorName(_swigarg0))
966 static PyObject
*_wrap_wxConfig_SetVendorName(PyObject
*self
, PyObject
*args
) {
967 PyObject
* _resultobj
;
971 PyObject
* _obj1
= 0;
974 if(!PyArg_ParseTuple(args
,"sO:wxConfig_SetVendorName",&_argc0
,&_obj1
))
977 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
978 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_SetVendorName. Expected _wxConfig_p.");
983 if (!PyString_Check(_obj1
)) {
984 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
987 _arg1
= new wxString(PyString_AsString(_obj1
));
989 wxConfig_SetVendorName(_arg0
,*_arg1
);
991 _resultobj
= Py_None
;
999 #define wxConfig_Write(_swigobj,_swigarg0,_swigarg1) (_swigobj->Write(_swigarg0,_swigarg1))
1000 static PyObject
*_wrap_wxConfig_Write(PyObject
*self
, PyObject
*args
) {
1001 PyObject
* _resultobj
;
1007 PyObject
* _obj1
= 0;
1008 PyObject
* _obj2
= 0;
1011 if(!PyArg_ParseTuple(args
,"sOO:wxConfig_Write",&_argc0
,&_obj1
,&_obj2
))
1014 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
1015 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_Write. Expected _wxConfig_p.");
1020 if (!PyString_Check(_obj1
)) {
1021 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1024 _arg1
= new wxString(PyString_AsString(_obj1
));
1027 if (!PyString_Check(_obj2
)) {
1028 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1031 _arg2
= new wxString(PyString_AsString(_obj2
));
1033 _result
= (bool )wxConfig_Write(_arg0
,*_arg1
,*_arg2
);
1034 _resultobj
= Py_BuildValue("i",_result
);
1046 #define wxConfig_WriteInt(_swigobj,_swigarg0,_swigarg1) (_swigobj->Write(_swigarg0,_swigarg1))
1047 static PyObject
*_wrap_wxConfig_WriteInt(PyObject
*self
, PyObject
*args
) {
1048 PyObject
* _resultobj
;
1054 PyObject
* _obj1
= 0;
1057 if(!PyArg_ParseTuple(args
,"sOl:wxConfig_WriteInt",&_argc0
,&_obj1
,&_arg2
))
1060 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
1061 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_WriteInt. Expected _wxConfig_p.");
1066 if (!PyString_Check(_obj1
)) {
1067 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1070 _arg1
= new wxString(PyString_AsString(_obj1
));
1072 _result
= (bool )wxConfig_WriteInt(_arg0
,*_arg1
,_arg2
);
1073 _resultobj
= Py_BuildValue("i",_result
);
1081 #define wxConfig_WriteFloat(_swigobj,_swigarg0,_swigarg1) (_swigobj->Write(_swigarg0,_swigarg1))
1082 static PyObject
*_wrap_wxConfig_WriteFloat(PyObject
*self
, PyObject
*args
) {
1083 PyObject
* _resultobj
;
1089 PyObject
* _obj1
= 0;
1092 if(!PyArg_ParseTuple(args
,"sOd:wxConfig_WriteFloat",&_argc0
,&_obj1
,&_arg2
))
1095 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
1096 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_WriteFloat. Expected _wxConfig_p.");
1101 if (!PyString_Check(_obj1
)) {
1102 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1105 _arg1
= new wxString(PyString_AsString(_obj1
));
1107 _result
= (bool )wxConfig_WriteFloat(_arg0
,*_arg1
,_arg2
);
1108 _resultobj
= Py_BuildValue("i",_result
);
1116 static PyMethodDef utilscMethods
[] = {
1117 { "wxConfig_WriteFloat", _wrap_wxConfig_WriteFloat
, 1 },
1118 { "wxConfig_WriteInt", _wrap_wxConfig_WriteInt
, 1 },
1119 { "wxConfig_Write", _wrap_wxConfig_Write
, 1 },
1120 { "wxConfig_SetVendorName", _wrap_wxConfig_SetVendorName
, 1 },
1121 { "wxConfig_SetRecordDefaults", _wrap_wxConfig_SetRecordDefaults
, 1 },
1122 { "wxConfig_SetPath", _wrap_wxConfig_SetPath
, 1 },
1123 { "wxConfig_SetExpandEnvVars", _wrap_wxConfig_SetExpandEnvVars
, 1 },
1124 { "wxConfig_SetAppName", _wrap_wxConfig_SetAppName
, 1 },
1125 { "wxConfig_ReadFloat", _wrap_wxConfig_ReadFloat
, 1 },
1126 { "wxConfig_ReadInt", _wrap_wxConfig_ReadInt
, 1 },
1127 { "wxConfig_Read", _wrap_wxConfig_Read
, 1 },
1128 { "wxConfig_IsRecordingDefaults", _wrap_wxConfig_IsRecordingDefaults
, 1 },
1129 { "wxConfig_IsExpandingEnvVars", _wrap_wxConfig_IsExpandingEnvVars
, 1 },
1130 { "wxConfig_HasGroup", _wrap_wxConfig_HasGroup
, 1 },
1131 { "wxConfig_HasEntry", _wrap_wxConfig_HasEntry
, 1 },
1132 { "wxConfig_GetVendorName", _wrap_wxConfig_GetVendorName
, 1 },
1133 { "wxConfig_GetPath", _wrap_wxConfig_GetPath
, 1 },
1134 { "wxConfig_GetNumberOfGroups", _wrap_wxConfig_GetNumberOfGroups
, 1 },
1135 { "wxConfig_GetNumberOfEntries", _wrap_wxConfig_GetNumberOfEntries
, 1 },
1136 { "wxConfig_GetNextEntry", _wrap_wxConfig_GetNextEntry
, 1 },
1137 { "wxConfig_GetNextGroup", _wrap_wxConfig_GetNextGroup
, 1 },
1138 { "wxConfig_GetFirstEntry", _wrap_wxConfig_GetFirstEntry
, 1 },
1139 { "wxConfig_GetFirstGroup", _wrap_wxConfig_GetFirstGroup
, 1 },
1140 { "wxConfig_GetAppName", _wrap_wxConfig_GetAppName
, 1 },
1141 { "wxConfig_Flush", _wrap_wxConfig_Flush
, 1 },
1142 { "wxConfig_Exists", _wrap_wxConfig_Exists
, 1 },
1143 { "wxConfig_DeleteGroup", _wrap_wxConfig_DeleteGroup
, 1 },
1144 { "wxConfig_DeleteEntry", _wrap_wxConfig_DeleteEntry
, 1 },
1145 { "wxConfig_DontCreateOnDemand", _wrap_wxConfig_DontCreateOnDemand
, 1 },
1146 { "delete_wxConfig", _wrap_delete_wxConfig
, 1 },
1147 { "new_wxConfig", _wrap_new_wxConfig
, 1 },
1150 static PyObject
*SWIG_globals
;
1154 SWIGEXPORT(void,initutilsc
)() {
1156 SWIG_globals
= SWIG_newvarlink();
1157 m
= Py_InitModule("utilsc", utilscMethods
);
1158 d
= PyModule_GetDict(m
);
1160 * These are the pointer type-equivalency mappings.
1161 * (Used by the SWIG pointer type-checker).
1163 SWIG_RegisterMapping("_signed_long","_long",0);
1164 SWIG_RegisterMapping("_long","_unsigned_long",0);
1165 SWIG_RegisterMapping("_long","_signed_long",0);
1166 SWIG_RegisterMapping("_wxConfig","_class_wxConfig",0);
1167 SWIG_RegisterMapping("_unsigned_long","_long",0);
1168 SWIG_RegisterMapping("_signed_int","_int",0);
1169 SWIG_RegisterMapping("_unsigned_short","_short",0);
1170 SWIG_RegisterMapping("_signed_short","_short",0);
1171 SWIG_RegisterMapping("_unsigned_int","_int",0);
1172 SWIG_RegisterMapping("_short","_unsigned_short",0);
1173 SWIG_RegisterMapping("_short","_signed_short",0);
1174 SWIG_RegisterMapping("_int","_unsigned_int",0);
1175 SWIG_RegisterMapping("_int","_signed_int",0);
1176 SWIG_RegisterMapping("_class_wxConfig","_wxConfig",0);