From: Robin Dunn Date: Fri, 18 Feb 2005 19:28:16 +0000 (+0000) Subject: wxPyCallback needs to derive from wxEvtHandler now since the X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/ac03a19f937e4af5cf5cb14c85223f5c842ec307 wxPyCallback needs to derive from wxEvtHandler now since the wxObjectEventFunction typedef changed. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32150 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/wxPython/include/wx/wxPython/wxPython_int.h b/wxPython/include/wx/wxPython/wxPython_int.h index 5d8e6ca563..5af8102b1b 100644 --- a/wxPython/include/wx/wxPython/wxPython_int.h +++ b/wxPython/include/wx/wxPython/wxPython_int.h @@ -253,7 +253,7 @@ PyObject* wxArrayInt2PyList_helper(const wxArrayInt& arr); #ifndef wxPyUSE_EXPORTED_API -class wxPyCallback : public wxObject { +class wxPyCallback : public wxEvtHandler { DECLARE_ABSTRACT_CLASS(wxPyCallback); public: wxPyCallback(PyObject* func); diff --git a/wxPython/src/helpers.cpp b/wxPython/src/helpers.cpp index d3f1aebbb8..512b685baa 100644 --- a/wxPython/src/helpers.cpp +++ b/wxPython/src/helpers.cpp @@ -1477,7 +1477,7 @@ wxFileOffset wxPyCBInputStream::OnSysTell() const { //---------------------------------------------------------------------- -IMPLEMENT_ABSTRACT_CLASS(wxPyCallback, wxObject); +IMPLEMENT_ABSTRACT_CLASS(wxPyCallback, wxEvtHandler); wxPyCallback::wxPyCallback(PyObject* func) { m_func = func;