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;