X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/61e07b943c22798c60db5e29321296337f61699d..0cf04a425fe081365237c97fec168b77ea6efd03:/wxPython/src/grid.i diff --git a/wxPython/src/grid.i b/wxPython/src/grid.i index 00fee52e13..69b0c9b4a6 100644 --- a/wxPython/src/grid.i +++ b/wxPython/src/grid.i @@ -750,7 +750,7 @@ public: virtual void StartingClick(); virtual void HandleReturn(wxKeyEvent& event); - %pythonAppend Destroy "args[0].thisown = 0" + %pythonPrepend Destroy "args[0].this.own(False)" virtual void Destroy(); %property(CellAttr, GetCellAttr, SetCellAttr, doc="See `GetCellAttr` and `SetCellAttr`"); @@ -1345,7 +1345,7 @@ public: wxPyGridTableBase(); void _setCallbackInfo(PyObject* self, PyObject* _class); - %pythonAppend Destroy "args[0].thisown = 0" + %pythonPrepend Destroy "args[0].this.own(False)" %extend { void Destroy() { delete self; } } wxString GetTypeName( int row, int col );