X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6aaca5bac6f3ad13add44c220163fda423c40351..9ac884500ce30c58e24b0a6af1288b576d2e03e4:/wxPython/src/_log.i diff --git a/wxPython/src/_log.i b/wxPython/src/_log.i index f02bf3c39c..48fd12b62b 100644 --- a/wxPython/src/_log.i +++ b/wxPython/src/_log.i @@ -159,7 +159,7 @@ public: } } - %pythonAppend Destroy "args[0].thisown = 0"; + %pythonPrepend Destroy "args[0].this.own(False)"; %extend { void Destroy() { delete self; } } }; @@ -200,6 +200,9 @@ public: wxLog *GetOldLog() const; bool IsPassingMessages() const; void PassMessages(bool bDoPass); + + %property(Frame, GetFrame, doc="See `GetFrame`"); + %property(OldLog, GetOldLog, doc="See `GetOldLog`"); }; @@ -211,6 +214,8 @@ public: void PassMessages(bool bDoPass); bool IsPassingMessages(); wxLog *GetOldLog(); + + %property(OldLog, GetOldLog, doc="See `GetOldLog`"); }; // log everything to a buffer @@ -220,11 +225,13 @@ public: wxLogBuffer(); // get the string contents with all messages logged - const wxString& GetBuffer() const { return m_str; } + const wxString& GetBuffer() const; // show the buffer contents to the user in the best possible way (this uses // wxMessageOutputMessageBox) and clear it virtual void Flush(); + + %property(Buffer, GetBuffer, doc="See `GetBuffer`"); };