]> git.saurik.com Git - wxWidgets.git/commitdiff
wxRemotelyScrolledTreeCtrl now draws its own lines
authorRobin Dunn <robin@alldunn.com>
Mon, 3 Dec 2001 21:37:22 +0000 (21:37 +0000)
committerRobin Dunn <robin@alldunn.com>
Mon, 3 Dec 2001 21:37:22 +0000 (21:37 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12849 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/src/gtk/controls2.cpp
wxPython/src/gtk/controls2.py

index ee9b7c89b637c7ff19f91d93e560b35a0a68a08f..34c0bd6691bcfcf547db7a9b9d53ebecd26402dd 100644 (file)
@@ -9312,45 +9312,7 @@ static PyObject *_wrap_wxTreeCtrl_GetBoundingRect(PyObject *self, PyObject *args
     return _resultobj;
 }
 
-#define wxTreeCtrl_OnPaint(_swigobj,_swigarg0)  (_swigobj->OnPaint(_swigarg0))
-static PyObject *_wrap_wxTreeCtrl_OnPaint(PyObject *self, PyObject *args, PyObject *kwargs) {
-    PyObject * _resultobj;
-    wxPyTreeCtrl * _arg0;
-    wxPaintEvent * _arg1;
-    PyObject * _argo0 = 0;
-    PyObject * _argo1 = 0;
-    char *_kwnames[] = { "self","event", NULL };
-
-    self = self;
-    if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_OnPaint",_kwnames,&_argo0,&_argo1)) 
-        return NULL;
-    if (_argo0) {
-        if (_argo0 == Py_None) { _arg0 = NULL; }
-        else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
-            PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_OnPaint. Expected _wxPyTreeCtrl_p.");
-        return NULL;
-        }
-    }
-    if (_argo1) {
-        if (_argo1 == Py_None) { _arg1 = NULL; }
-        else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPaintEvent_p")) {
-            PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_OnPaint. Expected _wxPaintEvent_p.");
-        return NULL;
-        }
-    }
-{
-    wxPy_BEGIN_ALLOW_THREADS;
-        wxTreeCtrl_OnPaint(_arg0,*_arg1);
-
-    wxPy_END_ALLOW_THREADS;
-    if (PyErr_Occurred()) return NULL;
-}    Py_INCREF(Py_None);
-    _resultobj = Py_None;
-    return _resultobj;
-}
-
 static PyMethodDef controls2cMethods[] = {
-        { "wxTreeCtrl_OnPaint", (PyCFunction) _wrap_wxTreeCtrl_OnPaint, METH_VARARGS | METH_KEYWORDS },
         { "wxTreeCtrl_GetBoundingRect", (PyCFunction) _wrap_wxTreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS },
         { "wxTreeCtrl_SetItemFont", (PyCFunction) _wrap_wxTreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS },
         { "wxTreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_wxTreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS },
index eb626812d2602b227f8a82efac11f40e9804d198..8a02e2b25cecaf9265ca6ad362d120cc7b1154d5 100644 (file)
@@ -1065,9 +1065,6 @@ class wxTreeCtrlPtr(wxControlPtr):
     def GetBoundingRect(self, *_args, **_kwargs):
         val = apply(controls2c.wxTreeCtrl_GetBoundingRect,(self,) + _args, _kwargs)
         return val
-    def OnPaint(self, *_args, **_kwargs):
-        val = apply(controls2c.wxTreeCtrl_OnPaint,(self,) + _args, _kwargs)
-        return val
     def __repr__(self):
         return "<C wxTreeCtrl instance at %s>" % (self.this,)