src/eric7/Documentation/Source/eric7.VirtualEnv.VirtualenvExecDialog.html

branch
eric7
changeset 9209
b99e7fd55fd3
parent 8596
d64760b2da50
child 10070
9f5758c0fec1
equal deleted inserted replaced
9208:3fc8dfeb6ebe 9209:b99e7fd55fd3
1 <!DOCTYPE html>
2 <html><head>
3 <title>eric7.VirtualEnv.VirtualenvExecDialog</title>
4 <meta charset="UTF-8">
5 <link rel="stylesheet" href="styles.css">
6 </head>
7 <body>
8 <a NAME="top" ID="top"></a>
9 <h1>eric7.VirtualEnv.VirtualenvExecDialog</h1>
10
11 <p>
12 Module implementing the virtualenv execution dialog.
13 </p>
14 <h3>Global Attributes</h3>
15
16 <table>
17 <tr><td>None</td></tr>
18 </table>
19 <h3>Classes</h3>
20
21 <table>
22
23 <tr>
24 <td><a href="#VirtualenvExecDialog">VirtualenvExecDialog</a></td>
25 <td>Class implementing the virtualenv execution dialog.</td>
26 </tr>
27 </table>
28 <h3>Functions</h3>
29
30 <table>
31 <tr><td>None</td></tr>
32 </table>
33 <hr />
34 <hr />
35 <a NAME="VirtualenvExecDialog" ID="VirtualenvExecDialog"></a>
36 <h2>VirtualenvExecDialog</h2>
37
38 <p>
39 Class implementing the virtualenv execution dialog.
40 </p>
41 <p>
42 This class starts a QProcess and displays a dialog that
43 shows the output of the virtualenv or pyvenv process.
44 </p>
45 <h3>Derived from</h3>
46 QDialog, Ui_VirtualenvExecDialog
47 <h3>Class Attributes</h3>
48
49 <table>
50 <tr><td>None</td></tr>
51 </table>
52 <h3>Class Methods</h3>
53
54 <table>
55 <tr><td>None</td></tr>
56 </table>
57 <h3>Methods</h3>
58
59 <table>
60
61 <tr>
62 <td><a href="#VirtualenvExecDialog.__init__">VirtualenvExecDialog</a></td>
63 <td>Constructor</td>
64 </tr>
65 <tr>
66 <td><a href="#VirtualenvExecDialog.__finish">__finish</a></td>
67 <td>Private slot called when the process finished.</td>
68 </tr>
69 <tr>
70 <td><a href="#VirtualenvExecDialog.__logError">__logError</a></td>
71 <td>Private method to log an error.</td>
72 </tr>
73 <tr>
74 <td><a href="#VirtualenvExecDialog.__logOutput">__logOutput</a></td>
75 <td>Private method to log some output.</td>
76 </tr>
77 <tr>
78 <td><a href="#VirtualenvExecDialog.__nextAttempt">__nextAttempt</a></td>
79 <td>Private method to start another attempt.</td>
80 </tr>
81 <tr>
82 <td><a href="#VirtualenvExecDialog.__readStderr">__readStderr</a></td>
83 <td>Private slot to handle the readyReadStandardError signal.</td>
84 </tr>
85 <tr>
86 <td><a href="#VirtualenvExecDialog.__readStdout">__readStdout</a></td>
87 <td>Private slot to handle the readyReadStandardOutput signal.</td>
88 </tr>
89 <tr>
90 <td><a href="#VirtualenvExecDialog.__writeLogFile">__writeLogFile</a></td>
91 <td>Private method to write a log file to the virtualenv directory.</td>
92 </tr>
93 <tr>
94 <td><a href="#VirtualenvExecDialog.__writeScriptFile">__writeScriptFile</a></td>
95 <td>Private method to write a script file to the virtualenv directory.</td>
96 </tr>
97 <tr>
98 <td><a href="#VirtualenvExecDialog.on_buttonBox_clicked">on_buttonBox_clicked</a></td>
99 <td>Private slot called by a button of the button box clicked.</td>
100 </tr>
101 <tr>
102 <td><a href="#VirtualenvExecDialog.start">start</a></td>
103 <td>Public slot to start the virtualenv command.</td>
104 </tr>
105 </table>
106 <h3>Static Methods</h3>
107
108 <table>
109 <tr><td>None</td></tr>
110 </table>
111
112 <a NAME="VirtualenvExecDialog.__init__" ID="VirtualenvExecDialog.__init__"></a>
113 <h4>VirtualenvExecDialog (Constructor)</h4>
114 <b>VirtualenvExecDialog</b>(<i>configuration, venvManager, parent=None</i>)
115
116 <p>
117 Constructor
118 </p>
119 <dl>
120
121 <dt><i>configuration</i> (dict)</dt>
122 <dd>
123 dictionary containing the configuration parameters
124 as returned by the command configuration dialog
125 </dd>
126 <dt><i>venvManager</i> (VirtualenvManager)</dt>
127 <dd>
128 reference to the virtual environment manager
129 </dd>
130 <dt><i>parent</i> (QWidget)</dt>
131 <dd>
132 reference to the parent widget
133 </dd>
134 </dl>
135 <a NAME="VirtualenvExecDialog.__finish" ID="VirtualenvExecDialog.__finish"></a>
136 <h4>VirtualenvExecDialog.__finish</h4>
137 <b>__finish</b>(<i>exitCode, exitStatus, giveUp=False</i>)
138
139 <p>
140 Private slot called when the process finished.
141 </p>
142 <p>
143 It is called when the process finished or
144 the user pressed the button.
145 </p>
146 <dl>
147
148 <dt><i>exitCode</i></dt>
149 <dd>
150 exit code of the process (integer)
151 </dd>
152 <dt><i>exitStatus</i></dt>
153 <dd>
154 exit status of the process (QProcess.ExitStatus)
155 </dd>
156 <dt><i>giveUp</i></dt>
157 <dd>
158 flag indicating to not start another attempt (boolean)
159 </dd>
160 </dl>
161 <a NAME="VirtualenvExecDialog.__logError" ID="VirtualenvExecDialog.__logError"></a>
162 <h4>VirtualenvExecDialog.__logError</h4>
163 <b>__logError</b>(<i>s</i>)
164
165 <p>
166 Private method to log an error.
167 </p>
168 <dl>
169
170 <dt><i>s</i></dt>
171 <dd>
172 error string to log (string)
173 </dd>
174 </dl>
175 <a NAME="VirtualenvExecDialog.__logOutput" ID="VirtualenvExecDialog.__logOutput"></a>
176 <h4>VirtualenvExecDialog.__logOutput</h4>
177 <b>__logOutput</b>(<i>s</i>)
178
179 <p>
180 Private method to log some output.
181 </p>
182 <dl>
183
184 <dt><i>s</i></dt>
185 <dd>
186 output string to log (string)
187 </dd>
188 </dl>
189 <a NAME="VirtualenvExecDialog.__nextAttempt" ID="VirtualenvExecDialog.__nextAttempt"></a>
190 <h4>VirtualenvExecDialog.__nextAttempt</h4>
191 <b>__nextAttempt</b>(<i></i>)
192
193 <p>
194 Private method to start another attempt.
195 </p>
196 <a NAME="VirtualenvExecDialog.__readStderr" ID="VirtualenvExecDialog.__readStderr"></a>
197 <h4>VirtualenvExecDialog.__readStderr</h4>
198 <b>__readStderr</b>(<i></i>)
199
200 <p>
201 Private slot to handle the readyReadStandardError signal.
202 </p>
203 <p>
204 It reads the error output of the process and inserts it into the
205 error pane.
206 </p>
207 <a NAME="VirtualenvExecDialog.__readStdout" ID="VirtualenvExecDialog.__readStdout"></a>
208 <h4>VirtualenvExecDialog.__readStdout</h4>
209 <b>__readStdout</b>(<i></i>)
210
211 <p>
212 Private slot to handle the readyReadStandardOutput signal.
213 </p>
214 <p>
215 It reads the output of the process, formats it and inserts it into
216 the contents pane.
217 </p>
218 <a NAME="VirtualenvExecDialog.__writeLogFile" ID="VirtualenvExecDialog.__writeLogFile"></a>
219 <h4>VirtualenvExecDialog.__writeLogFile</h4>
220 <b>__writeLogFile</b>(<i></i>)
221
222 <p>
223 Private method to write a log file to the virtualenv directory.
224 </p>
225 <a NAME="VirtualenvExecDialog.__writeScriptFile" ID="VirtualenvExecDialog.__writeScriptFile"></a>
226 <h4>VirtualenvExecDialog.__writeScriptFile</h4>
227 <b>__writeScriptFile</b>(<i></i>)
228
229 <p>
230 Private method to write a script file to the virtualenv directory.
231 </p>
232 <a NAME="VirtualenvExecDialog.on_buttonBox_clicked" ID="VirtualenvExecDialog.on_buttonBox_clicked"></a>
233 <h4>VirtualenvExecDialog.on_buttonBox_clicked</h4>
234 <b>on_buttonBox_clicked</b>(<i>button</i>)
235
236 <p>
237 Private slot called by a button of the button box clicked.
238 </p>
239 <dl>
240
241 <dt><i>button</i></dt>
242 <dd>
243 button that was clicked (QAbstractButton)
244 </dd>
245 </dl>
246 <a NAME="VirtualenvExecDialog.start" ID="VirtualenvExecDialog.start"></a>
247 <h4>VirtualenvExecDialog.start</h4>
248 <b>start</b>(<i>arguments</i>)
249
250 <p>
251 Public slot to start the virtualenv command.
252 </p>
253 <dl>
254
255 <dt><i>arguments</i></dt>
256 <dd>
257 commandline arguments for virtualenv/pyvenv program
258 (list of strings)
259 </dd>
260 </dl>
261 <div align="right"><a href="#top">Up</a></div>
262 <hr />
263 </body></html>

eric ide

mercurial