X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/81f5af115fc714371629ceaf72b42e142946cd49..fe45b493dcc42fea4ad4f781a4fb7844d2e95fd0:/wxPython/src/_process.i diff --git a/wxPython/src/_process.i b/wxPython/src/_process.i index 756302cb84..55e45309a9 100644 --- a/wxPython/src/_process.i +++ b/wxPython/src/_process.i @@ -99,7 +99,7 @@ public: static wxPyProcess *Open(const wxString& cmd, int flags = wxEXEC_ASYNC); - %pythonAppend wxPyProcess "self._setCallbackInfo(self, Process); self.this.own(False)" + %pythonAppend wxPyProcess setCallbackInfo(Process) "; self.this.own(False)" wxPyProcess(wxEvtHandler *parent = NULL, int id = -1); ~wxPyProcess(); @@ -189,7 +189,15 @@ enum // by default synchronous execution disables all program windows to avoid // that the user interacts with the program while the child process is // running, you can use this flag to prevent this from happening - wxEXEC_NODISABLE = 8 + wxEXEC_NODISABLE = 8, + + // by default, the event loop is run while waiting for synchronous execution + // to complete and this flag can be used to simply block the main process + // until the child process finishes + wxEXEC_NOEVENTS = 16, + + // convenient synonym for flags given system()-like behaviour + wxEXEC_BLOCK = wxEXEC_SYNC | wxEXEC_NOEVENTS };