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
) {
64 } else if (target
== Py_None
) {
68 if (!PyList_Check(target
)) {
70 target
= PyList_New(0);
71 PyList_Append(target
, o2
);
74 PyList_Append(target
,o
);
80 static PyObject
* t_output_helper(PyObject
* target
, PyObject
* o
) {
86 } else if (target
== Py_None
) {
90 if (!PyTuple_Check(target
)) {
92 target
= PyTuple_New(1);
93 PyTuple_SetItem(target
, 0, o2
);
96 PyTuple_SetItem(o3
, 0, o
);
99 target
= PySequence_Concat(o2
, o3
);
107 extern byte
* byte_LIST_helper(PyObject
* source
);
108 extern int* int_LIST_helper(PyObject
* source
);
109 extern long* long_LIST_helper(PyObject
* source
);
110 extern char** string_LIST_helper(PyObject
* source
);
111 extern wxPoint
* wxPoint_LIST_helper(PyObject
* source
);
112 extern wxBitmap
** wxBitmap_LIST_helper(PyObject
* source
);
113 extern wxString
* wxString_LIST_helper(PyObject
* source
);
114 extern wxAcceleratorEntry
* wxAcceleratorEntry_LIST_helper(PyObject
* source
);
117 static char* wxStringErrorMsg
= "string type is required for parameter";
120 static wxString
wxPyEmptyStr("");
123 static PyObject
* __EnumerationHelper(bool flag
, wxString
& str
, long index
) {
124 PyObject
* ret
= PyTuple_New(3);
126 PyTuple_SET_ITEM(ret
, 0, PyInt_FromLong(flag
));
127 PyTuple_SET_ITEM(ret
, 1, PyString_FromString(str
));
128 PyTuple_SET_ITEM(ret
, 2, PyInt_FromLong(index
));
132 #define new_wxConfig(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (new wxConfig(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
133 static PyObject
*_wrap_new_wxConfig(PyObject
*self
, PyObject
*args
) {
134 PyObject
* _resultobj
;
136 wxString
* _arg0
= &wxPyEmptyStr
;
137 wxString
* _arg1
= &wxPyEmptyStr
;
138 wxString
* _arg2
= &wxPyEmptyStr
;
139 wxString
* _arg3
= &wxPyEmptyStr
;
141 PyObject
* _obj0
= 0;
142 PyObject
* _obj1
= 0;
143 PyObject
* _obj2
= 0;
144 PyObject
* _obj3
= 0;
148 if(!PyArg_ParseTuple(args
,"|OOOOl:new_wxConfig",&_obj0
,&_obj1
,&_obj2
,&_obj3
,&_arg4
))
152 if (!PyString_Check(_obj0
)) {
153 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
156 _arg0
= new wxString(PyString_AsString(_obj0
));
160 if (!PyString_Check(_obj1
)) {
161 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
164 _arg1
= new wxString(PyString_AsString(_obj1
));
168 if (!PyString_Check(_obj2
)) {
169 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
172 _arg2
= new wxString(PyString_AsString(_obj2
));
176 if (!PyString_Check(_obj3
)) {
177 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
180 _arg3
= new wxString(PyString_AsString(_obj3
));
182 _result
= (wxConfig
*)new_wxConfig(*_arg0
,*_arg1
,*_arg2
,*_arg3
,_arg4
);
183 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxConfig_p");
184 _resultobj
= Py_BuildValue("s",_ptemp
);
204 #define delete_wxConfig(_swigobj) (delete _swigobj)
205 static PyObject
*_wrap_delete_wxConfig(PyObject
*self
, PyObject
*args
) {
206 PyObject
* _resultobj
;
211 if(!PyArg_ParseTuple(args
,"s:delete_wxConfig",&_argc0
))
214 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
215 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxConfig. Expected _wxConfig_p.");
219 delete_wxConfig(_arg0
);
221 _resultobj
= Py_None
;
225 #define wxConfig_DontCreateOnDemand(_swigobj) (_swigobj->DontCreateOnDemand())
226 static PyObject
*_wrap_wxConfig_DontCreateOnDemand(PyObject
*self
, PyObject
*args
) {
227 PyObject
* _resultobj
;
232 if(!PyArg_ParseTuple(args
,"s:wxConfig_DontCreateOnDemand",&_argc0
))
235 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
236 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_DontCreateOnDemand. Expected _wxConfig_p.");
240 wxConfig_DontCreateOnDemand(_arg0
);
242 _resultobj
= Py_None
;
246 #define wxConfig_DeleteAll(_swigobj) (_swigobj->DeleteAll())
247 static PyObject
*_wrap_wxConfig_DeleteAll(PyObject
*self
, PyObject
*args
) {
248 PyObject
* _resultobj
;
254 if(!PyArg_ParseTuple(args
,"s:wxConfig_DeleteAll",&_argc0
))
257 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
258 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_DeleteAll. Expected _wxConfig_p.");
262 _result
= (bool )wxConfig_DeleteAll(_arg0
);
263 _resultobj
= Py_BuildValue("i",_result
);
267 #define wxConfig_DeleteEntry(_swigobj,_swigarg0,_swigarg1) (_swigobj->DeleteEntry(_swigarg0,_swigarg1))
268 static PyObject
*_wrap_wxConfig_DeleteEntry(PyObject
*self
, PyObject
*args
) {
269 PyObject
* _resultobj
;
275 PyObject
* _obj1
= 0;
279 if(!PyArg_ParseTuple(args
,"sO|i:wxConfig_DeleteEntry",&_argc0
,&_obj1
,&tempbool2
))
282 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
283 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_DeleteEntry. Expected _wxConfig_p.");
288 if (!PyString_Check(_obj1
)) {
289 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
292 _arg1
= new wxString(PyString_AsString(_obj1
));
294 _arg2
= (bool ) tempbool2
;
295 _result
= (bool )wxConfig_DeleteEntry(_arg0
,*_arg1
,_arg2
);
296 _resultobj
= Py_BuildValue("i",_result
);
304 #define wxConfig_DeleteGroup(_swigobj,_swigarg0) (_swigobj->DeleteGroup(_swigarg0))
305 static PyObject
*_wrap_wxConfig_DeleteGroup(PyObject
*self
, PyObject
*args
) {
306 PyObject
* _resultobj
;
311 PyObject
* _obj1
= 0;
314 if(!PyArg_ParseTuple(args
,"sO:wxConfig_DeleteGroup",&_argc0
,&_obj1
))
317 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
318 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_DeleteGroup. Expected _wxConfig_p.");
323 if (!PyString_Check(_obj1
)) {
324 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
327 _arg1
= new wxString(PyString_AsString(_obj1
));
329 _result
= (bool )wxConfig_DeleteGroup(_arg0
,*_arg1
);
330 _resultobj
= Py_BuildValue("i",_result
);
338 #define wxConfig_Exists(_swigobj,_swigarg0) (_swigobj->Exists(_swigarg0))
339 static PyObject
*_wrap_wxConfig_Exists(PyObject
*self
, PyObject
*args
) {
340 PyObject
* _resultobj
;
345 PyObject
* _obj1
= 0;
348 if(!PyArg_ParseTuple(args
,"sO:wxConfig_Exists",&_argc0
,&_obj1
))
351 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
352 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_Exists. Expected _wxConfig_p.");
357 if (!PyString_Check(_obj1
)) {
358 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
361 _arg1
= new wxString(PyString_AsString(_obj1
));
363 _result
= (bool )wxConfig_Exists(_arg0
,*_arg1
);
364 _resultobj
= Py_BuildValue("i",_result
);
372 #define wxConfig_Flush(_swigobj,_swigarg0) (_swigobj->Flush(_swigarg0))
373 static PyObject
*_wrap_wxConfig_Flush(PyObject
*self
, PyObject
*args
) {
374 PyObject
* _resultobj
;
382 if(!PyArg_ParseTuple(args
,"s|i:wxConfig_Flush",&_argc0
,&tempbool1
))
385 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
386 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_Flush. Expected _wxConfig_p.");
390 _arg1
= (bool ) tempbool1
;
391 _result
= (bool )wxConfig_Flush(_arg0
,_arg1
);
392 _resultobj
= Py_BuildValue("i",_result
);
396 #define wxConfig_GetAppName(_swigobj) (_swigobj->GetAppName())
397 static PyObject
*_wrap_wxConfig_GetAppName(PyObject
*self
, PyObject
*args
) {
398 PyObject
* _resultobj
;
404 if(!PyArg_ParseTuple(args
,"s:wxConfig_GetAppName",&_argc0
))
407 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
408 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_GetAppName. Expected _wxConfig_p.");
412 _result
= new wxString (wxConfig_GetAppName(_arg0
));
414 _resultobj
= PyString_FromString(WXSTRINGCAST
*(_result
));
422 static PyObject
* wxConfig_GetFirstGroup(wxConfig
*self
) {
427 cont
= self
->GetFirstGroup(value
, index
);
428 return __EnumerationHelper(cont
, value
, index
);
430 static PyObject
*_wrap_wxConfig_GetFirstGroup(PyObject
*self
, PyObject
*args
) {
431 PyObject
* _resultobj
;
437 if(!PyArg_ParseTuple(args
,"s:wxConfig_GetFirstGroup",&_argc0
))
440 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
441 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_GetFirstGroup. Expected _wxConfig_p.");
445 _result
= (PyObject
*)wxConfig_GetFirstGroup(_arg0
);
447 _resultobj
= _result
;
452 static PyObject
* wxConfig_GetFirstEntry(wxConfig
*self
) {
457 cont
= self
->GetFirstEntry(value
, index
);
458 return __EnumerationHelper(cont
, value
, index
);
460 static PyObject
*_wrap_wxConfig_GetFirstEntry(PyObject
*self
, PyObject
*args
) {
461 PyObject
* _resultobj
;
467 if(!PyArg_ParseTuple(args
,"s:wxConfig_GetFirstEntry",&_argc0
))
470 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
471 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_GetFirstEntry. Expected _wxConfig_p.");
475 _result
= (PyObject
*)wxConfig_GetFirstEntry(_arg0
);
477 _resultobj
= _result
;
482 static PyObject
* wxConfig_GetNextGroup(wxConfig
*self
,long index
) {
486 cont
= self
->GetNextGroup(value
, index
);
487 return __EnumerationHelper(cont
, value
, index
);
489 static PyObject
*_wrap_wxConfig_GetNextGroup(PyObject
*self
, PyObject
*args
) {
490 PyObject
* _resultobj
;
497 if(!PyArg_ParseTuple(args
,"sl:wxConfig_GetNextGroup",&_argc0
,&_arg1
))
500 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
501 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_GetNextGroup. Expected _wxConfig_p.");
505 _result
= (PyObject
*)wxConfig_GetNextGroup(_arg0
,_arg1
);
507 _resultobj
= _result
;
512 static PyObject
* wxConfig_GetNextEntry(wxConfig
*self
,long index
) {
516 cont
= self
->GetNextEntry(value
, index
);
517 return __EnumerationHelper(cont
, value
, index
);
519 static PyObject
*_wrap_wxConfig_GetNextEntry(PyObject
*self
, PyObject
*args
) {
520 PyObject
* _resultobj
;
527 if(!PyArg_ParseTuple(args
,"sl:wxConfig_GetNextEntry",&_argc0
,&_arg1
))
530 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
531 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_GetNextEntry. Expected _wxConfig_p.");
535 _result
= (PyObject
*)wxConfig_GetNextEntry(_arg0
,_arg1
);
537 _resultobj
= _result
;
542 #define wxConfig_GetNumberOfEntries(_swigobj,_swigarg0) (_swigobj->GetNumberOfEntries(_swigarg0))
543 static PyObject
*_wrap_wxConfig_GetNumberOfEntries(PyObject
*self
, PyObject
*args
) {
544 PyObject
* _resultobj
;
552 if(!PyArg_ParseTuple(args
,"s|i:wxConfig_GetNumberOfEntries",&_argc0
,&tempbool1
))
555 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
556 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_GetNumberOfEntries. Expected _wxConfig_p.");
560 _arg1
= (bool ) tempbool1
;
561 _result
= (int )wxConfig_GetNumberOfEntries(_arg0
,_arg1
);
562 _resultobj
= Py_BuildValue("i",_result
);
566 #define wxConfig_GetNumberOfGroups(_swigobj,_swigarg0) (_swigobj->GetNumberOfGroups(_swigarg0))
567 static PyObject
*_wrap_wxConfig_GetNumberOfGroups(PyObject
*self
, PyObject
*args
) {
568 PyObject
* _resultobj
;
576 if(!PyArg_ParseTuple(args
,"s|i:wxConfig_GetNumberOfGroups",&_argc0
,&tempbool1
))
579 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
580 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_GetNumberOfGroups. Expected _wxConfig_p.");
584 _arg1
= (bool ) tempbool1
;
585 _result
= (int )wxConfig_GetNumberOfGroups(_arg0
,_arg1
);
586 _resultobj
= Py_BuildValue("i",_result
);
590 #define wxConfig_GetPath(_swigobj) (_swigobj->GetPath())
591 static PyObject
*_wrap_wxConfig_GetPath(PyObject
*self
, PyObject
*args
) {
592 PyObject
* _resultobj
;
598 if(!PyArg_ParseTuple(args
,"s:wxConfig_GetPath",&_argc0
))
601 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
602 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_GetPath. Expected _wxConfig_p.");
606 _result
= new wxString (wxConfig_GetPath(_arg0
));
608 _resultobj
= PyString_FromString(WXSTRINGCAST
*(_result
));
616 #define wxConfig_GetVendorName(_swigobj) (_swigobj->GetVendorName())
617 static PyObject
*_wrap_wxConfig_GetVendorName(PyObject
*self
, PyObject
*args
) {
618 PyObject
* _resultobj
;
624 if(!PyArg_ParseTuple(args
,"s:wxConfig_GetVendorName",&_argc0
))
627 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
628 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_GetVendorName. Expected _wxConfig_p.");
632 _result
= new wxString (wxConfig_GetVendorName(_arg0
));
634 _resultobj
= PyString_FromString(WXSTRINGCAST
*(_result
));
642 #define wxConfig_HasEntry(_swigobj,_swigarg0) (_swigobj->HasEntry(_swigarg0))
643 static PyObject
*_wrap_wxConfig_HasEntry(PyObject
*self
, PyObject
*args
) {
644 PyObject
* _resultobj
;
649 PyObject
* _obj1
= 0;
652 if(!PyArg_ParseTuple(args
,"sO:wxConfig_HasEntry",&_argc0
,&_obj1
))
655 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
656 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_HasEntry. Expected _wxConfig_p.");
661 if (!PyString_Check(_obj1
)) {
662 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
665 _arg1
= new wxString(PyString_AsString(_obj1
));
667 _result
= (bool )wxConfig_HasEntry(_arg0
,*_arg1
);
668 _resultobj
= Py_BuildValue("i",_result
);
676 #define wxConfig_HasGroup(_swigobj,_swigarg0) (_swigobj->HasGroup(_swigarg0))
677 static PyObject
*_wrap_wxConfig_HasGroup(PyObject
*self
, PyObject
*args
) {
678 PyObject
* _resultobj
;
683 PyObject
* _obj1
= 0;
686 if(!PyArg_ParseTuple(args
,"sO:wxConfig_HasGroup",&_argc0
,&_obj1
))
689 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
690 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_HasGroup. Expected _wxConfig_p.");
695 if (!PyString_Check(_obj1
)) {
696 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
699 _arg1
= new wxString(PyString_AsString(_obj1
));
701 _result
= (bool )wxConfig_HasGroup(_arg0
,*_arg1
);
702 _resultobj
= Py_BuildValue("i",_result
);
710 #define wxConfig_IsExpandingEnvVars(_swigobj) (_swigobj->IsExpandingEnvVars())
711 static PyObject
*_wrap_wxConfig_IsExpandingEnvVars(PyObject
*self
, PyObject
*args
) {
712 PyObject
* _resultobj
;
718 if(!PyArg_ParseTuple(args
,"s:wxConfig_IsExpandingEnvVars",&_argc0
))
721 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
722 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_IsExpandingEnvVars. Expected _wxConfig_p.");
726 _result
= (bool )wxConfig_IsExpandingEnvVars(_arg0
);
727 _resultobj
= Py_BuildValue("i",_result
);
731 #define wxConfig_IsRecordingDefaults(_swigobj) (_swigobj->IsRecordingDefaults())
732 static PyObject
*_wrap_wxConfig_IsRecordingDefaults(PyObject
*self
, PyObject
*args
) {
733 PyObject
* _resultobj
;
739 if(!PyArg_ParseTuple(args
,"s:wxConfig_IsRecordingDefaults",&_argc0
))
742 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
743 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_IsRecordingDefaults. Expected _wxConfig_p.");
747 _result
= (bool )wxConfig_IsRecordingDefaults(_arg0
);
748 _resultobj
= Py_BuildValue("i",_result
);
752 #define wxConfig_Read(_swigobj,_swigarg0,_swigarg1) (_swigobj->Read(_swigarg0,_swigarg1))
753 static PyObject
*_wrap_wxConfig_Read(PyObject
*self
, PyObject
*args
) {
754 PyObject
* _resultobj
;
758 wxString
* _arg2
= &wxPyEmptyStr
;
760 PyObject
* _obj1
= 0;
761 PyObject
* _obj2
= 0;
764 if(!PyArg_ParseTuple(args
,"sO|O:wxConfig_Read",&_argc0
,&_obj1
,&_obj2
))
767 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
768 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_Read. Expected _wxConfig_p.");
773 if (!PyString_Check(_obj1
)) {
774 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
777 _arg1
= new wxString(PyString_AsString(_obj1
));
781 if (!PyString_Check(_obj2
)) {
782 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
785 _arg2
= new wxString(PyString_AsString(_obj2
));
787 _result
= new wxString (wxConfig_Read(_arg0
,*_arg1
,*_arg2
));
789 _resultobj
= PyString_FromString(WXSTRINGCAST
*(_result
));
805 #define wxConfig_ReadInt(_swigobj,_swigarg0,_swigarg1) (_swigobj->Read(_swigarg0,_swigarg1))
806 static PyObject
*_wrap_wxConfig_ReadInt(PyObject
*self
, PyObject
*args
) {
807 PyObject
* _resultobj
;
813 PyObject
* _obj1
= 0;
816 if(!PyArg_ParseTuple(args
,"sO|l:wxConfig_ReadInt",&_argc0
,&_obj1
,&_arg2
))
819 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
820 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_ReadInt. Expected _wxConfig_p.");
825 if (!PyString_Check(_obj1
)) {
826 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
829 _arg1
= new wxString(PyString_AsString(_obj1
));
831 _result
= (long )wxConfig_ReadInt(_arg0
,*_arg1
,_arg2
);
832 _resultobj
= Py_BuildValue("l",_result
);
840 #define wxConfig_ReadFloat(_swigobj,_swigarg0,_swigarg1) (_swigobj->Read(_swigarg0,_swigarg1))
841 static PyObject
*_wrap_wxConfig_ReadFloat(PyObject
*self
, PyObject
*args
) {
842 PyObject
* _resultobj
;
848 PyObject
* _obj1
= 0;
851 if(!PyArg_ParseTuple(args
,"sO|d:wxConfig_ReadFloat",&_argc0
,&_obj1
,&_arg2
))
854 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
855 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_ReadFloat. Expected _wxConfig_p.");
860 if (!PyString_Check(_obj1
)) {
861 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
864 _arg1
= new wxString(PyString_AsString(_obj1
));
866 _result
= (double )wxConfig_ReadFloat(_arg0
,*_arg1
,_arg2
);
867 _resultobj
= Py_BuildValue("d",_result
);
875 #define wxConfig_SetAppName(_swigobj,_swigarg0) (_swigobj->SetAppName(_swigarg0))
876 static PyObject
*_wrap_wxConfig_SetAppName(PyObject
*self
, PyObject
*args
) {
877 PyObject
* _resultobj
;
881 PyObject
* _obj1
= 0;
884 if(!PyArg_ParseTuple(args
,"sO:wxConfig_SetAppName",&_argc0
,&_obj1
))
887 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
888 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_SetAppName. Expected _wxConfig_p.");
893 if (!PyString_Check(_obj1
)) {
894 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
897 _arg1
= new wxString(PyString_AsString(_obj1
));
899 wxConfig_SetAppName(_arg0
,*_arg1
);
901 _resultobj
= Py_None
;
909 #define wxConfig_SetExpandEnvVars(_swigobj,_swigarg0) (_swigobj->SetExpandEnvVars(_swigarg0))
910 static PyObject
*_wrap_wxConfig_SetExpandEnvVars(PyObject
*self
, PyObject
*args
) {
911 PyObject
* _resultobj
;
918 if(!PyArg_ParseTuple(args
,"s|i:wxConfig_SetExpandEnvVars",&_argc0
,&tempbool1
))
921 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
922 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_SetExpandEnvVars. Expected _wxConfig_p.");
926 _arg1
= (bool ) tempbool1
;
927 wxConfig_SetExpandEnvVars(_arg0
,_arg1
);
929 _resultobj
= Py_None
;
933 #define wxConfig_SetPath(_swigobj,_swigarg0) (_swigobj->SetPath(_swigarg0))
934 static PyObject
*_wrap_wxConfig_SetPath(PyObject
*self
, PyObject
*args
) {
935 PyObject
* _resultobj
;
939 PyObject
* _obj1
= 0;
942 if(!PyArg_ParseTuple(args
,"sO:wxConfig_SetPath",&_argc0
,&_obj1
))
945 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
946 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_SetPath. Expected _wxConfig_p.");
951 if (!PyString_Check(_obj1
)) {
952 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
955 _arg1
= new wxString(PyString_AsString(_obj1
));
957 wxConfig_SetPath(_arg0
,*_arg1
);
959 _resultobj
= Py_None
;
967 #define wxConfig_SetRecordDefaults(_swigobj,_swigarg0) (_swigobj->SetRecordDefaults(_swigarg0))
968 static PyObject
*_wrap_wxConfig_SetRecordDefaults(PyObject
*self
, PyObject
*args
) {
969 PyObject
* _resultobj
;
976 if(!PyArg_ParseTuple(args
,"s|i:wxConfig_SetRecordDefaults",&_argc0
,&tempbool1
))
979 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
980 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_SetRecordDefaults. Expected _wxConfig_p.");
984 _arg1
= (bool ) tempbool1
;
985 wxConfig_SetRecordDefaults(_arg0
,_arg1
);
987 _resultobj
= Py_None
;
991 #define wxConfig_SetVendorName(_swigobj,_swigarg0) (_swigobj->SetVendorName(_swigarg0))
992 static PyObject
*_wrap_wxConfig_SetVendorName(PyObject
*self
, PyObject
*args
) {
993 PyObject
* _resultobj
;
997 PyObject
* _obj1
= 0;
1000 if(!PyArg_ParseTuple(args
,"sO:wxConfig_SetVendorName",&_argc0
,&_obj1
))
1003 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
1004 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_SetVendorName. Expected _wxConfig_p.");
1009 if (!PyString_Check(_obj1
)) {
1010 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1013 _arg1
= new wxString(PyString_AsString(_obj1
));
1015 wxConfig_SetVendorName(_arg0
,*_arg1
);
1017 _resultobj
= Py_None
;
1025 #define wxConfig_Write(_swigobj,_swigarg0,_swigarg1) (_swigobj->Write(_swigarg0,_swigarg1))
1026 static PyObject
*_wrap_wxConfig_Write(PyObject
*self
, PyObject
*args
) {
1027 PyObject
* _resultobj
;
1033 PyObject
* _obj1
= 0;
1034 PyObject
* _obj2
= 0;
1037 if(!PyArg_ParseTuple(args
,"sOO:wxConfig_Write",&_argc0
,&_obj1
,&_obj2
))
1040 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
1041 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_Write. Expected _wxConfig_p.");
1046 if (!PyString_Check(_obj1
)) {
1047 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1050 _arg1
= new wxString(PyString_AsString(_obj1
));
1053 if (!PyString_Check(_obj2
)) {
1054 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1057 _arg2
= new wxString(PyString_AsString(_obj2
));
1059 _result
= (bool )wxConfig_Write(_arg0
,*_arg1
,*_arg2
);
1060 _resultobj
= Py_BuildValue("i",_result
);
1072 #define wxConfig_WriteInt(_swigobj,_swigarg0,_swigarg1) (_swigobj->Write(_swigarg0,_swigarg1))
1073 static PyObject
*_wrap_wxConfig_WriteInt(PyObject
*self
, PyObject
*args
) {
1074 PyObject
* _resultobj
;
1080 PyObject
* _obj1
= 0;
1083 if(!PyArg_ParseTuple(args
,"sOl:wxConfig_WriteInt",&_argc0
,&_obj1
,&_arg2
))
1086 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
1087 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_WriteInt. Expected _wxConfig_p.");
1092 if (!PyString_Check(_obj1
)) {
1093 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1096 _arg1
= new wxString(PyString_AsString(_obj1
));
1098 _result
= (bool )wxConfig_WriteInt(_arg0
,*_arg1
,_arg2
);
1099 _resultobj
= Py_BuildValue("i",_result
);
1107 #define wxConfig_WriteFloat(_swigobj,_swigarg0,_swigarg1) (_swigobj->Write(_swigarg0,_swigarg1))
1108 static PyObject
*_wrap_wxConfig_WriteFloat(PyObject
*self
, PyObject
*args
) {
1109 PyObject
* _resultobj
;
1115 PyObject
* _obj1
= 0;
1118 if(!PyArg_ParseTuple(args
,"sOd:wxConfig_WriteFloat",&_argc0
,&_obj1
,&_arg2
))
1121 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
1122 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_WriteFloat. Expected _wxConfig_p.");
1127 if (!PyString_Check(_obj1
)) {
1128 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1131 _arg1
= new wxString(PyString_AsString(_obj1
));
1133 _result
= (bool )wxConfig_WriteFloat(_arg0
,*_arg1
,_arg2
);
1134 _resultobj
= Py_BuildValue("i",_result
);
1142 static PyMethodDef utilscMethods
[] = {
1143 { "wxConfig_WriteFloat", _wrap_wxConfig_WriteFloat
, 1 },
1144 { "wxConfig_WriteInt", _wrap_wxConfig_WriteInt
, 1 },
1145 { "wxConfig_Write", _wrap_wxConfig_Write
, 1 },
1146 { "wxConfig_SetVendorName", _wrap_wxConfig_SetVendorName
, 1 },
1147 { "wxConfig_SetRecordDefaults", _wrap_wxConfig_SetRecordDefaults
, 1 },
1148 { "wxConfig_SetPath", _wrap_wxConfig_SetPath
, 1 },
1149 { "wxConfig_SetExpandEnvVars", _wrap_wxConfig_SetExpandEnvVars
, 1 },
1150 { "wxConfig_SetAppName", _wrap_wxConfig_SetAppName
, 1 },
1151 { "wxConfig_ReadFloat", _wrap_wxConfig_ReadFloat
, 1 },
1152 { "wxConfig_ReadInt", _wrap_wxConfig_ReadInt
, 1 },
1153 { "wxConfig_Read", _wrap_wxConfig_Read
, 1 },
1154 { "wxConfig_IsRecordingDefaults", _wrap_wxConfig_IsRecordingDefaults
, 1 },
1155 { "wxConfig_IsExpandingEnvVars", _wrap_wxConfig_IsExpandingEnvVars
, 1 },
1156 { "wxConfig_HasGroup", _wrap_wxConfig_HasGroup
, 1 },
1157 { "wxConfig_HasEntry", _wrap_wxConfig_HasEntry
, 1 },
1158 { "wxConfig_GetVendorName", _wrap_wxConfig_GetVendorName
, 1 },
1159 { "wxConfig_GetPath", _wrap_wxConfig_GetPath
, 1 },
1160 { "wxConfig_GetNumberOfGroups", _wrap_wxConfig_GetNumberOfGroups
, 1 },
1161 { "wxConfig_GetNumberOfEntries", _wrap_wxConfig_GetNumberOfEntries
, 1 },
1162 { "wxConfig_GetNextEntry", _wrap_wxConfig_GetNextEntry
, 1 },
1163 { "wxConfig_GetNextGroup", _wrap_wxConfig_GetNextGroup
, 1 },
1164 { "wxConfig_GetFirstEntry", _wrap_wxConfig_GetFirstEntry
, 1 },
1165 { "wxConfig_GetFirstGroup", _wrap_wxConfig_GetFirstGroup
, 1 },
1166 { "wxConfig_GetAppName", _wrap_wxConfig_GetAppName
, 1 },
1167 { "wxConfig_Flush", _wrap_wxConfig_Flush
, 1 },
1168 { "wxConfig_Exists", _wrap_wxConfig_Exists
, 1 },
1169 { "wxConfig_DeleteGroup", _wrap_wxConfig_DeleteGroup
, 1 },
1170 { "wxConfig_DeleteEntry", _wrap_wxConfig_DeleteEntry
, 1 },
1171 { "wxConfig_DeleteAll", _wrap_wxConfig_DeleteAll
, 1 },
1172 { "wxConfig_DontCreateOnDemand", _wrap_wxConfig_DontCreateOnDemand
, 1 },
1173 { "delete_wxConfig", _wrap_delete_wxConfig
, 1 },
1174 { "new_wxConfig", _wrap_new_wxConfig
, 1 },
1177 static PyObject
*SWIG_globals
;
1181 SWIGEXPORT(void,initutilsc
)() {
1183 SWIG_globals
= SWIG_newvarlink();
1184 m
= Py_InitModule("utilsc", utilscMethods
);
1185 d
= PyModule_GetDict(m
);
1187 * These are the pointer type-equivalency mappings.
1188 * (Used by the SWIG pointer type-checker).
1190 SWIG_RegisterMapping("_signed_long","_long",0);
1191 SWIG_RegisterMapping("_long","_unsigned_long",0);
1192 SWIG_RegisterMapping("_long","_signed_long",0);
1193 SWIG_RegisterMapping("_wxConfig","_class_wxConfig",0);
1194 SWIG_RegisterMapping("_unsigned_long","_long",0);
1195 SWIG_RegisterMapping("_signed_int","_int",0);
1196 SWIG_RegisterMapping("_unsigned_short","_short",0);
1197 SWIG_RegisterMapping("_signed_short","_short",0);
1198 SWIG_RegisterMapping("_unsigned_int","_int",0);
1199 SWIG_RegisterMapping("_short","_unsigned_short",0);
1200 SWIG_RegisterMapping("_short","_signed_short",0);
1201 SWIG_RegisterMapping("_int","_unsigned_int",0);
1202 SWIG_RegisterMapping("_int","_signed_int",0);
1203 SWIG_RegisterMapping("_class_wxConfig","_wxConfig",0);