Give wx.GridTableBase a destructor, and clear the ownership when it is

passed to SetTable.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38627 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2006-04-08 21:49:20 +00:00
parent 66bc84a900
commit 284ee6c3da

View File

@@ -1127,7 +1127,7 @@ class wxGridTableBase : public wxObject
{
public:
// wxGridTableBase(); This is an ABC
//~wxGridTableBase();
~wxGridTableBase();
%extend {
void _setOORInfo(PyObject* _self) {
@@ -1659,9 +1659,12 @@ public:
wxGridTableBase * GetTable() const;
%disownarg(wxGridTableBase *);
bool SetTable( wxGridTableBase *table, bool takeOwnership=false,
WXGRIDSELECTIONMODES selmode =
wxGrid::wxGridSelectCells );
%cleardisown(wxGridTableBase *);
void ClearGrid();
bool InsertRows( int pos = 0, int numRows = 1, bool updateLabels=true );