|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric6.Plugins.UiExtensionPlugins.VirtualenvInterface.VirtualenvExecDialog</title> |
|
4 <meta charset="UTF-8"> |
|
5 <style> |
|
6 body { |
|
7 background: #EDECE6; |
|
8 margin: 0em 1em 10em 1em; |
|
9 color: black; |
|
10 } |
|
11 |
|
12 h1 { color: white; background: #85774A; } |
|
13 h2 { color: white; background: #85774A; } |
|
14 h3 { color: white; background: #9D936E; } |
|
15 h4 { color: white; background: #9D936E; } |
|
16 |
|
17 a { color: #BA6D36; } |
|
18 |
|
19 </style> |
|
20 </head> |
|
21 <body><a NAME="top" ID="top"></a> |
|
22 <h1>eric6.Plugins.UiExtensionPlugins.VirtualenvInterface.VirtualenvExecDialog</h1> |
|
23 <p> |
|
24 Module implementing the virtualenv execution dialog. |
|
25 </p> |
|
26 <h3>Global Attributes</h3> |
|
27 <table> |
|
28 <tr><td>None</td></tr> |
|
29 </table> |
|
30 <h3>Classes</h3> |
|
31 <table> |
|
32 <tr> |
|
33 <td><a href="#VirtualenvExecDialog">VirtualenvExecDialog</a></td> |
|
34 <td>Class implementing the virtualenv execution dialog.</td> |
|
35 </tr> |
|
36 </table> |
|
37 <h3>Functions</h3> |
|
38 <table> |
|
39 <tr><td>None</td></tr> |
|
40 </table> |
|
41 <hr /><hr /> |
|
42 <a NAME="VirtualenvExecDialog" ID="VirtualenvExecDialog"></a> |
|
43 <h2>VirtualenvExecDialog</h2> |
|
44 <p> |
|
45 Class implementing the virtualenv execution dialog. |
|
46 </p><p> |
|
47 This class starts a QProcess and displays a dialog that |
|
48 shows the output of the virtualenv or pyvenv process. |
|
49 </p> |
|
50 <h3>Derived from</h3> |
|
51 QDialog, Ui_VirtualenvExecDialog |
|
52 <h3>Class Attributes</h3> |
|
53 <table> |
|
54 <tr><td>None</td></tr> |
|
55 </table> |
|
56 <h3>Class Methods</h3> |
|
57 <table> |
|
58 <tr><td>None</td></tr> |
|
59 </table> |
|
60 <h3>Methods</h3> |
|
61 <table> |
|
62 <tr> |
|
63 <td><a href="#VirtualenvExecDialog.__init__">VirtualenvExecDialog</a></td> |
|
64 <td>Constructor</td> |
|
65 </tr><tr> |
|
66 <td><a href="#VirtualenvExecDialog.__finish">__finish</a></td> |
|
67 <td>Private slot called when the process finished.</td> |
|
68 </tr><tr> |
|
69 <td><a href="#VirtualenvExecDialog.__logError">__logError</a></td> |
|
70 <td>Private method to log an error.</td> |
|
71 </tr><tr> |
|
72 <td><a href="#VirtualenvExecDialog.__logOutput">__logOutput</a></td> |
|
73 <td>Private method to log some output.</td> |
|
74 </tr><tr> |
|
75 <td><a href="#VirtualenvExecDialog.__nextAttempt">__nextAttempt</a></td> |
|
76 <td>Private method to start another attempt.</td> |
|
77 </tr><tr> |
|
78 <td><a href="#VirtualenvExecDialog.__readStderr">__readStderr</a></td> |
|
79 <td>Private slot to handle the readyReadStandardError signal.</td> |
|
80 </tr><tr> |
|
81 <td><a href="#VirtualenvExecDialog.__readStdout">__readStdout</a></td> |
|
82 <td>Private slot to handle the readyReadStandardOutput signal.</td> |
|
83 </tr><tr> |
|
84 <td><a href="#VirtualenvExecDialog.__writeLogFile">__writeLogFile</a></td> |
|
85 <td>Private method to write a log file to the virtualenv directory.</td> |
|
86 </tr><tr> |
|
87 <td><a href="#VirtualenvExecDialog.__writeScriptFile">__writeScriptFile</a></td> |
|
88 <td>Private method to write a script file to the virtualenv directory.</td> |
|
89 </tr><tr> |
|
90 <td><a href="#VirtualenvExecDialog.on_buttonBox_clicked">on_buttonBox_clicked</a></td> |
|
91 <td>Private slot called by a button of the button box clicked.</td> |
|
92 </tr><tr> |
|
93 <td><a href="#VirtualenvExecDialog.start">start</a></td> |
|
94 <td>Public slot to start the virtualenv command.</td> |
|
95 </tr> |
|
96 </table> |
|
97 <h3>Static Methods</h3> |
|
98 <table> |
|
99 <tr><td>None</td></tr> |
|
100 </table> |
|
101 <a NAME="VirtualenvExecDialog.__init__" ID="VirtualenvExecDialog.__init__"></a> |
|
102 <h4>VirtualenvExecDialog (Constructor)</h4> |
|
103 <b>VirtualenvExecDialog</b>(<i>pyvenv, targetDir, openTarget, createLog, createScript, interpreter, parent=None</i>) |
|
104 <p> |
|
105 Constructor |
|
106 </p><dl> |
|
107 <dt><i>pyvenv</i></dt> |
|
108 <dd> |
|
109 flag indicating the use of 'pyvenv' (boolean) |
|
110 </dd><dt><i>targetDir</i></dt> |
|
111 <dd> |
|
112 name of the virtualenv directory (string) |
|
113 </dd><dt><i>openTarget</i></dt> |
|
114 <dd> |
|
115 flag indicating to open the virtualenv directory |
|
116 in a file manager (boolean) |
|
117 </dd><dt><i>createLog</i></dt> |
|
118 <dd> |
|
119 flag indicating to create a log file of the |
|
120 creation process (boolean) |
|
121 </dd><dt><i>createScript</i></dt> |
|
122 <dd> |
|
123 flag indicating to create a script to recreate |
|
124 the virtual environment (boolean) |
|
125 </dd><dt><i>interpreter</i></dt> |
|
126 <dd> |
|
127 name of the python interpreter to use (string) |
|
128 </dd><dt><i>parent</i></dt> |
|
129 <dd> |
|
130 reference to the parent widget (QWidget) |
|
131 </dd> |
|
132 </dl><a NAME="VirtualenvExecDialog.__finish" ID="VirtualenvExecDialog.__finish"></a> |
|
133 <h4>VirtualenvExecDialog.__finish</h4> |
|
134 <b>__finish</b>(<i>exitCode, exitStatus, giveUp=False</i>) |
|
135 <p> |
|
136 Private slot called when the process finished. |
|
137 </p><p> |
|
138 It is called when the process finished or |
|
139 the user pressed the button. |
|
140 </p><dl> |
|
141 <dt><i>exitCode</i></dt> |
|
142 <dd> |
|
143 exit code of the process (integer) |
|
144 </dd><dt><i>exitStatus</i></dt> |
|
145 <dd> |
|
146 exit status of the process (QProcess.ExitStatus) |
|
147 </dd><dt><i>giveUp=</i></dt> |
|
148 <dd> |
|
149 flag indicating to not start another attempt (boolean) |
|
150 </dd> |
|
151 </dl><a NAME="VirtualenvExecDialog.__logError" ID="VirtualenvExecDialog.__logError"></a> |
|
152 <h4>VirtualenvExecDialog.__logError</h4> |
|
153 <b>__logError</b>(<i>s</i>) |
|
154 <p> |
|
155 Private method to log an error. |
|
156 </p><dl> |
|
157 <dt><i>s</i></dt> |
|
158 <dd> |
|
159 error string to log (string) |
|
160 </dd> |
|
161 </dl><a NAME="VirtualenvExecDialog.__logOutput" ID="VirtualenvExecDialog.__logOutput"></a> |
|
162 <h4>VirtualenvExecDialog.__logOutput</h4> |
|
163 <b>__logOutput</b>(<i>s</i>) |
|
164 <p> |
|
165 Private method to log some output. |
|
166 </p><dl> |
|
167 <dt><i>s</i></dt> |
|
168 <dd> |
|
169 output sstring to log (string) |
|
170 </dd> |
|
171 </dl><a NAME="VirtualenvExecDialog.__nextAttempt" ID="VirtualenvExecDialog.__nextAttempt"></a> |
|
172 <h4>VirtualenvExecDialog.__nextAttempt</h4> |
|
173 <b>__nextAttempt</b>(<i></i>) |
|
174 <p> |
|
175 Private method to start another attempt. |
|
176 </p><a NAME="VirtualenvExecDialog.__readStderr" ID="VirtualenvExecDialog.__readStderr"></a> |
|
177 <h4>VirtualenvExecDialog.__readStderr</h4> |
|
178 <b>__readStderr</b>(<i></i>) |
|
179 <p> |
|
180 Private slot to handle the readyReadStandardError signal. |
|
181 </p><p> |
|
182 It reads the error output of the process and inserts it into the |
|
183 error pane. |
|
184 </p><a NAME="VirtualenvExecDialog.__readStdout" ID="VirtualenvExecDialog.__readStdout"></a> |
|
185 <h4>VirtualenvExecDialog.__readStdout</h4> |
|
186 <b>__readStdout</b>(<i></i>) |
|
187 <p> |
|
188 Private slot to handle the readyReadStandardOutput signal. |
|
189 </p><p> |
|
190 It reads the output of the process, formats it and inserts it into |
|
191 the contents pane. |
|
192 </p><a NAME="VirtualenvExecDialog.__writeLogFile" ID="VirtualenvExecDialog.__writeLogFile"></a> |
|
193 <h4>VirtualenvExecDialog.__writeLogFile</h4> |
|
194 <b>__writeLogFile</b>(<i></i>) |
|
195 <p> |
|
196 Private method to write a log file to the virtualenv directory. |
|
197 </p><a NAME="VirtualenvExecDialog.__writeScriptFile" ID="VirtualenvExecDialog.__writeScriptFile"></a> |
|
198 <h4>VirtualenvExecDialog.__writeScriptFile</h4> |
|
199 <b>__writeScriptFile</b>(<i></i>) |
|
200 <p> |
|
201 Private method to write a script file to the virtualenv directory. |
|
202 </p><a NAME="VirtualenvExecDialog.on_buttonBox_clicked" ID="VirtualenvExecDialog.on_buttonBox_clicked"></a> |
|
203 <h4>VirtualenvExecDialog.on_buttonBox_clicked</h4> |
|
204 <b>on_buttonBox_clicked</b>(<i>button</i>) |
|
205 <p> |
|
206 Private slot called by a button of the button box clicked. |
|
207 </p><dl> |
|
208 <dt><i>button</i></dt> |
|
209 <dd> |
|
210 button that was clicked (QAbstractButton) |
|
211 </dd> |
|
212 </dl><a NAME="VirtualenvExecDialog.start" ID="VirtualenvExecDialog.start"></a> |
|
213 <h4>VirtualenvExecDialog.start</h4> |
|
214 <b>start</b>(<i>arguments</i>) |
|
215 <p> |
|
216 Public slot to start the virtualenv command. |
|
217 </p><dl> |
|
218 <dt><i>arguments</i></dt> |
|
219 <dd> |
|
220 commandline arguments for virtualenv/pyvenv program |
|
221 (list of strings) |
|
222 </dd> |
|
223 </dl> |
|
224 <div align="right"><a href="#top">Up</a></div> |
|
225 <hr /> |
|
226 </body></html> |