X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a7a014180017908d32f0af32ebfa140fdc82b390..8bd3541321152b1f2997124d77246d43bf4de3fb:/wxPython/src/_process.i?ds=sidebyside diff --git a/wxPython/src/_process.i b/wxPython/src/_process.i index b256ae7114..198b288e5c 100644 --- a/wxPython/src/_process.i +++ b/wxPython/src/_process.i @@ -101,6 +101,14 @@ public: %pythonAppend wxPyProcess "self._setCallbackInfo(self, Process)" wxPyProcess(wxEvtHandler *parent = NULL, int id = -1); + ~wxPyProcess(); + + + DocDeclStr( + long , GetPid() const, + "get the process ID of the process executed by Open()", ""); + + void _setCallbackInfo(PyObject* self, PyObject* _class); @@ -130,6 +138,14 @@ public: // return True if any input is available on the child process stdout/err bool IsInputAvailable() const; bool IsErrorAvailable() const; + + %property(ErrorStream, GetErrorStream, doc="See `GetErrorStream`"); + %property(InputStream, GetInputStream, doc="See `GetInputStream`"); + %property(OutputStream, GetOutputStream, doc="See `GetOutputStream`"); + + %property(InputOpened, IsInputOpened); + %property(InputAvailable, IsInputAvailable); + %property(ErrorAvailable, IsErrorAvailable); }; //--------------------------------------------------------------------------- @@ -141,6 +157,9 @@ public: int GetPid(); int GetExitCode(); int m_pid, m_exitcode; + + %property(ExitCode, GetExitCode, doc="See `GetExitCode`"); + %property(Pid, GetPid, doc="See `GetPid`"); };