5 <link rel="stylesheet" href="styles.css"> |
5 <link rel="stylesheet" href="styles.css"> |
6 </head> |
6 </head> |
7 <body> |
7 <body> |
8 <a NAME="top" ID="top"></a> |
8 <a NAME="top" ID="top"></a> |
9 <h1>eric7.DebugClients.Python.QProcessExtension</h1> |
9 <h1>eric7.DebugClients.Python.QProcessExtension</h1> |
10 |
|
11 <p> |
10 <p> |
12 Module implementing a function to patch QProcess to support debugging of the |
11 Module implementing a function to patch QProcess to support debugging of the |
13 process. |
12 process. |
14 </p> |
13 </p> |
|
14 |
15 <h3>Global Attributes</h3> |
15 <h3>Global Attributes</h3> |
16 |
|
17 <table> |
16 <table> |
18 <tr><td>_debugClient</td></tr> |
17 <tr><td>_debugClient</td></tr> |
19 </table> |
18 </table> |
|
19 |
20 <h3>Classes</h3> |
20 <h3>Classes</h3> |
21 |
21 <table> |
22 <table> |
|
23 |
|
24 <tr> |
22 <tr> |
25 <td><a href="#QProcessWrapper">QProcessWrapper</a></td> |
23 <td><a href="#QProcessWrapper">QProcessWrapper</a></td> |
26 <td>Wrapper class for *.QProcess.</td> |
24 <td>Wrapper class for *.QProcess.</td> |
27 </tr> |
25 </tr> |
28 </table> |
26 </table> |
|
27 |
29 <h3>Functions</h3> |
28 <h3>Functions</h3> |
30 |
29 <table> |
31 <table> |
|
32 |
|
33 <tr> |
30 <tr> |
34 <td><a href="#patchQProcess">patchQProcess</a></td> |
31 <td><a href="#patchQProcess">patchQProcess</a></td> |
35 <td>Function to patch the QtCore module's QProcess.</td> |
32 <td>Function to patch the QtCore module's QProcess.</td> |
36 </tr> |
33 </tr> |
37 </table> |
34 </table> |
|
35 |
38 <hr /> |
36 <hr /> |
39 <hr /> |
37 <hr /> |
40 <a NAME="QProcessWrapper" ID="QProcessWrapper"></a> |
38 <a NAME="QProcessWrapper" ID="QProcessWrapper"></a> |
41 <h2>QProcessWrapper</h2> |
39 <h2>QProcessWrapper</h2> |
42 |
|
43 <p> |
40 <p> |
44 Wrapper class for *.QProcess. |
41 Wrapper class for *.QProcess. |
45 </p> |
42 </p> |
|
43 |
46 <h3>Derived from</h3> |
44 <h3>Derived from</h3> |
47 module.QProcess |
45 module.QProcess |
48 <h3>Class Attributes</h3> |
46 <h3>Class Attributes</h3> |
49 |
|
50 <table> |
47 <table> |
51 <tr><td>_origQProcessStartDetached</td></tr> |
48 <tr><td>_origQProcessStartDetached</td></tr> |
52 </table> |
49 </table> |
|
50 |
53 <h3>Class Methods</h3> |
51 <h3>Class Methods</h3> |
54 |
|
55 <table> |
52 <table> |
56 <tr><td>None</td></tr> |
53 <tr><td>None</td></tr> |
57 </table> |
54 </table> |
|
55 |
58 <h3>Methods</h3> |
56 <h3>Methods</h3> |
59 |
57 <table> |
60 <table> |
|
61 |
|
62 <tr> |
58 <tr> |
63 <td><a href="#QProcessWrapper.__init__">QProcessWrapper</a></td> |
59 <td><a href="#QProcessWrapper.__init__">QProcessWrapper</a></td> |
64 <td>Constructor</td> |
60 <td>Constructor</td> |
65 </tr> |
61 </tr> |
66 <tr> |
62 <tr> |
74 <tr> |
70 <tr> |
75 <td><a href="#QProcessWrapper.startDetached">startDetached</a></td> |
71 <td><a href="#QProcessWrapper.startDetached">startDetached</a></td> |
76 <td>Public method to start the detached process.</td> |
72 <td>Public method to start the detached process.</td> |
77 </tr> |
73 </tr> |
78 </table> |
74 </table> |
|
75 |
79 <h3>Static Methods</h3> |
76 <h3>Static Methods</h3> |
80 |
77 <table> |
81 <table> |
|
82 |
|
83 <tr> |
78 <tr> |
84 <td><a href="#QProcessWrapper.startDetachedStatic">startDetachedStatic</a></td> |
79 <td><a href="#QProcessWrapper.startDetachedStatic">startDetachedStatic</a></td> |
85 <td>Static method to start the detached process.</td> |
80 <td>Static method to start the detached process.</td> |
86 </tr> |
81 </tr> |
87 </table> |
82 </table> |
|
83 |
88 |
84 |
89 <a NAME="QProcessWrapper.__init__" ID="QProcessWrapper.__init__"></a> |
85 <a NAME="QProcessWrapper.__init__" ID="QProcessWrapper.__init__"></a> |
90 <h4>QProcessWrapper (Constructor)</h4> |
86 <h4>QProcessWrapper (Constructor)</h4> |
91 <b>QProcessWrapper</b>(<i>parent=None</i>) |
87 <b>QProcessWrapper</b>(<i>parent=None</i>) |
92 |
|
93 <p> |
88 <p> |
94 Constructor |
89 Constructor |
95 </p> |
90 </p> |
|
91 |
96 <a NAME="QProcessWrapper.__startDetached" ID="QProcessWrapper.__startDetached"></a> |
92 <a NAME="QProcessWrapper.__startDetached" ID="QProcessWrapper.__startDetached"></a> |
97 <h4>QProcessWrapper.__startDetached</h4> |
93 <h4>QProcessWrapper.__startDetached</h4> |
98 <b>__startDetached</b>(<i>*args, **kwargs</i>) |
94 <b>__startDetached</b>(<i>*args, **kwargs</i>) |
99 |
|
100 <p> |
95 <p> |
101 Private method to start the detached process. |
96 Private method to start the detached process. |
102 </p> |
97 </p> |
103 <p> |
98 <p> |
104 This method patches the arguments such, that a debug client is |
99 This method patches the arguments such, that a debug client is |
105 started for the Python script. A Python script is assumed, if the |
100 started for the Python script. A Python script is assumed, if the |
106 program to be started contains the string 'python'. |
101 program to be started contains the string 'python'. |
107 </p> |
102 </p> |
|
103 |
108 <dl> |
104 <dl> |
109 |
105 |
110 <dt><i>args</i> (list)</dt> |
106 <dt><i>args</i> (list)</dt> |
111 <dd> |
107 <dd> |
112 arguments of the start call |
108 arguments of the start call |
129 </dd> |
125 </dd> |
130 </dl> |
126 </dl> |
131 <a NAME="QProcessWrapper.start" ID="QProcessWrapper.start"></a> |
127 <a NAME="QProcessWrapper.start" ID="QProcessWrapper.start"></a> |
132 <h4>QProcessWrapper.start</h4> |
128 <h4>QProcessWrapper.start</h4> |
133 <b>start</b>(<i>*args, **kwargs</i>) |
129 <b>start</b>(<i>*args, **kwargs</i>) |
134 |
|
135 <p> |
130 <p> |
136 Public method to start the process. |
131 Public method to start the process. |
137 </p> |
132 </p> |
138 <p> |
133 <p> |
139 This method patches the arguments such, that a debug client is |
134 This method patches the arguments such, that a debug client is |
140 started for the Python script. A Python script is assumed, if the |
135 started for the Python script. A Python script is assumed, if the |
141 program to be started contains the string 'python'. |
136 program to be started contains the string 'python'. |
142 </p> |
137 </p> |
|
138 |
143 <dl> |
139 <dl> |
144 |
140 |
145 <dt><i>args</i> (list)</dt> |
141 <dt><i>args</i> (list)</dt> |
146 <dd> |
142 <dd> |
147 arguments of the start call |
143 arguments of the start call |
152 </dd> |
148 </dd> |
153 </dl> |
149 </dl> |
154 <a NAME="QProcessWrapper.startDetached" ID="QProcessWrapper.startDetached"></a> |
150 <a NAME="QProcessWrapper.startDetached" ID="QProcessWrapper.startDetached"></a> |
155 <h4>QProcessWrapper.startDetached</h4> |
151 <h4>QProcessWrapper.startDetached</h4> |
156 <b>startDetached</b>(<i>*args, **kwargs</i>) |
152 <b>startDetached</b>(<i>*args, **kwargs</i>) |
157 |
|
158 <p> |
153 <p> |
159 Public method to start the detached process. |
154 Public method to start the detached process. |
160 </p> |
155 </p> |
161 <p> |
156 <p> |
162 This method patches the arguments such, that a debug client is |
157 This method patches the arguments such, that a debug client is |
163 started for the Python script. A Python script is assumed, if the |
158 started for the Python script. A Python script is assumed, if the |
164 program to be started contains the string 'python'. |
159 program to be started contains the string 'python'. |
165 </p> |
160 </p> |
|
161 |
166 <dl> |
162 <dl> |
167 |
163 |
168 <dt><i>args</i> (list)</dt> |
164 <dt><i>args</i> (list)</dt> |
169 <dd> |
165 <dd> |
170 arguments of the start call |
166 arguments of the start call |
187 </dd> |
183 </dd> |
188 </dl> |
184 </dl> |
189 <a NAME="QProcessWrapper.startDetachedStatic" ID="QProcessWrapper.startDetachedStatic"></a> |
185 <a NAME="QProcessWrapper.startDetachedStatic" ID="QProcessWrapper.startDetachedStatic"></a> |
190 <h4>QProcessWrapper.startDetachedStatic (static)</h4> |
186 <h4>QProcessWrapper.startDetachedStatic (static)</h4> |
191 <b>startDetachedStatic</b>(<i>**kwargs</i>) |
187 <b>startDetachedStatic</b>(<i>**kwargs</i>) |
192 |
|
193 <p> |
188 <p> |
194 Static method to start the detached process. |
189 Static method to start the detached process. |
195 </p> |
190 </p> |
196 <p> |
191 <p> |
197 This method patches the arguments such, that a debug client is |
192 This method patches the arguments such, that a debug client is |
198 started for the Python script. A Python script is assumed, if the |
193 started for the Python script. A Python script is assumed, if the |
199 program to be started contains the string 'python'. |
194 program to be started contains the string 'python'. |
200 </p> |
195 </p> |
|
196 |
201 <dl> |
197 <dl> |
202 |
198 |
203 <dt><i>args</i> (list)</dt> |
199 <dt><i>args</i> (list)</dt> |
204 <dd> |
200 <dd> |
205 arguments of the start call |
201 arguments of the start call |
225 <hr /> |
221 <hr /> |
226 <hr /> |
222 <hr /> |
227 <a NAME="patchQProcess" ID="patchQProcess"></a> |
223 <a NAME="patchQProcess" ID="patchQProcess"></a> |
228 <h2>patchQProcess</h2> |
224 <h2>patchQProcess</h2> |
229 <b>patchQProcess</b>(<i>module, debugClient</i>) |
225 <b>patchQProcess</b>(<i>module, debugClient</i>) |
230 |
|
231 <p> |
226 <p> |
232 Function to patch the QtCore module's QProcess. |
227 Function to patch the QtCore module's QProcess. |
233 </p> |
228 </p> |
|
229 |
234 <dl> |
230 <dl> |
235 |
231 |
236 <dt><i>module</i> (module)</dt> |
232 <dt><i>module</i> (module)</dt> |
237 <dd> |
233 <dd> |
238 reference to the imported module to be patched |
234 reference to the imported module to be patched |