X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d07d2bc9d05408c58b76c53a0a291915b88e5064..bda4b4c6849c375679b39a55e257dedf39a8ba90:/wxPython/src/_obj.i?ds=sidebyside diff --git a/wxPython/src/_obj.i b/wxPython/src/_obj.i index c0c72f124a..1555a2c511 100644 --- a/wxPython/src/_obj.i +++ b/wxPython/src/_obj.i @@ -30,12 +30,22 @@ public: return self->GetClassInfo()->GetClassName(); } + %pythonPrepend Destroy "args[0].this.own(False)" DocStr(Destroy, "Deletes the C++ object this Python object is a proxy for.", ""); void Destroy() { delete self; } } + + DocDeclStr( + bool , IsSameAs(const wxObject& p) const, + "For wx.Objects that use C++ reference counting internally, this method +can be used to determine if two objects are referencing the same data +object.", ""); + + + %property(ClassName, GetClassName, doc="See `GetClassName`"); };