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