reSWIGged
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25763 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2271,6 +2271,7 @@ static PyObject *_wrap_new_Choice(PyObject *self, PyObject *args, PyObject *kwar
|
||||
wxChoice *result;
|
||||
wxPoint temp3 ;
|
||||
wxSize temp4 ;
|
||||
bool temp5 = False ;
|
||||
bool temp8 = False ;
|
||||
PyObject * obj0 = 0 ;
|
||||
PyObject * obj1 = 0 ;
|
||||
@@ -2309,6 +2310,7 @@ static PyObject *_wrap_new_Choice(PyObject *self, PyObject *args, PyObject *kwar
|
||||
SWIG_fail;
|
||||
}
|
||||
arg5 = new wxArrayString;
|
||||
temp5 = True;
|
||||
int i, len=PySequence_Length(obj4);
|
||||
for (i=0; i<len; i++) {
|
||||
PyObject* item = PySequence_GetItem(obj4, i);
|
||||
@@ -2351,7 +2353,7 @@ static PyObject *_wrap_new_Choice(PyObject *self, PyObject *args, PyObject *kwar
|
||||
}
|
||||
resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxChoice, 1);
|
||||
{
|
||||
if (arg5) delete arg5;
|
||||
if (temp5) delete arg5;
|
||||
}
|
||||
{
|
||||
if (temp8)
|
||||
@@ -2360,7 +2362,7 @@ static PyObject *_wrap_new_Choice(PyObject *self, PyObject *args, PyObject *kwar
|
||||
return resultobj;
|
||||
fail:
|
||||
{
|
||||
if (arg5) delete arg5;
|
||||
if (temp5) delete arg5;
|
||||
}
|
||||
{
|
||||
if (temp8)
|
||||
@@ -2411,6 +2413,7 @@ static PyObject *_wrap_Choice_Create(PyObject *self, PyObject *args, PyObject *k
|
||||
bool result;
|
||||
wxPoint temp4 ;
|
||||
wxSize temp5 ;
|
||||
bool temp6 = False ;
|
||||
bool temp9 = False ;
|
||||
PyObject * obj0 = 0 ;
|
||||
PyObject * obj1 = 0 ;
|
||||
@@ -2451,6 +2454,7 @@ static PyObject *_wrap_Choice_Create(PyObject *self, PyObject *args, PyObject *k
|
||||
SWIG_fail;
|
||||
}
|
||||
arg6 = new wxArrayString;
|
||||
temp6 = True;
|
||||
int i, len=PySequence_Length(obj5);
|
||||
for (i=0; i<len; i++) {
|
||||
PyObject* item = PySequence_GetItem(obj5, i);
|
||||
@@ -2493,7 +2497,7 @@ static PyObject *_wrap_Choice_Create(PyObject *self, PyObject *args, PyObject *k
|
||||
}
|
||||
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
||||
{
|
||||
if (arg6) delete arg6;
|
||||
if (temp6) delete arg6;
|
||||
}
|
||||
{
|
||||
if (temp9)
|
||||
@@ -2502,7 +2506,7 @@ static PyObject *_wrap_Choice_Create(PyObject *self, PyObject *args, PyObject *k
|
||||
return resultobj;
|
||||
fail:
|
||||
{
|
||||
if (arg6) delete arg6;
|
||||
if (temp6) delete arg6;
|
||||
}
|
||||
{
|
||||
if (temp9)
|
||||
@@ -2733,6 +2737,7 @@ static PyObject *_wrap_new_ComboBox(PyObject *self, PyObject *args, PyObject *kw
|
||||
bool temp3 = False ;
|
||||
wxPoint temp4 ;
|
||||
wxSize temp5 ;
|
||||
bool temp6 = False ;
|
||||
bool temp9 = False ;
|
||||
PyObject * obj0 = 0 ;
|
||||
PyObject * obj1 = 0 ;
|
||||
@@ -2779,6 +2784,7 @@ static PyObject *_wrap_new_ComboBox(PyObject *self, PyObject *args, PyObject *kw
|
||||
SWIG_fail;
|
||||
}
|
||||
arg6 = new wxArrayString;
|
||||
temp6 = True;
|
||||
int i, len=PySequence_Length(obj5);
|
||||
for (i=0; i<len; i++) {
|
||||
PyObject* item = PySequence_GetItem(obj5, i);
|
||||
@@ -2825,7 +2831,7 @@ static PyObject *_wrap_new_ComboBox(PyObject *self, PyObject *args, PyObject *kw
|
||||
delete arg3;
|
||||
}
|
||||
{
|
||||
if (arg6) delete arg6;
|
||||
if (temp6) delete arg6;
|
||||
}
|
||||
{
|
||||
if (temp9)
|
||||
@@ -2838,7 +2844,7 @@ static PyObject *_wrap_new_ComboBox(PyObject *self, PyObject *args, PyObject *kw
|
||||
delete arg3;
|
||||
}
|
||||
{
|
||||
if (arg6) delete arg6;
|
||||
if (temp6) delete arg6;
|
||||
}
|
||||
{
|
||||
if (temp9)
|
||||
@@ -2892,6 +2898,7 @@ static PyObject *_wrap_ComboBox_Create(PyObject *self, PyObject *args, PyObject
|
||||
bool temp4 = False ;
|
||||
wxPoint temp5 ;
|
||||
wxSize temp6 ;
|
||||
bool temp7 = False ;
|
||||
bool temp10 = False ;
|
||||
PyObject * obj0 = 0 ;
|
||||
PyObject * obj1 = 0 ;
|
||||
@@ -2940,6 +2947,7 @@ static PyObject *_wrap_ComboBox_Create(PyObject *self, PyObject *args, PyObject
|
||||
SWIG_fail;
|
||||
}
|
||||
arg7 = new wxArrayString;
|
||||
temp7 = True;
|
||||
int i, len=PySequence_Length(obj6);
|
||||
for (i=0; i<len; i++) {
|
||||
PyObject* item = PySequence_GetItem(obj6, i);
|
||||
@@ -2986,7 +2994,7 @@ static PyObject *_wrap_ComboBox_Create(PyObject *self, PyObject *args, PyObject
|
||||
delete arg4;
|
||||
}
|
||||
{
|
||||
if (arg7) delete arg7;
|
||||
if (temp7) delete arg7;
|
||||
}
|
||||
{
|
||||
if (temp10)
|
||||
@@ -2999,7 +3007,7 @@ static PyObject *_wrap_ComboBox_Create(PyObject *self, PyObject *args, PyObject
|
||||
delete arg4;
|
||||
}
|
||||
{
|
||||
if (arg7) delete arg7;
|
||||
if (temp7) delete arg7;
|
||||
}
|
||||
{
|
||||
if (temp10)
|
||||
@@ -4996,6 +5004,7 @@ static PyObject *_wrap_new_ListBox(PyObject *self, PyObject *args, PyObject *kwa
|
||||
wxListBox *result;
|
||||
wxPoint temp3 ;
|
||||
wxSize temp4 ;
|
||||
bool temp5 = False ;
|
||||
bool temp8 = False ;
|
||||
PyObject * obj0 = 0 ;
|
||||
PyObject * obj1 = 0 ;
|
||||
@@ -5034,6 +5043,7 @@ static PyObject *_wrap_new_ListBox(PyObject *self, PyObject *args, PyObject *kwa
|
||||
SWIG_fail;
|
||||
}
|
||||
arg5 = new wxArrayString;
|
||||
temp5 = True;
|
||||
int i, len=PySequence_Length(obj4);
|
||||
for (i=0; i<len; i++) {
|
||||
PyObject* item = PySequence_GetItem(obj4, i);
|
||||
@@ -5076,7 +5086,7 @@ static PyObject *_wrap_new_ListBox(PyObject *self, PyObject *args, PyObject *kwa
|
||||
}
|
||||
resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListBox, 1);
|
||||
{
|
||||
if (arg5) delete arg5;
|
||||
if (temp5) delete arg5;
|
||||
}
|
||||
{
|
||||
if (temp8)
|
||||
@@ -5085,7 +5095,7 @@ static PyObject *_wrap_new_ListBox(PyObject *self, PyObject *args, PyObject *kwa
|
||||
return resultobj;
|
||||
fail:
|
||||
{
|
||||
if (arg5) delete arg5;
|
||||
if (temp5) delete arg5;
|
||||
}
|
||||
{
|
||||
if (temp8)
|
||||
@@ -5136,6 +5146,7 @@ static PyObject *_wrap_ListBox_Create(PyObject *self, PyObject *args, PyObject *
|
||||
bool result;
|
||||
wxPoint temp4 ;
|
||||
wxSize temp5 ;
|
||||
bool temp6 = False ;
|
||||
bool temp9 = False ;
|
||||
PyObject * obj0 = 0 ;
|
||||
PyObject * obj1 = 0 ;
|
||||
@@ -5176,6 +5187,7 @@ static PyObject *_wrap_ListBox_Create(PyObject *self, PyObject *args, PyObject *
|
||||
SWIG_fail;
|
||||
}
|
||||
arg6 = new wxArrayString;
|
||||
temp6 = True;
|
||||
int i, len=PySequence_Length(obj5);
|
||||
for (i=0; i<len; i++) {
|
||||
PyObject* item = PySequence_GetItem(obj5, i);
|
||||
@@ -5218,7 +5230,7 @@ static PyObject *_wrap_ListBox_Create(PyObject *self, PyObject *args, PyObject *
|
||||
}
|
||||
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
||||
{
|
||||
if (arg6) delete arg6;
|
||||
if (temp6) delete arg6;
|
||||
}
|
||||
{
|
||||
if (temp9)
|
||||
@@ -5227,7 +5239,7 @@ static PyObject *_wrap_ListBox_Create(PyObject *self, PyObject *args, PyObject *
|
||||
return resultobj;
|
||||
fail:
|
||||
{
|
||||
if (arg6) delete arg6;
|
||||
if (temp6) delete arg6;
|
||||
}
|
||||
{
|
||||
if (temp9)
|
||||
@@ -5293,6 +5305,7 @@ static PyObject *_wrap_ListBox_InsertItems(PyObject *self, PyObject *args, PyObj
|
||||
wxListBox *arg1 = (wxListBox *) 0 ;
|
||||
wxArrayString *arg2 = 0 ;
|
||||
int arg3 ;
|
||||
bool temp2 = False ;
|
||||
PyObject * obj0 = 0 ;
|
||||
PyObject * obj1 = 0 ;
|
||||
PyObject * obj2 = 0 ;
|
||||
@@ -5308,6 +5321,7 @@ static PyObject *_wrap_ListBox_InsertItems(PyObject *self, PyObject *args, PyObj
|
||||
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);
|
||||
@@ -5334,12 +5348,12 @@ static PyObject *_wrap_ListBox_InsertItems(PyObject *self, PyObject *args, PyObj
|
||||
}
|
||||
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;
|
||||
}
|
||||
@@ -5349,6 +5363,7 @@ static PyObject *_wrap_ListBox_Set(PyObject *self, PyObject *args, PyObject *kwa
|
||||
PyObject *resultobj;
|
||||
wxListBox *arg1 = (wxListBox *) 0 ;
|
||||
wxArrayString *arg2 = 0 ;
|
||||
bool temp2 = False ;
|
||||
PyObject * obj0 = 0 ;
|
||||
PyObject * obj1 = 0 ;
|
||||
char *kwnames[] = {
|
||||
@@ -5363,6 +5378,7 @@ static PyObject *_wrap_ListBox_Set(PyObject *self, PyObject *args, PyObject *kwa
|
||||
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);
|
||||
@@ -5385,12 +5401,12 @@ static PyObject *_wrap_ListBox_Set(PyObject *self, PyObject *args, PyObject *kwa
|
||||
}
|
||||
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;
|
||||
}
|
||||
@@ -5821,6 +5837,7 @@ static PyObject *_wrap_new_CheckListBox(PyObject *self, PyObject *args, PyObject
|
||||
wxCheckListBox *result;
|
||||
wxPoint temp3 ;
|
||||
wxSize temp4 ;
|
||||
bool temp5 = False ;
|
||||
bool temp8 = False ;
|
||||
PyObject * obj0 = 0 ;
|
||||
PyObject * obj1 = 0 ;
|
||||
@@ -5859,6 +5876,7 @@ static PyObject *_wrap_new_CheckListBox(PyObject *self, PyObject *args, PyObject
|
||||
SWIG_fail;
|
||||
}
|
||||
arg5 = new wxArrayString;
|
||||
temp5 = True;
|
||||
int i, len=PySequence_Length(obj4);
|
||||
for (i=0; i<len; i++) {
|
||||
PyObject* item = PySequence_GetItem(obj4, i);
|
||||
@@ -5901,7 +5919,7 @@ static PyObject *_wrap_new_CheckListBox(PyObject *self, PyObject *args, PyObject
|
||||
}
|
||||
resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCheckListBox, 1);
|
||||
{
|
||||
if (arg5) delete arg5;
|
||||
if (temp5) delete arg5;
|
||||
}
|
||||
{
|
||||
if (temp8)
|
||||
@@ -5910,7 +5928,7 @@ static PyObject *_wrap_new_CheckListBox(PyObject *self, PyObject *args, PyObject
|
||||
return resultobj;
|
||||
fail:
|
||||
{
|
||||
if (arg5) delete arg5;
|
||||
if (temp5) delete arg5;
|
||||
}
|
||||
{
|
||||
if (temp8)
|
||||
@@ -5961,6 +5979,7 @@ static PyObject *_wrap_CheckListBox_Create(PyObject *self, PyObject *args, PyObj
|
||||
bool result;
|
||||
wxPoint temp4 ;
|
||||
wxSize temp5 ;
|
||||
bool temp6 = False ;
|
||||
bool temp9 = False ;
|
||||
PyObject * obj0 = 0 ;
|
||||
PyObject * obj1 = 0 ;
|
||||
@@ -6001,6 +6020,7 @@ static PyObject *_wrap_CheckListBox_Create(PyObject *self, PyObject *args, PyObj
|
||||
SWIG_fail;
|
||||
}
|
||||
arg6 = new wxArrayString;
|
||||
temp6 = True;
|
||||
int i, len=PySequence_Length(obj5);
|
||||
for (i=0; i<len; i++) {
|
||||
PyObject* item = PySequence_GetItem(obj5, i);
|
||||
@@ -6043,7 +6063,7 @@ static PyObject *_wrap_CheckListBox_Create(PyObject *self, PyObject *args, PyObj
|
||||
}
|
||||
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
||||
{
|
||||
if (arg6) delete arg6;
|
||||
if (temp6) delete arg6;
|
||||
}
|
||||
{
|
||||
if (temp9)
|
||||
@@ -6052,7 +6072,7 @@ static PyObject *_wrap_CheckListBox_Create(PyObject *self, PyObject *args, PyObj
|
||||
return resultobj;
|
||||
fail:
|
||||
{
|
||||
if (arg6) delete arg6;
|
||||
if (temp6) delete arg6;
|
||||
}
|
||||
{
|
||||
if (temp9)
|
||||
@@ -6569,6 +6589,7 @@ static PyObject *_wrap_TextAttr_SetTabs(PyObject *self, PyObject *args, PyObject
|
||||
PyObject *resultobj;
|
||||
wxTextAttr *arg1 = (wxTextAttr *) 0 ;
|
||||
wxArrayInt *arg2 = 0 ;
|
||||
bool temp2 = False ;
|
||||
PyObject * obj0 = 0 ;
|
||||
PyObject * obj1 = 0 ;
|
||||
char *kwnames[] = {
|
||||
@@ -6583,6 +6604,7 @@ static PyObject *_wrap_TextAttr_SetTabs(PyObject *self, PyObject *args, PyObject
|
||||
SWIG_fail;
|
||||
}
|
||||
arg2 = new wxArrayInt;
|
||||
temp2 = True;
|
||||
int i, len=PySequence_Length(obj1);
|
||||
for (i=0; i<len; i++) {
|
||||
PyObject* item = PySequence_GetItem(obj1, i);
|
||||
@@ -6601,12 +6623,12 @@ static PyObject *_wrap_TextAttr_SetTabs(PyObject *self, PyObject *args, PyObject
|
||||
}
|
||||
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;
|
||||
}
|
||||
@@ -10773,6 +10795,7 @@ static PyObject *_wrap_new_RadioBox(PyObject *self, PyObject *args, PyObject *kw
|
||||
bool temp3 = False ;
|
||||
wxPoint temp4 ;
|
||||
wxSize temp5 ;
|
||||
bool temp6 = False ;
|
||||
bool temp10 = False ;
|
||||
PyObject * obj0 = 0 ;
|
||||
PyObject * obj1 = 0 ;
|
||||
@@ -10818,6 +10841,7 @@ static PyObject *_wrap_new_RadioBox(PyObject *self, PyObject *args, PyObject *kw
|
||||
SWIG_fail;
|
||||
}
|
||||
arg6 = new wxArrayString;
|
||||
temp6 = True;
|
||||
int i, len=PySequence_Length(obj5);
|
||||
for (i=0; i<len; i++) {
|
||||
PyObject* item = PySequence_GetItem(obj5, i);
|
||||
@@ -10870,7 +10894,7 @@ static PyObject *_wrap_new_RadioBox(PyObject *self, PyObject *args, PyObject *kw
|
||||
delete arg3;
|
||||
}
|
||||
{
|
||||
if (arg6) delete arg6;
|
||||
if (temp6) delete arg6;
|
||||
}
|
||||
{
|
||||
if (temp10)
|
||||
@@ -10883,7 +10907,7 @@ static PyObject *_wrap_new_RadioBox(PyObject *self, PyObject *args, PyObject *kw
|
||||
delete arg3;
|
||||
}
|
||||
{
|
||||
if (arg6) delete arg6;
|
||||
if (temp6) delete arg6;
|
||||
}
|
||||
{
|
||||
if (temp10)
|
||||
@@ -10937,6 +10961,7 @@ static PyObject *_wrap_RadioBox_Create(PyObject *self, PyObject *args, PyObject
|
||||
bool temp4 = False ;
|
||||
wxPoint temp5 ;
|
||||
wxSize temp6 ;
|
||||
bool temp7 = False ;
|
||||
bool temp11 = False ;
|
||||
PyObject * obj0 = 0 ;
|
||||
PyObject * obj1 = 0 ;
|
||||
@@ -10984,6 +11009,7 @@ static PyObject *_wrap_RadioBox_Create(PyObject *self, PyObject *args, PyObject
|
||||
SWIG_fail;
|
||||
}
|
||||
arg7 = new wxArrayString;
|
||||
temp7 = True;
|
||||
int i, len=PySequence_Length(obj6);
|
||||
for (i=0; i<len; i++) {
|
||||
PyObject* item = PySequence_GetItem(obj6, i);
|
||||
@@ -11036,7 +11062,7 @@ static PyObject *_wrap_RadioBox_Create(PyObject *self, PyObject *args, PyObject
|
||||
delete arg4;
|
||||
}
|
||||
{
|
||||
if (arg7) delete arg7;
|
||||
if (temp7) delete arg7;
|
||||
}
|
||||
{
|
||||
if (temp11)
|
||||
@@ -11049,7 +11075,7 @@ static PyObject *_wrap_RadioBox_Create(PyObject *self, PyObject *args, PyObject
|
||||
delete arg4;
|
||||
}
|
||||
{
|
||||
if (arg7) delete arg7;
|
||||
if (temp7) delete arg7;
|
||||
}
|
||||
{
|
||||
if (temp11)
|
||||
@@ -25967,6 +25993,36 @@ static PyObject *_wrap_TreeCtrl_Unselect(PyObject *self, PyObject *args, PyObjec
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj;
|
||||
wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
|
||||
wxTreeItemId *arg2 = 0 ;
|
||||
PyObject * obj0 = 0 ;
|
||||
PyObject * obj1 = 0 ;
|
||||
char *kwnames[] = {
|
||||
(char *) "self",(char *) "item", NULL
|
||||
};
|
||||
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) goto fail;
|
||||
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
||||
if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
||||
if (arg2 == NULL) {
|
||||
PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
|
||||
}
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
(arg1)->UnselectItem((wxTreeItemId const &)*arg2);
|
||||
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
Py_INCREF(Py_None); resultobj = Py_None;
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj;
|
||||
wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
|
||||
@@ -25992,6 +26048,44 @@ static PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *self, PyObject *args, PyOb
|
||||
|
||||
|
||||
static PyObject *_wrap_TreeCtrl_SelectItem(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj;
|
||||
wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
|
||||
wxTreeItemId *arg2 = 0 ;
|
||||
bool arg3 = (bool) True ;
|
||||
PyObject * obj0 = 0 ;
|
||||
PyObject * obj1 = 0 ;
|
||||
PyObject * obj2 = 0 ;
|
||||
char *kwnames[] = {
|
||||
(char *) "self",(char *) "item",(char *) "select", NULL
|
||||
};
|
||||
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
|
||||
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
||||
if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
||||
if (arg2 == NULL) {
|
||||
PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
|
||||
}
|
||||
if (obj2) {
|
||||
{
|
||||
arg3 = (bool) SWIG_PyObj_AsBool(obj2);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
}
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
(arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3);
|
||||
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
Py_INCREF(Py_None); resultobj = Py_None;
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj;
|
||||
wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
|
||||
wxTreeItemId *arg2 = 0 ;
|
||||
@@ -26001,7 +26095,7 @@ static PyObject *_wrap_TreeCtrl_SelectItem(PyObject *self, PyObject *args, PyObj
|
||||
(char *) "self",(char *) "item", NULL
|
||||
};
|
||||
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SelectItem",kwnames,&obj0,&obj1)) goto fail;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) goto fail;
|
||||
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
||||
if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
||||
if (arg2 == NULL) {
|
||||
@@ -26009,7 +26103,7 @@ static PyObject *_wrap_TreeCtrl_SelectItem(PyObject *self, PyObject *args, PyObj
|
||||
}
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
(arg1)->SelectItem((wxTreeItemId const &)*arg2);
|
||||
(arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2);
|
||||
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
@@ -30119,8 +30213,10 @@ static PyMethodDef SwigMethods[] = {
|
||||
{ (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"TreeCtrl_Unselect", (PyCFunction) _wrap_TreeCtrl_Unselect, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"TreeCtrl_UnselectAll", (PyCFunction) _wrap_TreeCtrl_UnselectAll, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS },
|
||||
|
Reference in New Issue
Block a user