X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/322913cef36b156a4a9722ce6a68845e3219e615..27b60fafb8acacab21eda5a759615384d77177cb:/wxPython/src/_pycontrol.i diff --git a/wxPython/src/_pycontrol.i b/wxPython/src/_pycontrol.i index 868e9b5143..2037153d70 100644 --- a/wxPython/src/_pycontrol.i +++ b/wxPython/src/_pycontrol.i @@ -60,6 +60,8 @@ public: DEC_PYCALLBACK_VOID_WXWINBASE(AddChild); DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild); + DEC_PYCALLBACK_BOOL_(ShouldInheritColours); + PYPRIVATE; }; @@ -89,13 +91,14 @@ IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize); IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild); IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild); +IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, ShouldInheritColours); %} // And now the one for SWIG to see class wxPyControl : public wxControl { public: - %addtofunc wxPyControl "self._setOORInfo(self); self._setCallbackInfo(self, PyControl)" + %pythonAppend wxPyControl "self._setOORInfo(self); self._setCallbackInfo(self, PyControl)" wxPyControl(wxWindow* parent, const wxWindowID id, const wxPoint& pos = wxDefaultPosition,