Changed wxProcess::Open to take a flags arg to pass to wxExecute.
Fixed a few _'s without \'s in the docs git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16164 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2574,7 +2574,7 @@ To delete all users with a first name of "JOHN", do the following:
|
|||||||
|
|
||||||
\begin{enumerate}\itemsep=0pt
|
\begin{enumerate}\itemsep=0pt
|
||||||
\item Clear all "columns" using wxDbTable::ClearMemberVars().
|
\item Clear all "columns" using wxDbTable::ClearMemberVars().
|
||||||
\item Set the FIRST_NAME column equal to "JOHN".
|
\item Set the FIRST\_NAME column equal to "JOHN".
|
||||||
\item Call wxDbTable::DeleteMatching().
|
\item Call wxDbTable::DeleteMatching().
|
||||||
\end{enumerate}
|
\end{enumerate}
|
||||||
|
|
||||||
|
@@ -196,7 +196,7 @@ It raises a wxWindows event when it isn't overridden.
|
|||||||
|
|
||||||
\membersection{wxProcess::Open}\label{wxprocessopen}
|
\membersection{wxProcess::Open}\label{wxprocessopen}
|
||||||
|
|
||||||
\func{static wxProcess *}{Open}{\param{const wxString\& }{cmd}}
|
\func{static wxProcess *}{Open}{\param{const wxString\& }{cmd} \param{int }{flags = wxEXEC\_ASYNC}}
|
||||||
|
|
||||||
This static method replaces the standard {\tt popen()} function: it launches
|
This static method replaces the standard {\tt popen()} function: it launches
|
||||||
the process specified by the {\it cmd} parameter and returns the wxProcess
|
the process specified by the {\it cmd} parameter and returns the wxProcess
|
||||||
@@ -212,6 +212,7 @@ exits to avoid memory leaks.
|
|||||||
\wxheading{Parameters}
|
\wxheading{Parameters}
|
||||||
|
|
||||||
\docparam{cmd}{The command to execute, including optional arguments.}
|
\docparam{cmd}{The command to execute, including optional arguments.}
|
||||||
|
\docparam{flags}{The flags to pass to \helpref{wxExecute}{wxexecute}.}
|
||||||
|
|
||||||
\wxheading{Return value}
|
\wxheading{Return value}
|
||||||
|
|
||||||
|
@@ -46,5 +46,6 @@ htmlStylesheet = "wx.css"
|
|||||||
\bftt [1] {\bf{\tt{#1}}}
|
\bftt [1] {\bf{\tt{#1}}}
|
||||||
\pythonnote [1] {{\bf \fcol{blue}{wxPython note:}} #1}
|
\pythonnote [1] {{\bf \fcol{blue}{wxPython note:}} #1}
|
||||||
%\pythonnote [1] {}
|
%\pythonnote [1] {}
|
||||||
\perlnote [1] {{\bf \fcol{blue}{wxPerl note:}} #1}
|
%\perlnote [1] {{\bf \fcol{blue}{wxPerl note:}} #1}
|
||||||
|
\perlnote [1] {}
|
||||||
|
|
||||||
|
@@ -11,7 +11,7 @@ Note that currently MGL for Linux runs only on x86-based systems.
|
|||||||
You will need wxWindows 2.3.3 or higher and MGL 5.0 or higher.
|
You will need wxWindows 2.3.3 or higher and MGL 5.0 or higher.
|
||||||
The latter is available from
|
The latter is available from
|
||||||
|
|
||||||
\urlref{http://www.scitechsoft.com/products/product_download.html}{http://www.scitechsoft.com/products/product_download.html}
|
\urlref{http://www.scitechsoft.com/products/product\_download.html}{http://www.scitechsoft.com/products/product\_download.html}
|
||||||
|
|
||||||
In order to configure wxWindows to compile wxMGL you will
|
In order to configure wxWindows to compile wxMGL you will
|
||||||
need to type:
|
need to type:
|
||||||
|
@@ -55,7 +55,7 @@ public:
|
|||||||
// on error NULL is returned, in any case the process object will be
|
// on error NULL is returned, in any case the process object will be
|
||||||
// deleted automatically when the process terminates and should *not* be
|
// deleted automatically when the process terminates and should *not* be
|
||||||
// deleted by the caller
|
// deleted by the caller
|
||||||
static wxProcess *Open(const wxString& cmd);
|
static wxProcess *Open(const wxString& cmd, int flags = wxEXEC_ASYNC);
|
||||||
|
|
||||||
|
|
||||||
// ctors
|
// ctors
|
||||||
|
@@ -63,10 +63,10 @@ void wxProcess::Init(wxEvtHandler *parent, int id, int flags)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* static */
|
/* static */
|
||||||
wxProcess *wxProcess::Open(const wxString& cmd)
|
wxProcess *wxProcess::Open(const wxString& cmd, int flags)
|
||||||
{
|
{
|
||||||
wxProcess *process = new wxProcess(wxPROCESS_REDIRECT);
|
wxProcess *process = new wxProcess(wxPROCESS_REDIRECT);
|
||||||
if ( !wxExecute(cmd, wxEXEC_ASYNC, process) )
|
if ( !wxExecute(cmd, flags, process) )
|
||||||
{
|
{
|
||||||
// couldn't launch the process
|
// couldn't launch the process
|
||||||
delete process;
|
delete process;
|
||||||
|
@@ -848,7 +848,7 @@ public:
|
|||||||
// on error NULL is returned, in any case the process object will be
|
// on error NULL is returned, in any case the process object will be
|
||||||
// deleted automatically when the process terminates and should *not* be
|
// deleted automatically when the process terminates and should *not* be
|
||||||
// deleted by the caller
|
// deleted by the caller
|
||||||
static wxPyProcess *Open(const wxString& cmd);
|
static wxPyProcess *Open(const wxString& cmd, int flags = wxEXEC_ASYNC);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@@ -6147,12 +6147,13 @@ static PyObject *_wrap_wxProcess_Open(PyObject *self, PyObject *args, PyObject *
|
|||||||
PyObject * _resultobj;
|
PyObject * _resultobj;
|
||||||
wxPyProcess * _result;
|
wxPyProcess * _result;
|
||||||
wxString * _arg0;
|
wxString * _arg0;
|
||||||
|
int _arg1 = (int ) wxEXEC_ASYNC;
|
||||||
PyObject * _obj0 = 0;
|
PyObject * _obj0 = 0;
|
||||||
char *_kwnames[] = { "cmd", NULL };
|
char *_kwnames[] = { "cmd","flags", NULL };
|
||||||
char _ptemp[128];
|
char _ptemp[128];
|
||||||
|
|
||||||
self = self;
|
self = self;
|
||||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_Open",_kwnames,&_obj0))
|
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxProcess_Open",_kwnames,&_obj0,&_arg1))
|
||||||
return NULL;
|
return NULL;
|
||||||
{
|
{
|
||||||
_arg0 = wxString_in_helper(_obj0);
|
_arg0 = wxString_in_helper(_obj0);
|
||||||
@@ -6161,7 +6162,7 @@ static PyObject *_wrap_wxProcess_Open(PyObject *self, PyObject *args, PyObject *
|
|||||||
}
|
}
|
||||||
{
|
{
|
||||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||||
_result = (wxPyProcess *)wxPyProcess::Open(*_arg0);
|
_result = (wxPyProcess *)wxPyProcess::Open(*_arg0,_arg1);
|
||||||
|
|
||||||
wxPyEndAllowThreads(__tstate);
|
wxPyEndAllowThreads(__tstate);
|
||||||
if (PyErr_Occurred()) return NULL;
|
if (PyErr_Occurred()) return NULL;
|
||||||
|
Reference in New Issue
Block a user