wxPython 2.0b9, second phase (gtk)
Added gobs of stuff, see wxPython/README.txt for details git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2320 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -117,7 +117,7 @@ extern wxAcceleratorEntry* wxAcceleratorEntry_LIST_helper(PyObject* source);
|
||||
static char* wxStringErrorMsg = "string type is required for parameter";
|
||||
|
||||
#ifdef SEPARATE
|
||||
static wxString wxPyEmptyStr("");
|
||||
wxString wxPyEmptyStr("");
|
||||
#endif
|
||||
|
||||
static PyObject* __EnumerationHelper(bool flag, wxString& str, long index) {
|
||||
@@ -153,7 +153,7 @@ static PyObject *_wrap_new_wxConfig(PyObject *self, PyObject *args) {
|
||||
PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
|
||||
return NULL;
|
||||
}
|
||||
_arg0 = new wxString(PyString_AsString(_obj0));
|
||||
_arg0 = new wxString(PyString_AsString(_obj0), PyString_Size(_obj0));
|
||||
}
|
||||
if (_obj1)
|
||||
{
|
||||
@@ -161,7 +161,7 @@ static PyObject *_wrap_new_wxConfig(PyObject *self, PyObject *args) {
|
||||
PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
|
||||
return NULL;
|
||||
}
|
||||
_arg1 = new wxString(PyString_AsString(_obj1));
|
||||
_arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
|
||||
}
|
||||
if (_obj2)
|
||||
{
|
||||
@@ -169,7 +169,7 @@ static PyObject *_wrap_new_wxConfig(PyObject *self, PyObject *args) {
|
||||
PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
|
||||
return NULL;
|
||||
}
|
||||
_arg2 = new wxString(PyString_AsString(_obj2));
|
||||
_arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2));
|
||||
}
|
||||
if (_obj3)
|
||||
{
|
||||
@@ -177,10 +177,14 @@ static PyObject *_wrap_new_wxConfig(PyObject *self, PyObject *args) {
|
||||
PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
|
||||
return NULL;
|
||||
}
|
||||
_arg3 = new wxString(PyString_AsString(_obj3));
|
||||
_arg3 = new wxString(PyString_AsString(_obj3), PyString_Size(_obj3));
|
||||
}
|
||||
_result = (wxConfig *)new_wxConfig(*_arg0,*_arg1,*_arg2,*_arg3,_arg4);
|
||||
SWIG_MakePtr(_ptemp, (char *) _result,"_wxConfig_p");
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
_result = (wxConfig *)new_wxConfig(*_arg0,*_arg1,*_arg2,*_arg3,_arg4);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} SWIG_MakePtr(_ptemp, (char *) _result,"_wxConfig_p");
|
||||
_resultobj = Py_BuildValue("s",_ptemp);
|
||||
{
|
||||
if (_obj0)
|
||||
@@ -216,8 +220,12 @@ static PyObject *_wrap_delete_wxConfig(PyObject *self, PyObject *args) {
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
delete_wxConfig(_arg0);
|
||||
Py_INCREF(Py_None);
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
delete_wxConfig(_arg0);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} Py_INCREF(Py_None);
|
||||
_resultobj = Py_None;
|
||||
return _resultobj;
|
||||
}
|
||||
@@ -237,8 +245,12 @@ static PyObject *_wrap_wxConfig_DontCreateOnDemand(PyObject *self, PyObject *arg
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
wxConfig_DontCreateOnDemand(_arg0);
|
||||
Py_INCREF(Py_None);
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
wxConfig_DontCreateOnDemand(_arg0);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} Py_INCREF(Py_None);
|
||||
_resultobj = Py_None;
|
||||
return _resultobj;
|
||||
}
|
||||
@@ -259,8 +271,12 @@ static PyObject *_wrap_wxConfig_DeleteAll(PyObject *self, PyObject *args) {
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
_result = (bool )wxConfig_DeleteAll(_arg0);
|
||||
_resultobj = Py_BuildValue("i",_result);
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
_result = (bool )wxConfig_DeleteAll(_arg0);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} _resultobj = Py_BuildValue("i",_result);
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
@@ -289,11 +305,15 @@ static PyObject *_wrap_wxConfig_DeleteEntry(PyObject *self, PyObject *args) {
|
||||
PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
|
||||
return NULL;
|
||||
}
|
||||
_arg1 = new wxString(PyString_AsString(_obj1));
|
||||
_arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
|
||||
}
|
||||
_arg2 = (bool ) tempbool2;
|
||||
_result = (bool )wxConfig_DeleteEntry(_arg0,*_arg1,_arg2);
|
||||
_resultobj = Py_BuildValue("i",_result);
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
_result = (bool )wxConfig_DeleteEntry(_arg0,*_arg1,_arg2);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} _resultobj = Py_BuildValue("i",_result);
|
||||
{
|
||||
if (_obj1)
|
||||
delete _arg1;
|
||||
@@ -324,10 +344,14 @@ static PyObject *_wrap_wxConfig_DeleteGroup(PyObject *self, PyObject *args) {
|
||||
PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
|
||||
return NULL;
|
||||
}
|
||||
_arg1 = new wxString(PyString_AsString(_obj1));
|
||||
_arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
|
||||
}
|
||||
_result = (bool )wxConfig_DeleteGroup(_arg0,*_arg1);
|
||||
_resultobj = Py_BuildValue("i",_result);
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
_result = (bool )wxConfig_DeleteGroup(_arg0,*_arg1);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} _resultobj = Py_BuildValue("i",_result);
|
||||
{
|
||||
if (_obj1)
|
||||
delete _arg1;
|
||||
@@ -358,10 +382,14 @@ static PyObject *_wrap_wxConfig_Exists(PyObject *self, PyObject *args) {
|
||||
PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
|
||||
return NULL;
|
||||
}
|
||||
_arg1 = new wxString(PyString_AsString(_obj1));
|
||||
_arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
|
||||
}
|
||||
_result = (bool )wxConfig_Exists(_arg0,*_arg1);
|
||||
_resultobj = Py_BuildValue("i",_result);
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
_result = (bool )wxConfig_Exists(_arg0,*_arg1);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} _resultobj = Py_BuildValue("i",_result);
|
||||
{
|
||||
if (_obj1)
|
||||
delete _arg1;
|
||||
@@ -388,8 +416,12 @@ static PyObject *_wrap_wxConfig_Flush(PyObject *self, PyObject *args) {
|
||||
}
|
||||
}
|
||||
_arg1 = (bool ) tempbool1;
|
||||
_result = (bool )wxConfig_Flush(_arg0,_arg1);
|
||||
_resultobj = Py_BuildValue("i",_result);
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
_result = (bool )wxConfig_Flush(_arg0,_arg1);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} _resultobj = Py_BuildValue("i",_result);
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
@@ -409,8 +441,12 @@ static PyObject *_wrap_wxConfig_GetAppName(PyObject *self, PyObject *args) {
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
_result = new wxString (wxConfig_GetAppName(_arg0));
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
_result = new wxString (wxConfig_GetAppName(_arg0));
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
}{
|
||||
_resultobj = PyString_FromString(WXSTRINGCAST *(_result));
|
||||
}
|
||||
{
|
||||
@@ -442,8 +478,12 @@ static PyObject *_wrap_wxConfig_GetFirstGroup(PyObject *self, PyObject *args) {
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
_result = (PyObject *)wxConfig_GetFirstGroup(_arg0);
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
_result = (PyObject *)wxConfig_GetFirstGroup(_arg0);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
}{
|
||||
_resultobj = _result;
|
||||
}
|
||||
return _resultobj;
|
||||
@@ -472,8 +512,12 @@ static PyObject *_wrap_wxConfig_GetFirstEntry(PyObject *self, PyObject *args) {
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
_result = (PyObject *)wxConfig_GetFirstEntry(_arg0);
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
_result = (PyObject *)wxConfig_GetFirstEntry(_arg0);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
}{
|
||||
_resultobj = _result;
|
||||
}
|
||||
return _resultobj;
|
||||
@@ -502,8 +546,12 @@ static PyObject *_wrap_wxConfig_GetNextGroup(PyObject *self, PyObject *args) {
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
_result = (PyObject *)wxConfig_GetNextGroup(_arg0,_arg1);
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
_result = (PyObject *)wxConfig_GetNextGroup(_arg0,_arg1);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
}{
|
||||
_resultobj = _result;
|
||||
}
|
||||
return _resultobj;
|
||||
@@ -532,8 +580,12 @@ static PyObject *_wrap_wxConfig_GetNextEntry(PyObject *self, PyObject *args) {
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
_result = (PyObject *)wxConfig_GetNextEntry(_arg0,_arg1);
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
_result = (PyObject *)wxConfig_GetNextEntry(_arg0,_arg1);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
}{
|
||||
_resultobj = _result;
|
||||
}
|
||||
return _resultobj;
|
||||
@@ -558,8 +610,12 @@ static PyObject *_wrap_wxConfig_GetNumberOfEntries(PyObject *self, PyObject *arg
|
||||
}
|
||||
}
|
||||
_arg1 = (bool ) tempbool1;
|
||||
_result = (int )wxConfig_GetNumberOfEntries(_arg0,_arg1);
|
||||
_resultobj = Py_BuildValue("i",_result);
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
_result = (int )wxConfig_GetNumberOfEntries(_arg0,_arg1);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} _resultobj = Py_BuildValue("i",_result);
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
@@ -582,8 +638,12 @@ static PyObject *_wrap_wxConfig_GetNumberOfGroups(PyObject *self, PyObject *args
|
||||
}
|
||||
}
|
||||
_arg1 = (bool ) tempbool1;
|
||||
_result = (int )wxConfig_GetNumberOfGroups(_arg0,_arg1);
|
||||
_resultobj = Py_BuildValue("i",_result);
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
_result = (int )wxConfig_GetNumberOfGroups(_arg0,_arg1);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} _resultobj = Py_BuildValue("i",_result);
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
@@ -603,8 +663,12 @@ static PyObject *_wrap_wxConfig_GetPath(PyObject *self, PyObject *args) {
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
_result = new wxString (wxConfig_GetPath(_arg0));
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
_result = new wxString (wxConfig_GetPath(_arg0));
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
}{
|
||||
_resultobj = PyString_FromString(WXSTRINGCAST *(_result));
|
||||
}
|
||||
{
|
||||
@@ -629,8 +693,12 @@ static PyObject *_wrap_wxConfig_GetVendorName(PyObject *self, PyObject *args) {
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
_result = new wxString (wxConfig_GetVendorName(_arg0));
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
_result = new wxString (wxConfig_GetVendorName(_arg0));
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
}{
|
||||
_resultobj = PyString_FromString(WXSTRINGCAST *(_result));
|
||||
}
|
||||
{
|
||||
@@ -662,10 +730,14 @@ static PyObject *_wrap_wxConfig_HasEntry(PyObject *self, PyObject *args) {
|
||||
PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
|
||||
return NULL;
|
||||
}
|
||||
_arg1 = new wxString(PyString_AsString(_obj1));
|
||||
_arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
|
||||
}
|
||||
_result = (bool )wxConfig_HasEntry(_arg0,*_arg1);
|
||||
_resultobj = Py_BuildValue("i",_result);
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
_result = (bool )wxConfig_HasEntry(_arg0,*_arg1);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} _resultobj = Py_BuildValue("i",_result);
|
||||
{
|
||||
if (_obj1)
|
||||
delete _arg1;
|
||||
@@ -696,10 +768,14 @@ static PyObject *_wrap_wxConfig_HasGroup(PyObject *self, PyObject *args) {
|
||||
PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
|
||||
return NULL;
|
||||
}
|
||||
_arg1 = new wxString(PyString_AsString(_obj1));
|
||||
_arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
|
||||
}
|
||||
_result = (bool )wxConfig_HasGroup(_arg0,*_arg1);
|
||||
_resultobj = Py_BuildValue("i",_result);
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
_result = (bool )wxConfig_HasGroup(_arg0,*_arg1);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} _resultobj = Py_BuildValue("i",_result);
|
||||
{
|
||||
if (_obj1)
|
||||
delete _arg1;
|
||||
@@ -723,8 +799,12 @@ static PyObject *_wrap_wxConfig_IsExpandingEnvVars(PyObject *self, PyObject *arg
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
_result = (bool )wxConfig_IsExpandingEnvVars(_arg0);
|
||||
_resultobj = Py_BuildValue("i",_result);
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
_result = (bool )wxConfig_IsExpandingEnvVars(_arg0);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} _resultobj = Py_BuildValue("i",_result);
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
@@ -744,8 +824,12 @@ static PyObject *_wrap_wxConfig_IsRecordingDefaults(PyObject *self, PyObject *ar
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
_result = (bool )wxConfig_IsRecordingDefaults(_arg0);
|
||||
_resultobj = Py_BuildValue("i",_result);
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
_result = (bool )wxConfig_IsRecordingDefaults(_arg0);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} _resultobj = Py_BuildValue("i",_result);
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
@@ -774,7 +858,7 @@ static PyObject *_wrap_wxConfig_Read(PyObject *self, PyObject *args) {
|
||||
PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
|
||||
return NULL;
|
||||
}
|
||||
_arg1 = new wxString(PyString_AsString(_obj1));
|
||||
_arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
|
||||
}
|
||||
if (_obj2)
|
||||
{
|
||||
@@ -782,10 +866,14 @@ static PyObject *_wrap_wxConfig_Read(PyObject *self, PyObject *args) {
|
||||
PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
|
||||
return NULL;
|
||||
}
|
||||
_arg2 = new wxString(PyString_AsString(_obj2));
|
||||
_arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2));
|
||||
}
|
||||
_result = new wxString (wxConfig_Read(_arg0,*_arg1,*_arg2));
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
_result = new wxString (wxConfig_Read(_arg0,*_arg1,*_arg2));
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
}{
|
||||
_resultobj = PyString_FromString(WXSTRINGCAST *(_result));
|
||||
}
|
||||
{
|
||||
@@ -826,10 +914,14 @@ static PyObject *_wrap_wxConfig_ReadInt(PyObject *self, PyObject *args) {
|
||||
PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
|
||||
return NULL;
|
||||
}
|
||||
_arg1 = new wxString(PyString_AsString(_obj1));
|
||||
_arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
|
||||
}
|
||||
_result = (long )wxConfig_ReadInt(_arg0,*_arg1,_arg2);
|
||||
_resultobj = Py_BuildValue("l",_result);
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
_result = (long )wxConfig_ReadInt(_arg0,*_arg1,_arg2);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} _resultobj = Py_BuildValue("l",_result);
|
||||
{
|
||||
if (_obj1)
|
||||
delete _arg1;
|
||||
@@ -861,44 +953,14 @@ static PyObject *_wrap_wxConfig_ReadFloat(PyObject *self, PyObject *args) {
|
||||
PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
|
||||
return NULL;
|
||||
}
|
||||
_arg1 = new wxString(PyString_AsString(_obj1));
|
||||
_arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
|
||||
}
|
||||
_result = (double )wxConfig_ReadFloat(_arg0,*_arg1,_arg2);
|
||||
_resultobj = Py_BuildValue("d",_result);
|
||||
{
|
||||
if (_obj1)
|
||||
delete _arg1;
|
||||
}
|
||||
return _resultobj;
|
||||
}
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
_result = (double )wxConfig_ReadFloat(_arg0,*_arg1,_arg2);
|
||||
|
||||
#define wxConfig_SetAppName(_swigobj,_swigarg0) (_swigobj->SetAppName(_swigarg0))
|
||||
static PyObject *_wrap_wxConfig_SetAppName(PyObject *self, PyObject *args) {
|
||||
PyObject * _resultobj;
|
||||
wxConfig * _arg0;
|
||||
wxString * _arg1;
|
||||
char * _argc0 = 0;
|
||||
PyObject * _obj1 = 0;
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTuple(args,"sO:wxConfig_SetAppName",&_argc0,&_obj1))
|
||||
return NULL;
|
||||
if (_argc0) {
|
||||
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxConfig_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfig_SetAppName. Expected _wxConfig_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
if (!PyString_Check(_obj1)) {
|
||||
PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
|
||||
return NULL;
|
||||
}
|
||||
_arg1 = new wxString(PyString_AsString(_obj1));
|
||||
}
|
||||
wxConfig_SetAppName(_arg0,*_arg1);
|
||||
Py_INCREF(Py_None);
|
||||
_resultobj = Py_None;
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} _resultobj = Py_BuildValue("d",_result);
|
||||
{
|
||||
if (_obj1)
|
||||
delete _arg1;
|
||||
@@ -924,8 +986,12 @@ static PyObject *_wrap_wxConfig_SetExpandEnvVars(PyObject *self, PyObject *args)
|
||||
}
|
||||
}
|
||||
_arg1 = (bool ) tempbool1;
|
||||
wxConfig_SetExpandEnvVars(_arg0,_arg1);
|
||||
Py_INCREF(Py_None);
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
wxConfig_SetExpandEnvVars(_arg0,_arg1);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} Py_INCREF(Py_None);
|
||||
_resultobj = Py_None;
|
||||
return _resultobj;
|
||||
}
|
||||
@@ -952,10 +1018,14 @@ static PyObject *_wrap_wxConfig_SetPath(PyObject *self, PyObject *args) {
|
||||
PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
|
||||
return NULL;
|
||||
}
|
||||
_arg1 = new wxString(PyString_AsString(_obj1));
|
||||
_arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
|
||||
}
|
||||
wxConfig_SetPath(_arg0,*_arg1);
|
||||
Py_INCREF(Py_None);
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
wxConfig_SetPath(_arg0,*_arg1);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} Py_INCREF(Py_None);
|
||||
_resultobj = Py_None;
|
||||
{
|
||||
if (_obj1)
|
||||
@@ -982,43 +1052,13 @@ static PyObject *_wrap_wxConfig_SetRecordDefaults(PyObject *self, PyObject *args
|
||||
}
|
||||
}
|
||||
_arg1 = (bool ) tempbool1;
|
||||
wxConfig_SetRecordDefaults(_arg0,_arg1);
|
||||
Py_INCREF(Py_None);
|
||||
_resultobj = Py_None;
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxConfig_SetVendorName(_swigobj,_swigarg0) (_swigobj->SetVendorName(_swigarg0))
|
||||
static PyObject *_wrap_wxConfig_SetVendorName(PyObject *self, PyObject *args) {
|
||||
PyObject * _resultobj;
|
||||
wxConfig * _arg0;
|
||||
wxString * _arg1;
|
||||
char * _argc0 = 0;
|
||||
PyObject * _obj1 = 0;
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTuple(args,"sO:wxConfig_SetVendorName",&_argc0,&_obj1))
|
||||
return NULL;
|
||||
if (_argc0) {
|
||||
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxConfig_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxConfig_SetVendorName. Expected _wxConfig_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
if (!PyString_Check(_obj1)) {
|
||||
PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
|
||||
return NULL;
|
||||
}
|
||||
_arg1 = new wxString(PyString_AsString(_obj1));
|
||||
}
|
||||
wxConfig_SetVendorName(_arg0,*_arg1);
|
||||
Py_INCREF(Py_None);
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
wxConfig_SetRecordDefaults(_arg0,_arg1);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} Py_INCREF(Py_None);
|
||||
_resultobj = Py_None;
|
||||
{
|
||||
if (_obj1)
|
||||
delete _arg1;
|
||||
}
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
@@ -1047,17 +1087,21 @@ static PyObject *_wrap_wxConfig_Write(PyObject *self, PyObject *args) {
|
||||
PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
|
||||
return NULL;
|
||||
}
|
||||
_arg1 = new wxString(PyString_AsString(_obj1));
|
||||
_arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
|
||||
}
|
||||
{
|
||||
if (!PyString_Check(_obj2)) {
|
||||
PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
|
||||
return NULL;
|
||||
}
|
||||
_arg2 = new wxString(PyString_AsString(_obj2));
|
||||
_arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2));
|
||||
}
|
||||
_result = (bool )wxConfig_Write(_arg0,*_arg1,*_arg2);
|
||||
_resultobj = Py_BuildValue("i",_result);
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
_result = (bool )wxConfig_Write(_arg0,*_arg1,*_arg2);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} _resultobj = Py_BuildValue("i",_result);
|
||||
{
|
||||
if (_obj1)
|
||||
delete _arg1;
|
||||
@@ -1093,10 +1137,14 @@ static PyObject *_wrap_wxConfig_WriteInt(PyObject *self, PyObject *args) {
|
||||
PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
|
||||
return NULL;
|
||||
}
|
||||
_arg1 = new wxString(PyString_AsString(_obj1));
|
||||
_arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
|
||||
}
|
||||
_result = (bool )wxConfig_WriteInt(_arg0,*_arg1,_arg2);
|
||||
_resultobj = Py_BuildValue("i",_result);
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
_result = (bool )wxConfig_WriteInt(_arg0,*_arg1,_arg2);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} _resultobj = Py_BuildValue("i",_result);
|
||||
{
|
||||
if (_obj1)
|
||||
delete _arg1;
|
||||
@@ -1128,10 +1176,14 @@ static PyObject *_wrap_wxConfig_WriteFloat(PyObject *self, PyObject *args) {
|
||||
PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
|
||||
return NULL;
|
||||
}
|
||||
_arg1 = new wxString(PyString_AsString(_obj1));
|
||||
_arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
|
||||
}
|
||||
_result = (bool )wxConfig_WriteFloat(_arg0,*_arg1,_arg2);
|
||||
_resultobj = Py_BuildValue("i",_result);
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
_result = (bool )wxConfig_WriteFloat(_arg0,*_arg1,_arg2);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} _resultobj = Py_BuildValue("i",_result);
|
||||
{
|
||||
if (_obj1)
|
||||
delete _arg1;
|
||||
@@ -1143,11 +1195,9 @@ static PyMethodDef utilscMethods[] = {
|
||||
{ "wxConfig_WriteFloat", _wrap_wxConfig_WriteFloat, 1 },
|
||||
{ "wxConfig_WriteInt", _wrap_wxConfig_WriteInt, 1 },
|
||||
{ "wxConfig_Write", _wrap_wxConfig_Write, 1 },
|
||||
{ "wxConfig_SetVendorName", _wrap_wxConfig_SetVendorName, 1 },
|
||||
{ "wxConfig_SetRecordDefaults", _wrap_wxConfig_SetRecordDefaults, 1 },
|
||||
{ "wxConfig_SetPath", _wrap_wxConfig_SetPath, 1 },
|
||||
{ "wxConfig_SetExpandEnvVars", _wrap_wxConfig_SetExpandEnvVars, 1 },
|
||||
{ "wxConfig_SetAppName", _wrap_wxConfig_SetAppName, 1 },
|
||||
{ "wxConfig_ReadFloat", _wrap_wxConfig_ReadFloat, 1 },
|
||||
{ "wxConfig_ReadInt", _wrap_wxConfig_ReadInt, 1 },
|
||||
{ "wxConfig_Read", _wrap_wxConfig_Read, 1 },
|
||||
|
||||
Reference in New Issue
Block a user