reSWIGged
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25732 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1036,6 +1036,7 @@ static PyObject *_wrap_EditableListBox_SetStrings(PyObject *self, PyObject *args
|
||||
PyObject *resultobj;
|
||||
wxEditableListBox *arg1 = (wxEditableListBox *) 0 ;
|
||||
wxArrayString *arg2 = 0 ;
|
||||
bool temp2 = False ;
|
||||
PyObject * obj0 = 0 ;
|
||||
PyObject * obj1 = 0 ;
|
||||
char *kwnames[] = {
|
||||
@@ -1050,6 +1051,7 @@ static PyObject *_wrap_EditableListBox_SetStrings(PyObject *self, PyObject *args
|
||||
SWIG_fail;
|
||||
}
|
||||
arg2 = new wxArrayString;
|
||||
temp2 = True;
|
||||
int i, len=PySequence_Length(obj1);
|
||||
for (i=0; i<len; i++) {
|
||||
PyObject* item = PySequence_GetItem(obj1, i);
|
||||
@@ -1072,12 +1074,12 @@ static PyObject *_wrap_EditableListBox_SetStrings(PyObject *self, PyObject *args
|
||||
}
|
||||
Py_INCREF(Py_None); resultobj = Py_None;
|
||||
{
|
||||
if (arg2) delete arg2;
|
||||
if (temp2) delete arg2;
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
{
|
||||
if (arg2) delete arg2;
|
||||
if (temp2) delete arg2;
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@@ -601,6 +601,7 @@ static PyObject *_wrap_StyledTextCtrl_AddStyledText(PyObject *self, PyObject *ar
|
||||
PyObject *resultobj;
|
||||
wxStyledTextCtrl *arg1 = (wxStyledTextCtrl *) 0 ;
|
||||
wxMemoryBuffer *arg2 = 0 ;
|
||||
bool temp2 = False ;
|
||||
PyObject * obj0 = 0 ;
|
||||
PyObject * obj1 = 0 ;
|
||||
char *kwnames[] = {
|
||||
@@ -609,9 +610,16 @@ static PyObject *_wrap_StyledTextCtrl_AddStyledText(PyObject *self, PyObject *ar
|
||||
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StyledTextCtrl_AddStyledText",kwnames,&obj0,&obj1)) goto fail;
|
||||
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStyledTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
||||
if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMemoryBuffer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
||||
if (arg2 == NULL) {
|
||||
PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
|
||||
{
|
||||
if (!PyString_Check(obj1)) {
|
||||
PyErr_SetString(PyExc_TypeError, "String buffer expected");
|
||||
SWIG_fail;
|
||||
}
|
||||
char* str = PyString_AS_STRING(obj1);
|
||||
int len = PyString_GET_SIZE(obj1);
|
||||
arg2 = new wxMemoryBuffer(len);
|
||||
temp2 = True;
|
||||
memcpy(arg2->GetData(), str, len);
|
||||
}
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
@@ -621,8 +629,14 @@ static PyObject *_wrap_StyledTextCtrl_AddStyledText(PyObject *self, PyObject *ar
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
Py_INCREF(Py_None); resultobj = Py_None;
|
||||
{
|
||||
if (temp2) delete arg2;
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
{
|
||||
if (temp2) delete arg2;
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@@ -991,9 +1005,7 @@ static PyObject *_wrap_StyledTextCtrl_GetStyledText(PyObject *self, PyObject *ar
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
wxMemoryBuffer * resultptr;
|
||||
resultptr = new wxMemoryBuffer((wxMemoryBuffer &) result);
|
||||
resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxMemoryBuffer, 1);
|
||||
resultobj = PyString_FromStringAndSize((char*)(&result)->GetData(), (&result)->GetDataLen());
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
|
||||
@@ -494,7 +494,7 @@ SWIG_PyObj_AsLong(PyObject * obj)
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
static int _wrap_UTF8String_set(PyObject *) {
|
||||
static int _wrap_UTF8String_set(PyObject *_val) {
|
||||
PyErr_SetString(PyExc_TypeError,"Variable UTF8String is read-only.");
|
||||
return 1;
|
||||
}
|
||||
@@ -514,7 +514,7 @@ static PyObject *_wrap_UTF8String_get() {
|
||||
}
|
||||
|
||||
|
||||
static int _wrap_StyleString_set(PyObject *) {
|
||||
static int _wrap_StyleString_set(PyObject *_val) {
|
||||
PyErr_SetString(PyExc_TypeError,"Variable StyleString is read-only.");
|
||||
return 1;
|
||||
}
|
||||
@@ -534,7 +534,7 @@ static PyObject *_wrap_StyleString_get() {
|
||||
}
|
||||
|
||||
|
||||
static int _wrap_SizeString_set(PyObject *) {
|
||||
static int _wrap_SizeString_set(PyObject *_val) {
|
||||
PyErr_SetString(PyExc_TypeError,"Variable SizeString is read-only.");
|
||||
return 1;
|
||||
}
|
||||
@@ -554,7 +554,7 @@ static PyObject *_wrap_SizeString_get() {
|
||||
}
|
||||
|
||||
|
||||
static int _wrap_PosString_set(PyObject *) {
|
||||
static int _wrap_PosString_set(PyObject *_val) {
|
||||
PyErr_SetString(PyExc_TypeError,"Variable PosString is read-only.");
|
||||
return 1;
|
||||
}
|
||||
@@ -574,7 +574,7 @@ static PyObject *_wrap_PosString_get() {
|
||||
}
|
||||
|
||||
|
||||
static int _wrap_BitmapString_set(PyObject *) {
|
||||
static int _wrap_BitmapString_set(PyObject *_val) {
|
||||
PyErr_SetString(PyExc_TypeError,"Variable BitmapString is read-only.");
|
||||
return 1;
|
||||
}
|
||||
@@ -594,7 +594,7 @@ static PyObject *_wrap_BitmapString_get() {
|
||||
}
|
||||
|
||||
|
||||
static int _wrap_IconString_set(PyObject *) {
|
||||
static int _wrap_IconString_set(PyObject *_val) {
|
||||
PyErr_SetString(PyExc_TypeError,"Variable IconString is read-only.");
|
||||
return 1;
|
||||
}
|
||||
@@ -614,7 +614,7 @@ static PyObject *_wrap_IconString_get() {
|
||||
}
|
||||
|
||||
|
||||
static int _wrap_FontString_set(PyObject *) {
|
||||
static int _wrap_FontString_set(PyObject *_val) {
|
||||
PyErr_SetString(PyExc_TypeError,"Variable FontString is read-only.");
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user