X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a5f9094e25010e9a426e55f576af1988c99d3c91..59571b718e142de7159c6ad3a86d15d4e896593a:/wxPython/src/gtk/grid.py diff --git a/wxPython/src/gtk/grid.py b/wxPython/src/gtk/grid.py index 812342d11f..3134b9c7c6 100644 --- a/wxPython/src/gtk/grid.py +++ b/wxPython/src/gtk/grid.py @@ -322,9 +322,8 @@ class GridCellEditor(GridCellWorker): def Destroy(*args, **kwargs): """Destroy(self)""" - val = _grid.GridCellEditor_Destroy(*args, **kwargs) - args[0].thisown = 0 - return val + args[0].this.own(False) + return _grid.GridCellEditor_Destroy(*args, **kwargs) CellAttr = property(GetCellAttr,SetCellAttr,doc="See `GetCellAttr` and `SetCellAttr`") Control = property(GetControl,SetControl,doc="See `GetControl` and `SetControl`") @@ -900,9 +899,8 @@ class PyGridTableBase(GridTableBase): Deletes the C++ object this Python object is a proxy for. """ - val = _grid.PyGridTableBase_Destroy(*args, **kwargs) - args[0].thisown = 0 - return val + args[0].this.own(False) + return _grid.PyGridTableBase_Destroy(*args, **kwargs) def base_GetTypeName(*args, **kw): return PyGridTableBase.GetTypeName(*args, **kw)