reSWIGged
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25789 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2205,6 +2205,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 ;
|
||||
@@ -2243,6 +2244,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);
|
||||
@@ -2285,7 +2287,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)
|
||||
@@ -2294,7 +2296,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)
|
||||
@@ -2345,6 +2347,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 ;
|
||||
@@ -2385,6 +2388,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);
|
||||
@@ -2427,7 +2431,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)
|
||||
@@ -2436,7 +2440,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)
|
||||
@@ -2667,6 +2671,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 ;
|
||||
@@ -2713,6 +2718,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);
|
||||
@@ -2759,7 +2765,7 @@ static PyObject *_wrap_new_ComboBox(PyObject *self, PyObject *args, PyObject *kw
|
||||
delete arg3;
|
||||
}
|
||||
{
|
||||
if (arg6) delete arg6;
|
||||
if (temp6) delete arg6;
|
||||
}
|
||||
{
|
||||
if (temp9)
|
||||
@@ -2772,7 +2778,7 @@ static PyObject *_wrap_new_ComboBox(PyObject *self, PyObject *args, PyObject *kw
|
||||
delete arg3;
|
||||
}
|
||||
{
|
||||
if (arg6) delete arg6;
|
||||
if (temp6) delete arg6;
|
||||
}
|
||||
{
|
||||
if (temp9)
|
||||
@@ -2826,6 +2832,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 ;
|
||||
@@ -2874,6 +2881,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);
|
||||
@@ -2920,7 +2928,7 @@ static PyObject *_wrap_ComboBox_Create(PyObject *self, PyObject *args, PyObject
|
||||
delete arg4;
|
||||
}
|
||||
{
|
||||
if (arg7) delete arg7;
|
||||
if (temp7) delete arg7;
|
||||
}
|
||||
{
|
||||
if (temp10)
|
||||
@@ -2933,7 +2941,7 @@ static PyObject *_wrap_ComboBox_Create(PyObject *self, PyObject *args, PyObject
|
||||
delete arg4;
|
||||
}
|
||||
{
|
||||
if (arg7) delete arg7;
|
||||
if (temp7) delete arg7;
|
||||
}
|
||||
{
|
||||
if (temp10)
|
||||
@@ -4930,6 +4938,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 ;
|
||||
@@ -4968,6 +4977,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);
|
||||
@@ -5010,7 +5020,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)
|
||||
@@ -5019,7 +5029,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)
|
||||
@@ -5070,6 +5080,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 ;
|
||||
@@ -5110,6 +5121,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);
|
||||
@@ -5152,7 +5164,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)
|
||||
@@ -5161,7 +5173,7 @@ static PyObject *_wrap_ListBox_Create(PyObject *self, PyObject *args, PyObject *
|
||||
return resultobj;
|
||||
fail:
|
||||
{
|
||||
if (arg6) delete arg6;
|
||||
if (temp6) delete arg6;
|
||||
}
|
||||
{
|
||||
if (temp9)
|
||||
@@ -5227,6 +5239,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 ;
|
||||
@@ -5242,6 +5255,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);
|
||||
@@ -5268,12 +5282,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;
|
||||
}
|
||||
@@ -5283,6 +5297,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[] = {
|
||||
@@ -5297,6 +5312,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);
|
||||
@@ -5319,12 +5335,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;
|
||||
}
|
||||
@@ -5755,6 +5771,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 ;
|
||||
@@ -5793,6 +5810,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);
|
||||
@@ -5835,7 +5853,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)
|
||||
@@ -5844,7 +5862,7 @@ static PyObject *_wrap_new_CheckListBox(PyObject *self, PyObject *args, PyObject
|
||||
return resultobj;
|
||||
fail:
|
||||
{
|
||||
if (arg5) delete arg5;
|
||||
if (temp5) delete arg5;
|
||||
}
|
||||
{
|
||||
if (temp8)
|
||||
@@ -5895,6 +5913,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 ;
|
||||
@@ -5935,6 +5954,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);
|
||||
@@ -5977,7 +5997,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)
|
||||
@@ -5986,7 +6006,7 @@ static PyObject *_wrap_CheckListBox_Create(PyObject *self, PyObject *args, PyObj
|
||||
return resultobj;
|
||||
fail:
|
||||
{
|
||||
if (arg6) delete arg6;
|
||||
if (temp6) delete arg6;
|
||||
}
|
||||
{
|
||||
if (temp9)
|
||||
@@ -6478,6 +6498,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[] = {
|
||||
@@ -6492,6 +6513,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);
|
||||
@@ -6510,12 +6532,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;
|
||||
}
|
||||
@@ -10624,6 +10646,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 ;
|
||||
@@ -10669,6 +10692,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);
|
||||
@@ -10721,7 +10745,7 @@ static PyObject *_wrap_new_RadioBox(PyObject *self, PyObject *args, PyObject *kw
|
||||
delete arg3;
|
||||
}
|
||||
{
|
||||
if (arg6) delete arg6;
|
||||
if (temp6) delete arg6;
|
||||
}
|
||||
{
|
||||
if (temp10)
|
||||
@@ -10734,7 +10758,7 @@ static PyObject *_wrap_new_RadioBox(PyObject *self, PyObject *args, PyObject *kw
|
||||
delete arg3;
|
||||
}
|
||||
{
|
||||
if (arg6) delete arg6;
|
||||
if (temp6) delete arg6;
|
||||
}
|
||||
{
|
||||
if (temp10)
|
||||
@@ -10788,6 +10812,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 ;
|
||||
@@ -10835,6 +10860,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);
|
||||
@@ -10887,7 +10913,7 @@ static PyObject *_wrap_RadioBox_Create(PyObject *self, PyObject *args, PyObject
|
||||
delete arg4;
|
||||
}
|
||||
{
|
||||
if (arg7) delete arg7;
|
||||
if (temp7) delete arg7;
|
||||
}
|
||||
{
|
||||
if (temp11)
|
||||
@@ -10900,7 +10926,7 @@ static PyObject *_wrap_RadioBox_Create(PyObject *self, PyObject *args, PyObject
|
||||
delete arg4;
|
||||
}
|
||||
{
|
||||
if (arg7) delete arg7;
|
||||
if (temp7) delete arg7;
|
||||
}
|
||||
{
|
||||
if (temp11)
|
||||
@@ -25522,6 +25548,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 ;
|
||||
@@ -25547,6 +25603,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 ;
|
||||
@@ -25556,7 +25650,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) {
|
||||
@@ -25564,7 +25658,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;
|
||||
@@ -29624,8 +29718,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