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 /***********************************************************************
26 * swig_lib/python/python.cfg
28 * This file contains coded needed to add variable linking to the
29 * Python interpreter. C variables are added as a new kind of Python
32 * Also contains supporting code for building python under Windows
33 * and things like that.
36 * Revision 1.7 1999/06/22 18:01:12 RD
37 * wxPython 2.1b1: More more set of generated sources...
39 ************************************************************************/
49 /* Definitions for Windows/Unix exporting */
50 #if defined(__WIN32__)
51 # if defined(_MSC_VER)
52 # define SWIGEXPORT(a,b) __declspec(dllexport) a b
54 # if defined(__BORLANDC__)
55 # define SWIGEXPORT(a,b) a _export b
57 # define SWIGEXPORT(a,b) a b
61 # define SWIGEXPORT(a,b) a b
66 #define SWIGSTATIC extern "C"
73 #define SWIGSTATIC static
78 PyObject
*(*get_attr
)(void);
79 int (*set_attr
)(PyObject
*);
82 typedef struct swig_varlinkobject
{
84 swig_globalvar
**vars
;
89 /* ----------------------------------------------------------------------
92 Function for python repr method
93 ---------------------------------------------------------------------- */
96 swig_varlink_repr(swig_varlinkobject
*v
)
99 return PyString_FromString("<Global variables>");
102 /* ---------------------------------------------------------------------
105 Print out all of the global variable names
106 --------------------------------------------------------------------- */
109 swig_varlink_print(swig_varlinkobject
*v
, FILE *fp
, int flags
)
114 fprintf(fp
,"Global variables { ");
116 fprintf(fp
,"%s", v
->vars
[i
]->name
);
118 if (v
->vars
[i
]) fprintf(fp
,", ");
124 /* --------------------------------------------------------------------
127 This function gets the value of a variable and returns it as a
128 PyObject. In our case, we'll be looking at the datatype and
129 converting into a number or string
130 -------------------------------------------------------------------- */
133 swig_varlink_getattr(swig_varlinkobject
*v
, char *n
)
139 if (strcmp(v
->vars
[i
]->name
,n
) == 0) {
140 return (*v
->vars
[i
]->get_attr
)();
144 sprintf(temp
,"C global variable %s not found.", n
);
145 PyErr_SetString(PyExc_NameError
,temp
);
149 /* -------------------------------------------------------------------
150 swig_varlink_setattr()
152 This function sets the value of a variable.
153 ------------------------------------------------------------------- */
156 swig_varlink_setattr(swig_varlinkobject
*v
, char *n
, PyObject
*p
)
161 if (strcmp(v
->vars
[i
]->name
,n
) == 0) {
162 return (*v
->vars
[i
]->set_attr
)(p
);
166 sprintf(temp
,"C global variable %s not found.", n
);
167 PyErr_SetString(PyExc_NameError
,temp
);
171 statichere PyTypeObject varlinktype
= {
172 /* PyObject_HEAD_INIT(&PyType_Type) Note : This doesn't work on some machines */
173 PyObject_HEAD_INIT(0)
175 "varlink", /* Type name */
176 sizeof(swig_varlinkobject
), /* Basic size */
179 (printfunc
) swig_varlink_print
, /* Print */
180 (getattrfunc
) swig_varlink_getattr
, /* get attr */
181 (setattrfunc
) swig_varlink_setattr
, /* Set attr */
183 (reprfunc
) swig_varlink_repr
, /* tp_repr */
184 0, /* tp_as_number */
185 0, /* tp_as_mapping*/
189 /* Create a variable linking object for use later */
191 SWIGSTATIC PyObject
*
192 SWIG_newvarlink(void)
194 swig_varlinkobject
*result
= 0;
195 result
= PyMem_NEW(swig_varlinkobject
,1);
196 varlinktype
.ob_type
= &PyType_Type
; /* Patch varlinktype into a PyType */
197 result
->ob_type
= &varlinktype
;
198 /* _Py_NewReference(result); Does not seem to be necessary */
200 result
->maxvars
= 64;
201 result
->vars
= (swig_globalvar
**) malloc(64*sizeof(swig_globalvar
*));
203 result
->ob_refcnt
= 0;
204 Py_XINCREF((PyObject
*) result
);
205 return ((PyObject
*) result
);
209 SWIG_addvarlink(PyObject
*p
, char *name
,
210 PyObject
*(*get_attr
)(void), int (*set_attr
)(PyObject
*p
))
212 swig_varlinkobject
*v
;
213 v
= (swig_varlinkobject
*) p
;
215 if (v
->nvars
>= v
->maxvars
-1) {
216 v
->maxvars
= 2*v
->maxvars
;
217 v
->vars
= (swig_globalvar
**) realloc(v
->vars
,v
->maxvars
*sizeof(swig_globalvar
*));
218 if (v
->vars
== NULL
) {
219 fprintf(stderr
,"SWIG : Fatal error in initializing Python module.\n");
223 v
->vars
[v
->nvars
] = (swig_globalvar
*) malloc(sizeof(swig_globalvar
));
224 v
->vars
[v
->nvars
]->name
= (char *) malloc(strlen(name
)+1);
225 strcpy(v
->vars
[v
->nvars
]->name
,name
);
226 v
->vars
[v
->nvars
]->get_attr
= get_attr
;
227 v
->vars
[v
->nvars
]->set_attr
= set_attr
;
229 v
->vars
[v
->nvars
] = 0;
234 /*****************************************************************************
239 * This file contains supporting code for the SWIG run-time type checking
240 * mechanism. The following functions are available :
242 * SWIG_RegisterMapping(char *origtype, char *newtype, void *(*cast)(void *));
244 * Registers a new type-mapping with the type-checker. origtype is the
245 * original datatype and newtype is an equivalent type. cast is optional
246 * pointer to a function to cast pointer values between types (this
247 * is typically used to cast pointers from derived classes to base classes in C++)
249 * SWIG_MakePtr(char *buffer, void *ptr, char *typestring);
251 * Makes a pointer string from a pointer and typestring. The result is returned
252 * in buffer which is assumed to hold enough space for the result.
254 * char * SWIG_GetPtr(char *buffer, void **ptr, char *type)
256 * Gets a pointer value from a string. If there is a type-mismatch, returns
257 * a character string to the received type. On success, returns NULL.
260 * You can remap these functions by making a file called "swigptr.swg" in
261 * your the same directory as the interface file you are wrapping.
263 * These functions are normally declared static, but this file can be
264 * can be used in a multi-module environment by redefining the symbol
266 *****************************************************************************/
272 #define SWIGSTATIC extern "C"
279 #define SWIGSTATIC static
283 /* SWIG pointer structure */
285 typedef struct SwigPtrType
{
286 char *name
; /* Datatype name */
287 int len
; /* Length (used for optimization) */
288 void *(*cast
)(void *); /* Pointer casting function */
289 struct SwigPtrType
*next
; /* Linked list pointer */
292 /* Pointer cache structure */
295 int stat
; /* Status (valid) bit */
296 SwigPtrType
*tp
; /* Pointer to type structure */
297 char name
[256]; /* Given datatype name */
298 char mapped
[256]; /* Equivalent name */
303 static int SwigPtrMax
= 64; /* Max entries that can be currently held */
304 /* This value may be adjusted dynamically */
305 static int SwigPtrN
= 0; /* Current number of entries */
306 static int SwigPtrSort
= 0; /* Status flag indicating sort */
307 static int SwigStart
[256]; /* Starting positions of types */
310 static SwigPtrType
*SwigPtrTable
= 0; /* Table containing pointer equivalences */
314 #define SWIG_CACHESIZE 8
315 #define SWIG_CACHEMASK 0x7
316 static SwigCacheType SwigCache
[SWIG_CACHESIZE
];
317 static int SwigCacheIndex
= 0;
318 static int SwigLastCache
= 0;
320 /* Sort comparison function */
321 static int swigsort(const void *data1
, const void *data2
) {
322 SwigPtrType
*d1
= (SwigPtrType
*) data1
;
323 SwigPtrType
*d2
= (SwigPtrType
*) data2
;
324 return strcmp(d1
->name
,d2
->name
);
327 /* Binary Search function */
328 static int swigcmp(const void *key
, const void *data
) {
329 char *k
= (char *) key
;
330 SwigPtrType
*d
= (SwigPtrType
*) data
;
331 return strncmp(k
,d
->name
,d
->len
);
334 /* Register a new datatype with the type-checker */
337 void SWIG_RegisterMapping(char *origtype
, char *newtype
, void *(*cast
)(void *)) {
340 SwigPtrType
*t
= 0,*t1
;
342 /* Allocate the pointer table if necessary */
345 SwigPtrTable
= (SwigPtrType
*) malloc(SwigPtrMax
*sizeof(SwigPtrType
));
349 if (SwigPtrN
>= SwigPtrMax
) {
350 SwigPtrMax
= 2*SwigPtrMax
;
351 SwigPtrTable
= (SwigPtrType
*) realloc((char *) SwigPtrTable
,SwigPtrMax
*sizeof(SwigPtrType
));
353 for (i
= 0; i
< SwigPtrN
; i
++)
354 if (strcmp(SwigPtrTable
[i
].name
,origtype
) == 0) {
355 t
= &SwigPtrTable
[i
];
359 t
= &SwigPtrTable
[SwigPtrN
];
361 t
->len
= strlen(t
->name
);
367 /* Check for existing entry */
370 if ((strcmp(t
->name
,newtype
) == 0)) {
371 if (cast
) t
->cast
= cast
;
377 /* Now place entry (in sorted order) */
379 t1
= (SwigPtrType
*) malloc(sizeof(SwigPtrType
));
381 t1
->len
= strlen(t1
->name
);
388 /* Make a pointer value string */
391 void SWIG_MakePtr(char *_c
, const void *_ptr
, char *type
) {
392 static char _hex
[16] =
393 {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9',
394 'a', 'b', 'c', 'd', 'e', 'f'};
395 unsigned long _p
, _s
;
396 char _result
[20], *_r
; /* Note : a 64-bit hex number = 16 digits */
398 _p
= (unsigned long) _ptr
;
406 while (_r
>= _result
)
415 /* Define for backwards compatibility */
417 #define _swig_make_hex SWIG_MakePtr
419 /* Function for getting a pointer value */
422 char *SWIG_GetPtr(char *_c
, void **ptr
, char *_t
)
429 SwigCacheType
*cache
;
433 /* Pointer values must start with leading underscore */
436 /* Extract hex value from pointer */
438 if ((*_c
>= '0') && (*_c
<= '9'))
439 _p
= (_p
<< 4) + (*_c
- '0');
440 else if ((*_c
>= 'a') && (*_c
<= 'f'))
441 _p
= (_p
<< 4) + ((*_c
- 'a') + 10);
450 qsort((void *) SwigPtrTable
, SwigPtrN
, sizeof(SwigPtrType
), swigsort
);
451 for (i
= 0; i
< 256; i
++) {
452 SwigStart
[i
] = SwigPtrN
;
454 for (i
= SwigPtrN
-1; i
>= 0; i
--) {
455 SwigStart
[(int) (SwigPtrTable
[i
].name
[1])] = i
;
457 for (i
= 255; i
>= 1; i
--) {
458 if (SwigStart
[i
-1] > SwigStart
[i
])
459 SwigStart
[i
-1] = SwigStart
[i
];
462 for (i
= 0; i
< SWIG_CACHESIZE
; i
++)
463 SwigCache
[i
].stat
= 0;
466 /* First check cache for matches. Uses last cache value as starting point */
467 cache
= &SwigCache
[SwigLastCache
];
468 for (i
= 0; i
< SWIG_CACHESIZE
; i
++) {
470 if (strcmp(_t
,cache
->name
) == 0) {
471 if (strcmp(_c
,cache
->mapped
) == 0) {
474 if (cache
->tp
->cast
) *ptr
= (*(cache
->tp
->cast
))(*ptr
);
479 SwigLastCache
= (SwigLastCache
+1) & SWIG_CACHEMASK
;
480 if (!SwigLastCache
) cache
= SwigCache
;
483 /* We have a type mismatch. Will have to look through our type
484 mapping table to figure out whether or not we can accept this datatype */
486 start
= SwigStart
[(int) _t
[1]];
487 end
= SwigStart
[(int) _t
[1]+1];
488 sp
= &SwigPtrTable
[start
];
489 while (start
< end
) {
490 if (swigcmp(_t
,sp
) == 0) break;
494 if (start
>= end
) sp
= 0;
495 /* Try to find a match for this */
497 while (swigcmp(_t
,sp
) == 0) {
501 /* Try to find entry for our given datatype */
503 if (tp
->len
>= 255) {
506 strcpy(temp_type
,tp
->name
);
507 strncat(temp_type
,_t
+len
,255-tp
->len
);
508 if (strcmp(_c
,temp_type
) == 0) {
510 strcpy(SwigCache
[SwigCacheIndex
].mapped
,_c
);
511 strcpy(SwigCache
[SwigCacheIndex
].name
,_t
);
512 SwigCache
[SwigCacheIndex
].stat
= 1;
513 SwigCache
[SwigCacheIndex
].tp
= tp
;
514 SwigCacheIndex
= SwigCacheIndex
& SWIG_CACHEMASK
;
516 /* Get pointer value */
518 if (tp
->cast
) *ptr
= (*(tp
->cast
))(*ptr
);
524 /* Hmmm. Didn't find it this time */
527 /* Didn't find any sort of match for this data.
528 Get the pointer value and return the received type */
532 /* Found a match on the first try. Return pointer value */
537 /* No type specified. Good luck */
542 if (strcmp (_c
, "NULL") == 0) {
551 /* Compatibility mode */
553 #define _swig_get_hex SWIG_GetPtr
555 #define SWIG_init initutilsc
557 #define SWIG_name "utilsc"
560 #include <wx/config.h>
562 static PyObject
* l_output_helper(PyObject
* target
, PyObject
* o
) {
566 } else if (target
== Py_None
) {
570 if (!PyList_Check(target
)) {
572 target
= PyList_New(0);
573 PyList_Append(target
, o2
);
576 PyList_Append(target
,o
);
582 static PyObject
* t_output_helper(PyObject
* target
, PyObject
* o
) {
588 } else if (target
== Py_None
) {
592 if (!PyTuple_Check(target
)) {
594 target
= PyTuple_New(1);
595 PyTuple_SetItem(target
, 0, o2
);
598 PyTuple_SetItem(o3
, 0, o
);
601 target
= PySequence_Concat(o2
, o3
);
609 extern byte
* byte_LIST_helper(PyObject
* source
);
610 extern int* int_LIST_helper(PyObject
* source
);
611 extern long* long_LIST_helper(PyObject
* source
);
612 extern char** string_LIST_helper(PyObject
* source
);
613 extern wxPoint
* wxPoint_LIST_helper(PyObject
* source
);
614 extern wxBitmap
** wxBitmap_LIST_helper(PyObject
* source
);
615 extern wxString
* wxString_LIST_helper(PyObject
* source
);
616 extern wxAcceleratorEntry
* wxAcceleratorEntry_LIST_helper(PyObject
* source
);
619 static char* wxStringErrorMsg
= "string type is required for parameter";
622 wxString
wxPyEmptyStr("");
625 static PyObject
* __EnumerationHelper(bool flag
, wxString
& str
, long index
) {
626 PyObject
* ret
= PyTuple_New(3);
628 PyTuple_SET_ITEM(ret
, 0, PyInt_FromLong(flag
));
629 PyTuple_SET_ITEM(ret
, 1, PyString_FromString(str
));
630 PyTuple_SET_ITEM(ret
, 2, PyInt_FromLong(index
));
634 #define new_wxConfig(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (new wxConfig(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
635 static PyObject
*_wrap_new_wxConfig(PyObject
*self
, PyObject
*args
) {
636 PyObject
* _resultobj
;
638 wxString
* _arg0
= &wxPyEmptyStr
;
639 wxString
* _arg1
= &wxPyEmptyStr
;
640 wxString
* _arg2
= &wxPyEmptyStr
;
641 wxString
* _arg3
= &wxPyEmptyStr
;
643 PyObject
* _obj0
= 0;
644 PyObject
* _obj1
= 0;
645 PyObject
* _obj2
= 0;
646 PyObject
* _obj3
= 0;
650 if(!PyArg_ParseTuple(args
,"|OOOOl:new_wxConfig",&_obj0
,&_obj1
,&_obj2
,&_obj3
,&_arg4
))
654 if (!PyString_Check(_obj0
)) {
655 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
658 _arg0
= new wxString(PyString_AsString(_obj0
), PyString_Size(_obj0
));
662 if (!PyString_Check(_obj1
)) {
663 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
666 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
670 if (!PyString_Check(_obj2
)) {
671 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
674 _arg2
= new wxString(PyString_AsString(_obj2
), PyString_Size(_obj2
));
678 if (!PyString_Check(_obj3
)) {
679 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
682 _arg3
= new wxString(PyString_AsString(_obj3
), PyString_Size(_obj3
));
685 wxPy_BEGIN_ALLOW_THREADS
;
686 _result
= (wxConfig
*)new_wxConfig(*_arg0
,*_arg1
,*_arg2
,*_arg3
,_arg4
);
688 wxPy_END_ALLOW_THREADS
;
689 } SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxConfig_p");
690 _resultobj
= Py_BuildValue("s",_ptemp
);
710 #define delete_wxConfig(_swigobj) (delete _swigobj)
711 static PyObject
*_wrap_delete_wxConfig(PyObject
*self
, PyObject
*args
) {
712 PyObject
* _resultobj
;
717 if(!PyArg_ParseTuple(args
,"s:delete_wxConfig",&_argc0
))
720 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
721 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxConfig. Expected _wxConfig_p.");
726 wxPy_BEGIN_ALLOW_THREADS
;
727 delete_wxConfig(_arg0
);
729 wxPy_END_ALLOW_THREADS
;
730 } Py_INCREF(Py_None
);
731 _resultobj
= Py_None
;
735 #define wxConfig_DontCreateOnDemand(_swigobj) (_swigobj->DontCreateOnDemand())
736 static PyObject
*_wrap_wxConfig_DontCreateOnDemand(PyObject
*self
, PyObject
*args
) {
737 PyObject
* _resultobj
;
742 if(!PyArg_ParseTuple(args
,"s:wxConfig_DontCreateOnDemand",&_argc0
))
745 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
746 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_DontCreateOnDemand. Expected _wxConfig_p.");
751 wxPy_BEGIN_ALLOW_THREADS
;
752 wxConfig_DontCreateOnDemand(_arg0
);
754 wxPy_END_ALLOW_THREADS
;
755 } Py_INCREF(Py_None
);
756 _resultobj
= Py_None
;
760 #define wxConfig_DeleteAll(_swigobj) (_swigobj->DeleteAll())
761 static PyObject
*_wrap_wxConfig_DeleteAll(PyObject
*self
, PyObject
*args
) {
762 PyObject
* _resultobj
;
768 if(!PyArg_ParseTuple(args
,"s:wxConfig_DeleteAll",&_argc0
))
771 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
772 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_DeleteAll. Expected _wxConfig_p.");
777 wxPy_BEGIN_ALLOW_THREADS
;
778 _result
= (bool )wxConfig_DeleteAll(_arg0
);
780 wxPy_END_ALLOW_THREADS
;
781 } _resultobj
= Py_BuildValue("i",_result
);
785 #define wxConfig_DeleteEntry(_swigobj,_swigarg0,_swigarg1) (_swigobj->DeleteEntry(_swigarg0,_swigarg1))
786 static PyObject
*_wrap_wxConfig_DeleteEntry(PyObject
*self
, PyObject
*args
) {
787 PyObject
* _resultobj
;
793 PyObject
* _obj1
= 0;
797 if(!PyArg_ParseTuple(args
,"sO|i:wxConfig_DeleteEntry",&_argc0
,&_obj1
,&tempbool2
))
800 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
801 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_DeleteEntry. Expected _wxConfig_p.");
806 if (!PyString_Check(_obj1
)) {
807 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
810 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
812 _arg2
= (bool ) tempbool2
;
814 wxPy_BEGIN_ALLOW_THREADS
;
815 _result
= (bool )wxConfig_DeleteEntry(_arg0
,*_arg1
,_arg2
);
817 wxPy_END_ALLOW_THREADS
;
818 } _resultobj
= Py_BuildValue("i",_result
);
826 #define wxConfig_DeleteGroup(_swigobj,_swigarg0) (_swigobj->DeleteGroup(_swigarg0))
827 static PyObject
*_wrap_wxConfig_DeleteGroup(PyObject
*self
, PyObject
*args
) {
828 PyObject
* _resultobj
;
833 PyObject
* _obj1
= 0;
836 if(!PyArg_ParseTuple(args
,"sO:wxConfig_DeleteGroup",&_argc0
,&_obj1
))
839 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
840 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_DeleteGroup. Expected _wxConfig_p.");
845 if (!PyString_Check(_obj1
)) {
846 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
849 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
852 wxPy_BEGIN_ALLOW_THREADS
;
853 _result
= (bool )wxConfig_DeleteGroup(_arg0
,*_arg1
);
855 wxPy_END_ALLOW_THREADS
;
856 } _resultobj
= Py_BuildValue("i",_result
);
864 #define wxConfig_Exists(_swigobj,_swigarg0) (_swigobj->Exists(_swigarg0))
865 static PyObject
*_wrap_wxConfig_Exists(PyObject
*self
, PyObject
*args
) {
866 PyObject
* _resultobj
;
871 PyObject
* _obj1
= 0;
874 if(!PyArg_ParseTuple(args
,"sO:wxConfig_Exists",&_argc0
,&_obj1
))
877 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
878 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_Exists. Expected _wxConfig_p.");
883 if (!PyString_Check(_obj1
)) {
884 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
887 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
890 wxPy_BEGIN_ALLOW_THREADS
;
891 _result
= (bool )wxConfig_Exists(_arg0
,*_arg1
);
893 wxPy_END_ALLOW_THREADS
;
894 } _resultobj
= Py_BuildValue("i",_result
);
902 #define wxConfig_Flush(_swigobj,_swigarg0) (_swigobj->Flush(_swigarg0))
903 static PyObject
*_wrap_wxConfig_Flush(PyObject
*self
, PyObject
*args
) {
904 PyObject
* _resultobj
;
912 if(!PyArg_ParseTuple(args
,"s|i:wxConfig_Flush",&_argc0
,&tempbool1
))
915 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
916 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_Flush. Expected _wxConfig_p.");
920 _arg1
= (bool ) tempbool1
;
922 wxPy_BEGIN_ALLOW_THREADS
;
923 _result
= (bool )wxConfig_Flush(_arg0
,_arg1
);
925 wxPy_END_ALLOW_THREADS
;
926 } _resultobj
= Py_BuildValue("i",_result
);
930 #define wxConfig_GetAppName(_swigobj) (_swigobj->GetAppName())
931 static PyObject
*_wrap_wxConfig_GetAppName(PyObject
*self
, PyObject
*args
) {
932 PyObject
* _resultobj
;
938 if(!PyArg_ParseTuple(args
,"s:wxConfig_GetAppName",&_argc0
))
941 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
942 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_GetAppName. Expected _wxConfig_p.");
947 wxPy_BEGIN_ALLOW_THREADS
;
948 _result
= new wxString (wxConfig_GetAppName(_arg0
));
950 wxPy_END_ALLOW_THREADS
;
952 _resultobj
= PyString_FromString(WXSTRINGCAST
*(_result
));
960 static PyObject
* wxConfig_GetFirstGroup(wxConfig
*self
) {
965 cont
= self
->GetFirstGroup(value
, index
);
966 return __EnumerationHelper(cont
, value
, index
);
968 static PyObject
*_wrap_wxConfig_GetFirstGroup(PyObject
*self
, PyObject
*args
) {
969 PyObject
* _resultobj
;
975 if(!PyArg_ParseTuple(args
,"s:wxConfig_GetFirstGroup",&_argc0
))
978 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
979 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_GetFirstGroup. Expected _wxConfig_p.");
984 wxPy_BEGIN_ALLOW_THREADS
;
985 _result
= (PyObject
*)wxConfig_GetFirstGroup(_arg0
);
987 wxPy_END_ALLOW_THREADS
;
989 _resultobj
= _result
;
994 static PyObject
* wxConfig_GetFirstEntry(wxConfig
*self
) {
999 cont
= self
->GetFirstEntry(value
, index
);
1000 return __EnumerationHelper(cont
, value
, index
);
1002 static PyObject
*_wrap_wxConfig_GetFirstEntry(PyObject
*self
, PyObject
*args
) {
1003 PyObject
* _resultobj
;
1009 if(!PyArg_ParseTuple(args
,"s:wxConfig_GetFirstEntry",&_argc0
))
1012 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
1013 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_GetFirstEntry. Expected _wxConfig_p.");
1018 wxPy_BEGIN_ALLOW_THREADS
;
1019 _result
= (PyObject
*)wxConfig_GetFirstEntry(_arg0
);
1021 wxPy_END_ALLOW_THREADS
;
1023 _resultobj
= _result
;
1028 static PyObject
* wxConfig_GetNextGroup(wxConfig
*self
,long index
) {
1032 cont
= self
->GetNextGroup(value
, index
);
1033 return __EnumerationHelper(cont
, value
, index
);
1035 static PyObject
*_wrap_wxConfig_GetNextGroup(PyObject
*self
, PyObject
*args
) {
1036 PyObject
* _resultobj
;
1043 if(!PyArg_ParseTuple(args
,"sl:wxConfig_GetNextGroup",&_argc0
,&_arg1
))
1046 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
1047 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_GetNextGroup. Expected _wxConfig_p.");
1052 wxPy_BEGIN_ALLOW_THREADS
;
1053 _result
= (PyObject
*)wxConfig_GetNextGroup(_arg0
,_arg1
);
1055 wxPy_END_ALLOW_THREADS
;
1057 _resultobj
= _result
;
1062 static PyObject
* wxConfig_GetNextEntry(wxConfig
*self
,long index
) {
1066 cont
= self
->GetNextEntry(value
, index
);
1067 return __EnumerationHelper(cont
, value
, index
);
1069 static PyObject
*_wrap_wxConfig_GetNextEntry(PyObject
*self
, PyObject
*args
) {
1070 PyObject
* _resultobj
;
1077 if(!PyArg_ParseTuple(args
,"sl:wxConfig_GetNextEntry",&_argc0
,&_arg1
))
1080 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
1081 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_GetNextEntry. Expected _wxConfig_p.");
1086 wxPy_BEGIN_ALLOW_THREADS
;
1087 _result
= (PyObject
*)wxConfig_GetNextEntry(_arg0
,_arg1
);
1089 wxPy_END_ALLOW_THREADS
;
1091 _resultobj
= _result
;
1096 #define wxConfig_GetNumberOfEntries(_swigobj,_swigarg0) (_swigobj->GetNumberOfEntries(_swigarg0))
1097 static PyObject
*_wrap_wxConfig_GetNumberOfEntries(PyObject
*self
, PyObject
*args
) {
1098 PyObject
* _resultobj
;
1106 if(!PyArg_ParseTuple(args
,"s|i:wxConfig_GetNumberOfEntries",&_argc0
,&tempbool1
))
1109 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
1110 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_GetNumberOfEntries. Expected _wxConfig_p.");
1114 _arg1
= (bool ) tempbool1
;
1116 wxPy_BEGIN_ALLOW_THREADS
;
1117 _result
= (int )wxConfig_GetNumberOfEntries(_arg0
,_arg1
);
1119 wxPy_END_ALLOW_THREADS
;
1120 } _resultobj
= Py_BuildValue("i",_result
);
1124 #define wxConfig_GetNumberOfGroups(_swigobj,_swigarg0) (_swigobj->GetNumberOfGroups(_swigarg0))
1125 static PyObject
*_wrap_wxConfig_GetNumberOfGroups(PyObject
*self
, PyObject
*args
) {
1126 PyObject
* _resultobj
;
1134 if(!PyArg_ParseTuple(args
,"s|i:wxConfig_GetNumberOfGroups",&_argc0
,&tempbool1
))
1137 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
1138 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_GetNumberOfGroups. Expected _wxConfig_p.");
1142 _arg1
= (bool ) tempbool1
;
1144 wxPy_BEGIN_ALLOW_THREADS
;
1145 _result
= (int )wxConfig_GetNumberOfGroups(_arg0
,_arg1
);
1147 wxPy_END_ALLOW_THREADS
;
1148 } _resultobj
= Py_BuildValue("i",_result
);
1152 #define wxConfig_GetPath(_swigobj) (_swigobj->GetPath())
1153 static PyObject
*_wrap_wxConfig_GetPath(PyObject
*self
, PyObject
*args
) {
1154 PyObject
* _resultobj
;
1160 if(!PyArg_ParseTuple(args
,"s:wxConfig_GetPath",&_argc0
))
1163 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
1164 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_GetPath. Expected _wxConfig_p.");
1169 wxPy_BEGIN_ALLOW_THREADS
;
1170 _result
= new wxString (wxConfig_GetPath(_arg0
));
1172 wxPy_END_ALLOW_THREADS
;
1174 _resultobj
= PyString_FromString(WXSTRINGCAST
*(_result
));
1182 #define wxConfig_GetVendorName(_swigobj) (_swigobj->GetVendorName())
1183 static PyObject
*_wrap_wxConfig_GetVendorName(PyObject
*self
, PyObject
*args
) {
1184 PyObject
* _resultobj
;
1190 if(!PyArg_ParseTuple(args
,"s:wxConfig_GetVendorName",&_argc0
))
1193 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
1194 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_GetVendorName. Expected _wxConfig_p.");
1199 wxPy_BEGIN_ALLOW_THREADS
;
1200 _result
= new wxString (wxConfig_GetVendorName(_arg0
));
1202 wxPy_END_ALLOW_THREADS
;
1204 _resultobj
= PyString_FromString(WXSTRINGCAST
*(_result
));
1212 #define wxConfig_HasEntry(_swigobj,_swigarg0) (_swigobj->HasEntry(_swigarg0))
1213 static PyObject
*_wrap_wxConfig_HasEntry(PyObject
*self
, PyObject
*args
) {
1214 PyObject
* _resultobj
;
1219 PyObject
* _obj1
= 0;
1222 if(!PyArg_ParseTuple(args
,"sO:wxConfig_HasEntry",&_argc0
,&_obj1
))
1225 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
1226 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_HasEntry. Expected _wxConfig_p.");
1231 if (!PyString_Check(_obj1
)) {
1232 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1235 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
1238 wxPy_BEGIN_ALLOW_THREADS
;
1239 _result
= (bool )wxConfig_HasEntry(_arg0
,*_arg1
);
1241 wxPy_END_ALLOW_THREADS
;
1242 } _resultobj
= Py_BuildValue("i",_result
);
1250 #define wxConfig_HasGroup(_swigobj,_swigarg0) (_swigobj->HasGroup(_swigarg0))
1251 static PyObject
*_wrap_wxConfig_HasGroup(PyObject
*self
, PyObject
*args
) {
1252 PyObject
* _resultobj
;
1257 PyObject
* _obj1
= 0;
1260 if(!PyArg_ParseTuple(args
,"sO:wxConfig_HasGroup",&_argc0
,&_obj1
))
1263 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
1264 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_HasGroup. Expected _wxConfig_p.");
1269 if (!PyString_Check(_obj1
)) {
1270 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1273 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
1276 wxPy_BEGIN_ALLOW_THREADS
;
1277 _result
= (bool )wxConfig_HasGroup(_arg0
,*_arg1
);
1279 wxPy_END_ALLOW_THREADS
;
1280 } _resultobj
= Py_BuildValue("i",_result
);
1288 #define wxConfig_IsExpandingEnvVars(_swigobj) (_swigobj->IsExpandingEnvVars())
1289 static PyObject
*_wrap_wxConfig_IsExpandingEnvVars(PyObject
*self
, PyObject
*args
) {
1290 PyObject
* _resultobj
;
1296 if(!PyArg_ParseTuple(args
,"s:wxConfig_IsExpandingEnvVars",&_argc0
))
1299 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
1300 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_IsExpandingEnvVars. Expected _wxConfig_p.");
1305 wxPy_BEGIN_ALLOW_THREADS
;
1306 _result
= (bool )wxConfig_IsExpandingEnvVars(_arg0
);
1308 wxPy_END_ALLOW_THREADS
;
1309 } _resultobj
= Py_BuildValue("i",_result
);
1313 #define wxConfig_IsRecordingDefaults(_swigobj) (_swigobj->IsRecordingDefaults())
1314 static PyObject
*_wrap_wxConfig_IsRecordingDefaults(PyObject
*self
, PyObject
*args
) {
1315 PyObject
* _resultobj
;
1321 if(!PyArg_ParseTuple(args
,"s:wxConfig_IsRecordingDefaults",&_argc0
))
1324 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
1325 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_IsRecordingDefaults. Expected _wxConfig_p.");
1330 wxPy_BEGIN_ALLOW_THREADS
;
1331 _result
= (bool )wxConfig_IsRecordingDefaults(_arg0
);
1333 wxPy_END_ALLOW_THREADS
;
1334 } _resultobj
= Py_BuildValue("i",_result
);
1338 #define wxConfig_Read(_swigobj,_swigarg0,_swigarg1) (_swigobj->Read(_swigarg0,_swigarg1))
1339 static PyObject
*_wrap_wxConfig_Read(PyObject
*self
, PyObject
*args
) {
1340 PyObject
* _resultobj
;
1344 wxString
* _arg2
= &wxPyEmptyStr
;
1346 PyObject
* _obj1
= 0;
1347 PyObject
* _obj2
= 0;
1350 if(!PyArg_ParseTuple(args
,"sO|O:wxConfig_Read",&_argc0
,&_obj1
,&_obj2
))
1353 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
1354 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_Read. Expected _wxConfig_p.");
1359 if (!PyString_Check(_obj1
)) {
1360 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1363 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
1367 if (!PyString_Check(_obj2
)) {
1368 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1371 _arg2
= new wxString(PyString_AsString(_obj2
), PyString_Size(_obj2
));
1374 wxPy_BEGIN_ALLOW_THREADS
;
1375 _result
= new wxString (wxConfig_Read(_arg0
,*_arg1
,*_arg2
));
1377 wxPy_END_ALLOW_THREADS
;
1379 _resultobj
= PyString_FromString(WXSTRINGCAST
*(_result
));
1395 #define wxConfig_ReadInt(_swigobj,_swigarg0,_swigarg1) (_swigobj->Read(_swigarg0,_swigarg1))
1396 static PyObject
*_wrap_wxConfig_ReadInt(PyObject
*self
, PyObject
*args
) {
1397 PyObject
* _resultobj
;
1403 PyObject
* _obj1
= 0;
1406 if(!PyArg_ParseTuple(args
,"sO|l:wxConfig_ReadInt",&_argc0
,&_obj1
,&_arg2
))
1409 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
1410 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_ReadInt. Expected _wxConfig_p.");
1415 if (!PyString_Check(_obj1
)) {
1416 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1419 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
1422 wxPy_BEGIN_ALLOW_THREADS
;
1423 _result
= (long )wxConfig_ReadInt(_arg0
,*_arg1
,_arg2
);
1425 wxPy_END_ALLOW_THREADS
;
1426 } _resultobj
= Py_BuildValue("l",_result
);
1434 #define wxConfig_ReadFloat(_swigobj,_swigarg0,_swigarg1) (_swigobj->Read(_swigarg0,_swigarg1))
1435 static PyObject
*_wrap_wxConfig_ReadFloat(PyObject
*self
, PyObject
*args
) {
1436 PyObject
* _resultobj
;
1442 PyObject
* _obj1
= 0;
1445 if(!PyArg_ParseTuple(args
,"sO|d:wxConfig_ReadFloat",&_argc0
,&_obj1
,&_arg2
))
1448 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
1449 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_ReadFloat. Expected _wxConfig_p.");
1454 if (!PyString_Check(_obj1
)) {
1455 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1458 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
1461 wxPy_BEGIN_ALLOW_THREADS
;
1462 _result
= (double )wxConfig_ReadFloat(_arg0
,*_arg1
,_arg2
);
1464 wxPy_END_ALLOW_THREADS
;
1465 } _resultobj
= Py_BuildValue("d",_result
);
1473 #define wxConfig_SetExpandEnvVars(_swigobj,_swigarg0) (_swigobj->SetExpandEnvVars(_swigarg0))
1474 static PyObject
*_wrap_wxConfig_SetExpandEnvVars(PyObject
*self
, PyObject
*args
) {
1475 PyObject
* _resultobj
;
1482 if(!PyArg_ParseTuple(args
,"s|i:wxConfig_SetExpandEnvVars",&_argc0
,&tempbool1
))
1485 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
1486 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_SetExpandEnvVars. Expected _wxConfig_p.");
1490 _arg1
= (bool ) tempbool1
;
1492 wxPy_BEGIN_ALLOW_THREADS
;
1493 wxConfig_SetExpandEnvVars(_arg0
,_arg1
);
1495 wxPy_END_ALLOW_THREADS
;
1496 } Py_INCREF(Py_None
);
1497 _resultobj
= Py_None
;
1501 #define wxConfig_SetPath(_swigobj,_swigarg0) (_swigobj->SetPath(_swigarg0))
1502 static PyObject
*_wrap_wxConfig_SetPath(PyObject
*self
, PyObject
*args
) {
1503 PyObject
* _resultobj
;
1507 PyObject
* _obj1
= 0;
1510 if(!PyArg_ParseTuple(args
,"sO:wxConfig_SetPath",&_argc0
,&_obj1
))
1513 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
1514 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_SetPath. Expected _wxConfig_p.");
1519 if (!PyString_Check(_obj1
)) {
1520 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1523 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
1526 wxPy_BEGIN_ALLOW_THREADS
;
1527 wxConfig_SetPath(_arg0
,*_arg1
);
1529 wxPy_END_ALLOW_THREADS
;
1530 } Py_INCREF(Py_None
);
1531 _resultobj
= Py_None
;
1539 #define wxConfig_SetRecordDefaults(_swigobj,_swigarg0) (_swigobj->SetRecordDefaults(_swigarg0))
1540 static PyObject
*_wrap_wxConfig_SetRecordDefaults(PyObject
*self
, PyObject
*args
) {
1541 PyObject
* _resultobj
;
1548 if(!PyArg_ParseTuple(args
,"s|i:wxConfig_SetRecordDefaults",&_argc0
,&tempbool1
))
1551 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
1552 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_SetRecordDefaults. Expected _wxConfig_p.");
1556 _arg1
= (bool ) tempbool1
;
1558 wxPy_BEGIN_ALLOW_THREADS
;
1559 wxConfig_SetRecordDefaults(_arg0
,_arg1
);
1561 wxPy_END_ALLOW_THREADS
;
1562 } Py_INCREF(Py_None
);
1563 _resultobj
= Py_None
;
1567 #define wxConfig_Write(_swigobj,_swigarg0,_swigarg1) (_swigobj->Write(_swigarg0,_swigarg1))
1568 static PyObject
*_wrap_wxConfig_Write(PyObject
*self
, PyObject
*args
) {
1569 PyObject
* _resultobj
;
1575 PyObject
* _obj1
= 0;
1576 PyObject
* _obj2
= 0;
1579 if(!PyArg_ParseTuple(args
,"sOO:wxConfig_Write",&_argc0
,&_obj1
,&_obj2
))
1582 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
1583 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_Write. Expected _wxConfig_p.");
1588 if (!PyString_Check(_obj1
)) {
1589 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1592 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
1595 if (!PyString_Check(_obj2
)) {
1596 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1599 _arg2
= new wxString(PyString_AsString(_obj2
), PyString_Size(_obj2
));
1602 wxPy_BEGIN_ALLOW_THREADS
;
1603 _result
= (bool )wxConfig_Write(_arg0
,*_arg1
,*_arg2
);
1605 wxPy_END_ALLOW_THREADS
;
1606 } _resultobj
= Py_BuildValue("i",_result
);
1618 #define wxConfig_WriteInt(_swigobj,_swigarg0,_swigarg1) (_swigobj->Write(_swigarg0,_swigarg1))
1619 static PyObject
*_wrap_wxConfig_WriteInt(PyObject
*self
, PyObject
*args
) {
1620 PyObject
* _resultobj
;
1626 PyObject
* _obj1
= 0;
1629 if(!PyArg_ParseTuple(args
,"sOl:wxConfig_WriteInt",&_argc0
,&_obj1
,&_arg2
))
1632 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
1633 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_WriteInt. Expected _wxConfig_p.");
1638 if (!PyString_Check(_obj1
)) {
1639 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1642 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
1645 wxPy_BEGIN_ALLOW_THREADS
;
1646 _result
= (bool )wxConfig_WriteInt(_arg0
,*_arg1
,_arg2
);
1648 wxPy_END_ALLOW_THREADS
;
1649 } _resultobj
= Py_BuildValue("i",_result
);
1657 #define wxConfig_WriteFloat(_swigobj,_swigarg0,_swigarg1) (_swigobj->Write(_swigarg0,_swigarg1))
1658 static PyObject
*_wrap_wxConfig_WriteFloat(PyObject
*self
, PyObject
*args
) {
1659 PyObject
* _resultobj
;
1665 PyObject
* _obj1
= 0;
1668 if(!PyArg_ParseTuple(args
,"sOd:wxConfig_WriteFloat",&_argc0
,&_obj1
,&_arg2
))
1671 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxConfig_p")) {
1672 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxConfig_WriteFloat. Expected _wxConfig_p.");
1677 if (!PyString_Check(_obj1
)) {
1678 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1681 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
1684 wxPy_BEGIN_ALLOW_THREADS
;
1685 _result
= (bool )wxConfig_WriteFloat(_arg0
,*_arg1
,_arg2
);
1687 wxPy_END_ALLOW_THREADS
;
1688 } _resultobj
= Py_BuildValue("i",_result
);
1696 static PyMethodDef utilscMethods
[] = {
1697 { "wxConfig_WriteFloat", _wrap_wxConfig_WriteFloat
, 1 },
1698 { "wxConfig_WriteInt", _wrap_wxConfig_WriteInt
, 1 },
1699 { "wxConfig_Write", _wrap_wxConfig_Write
, 1 },
1700 { "wxConfig_SetRecordDefaults", _wrap_wxConfig_SetRecordDefaults
, 1 },
1701 { "wxConfig_SetPath", _wrap_wxConfig_SetPath
, 1 },
1702 { "wxConfig_SetExpandEnvVars", _wrap_wxConfig_SetExpandEnvVars
, 1 },
1703 { "wxConfig_ReadFloat", _wrap_wxConfig_ReadFloat
, 1 },
1704 { "wxConfig_ReadInt", _wrap_wxConfig_ReadInt
, 1 },
1705 { "wxConfig_Read", _wrap_wxConfig_Read
, 1 },
1706 { "wxConfig_IsRecordingDefaults", _wrap_wxConfig_IsRecordingDefaults
, 1 },
1707 { "wxConfig_IsExpandingEnvVars", _wrap_wxConfig_IsExpandingEnvVars
, 1 },
1708 { "wxConfig_HasGroup", _wrap_wxConfig_HasGroup
, 1 },
1709 { "wxConfig_HasEntry", _wrap_wxConfig_HasEntry
, 1 },
1710 { "wxConfig_GetVendorName", _wrap_wxConfig_GetVendorName
, 1 },
1711 { "wxConfig_GetPath", _wrap_wxConfig_GetPath
, 1 },
1712 { "wxConfig_GetNumberOfGroups", _wrap_wxConfig_GetNumberOfGroups
, 1 },
1713 { "wxConfig_GetNumberOfEntries", _wrap_wxConfig_GetNumberOfEntries
, 1 },
1714 { "wxConfig_GetNextEntry", _wrap_wxConfig_GetNextEntry
, 1 },
1715 { "wxConfig_GetNextGroup", _wrap_wxConfig_GetNextGroup
, 1 },
1716 { "wxConfig_GetFirstEntry", _wrap_wxConfig_GetFirstEntry
, 1 },
1717 { "wxConfig_GetFirstGroup", _wrap_wxConfig_GetFirstGroup
, 1 },
1718 { "wxConfig_GetAppName", _wrap_wxConfig_GetAppName
, 1 },
1719 { "wxConfig_Flush", _wrap_wxConfig_Flush
, 1 },
1720 { "wxConfig_Exists", _wrap_wxConfig_Exists
, 1 },
1721 { "wxConfig_DeleteGroup", _wrap_wxConfig_DeleteGroup
, 1 },
1722 { "wxConfig_DeleteEntry", _wrap_wxConfig_DeleteEntry
, 1 },
1723 { "wxConfig_DeleteAll", _wrap_wxConfig_DeleteAll
, 1 },
1724 { "wxConfig_DontCreateOnDemand", _wrap_wxConfig_DontCreateOnDemand
, 1 },
1725 { "delete_wxConfig", _wrap_delete_wxConfig
, 1 },
1726 { "new_wxConfig", _wrap_new_wxConfig
, 1 },
1729 static PyObject
*SWIG_globals
;
1733 SWIGEXPORT(void,initutilsc
)() {
1735 SWIG_globals
= SWIG_newvarlink();
1736 m
= Py_InitModule("utilsc", utilscMethods
);
1737 d
= PyModule_GetDict(m
);
1740 wxClassInfo::CleanUpClasses();
1741 wxClassInfo::InitializeClasses();
1744 * These are the pointer type-equivalency mappings.
1745 * (Used by the SWIG pointer type-checker).
1747 SWIG_RegisterMapping("_signed_long","_long",0);
1748 SWIG_RegisterMapping("_long","_unsigned_long",0);
1749 SWIG_RegisterMapping("_long","_signed_long",0);
1750 SWIG_RegisterMapping("_wxConfig","_class_wxConfig",0);
1751 SWIG_RegisterMapping("_unsigned_long","_long",0);
1752 SWIG_RegisterMapping("_signed_int","_int",0);
1753 SWIG_RegisterMapping("_unsigned_short","_short",0);
1754 SWIG_RegisterMapping("_signed_short","_short",0);
1755 SWIG_RegisterMapping("_unsigned_int","_int",0);
1756 SWIG_RegisterMapping("_short","_unsigned_short",0);
1757 SWIG_RegisterMapping("_short","_signed_short",0);
1758 SWIG_RegisterMapping("_int","_unsigned_int",0);
1759 SWIG_RegisterMapping("_int","_signed_int",0);
1760 SWIG_RegisterMapping("_class_wxConfig","_wxConfig",0);