reSWIGged
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32591 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1649,7 +1649,8 @@ static wxPyCoreAPI API = {
|
||||
wxPyOORClientData_dtor,
|
||||
|
||||
wxPyCBInputStream_create,
|
||||
|
||||
wxPyCBInputStream_copy,
|
||||
|
||||
wxPyInstance_Check,
|
||||
wxPySwigInstance_Check,
|
||||
|
||||
@@ -7897,7 +7898,6 @@ static PyObject *_wrap_new_FSFile(PyObject *, PyObject *args, PyObject *kwargs)
|
||||
wxDateTime arg5 ;
|
||||
wxFSFile *result;
|
||||
wxPyInputStream *temp1 ;
|
||||
bool created1 ;
|
||||
bool temp2 = false ;
|
||||
bool temp3 = false ;
|
||||
bool temp4 = false ;
|
||||
@@ -7913,16 +7913,14 @@ static PyObject *_wrap_new_FSFile(PyObject *, PyObject *args, PyObject *kwargs)
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:new_FSFile",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
|
||||
{
|
||||
if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) {
|
||||
arg1 = temp1->m_wxis;
|
||||
created1 = false;
|
||||
arg1 = wxPyCBInputStream_copy((wxPyCBInputStream*)temp1->m_wxis);
|
||||
} else {
|
||||
PyErr_Clear(); // clear the failure of the wxPyConvert above
|
||||
arg1 = wxPyCBInputStream_create(obj0, false);
|
||||
arg1 = wxPyCBInputStream_create(obj0, true);
|
||||
if (arg1 == NULL) {
|
||||
PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object.");
|
||||
PyErr_SetString(PyExc_TypeError, "Expected wx.InputStream or Python file-like object.");
|
||||
SWIG_fail;
|
||||
}
|
||||
created1 = true;
|
||||
}
|
||||
}
|
||||
{
|
||||
@@ -7960,10 +7958,6 @@ static PyObject *_wrap_new_FSFile(PyObject *, PyObject *args, PyObject *kwargs)
|
||||
{
|
||||
resultobj = wxPyMake_wxObject(result, 1);
|
||||
}
|
||||
{
|
||||
if (created1)
|
||||
delete arg1;
|
||||
}
|
||||
{
|
||||
if (temp2)
|
||||
delete arg2;
|
||||
@@ -7978,10 +7972,6 @@ static PyObject *_wrap_new_FSFile(PyObject *, PyObject *args, PyObject *kwargs)
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
{
|
||||
if (created1)
|
||||
delete arg1;
|
||||
}
|
||||
{
|
||||
if (temp2)
|
||||
delete arg2;
|
||||
@@ -10469,7 +10459,7 @@ static PyObject *_wrap_new_ImageFromStream(PyObject *, PyObject *args, PyObject
|
||||
PyErr_Clear(); // clear the failure of the wxPyConvert above
|
||||
arg1 = wxPyCBInputStream_create(obj0, false);
|
||||
if (arg1 == NULL) {
|
||||
PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object.");
|
||||
PyErr_SetString(PyExc_TypeError, "Expected wx.InputStream or Python file-like object.");
|
||||
SWIG_fail;
|
||||
}
|
||||
created1 = true;
|
||||
@@ -10496,14 +10486,12 @@ static PyObject *_wrap_new_ImageFromStream(PyObject *, PyObject *args, PyObject
|
||||
}
|
||||
resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1);
|
||||
{
|
||||
if (created1)
|
||||
delete arg1;
|
||||
if (created1) delete arg1;
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
{
|
||||
if (created1)
|
||||
delete arg1;
|
||||
if (created1) delete arg1;
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
@@ -10534,7 +10522,7 @@ static PyObject *_wrap_new_ImageFromStreamMime(PyObject *, PyObject *args, PyObj
|
||||
PyErr_Clear(); // clear the failure of the wxPyConvert above
|
||||
arg1 = wxPyCBInputStream_create(obj0, false);
|
||||
if (arg1 == NULL) {
|
||||
PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object.");
|
||||
PyErr_SetString(PyExc_TypeError, "Expected wx.InputStream or Python file-like object.");
|
||||
SWIG_fail;
|
||||
}
|
||||
created1 = true;
|
||||
@@ -10560,8 +10548,7 @@ static PyObject *_wrap_new_ImageFromStreamMime(PyObject *, PyObject *args, PyObj
|
||||
}
|
||||
resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1);
|
||||
{
|
||||
if (created1)
|
||||
delete arg1;
|
||||
if (created1) delete arg1;
|
||||
}
|
||||
{
|
||||
if (temp2)
|
||||
@@ -10570,8 +10557,7 @@ static PyObject *_wrap_new_ImageFromStreamMime(PyObject *, PyObject *args, PyObj
|
||||
return resultobj;
|
||||
fail:
|
||||
{
|
||||
if (created1)
|
||||
delete arg1;
|
||||
if (created1) delete arg1;
|
||||
}
|
||||
{
|
||||
if (temp2)
|
||||
@@ -11792,7 +11778,7 @@ static PyObject *_wrap_Image_CanReadStream(PyObject *, PyObject *args, PyObject
|
||||
PyErr_Clear(); // clear the failure of the wxPyConvert above
|
||||
arg1 = wxPyCBInputStream_create(obj0, false);
|
||||
if (arg1 == NULL) {
|
||||
PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object.");
|
||||
PyErr_SetString(PyExc_TypeError, "Expected wx.InputStream or Python file-like object.");
|
||||
SWIG_fail;
|
||||
}
|
||||
created1 = true;
|
||||
@@ -11809,14 +11795,12 @@ static PyObject *_wrap_Image_CanReadStream(PyObject *, PyObject *args, PyObject
|
||||
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
||||
}
|
||||
{
|
||||
if (created1)
|
||||
delete arg1;
|
||||
if (created1) delete arg1;
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
{
|
||||
if (created1)
|
||||
delete arg1;
|
||||
if (created1) delete arg1;
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
@@ -11850,7 +11834,7 @@ static PyObject *_wrap_Image_LoadStream(PyObject *, PyObject *args, PyObject *kw
|
||||
PyErr_Clear(); // clear the failure of the wxPyConvert above
|
||||
arg2 = wxPyCBInputStream_create(obj1, false);
|
||||
if (arg2 == NULL) {
|
||||
PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object.");
|
||||
PyErr_SetString(PyExc_TypeError, "Expected wx.InputStream or Python file-like object.");
|
||||
SWIG_fail;
|
||||
}
|
||||
created2 = true;
|
||||
@@ -11879,14 +11863,12 @@ static PyObject *_wrap_Image_LoadStream(PyObject *, PyObject *args, PyObject *kw
|
||||
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
||||
}
|
||||
{
|
||||
if (created2)
|
||||
delete arg2;
|
||||
if (created2) delete arg2;
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
{
|
||||
if (created2)
|
||||
delete arg2;
|
||||
if (created2) delete arg2;
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
@@ -11921,7 +11903,7 @@ static PyObject *_wrap_Image_LoadMimeStream(PyObject *, PyObject *args, PyObject
|
||||
PyErr_Clear(); // clear the failure of the wxPyConvert above
|
||||
arg2 = wxPyCBInputStream_create(obj1, false);
|
||||
if (arg2 == NULL) {
|
||||
PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object.");
|
||||
PyErr_SetString(PyExc_TypeError, "Expected wx.InputStream or Python file-like object.");
|
||||
SWIG_fail;
|
||||
}
|
||||
created2 = true;
|
||||
@@ -11949,8 +11931,7 @@ static PyObject *_wrap_Image_LoadMimeStream(PyObject *, PyObject *args, PyObject
|
||||
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
||||
}
|
||||
{
|
||||
if (created2)
|
||||
delete arg2;
|
||||
if (created2) delete arg2;
|
||||
}
|
||||
{
|
||||
if (temp3)
|
||||
@@ -11959,8 +11940,7 @@ static PyObject *_wrap_Image_LoadMimeStream(PyObject *, PyObject *args, PyObject
|
||||
return resultobj;
|
||||
fail:
|
||||
{
|
||||
if (created2)
|
||||
delete arg2;
|
||||
if (created2) delete arg2;
|
||||
}
|
||||
{
|
||||
if (temp3)
|
||||
|
Reference in New Issue
Block a user