X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/32fe513144d26e45237c3bbd7183c95c852d026a..c1bf3a3e90edc2ad50446c5d8891af17bb188ebf:/wxPython/src/gtk/grid.py diff --git a/wxPython/src/gtk/grid.py b/wxPython/src/gtk/grid.py index c64631e582..31c0d4da8e 100644 --- a/wxPython/src/gtk/grid.py +++ b/wxPython/src/gtk/grid.py @@ -393,7 +393,9 @@ class GridCellEditor(object): def Destroy(*args, **kwargs): """Destroy(self)""" - return _grid.GridCellEditor_Destroy(*args, **kwargs) + val = _grid.GridCellEditor_Destroy(*args, **kwargs) + args[0].thisown = 0 + return val class GridCellEditorPtr(GridCellEditor): @@ -1056,7 +1058,9 @@ class PyGridTableBase(GridTableBase): Deletes the C++ object this Python object is a proxy for. """ - return _grid.PyGridTableBase_Destroy(*args, **kwargs) + val = _grid.PyGridTableBase_Destroy(*args, **kwargs) + args[0].thisown = 0 + return val def base_GetTypeName(*args, **kwargs): """base_GetTypeName(self, int row, int col) -> String"""