Added AssignImageList to wxNotebook
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11540 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -689,6 +689,43 @@ static PyObject *_wrap_wxNotebook_SetImageList(PyObject *self, PyObject *args, P
|
|||||||
return _resultobj;
|
return _resultobj;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define wxNotebook_AssignImageList(_swigobj,_swigarg0) (_swigobj->AssignImageList(_swigarg0))
|
||||||
|
static PyObject *_wrap_wxNotebook_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||||
|
PyObject * _resultobj;
|
||||||
|
wxNotebook * _arg0;
|
||||||
|
wxImageList * _arg1;
|
||||||
|
PyObject * _argo0 = 0;
|
||||||
|
PyObject * _argo1 = 0;
|
||||||
|
char *_kwnames[] = { "self","imageList", NULL };
|
||||||
|
|
||||||
|
self = self;
|
||||||
|
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxNotebook_AssignImageList",_kwnames,&_argo0,&_argo1))
|
||||||
|
return NULL;
|
||||||
|
if (_argo0) {
|
||||||
|
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||||
|
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNotebook_p")) {
|
||||||
|
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNotebook_AssignImageList. Expected _wxNotebook_p.");
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (_argo1) {
|
||||||
|
if (_argo1 == Py_None) { _arg1 = NULL; }
|
||||||
|
else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) {
|
||||||
|
PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxNotebook_AssignImageList. Expected _wxImageList_p.");
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
{
|
||||||
|
wxPy_BEGIN_ALLOW_THREADS;
|
||||||
|
wxNotebook_AssignImageList(_arg0,_arg1);
|
||||||
|
|
||||||
|
wxPy_END_ALLOW_THREADS;
|
||||||
|
if (PyErr_Occurred()) return NULL;
|
||||||
|
} Py_INCREF(Py_None);
|
||||||
|
_resultobj = Py_None;
|
||||||
|
return _resultobj;
|
||||||
|
}
|
||||||
|
|
||||||
#define wxNotebook_GetImageList(_swigobj) (_swigobj->GetImageList())
|
#define wxNotebook_GetImageList(_swigobj) (_swigobj->GetImageList())
|
||||||
static PyObject *_wrap_wxNotebook_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
|
static PyObject *_wrap_wxNotebook_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||||
PyObject * _resultobj;
|
PyObject * _resultobj;
|
||||||
@@ -2379,6 +2416,7 @@ static PyMethodDef windows2cMethods[] = {
|
|||||||
{ "wxNotebook_SetPageImage", (PyCFunction) _wrap_wxNotebook_SetPageImage, METH_VARARGS | METH_KEYWORDS },
|
{ "wxNotebook_SetPageImage", (PyCFunction) _wrap_wxNotebook_SetPageImage, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxNotebook_GetPageImage", (PyCFunction) _wrap_wxNotebook_GetPageImage, METH_VARARGS | METH_KEYWORDS },
|
{ "wxNotebook_GetPageImage", (PyCFunction) _wrap_wxNotebook_GetPageImage, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxNotebook_GetImageList", (PyCFunction) _wrap_wxNotebook_GetImageList, METH_VARARGS | METH_KEYWORDS },
|
{ "wxNotebook_GetImageList", (PyCFunction) _wrap_wxNotebook_GetImageList, METH_VARARGS | METH_KEYWORDS },
|
||||||
|
{ "wxNotebook_AssignImageList", (PyCFunction) _wrap_wxNotebook_AssignImageList, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxNotebook_SetImageList", (PyCFunction) _wrap_wxNotebook_SetImageList, METH_VARARGS | METH_KEYWORDS },
|
{ "wxNotebook_SetImageList", (PyCFunction) _wrap_wxNotebook_SetImageList, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxNotebook_GetPageText", (PyCFunction) _wrap_wxNotebook_GetPageText, METH_VARARGS | METH_KEYWORDS },
|
{ "wxNotebook_GetPageText", (PyCFunction) _wrap_wxNotebook_GetPageText, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxNotebook_SetPageText", (PyCFunction) _wrap_wxNotebook_SetPageText, METH_VARARGS | METH_KEYWORDS },
|
{ "wxNotebook_SetPageText", (PyCFunction) _wrap_wxNotebook_SetPageText, METH_VARARGS | METH_KEYWORDS },
|
||||||
|
@@ -67,6 +67,10 @@ class wxNotebookPtr(wxControlPtr):
|
|||||||
def SetImageList(self, *_args, **_kwargs):
|
def SetImageList(self, *_args, **_kwargs):
|
||||||
val = apply(windows2c.wxNotebook_SetImageList,(self,) + _args, _kwargs)
|
val = apply(windows2c.wxNotebook_SetImageList,(self,) + _args, _kwargs)
|
||||||
return val
|
return val
|
||||||
|
def AssignImageList(self, *_args, **_kwargs):
|
||||||
|
val = apply(windows2c.wxNotebook_AssignImageList,(self,) + _args, _kwargs)
|
||||||
|
_args[0].thisown = 0
|
||||||
|
return val
|
||||||
def GetImageList(self, *_args, **_kwargs):
|
def GetImageList(self, *_args, **_kwargs):
|
||||||
val = apply(windows2c.wxNotebook_GetImageList,(self,) + _args, _kwargs)
|
val = apply(windows2c.wxNotebook_GetImageList,(self,) + _args, _kwargs)
|
||||||
return val
|
return val
|
||||||
|
@@ -85,7 +85,11 @@ public:
|
|||||||
int GetSelection();
|
int GetSelection();
|
||||||
bool SetPageText(int nPage, const wxString& strText);
|
bool SetPageText(int nPage, const wxString& strText);
|
||||||
wxString GetPageText(int nPage) const;
|
wxString GetPageText(int nPage) const;
|
||||||
|
|
||||||
void SetImageList(wxImageList* imageList);
|
void SetImageList(wxImageList* imageList);
|
||||||
|
void AssignImageList(wxImageList *imageList) ;
|
||||||
|
%pragma(python) addtomethod = "AssignImageList:_args[0].thisown = 0"
|
||||||
|
|
||||||
wxImageList* GetImageList();
|
wxImageList* GetImageList();
|
||||||
int GetPageImage(int nPage);
|
int GetPageImage(int nPage);
|
||||||
bool SetPageImage(int nPage, int nImage);
|
bool SetPageImage(int nPage, int nImage);
|
||||||
|
Reference in New Issue
Block a user