Fix object ownership issues
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43259 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -99,19 +99,18 @@ public:
|
|||||||
static wxPyProcess *Open(const wxString& cmd, int flags = wxEXEC_ASYNC);
|
static wxPyProcess *Open(const wxString& cmd, int flags = wxEXEC_ASYNC);
|
||||||
|
|
||||||
|
|
||||||
%pythonAppend wxPyProcess "self._setCallbackInfo(self, Process)"
|
%pythonAppend wxPyProcess "self._setCallbackInfo(self, Process); self.this.own(False)"
|
||||||
wxPyProcess(wxEvtHandler *parent = NULL, int id = -1);
|
wxPyProcess(wxEvtHandler *parent = NULL, int id = -1);
|
||||||
~wxPyProcess();
|
~wxPyProcess();
|
||||||
|
|
||||||
|
void _setCallbackInfo(PyObject* self, PyObject* _class);
|
||||||
|
|
||||||
|
|
||||||
DocDeclStr(
|
DocDeclStr(
|
||||||
long , GetPid() const,
|
long , GetPid() const,
|
||||||
"get the process ID of the process executed by Open()", "");
|
"get the process ID of the process executed by Open()", "");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
void _setCallbackInfo(PyObject* self, PyObject* _class);
|
|
||||||
|
|
||||||
void OnTerminate(int pid, int status);
|
void OnTerminate(int pid, int status);
|
||||||
%MAKE_BASE_FUNC(Process, OnTerminate);
|
%MAKE_BASE_FUNC(Process, OnTerminate);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user