|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric6.Plugins.UiExtensionPlugins.VirtualenvInterface.VirtualenvConfigurationDialog</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.VirtualenvConfigurationDialog</h1> |
|
23 <p> |
|
24 Module implementing a dialog to enter the parameters for the |
|
25 virtual environment. |
|
26 </p> |
|
27 <h3>Global Attributes</h3> |
|
28 <table> |
|
29 <tr><td>None</td></tr> |
|
30 </table> |
|
31 <h3>Classes</h3> |
|
32 <table> |
|
33 <tr> |
|
34 <td><a href="#VirtualenvConfigurationDialog">VirtualenvConfigurationDialog</a></td> |
|
35 <td>Class implementing a dialog to enter the parameters for the virtual environment.</td> |
|
36 </tr> |
|
37 </table> |
|
38 <h3>Functions</h3> |
|
39 <table> |
|
40 <tr><td>None</td></tr> |
|
41 </table> |
|
42 <hr /><hr /> |
|
43 <a NAME="VirtualenvConfigurationDialog" ID="VirtualenvConfigurationDialog"></a> |
|
44 <h2>VirtualenvConfigurationDialog</h2> |
|
45 <p> |
|
46 Class implementing a dialog to enter the parameters for the |
|
47 virtual environment. |
|
48 </p> |
|
49 <h3>Derived from</h3> |
|
50 QDialog, Ui_VirtualenvConfigurationDialog |
|
51 <h3>Class Attributes</h3> |
|
52 <table> |
|
53 <tr><td>None</td></tr> |
|
54 </table> |
|
55 <h3>Class Methods</h3> |
|
56 <table> |
|
57 <tr><td>None</td></tr> |
|
58 </table> |
|
59 <h3>Methods</h3> |
|
60 <table> |
|
61 <tr> |
|
62 <td><a href="#VirtualenvConfigurationDialog.__init__">VirtualenvConfigurationDialog</a></td> |
|
63 <td>Constructor</td> |
|
64 </tr><tr> |
|
65 <td><a href="#VirtualenvConfigurationDialog.__generateArguments">__generateArguments</a></td> |
|
66 <td>Private method to generate the process arguments.</td> |
|
67 </tr><tr> |
|
68 <td><a href="#VirtualenvConfigurationDialog.__generateTargetDir">__generateTargetDir</a></td> |
|
69 <td>Private method to generate a valid target directory path.</td> |
|
70 </tr><tr> |
|
71 <td><a href="#VirtualenvConfigurationDialog.__setPyvenvVersion">__setPyvenvVersion</a></td> |
|
72 <td>Private method to determine the pyvenv version and set the respective label.</td> |
|
73 </tr><tr> |
|
74 <td><a href="#VirtualenvConfigurationDialog.__setVirtualenvVersion">__setVirtualenvVersion</a></td> |
|
75 <td>Private method to determine the virtualenv version and set the respective label.</td> |
|
76 </tr><tr> |
|
77 <td><a href="#VirtualenvConfigurationDialog.__updateOK">__updateOK</a></td> |
|
78 <td>Private method to update the enabled status of the OK button.</td> |
|
79 </tr><tr> |
|
80 <td><a href="#VirtualenvConfigurationDialog.__updateUi">__updateUi</a></td> |
|
81 <td>Private method to update the UI depending on the selected virtual environment creator (virtualenv or pyvenv).</td> |
|
82 </tr><tr> |
|
83 <td><a href="#VirtualenvConfigurationDialog.getData">getData</a></td> |
|
84 <td>Public method to retrieve the dialog data.</td> |
|
85 </tr><tr> |
|
86 <td><a href="#VirtualenvConfigurationDialog.on_extraSearchPathButton_clicked">on_extraSearchPathButton_clicked</a></td> |
|
87 <td>Private slot to select the extra search path via a directory selection dialog.</td> |
|
88 </tr><tr> |
|
89 <td><a href="#VirtualenvConfigurationDialog.on_pythonExecButton_clicked">on_pythonExecButton_clicked</a></td> |
|
90 <td>Private slot to select a Python interpreter via a file selection dialog.</td> |
|
91 </tr><tr> |
|
92 <td><a href="#VirtualenvConfigurationDialog.on_pythonExecEdit_textChanged">on_pythonExecEdit_textChanged</a></td> |
|
93 <td>Private slot to react to a change of the Python executable.</td> |
|
94 </tr><tr> |
|
95 <td><a href="#VirtualenvConfigurationDialog.on_pyvenvButton_toggled">on_pyvenvButton_toggled</a></td> |
|
96 <td>Private slot to react to the selection of 'pyvenv'.</td> |
|
97 </tr><tr> |
|
98 <td><a href="#VirtualenvConfigurationDialog.on_targetDirectoryButton_clicked">on_targetDirectoryButton_clicked</a></td> |
|
99 <td>Private slot to select the target directory via a directory selection dialog.</td> |
|
100 </tr><tr> |
|
101 <td><a href="#VirtualenvConfigurationDialog.on_targetDirectoryEdit_textChanged">on_targetDirectoryEdit_textChanged</a></td> |
|
102 <td>Private slot handling a change of the target directory.</td> |
|
103 </tr><tr> |
|
104 <td><a href="#VirtualenvConfigurationDialog.on_virtualenvButton_toggled">on_virtualenvButton_toggled</a></td> |
|
105 <td>Private slot to react to the selection of 'virtualenv'.</td> |
|
106 </tr> |
|
107 </table> |
|
108 <h3>Static Methods</h3> |
|
109 <table> |
|
110 <tr><td>None</td></tr> |
|
111 </table> |
|
112 <a NAME="VirtualenvConfigurationDialog.__init__" ID="VirtualenvConfigurationDialog.__init__"></a> |
|
113 <h4>VirtualenvConfigurationDialog (Constructor)</h4> |
|
114 <b>VirtualenvConfigurationDialog</b>(<i>parent=None</i>) |
|
115 <p> |
|
116 Constructor |
|
117 </p><dl> |
|
118 <dt><i>parent</i></dt> |
|
119 <dd> |
|
120 reference to the parent widget (QWidget) |
|
121 </dd> |
|
122 </dl><a NAME="VirtualenvConfigurationDialog.__generateArguments" ID="VirtualenvConfigurationDialog.__generateArguments"></a> |
|
123 <h4>VirtualenvConfigurationDialog.__generateArguments</h4> |
|
124 <b>__generateArguments</b>(<i></i>) |
|
125 <p> |
|
126 Private method to generate the process arguments. |
|
127 </p><dl> |
|
128 <dt>Returns:</dt> |
|
129 <dd> |
|
130 process arguments (list of string) |
|
131 </dd> |
|
132 </dl><a NAME="VirtualenvConfigurationDialog.__generateTargetDir" ID="VirtualenvConfigurationDialog.__generateTargetDir"></a> |
|
133 <h4>VirtualenvConfigurationDialog.__generateTargetDir</h4> |
|
134 <b>__generateTargetDir</b>(<i></i>) |
|
135 <p> |
|
136 Private method to generate a valid target directory path. |
|
137 </p><dl> |
|
138 <dt>Returns:</dt> |
|
139 <dd> |
|
140 target directory path (string) |
|
141 </dd> |
|
142 </dl><a NAME="VirtualenvConfigurationDialog.__setPyvenvVersion" ID="VirtualenvConfigurationDialog.__setPyvenvVersion"></a> |
|
143 <h4>VirtualenvConfigurationDialog.__setPyvenvVersion</h4> |
|
144 <b>__setPyvenvVersion</b>(<i></i>) |
|
145 <p> |
|
146 Private method to determine the pyvenv version and set the respective |
|
147 label. |
|
148 </p><a NAME="VirtualenvConfigurationDialog.__setVirtualenvVersion" ID="VirtualenvConfigurationDialog.__setVirtualenvVersion"></a> |
|
149 <h4>VirtualenvConfigurationDialog.__setVirtualenvVersion</h4> |
|
150 <b>__setVirtualenvVersion</b>(<i></i>) |
|
151 <p> |
|
152 Private method to determine the virtualenv version and set the |
|
153 respective label. |
|
154 </p><a NAME="VirtualenvConfigurationDialog.__updateOK" ID="VirtualenvConfigurationDialog.__updateOK"></a> |
|
155 <h4>VirtualenvConfigurationDialog.__updateOK</h4> |
|
156 <b>__updateOK</b>(<i></i>) |
|
157 <p> |
|
158 Private method to update the enabled status of the OK button. |
|
159 </p><a NAME="VirtualenvConfigurationDialog.__updateUi" ID="VirtualenvConfigurationDialog.__updateUi"></a> |
|
160 <h4>VirtualenvConfigurationDialog.__updateUi</h4> |
|
161 <b>__updateUi</b>(<i></i>) |
|
162 <p> |
|
163 Private method to update the UI depending on the selected |
|
164 virtual environment creator (virtualenv or pyvenv). |
|
165 </p><a NAME="VirtualenvConfigurationDialog.getData" ID="VirtualenvConfigurationDialog.getData"></a> |
|
166 <h4>VirtualenvConfigurationDialog.getData</h4> |
|
167 <b>getData</b>(<i></i>) |
|
168 <p> |
|
169 Public method to retrieve the dialog data. |
|
170 </p><dl> |
|
171 <dt>Returns:</dt> |
|
172 <dd> |
|
173 tuple containing a flag indicating the pyvenv selection |
|
174 (boolean), the process arguments (list of string), a flag |
|
175 indicating to open the target directory after creation (boolean), |
|
176 a flag indicating to write a log file (boolean), a flag indicating |
|
177 to write a script (boolean), the name of the target directory |
|
178 (string) and the name of the python interpreter to use (string) |
|
179 </dd> |
|
180 </dl><a NAME="VirtualenvConfigurationDialog.on_extraSearchPathButton_clicked" ID="VirtualenvConfigurationDialog.on_extraSearchPathButton_clicked"></a> |
|
181 <h4>VirtualenvConfigurationDialog.on_extraSearchPathButton_clicked</h4> |
|
182 <b>on_extraSearchPathButton_clicked</b>(<i></i>) |
|
183 <p> |
|
184 Private slot to select the extra search path via a directory |
|
185 selection dialog. |
|
186 </p><a NAME="VirtualenvConfigurationDialog.on_pythonExecButton_clicked" ID="VirtualenvConfigurationDialog.on_pythonExecButton_clicked"></a> |
|
187 <h4>VirtualenvConfigurationDialog.on_pythonExecButton_clicked</h4> |
|
188 <b>on_pythonExecButton_clicked</b>(<i></i>) |
|
189 <p> |
|
190 Private slot to select a Python interpreter via a file selection |
|
191 dialog. |
|
192 </p><a NAME="VirtualenvConfigurationDialog.on_pythonExecEdit_textChanged" ID="VirtualenvConfigurationDialog.on_pythonExecEdit_textChanged"></a> |
|
193 <h4>VirtualenvConfigurationDialog.on_pythonExecEdit_textChanged</h4> |
|
194 <b>on_pythonExecEdit_textChanged</b>(<i>txt</i>) |
|
195 <p> |
|
196 Private slot to react to a change of the Python executable. |
|
197 </p><dl> |
|
198 <dt><i>txt</i></dt> |
|
199 <dd> |
|
200 contents of the line edit (string) |
|
201 </dd> |
|
202 </dl><a NAME="VirtualenvConfigurationDialog.on_pyvenvButton_toggled" ID="VirtualenvConfigurationDialog.on_pyvenvButton_toggled"></a> |
|
203 <h4>VirtualenvConfigurationDialog.on_pyvenvButton_toggled</h4> |
|
204 <b>on_pyvenvButton_toggled</b>(<i>checked</i>) |
|
205 <p> |
|
206 Private slot to react to the selection of 'pyvenv'. |
|
207 </p><dl> |
|
208 <dt><i>checked</i></dt> |
|
209 <dd> |
|
210 state of the checkbox (boolean) |
|
211 </dd> |
|
212 </dl><a NAME="VirtualenvConfigurationDialog.on_targetDirectoryButton_clicked" ID="VirtualenvConfigurationDialog.on_targetDirectoryButton_clicked"></a> |
|
213 <h4>VirtualenvConfigurationDialog.on_targetDirectoryButton_clicked</h4> |
|
214 <b>on_targetDirectoryButton_clicked</b>(<i></i>) |
|
215 <p> |
|
216 Private slot to select the target directory via a directory |
|
217 selection dialog. |
|
218 </p><a NAME="VirtualenvConfigurationDialog.on_targetDirectoryEdit_textChanged" ID="VirtualenvConfigurationDialog.on_targetDirectoryEdit_textChanged"></a> |
|
219 <h4>VirtualenvConfigurationDialog.on_targetDirectoryEdit_textChanged</h4> |
|
220 <b>on_targetDirectoryEdit_textChanged</b>(<i>txt</i>) |
|
221 <p> |
|
222 Private slot handling a change of the target directory. |
|
223 </p><dl> |
|
224 <dt><i>txt</i></dt> |
|
225 <dd> |
|
226 target directory (string) |
|
227 </dd> |
|
228 </dl><a NAME="VirtualenvConfigurationDialog.on_virtualenvButton_toggled" ID="VirtualenvConfigurationDialog.on_virtualenvButton_toggled"></a> |
|
229 <h4>VirtualenvConfigurationDialog.on_virtualenvButton_toggled</h4> |
|
230 <b>on_virtualenvButton_toggled</b>(<i>checked</i>) |
|
231 <p> |
|
232 Private slot to react to the selection of 'virtualenv'. |
|
233 </p><dl> |
|
234 <dt><i>checked</i></dt> |
|
235 <dd> |
|
236 state of the checkbox (boolean) |
|
237 </dd> |
|
238 </dl> |
|
239 <div align="right"><a href="#top">Up</a></div> |
|
240 <hr /> |
|
241 </body></html> |