Disown using .this.own(False) instead of .thisown = False
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41850 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
7661255894
commit
4b5a79cf54
@ -191,8 +191,8 @@ in on the main display of your Mac."""
|
||||
destroy(self)
|
||||
|
||||
def Destroy(self):
|
||||
self.this.own(False)
|
||||
wx.PyApp.Destroy(self)
|
||||
self.thisown = 0
|
||||
|
||||
def SetTopWindow(self, frame):
|
||||
"""Set the \"main\" top level window"""
|
||||
|
@ -299,7 +299,7 @@ topmost provider if platform_dependent = false", "");
|
||||
|
||||
|
||||
|
||||
%pythonAppend Destroy "args[0].thisown = 0"
|
||||
%pythonPrepend Destroy "args[0].this.own(False)"
|
||||
%extend { void Destroy() { delete self; }}
|
||||
};
|
||||
|
||||
|
@ -285,7 +285,7 @@ table of help strings will fill up and when window pointers are
|
||||
reused, the wrong help string will be found.", "");
|
||||
|
||||
|
||||
%pythonAppend Destroy "args[0].thisown = 0"
|
||||
%pythonPrepend Destroy "args[0].this.own(False)"
|
||||
%extend { void Destroy() { delete self; } }
|
||||
};
|
||||
|
||||
|
@ -174,7 +174,7 @@ public:
|
||||
|
||||
void AssignFrom(const wxListItemAttr& source);
|
||||
|
||||
%pythonAppend Destroy "args[0].thisown = 0"
|
||||
%pythonPrepend Destroy "args[0].this.own(False)"
|
||||
%extend { void Destroy() { delete self; } }
|
||||
|
||||
%property(BackgroundColour, GetBackgroundColour, SetBackgroundColour, doc="See `GetBackgroundColour` and `SetBackgroundColour`");
|
||||
|
@ -159,7 +159,7 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
%pythonAppend Destroy "args[0].thisown = 0";
|
||||
%pythonPrepend Destroy "args[0].this.own(False)";
|
||||
%extend { void Destroy() { delete self; } }
|
||||
};
|
||||
|
||||
|
@ -140,12 +140,20 @@ public:
|
||||
bool Delete(int id);
|
||||
%Rename(DeleteItem, bool, Delete(wxMenuItem *item));
|
||||
|
||||
%pythonAppend Destroy "args[0].thisown = 0"
|
||||
%pythonPrepend Destroy "args[0].this.own(False)"
|
||||
%extend { void Destroy() { delete self; } }
|
||||
|
||||
// delete the item from menu and destroy it (if it's a submenu)
|
||||
%Rename(DestroyId, bool, Destroy(int id));
|
||||
%Rename(DestroyItem, bool, Destroy(wxMenuItem *item));
|
||||
%pythonPrepend Destroy "";
|
||||
DocDeclStrName(
|
||||
bool , Destroy(int id),
|
||||
"", "",
|
||||
DestroyId);
|
||||
|
||||
DocDeclStrName(
|
||||
bool , Destroy(wxMenuItem *item),
|
||||
"", "",
|
||||
DestroyItem);
|
||||
|
||||
|
||||
// get the items
|
||||
|
@ -54,7 +54,7 @@ public:
|
||||
~wxCaret();
|
||||
|
||||
%extend {
|
||||
%pythonAppend Destroy "args[0].thisown = 0"
|
||||
%pythonPrepend Destroy "args[0].this.own(False)"
|
||||
DocStr(Destroy,
|
||||
"Deletes the C++ object this Python object is a proxy for.", "");
|
||||
void Destroy() {
|
||||
|
@ -30,7 +30,7 @@ public:
|
||||
return self->GetClassInfo()->GetClassName();
|
||||
}
|
||||
|
||||
%pythonAppend Destroy "args[0].thisown = 0"
|
||||
%pythonPrepend Destroy "args[0].this.own(False)"
|
||||
DocStr(Destroy,
|
||||
"Deletes the C++ object this Python object is a proxy for.", "");
|
||||
void Destroy() {
|
||||
|
@ -108,7 +108,7 @@ public:
|
||||
|
||||
void _setCallbackInfo(PyObject* self, PyObject* _class, int incref);
|
||||
|
||||
%pythonAppend Destroy "args[0].thisown = 0";
|
||||
%pythonPrepend Destroy "args[0].this.own(False)";
|
||||
%extend {
|
||||
void Destroy() {
|
||||
self->RemoveIcon();
|
||||
|
@ -132,7 +132,7 @@ public:
|
||||
const wxTreeItemId& GetId();
|
||||
void SetId(const wxTreeItemId& id);
|
||||
|
||||
%pythonAppend Destroy "args[0].thisown = 0"
|
||||
%pythonPrepend Destroy "args[0].this.own(False)"
|
||||
%extend { void Destroy() { delete self; } }
|
||||
|
||||
%property(Data, GetData, SetData, doc="See `GetData` and `SetData`");
|
||||
|
@ -259,7 +259,7 @@ instead.");
|
||||
|
||||
|
||||
|
||||
%pythonAppend Destroy "args[0].thisown = 0"
|
||||
%pythonPrepend Destroy "args[0].this.own(False)"
|
||||
DocDeclStr(
|
||||
virtual bool , Destroy(),
|
||||
"Destroys the window safely. Frames and dialogs are not destroyed
|
||||
|
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user