Avoid using the OOR typemap in the constructors
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28291 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -19,8 +19,14 @@
|
||||
// wxEvtHandler: the base class for all objects handling wxWindows events
|
||||
class wxEvtHandler : public wxObject {
|
||||
public:
|
||||
// turn off this typemap
|
||||
%typemap(out) wxEvtHandler*;
|
||||
|
||||
wxEvtHandler();
|
||||
|
||||
// Turn it back on again
|
||||
%typemap(out) wxEvtHandler* { $result = wxPyMake_wxObject($1, $owner); }
|
||||
|
||||
wxEvtHandler* GetNextHandler();
|
||||
wxEvtHandler* GetPreviousHandler();
|
||||
void SetNextHandler(wxEvtHandler* handler);
|
||||
@@ -69,8 +75,7 @@ public:
|
||||
%extend {
|
||||
void _setOORInfo(PyObject* _self) {
|
||||
if (_self && _self != Py_None) {
|
||||
if (!self->GetClientObject())
|
||||
self->SetClientObject(new wxPyOORClientData(_self));
|
||||
self->SetClientObject(new wxPyOORClientData(_self));
|
||||
}
|
||||
else {
|
||||
wxPyOORClientData* data = (wxPyOORClientData*)self->GetClientObject();
|
||||
|
Reference in New Issue
Block a user