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"""
- %pythonAppend Destroy "args[0].thisown = 0"
+ %pythonPrepend Destroy "args[0].this.own(False)"
%extend { void Destroy() { delete self; }}
};
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; } }
};
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`");
}
}
- %pythonAppend Destroy "args[0].thisown = 0";
+ %pythonPrepend Destroy "args[0].this.own(False)";
%extend { void Destroy() { delete self; } }
};
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
~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() {
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() {
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();
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`");
- %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
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`");
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 );