|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric6.VirtualEnv.VirtualenvAddEditDialog</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.VirtualEnv.VirtualenvAddEditDialog</h1> |
|
23 <p> |
|
24 Module implementing a dialog to enter the data of a virtual environment. |
|
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="#VirtualenvAddEditDialog">VirtualenvAddEditDialog</a></td> |
|
34 <td>Class implementing a dialog to enter the data of a virtual environment.</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="VirtualenvAddEditDialog" ID="VirtualenvAddEditDialog"></a> |
|
43 <h2>VirtualenvAddEditDialog</h2> |
|
44 <p> |
|
45 Class implementing a dialog to enter the data of a virtual environment. |
|
46 </p> |
|
47 <h3>Derived from</h3> |
|
48 QDialog, Ui_VirtualenvAddEditDialog |
|
49 <h3>Class Attributes</h3> |
|
50 <table> |
|
51 <tr><td>None</td></tr> |
|
52 </table> |
|
53 <h3>Class Methods</h3> |
|
54 <table> |
|
55 <tr><td>None</td></tr> |
|
56 </table> |
|
57 <h3>Methods</h3> |
|
58 <table> |
|
59 <tr> |
|
60 <td><a href="#VirtualenvAddEditDialog.__init__">VirtualenvAddEditDialog</a></td> |
|
61 <td>Constructor</td> |
|
62 </tr><tr> |
|
63 <td><a href="#VirtualenvAddEditDialog.__updateOk">__updateOk</a></td> |
|
64 <td>Private slot to update the state of the OK button.</td> |
|
65 </tr><tr> |
|
66 <td><a href="#VirtualenvAddEditDialog.getData">getData</a></td> |
|
67 <td>Public method to retrieve the entered data.</td> |
|
68 </tr><tr> |
|
69 <td><a href="#VirtualenvAddEditDialog.on_nameEdit_textChanged">on_nameEdit_textChanged</a></td> |
|
70 <td>Private slot to handle changes of the logical name.</td> |
|
71 </tr><tr> |
|
72 <td><a href="#VirtualenvAddEditDialog.on_pythonExecPicker_textChanged">on_pythonExecPicker_textChanged</a></td> |
|
73 <td>Private slot to handle changes of the virtual environment interpreter.</td> |
|
74 </tr><tr> |
|
75 <td><a href="#VirtualenvAddEditDialog.on_targetDirectoryPicker_textChanged">on_targetDirectoryPicker_textChanged</a></td> |
|
76 <td>Private slot to handle changes of the virtual environment directory.</td> |
|
77 </tr> |
|
78 </table> |
|
79 <h3>Static Methods</h3> |
|
80 <table> |
|
81 <tr><td>None</td></tr> |
|
82 </table> |
|
83 <a NAME="VirtualenvAddEditDialog.__init__" ID="VirtualenvAddEditDialog.__init__"></a> |
|
84 <h4>VirtualenvAddEditDialog (Constructor)</h4> |
|
85 <b>VirtualenvAddEditDialog</b>(<i>manager, venvName="", venvDirectory="", venvInterpreter="", parent=None</i>) |
|
86 <p> |
|
87 Constructor |
|
88 </p><dl> |
|
89 <dt><i>manager</i> (VirtualenvManager)</dt> |
|
90 <dd> |
|
91 reference to the virtual environment manager |
|
92 </dd><dt><i>venvName</i> (str)</dt> |
|
93 <dd> |
|
94 logical name of a virtual environment for editing |
|
95 </dd><dt><i>venvDirectory</i> (str)</dt> |
|
96 <dd> |
|
97 directory of the virtual environment |
|
98 </dd><dt><i>venvInterpreter</i> (str)</dt> |
|
99 <dd> |
|
100 Python interpreter of the virtual environment |
|
101 </dd><dt><i>parent</i> (QWidget)</dt> |
|
102 <dd> |
|
103 reference to the parent widget |
|
104 </dd> |
|
105 </dl><a NAME="VirtualenvAddEditDialog.__updateOk" ID="VirtualenvAddEditDialog.__updateOk"></a> |
|
106 <h4>VirtualenvAddEditDialog.__updateOk</h4> |
|
107 <b>__updateOk</b>(<i></i>) |
|
108 <p> |
|
109 Private slot to update the state of the OK button. |
|
110 </p><a NAME="VirtualenvAddEditDialog.getData" ID="VirtualenvAddEditDialog.getData"></a> |
|
111 <h4>VirtualenvAddEditDialog.getData</h4> |
|
112 <b>getData</b>(<i></i>) |
|
113 <p> |
|
114 Public method to retrieve the entered data. |
|
115 </p><dl> |
|
116 <dt>Returns:</dt> |
|
117 <dd> |
|
118 tuple containing the logical name, the directory and the |
|
119 interpreter of the virtual environment |
|
120 </dd> |
|
121 </dl><dl> |
|
122 <dt>Return Type:</dt> |
|
123 <dd> |
|
124 tuple of (str, str, str) |
|
125 </dd> |
|
126 </dl><a NAME="VirtualenvAddEditDialog.on_nameEdit_textChanged" ID="VirtualenvAddEditDialog.on_nameEdit_textChanged"></a> |
|
127 <h4>VirtualenvAddEditDialog.on_nameEdit_textChanged</h4> |
|
128 <b>on_nameEdit_textChanged</b>(<i>txt</i>) |
|
129 <p> |
|
130 Private slot to handle changes of the logical name. |
|
131 </p><dl> |
|
132 <dt><i>txt</i> (str)</dt> |
|
133 <dd> |
|
134 current logical name |
|
135 </dd> |
|
136 </dl><a NAME="VirtualenvAddEditDialog.on_pythonExecPicker_textChanged" ID="VirtualenvAddEditDialog.on_pythonExecPicker_textChanged"></a> |
|
137 <h4>VirtualenvAddEditDialog.on_pythonExecPicker_textChanged</h4> |
|
138 <b>on_pythonExecPicker_textChanged</b>(<i>txt</i>) |
|
139 <p> |
|
140 Private slot to handle changes of the virtual environment interpreter. |
|
141 </p><dl> |
|
142 <dt><i>txt</i> (str)</dt> |
|
143 <dd> |
|
144 virtual environment interpreter |
|
145 </dd> |
|
146 </dl><a NAME="VirtualenvAddEditDialog.on_targetDirectoryPicker_textChanged" ID="VirtualenvAddEditDialog.on_targetDirectoryPicker_textChanged"></a> |
|
147 <h4>VirtualenvAddEditDialog.on_targetDirectoryPicker_textChanged</h4> |
|
148 <b>on_targetDirectoryPicker_textChanged</b>(<i>txt</i>) |
|
149 <p> |
|
150 Private slot to handle changes of the virtual environment directory. |
|
151 </p><dl> |
|
152 <dt><i>txt</i> (str)</dt> |
|
153 <dd> |
|
154 virtual environment directory |
|
155 </dd> |
|
156 </dl> |
|
157 <div align="right"><a href="#top">Up</a></div> |
|
158 <hr /> |
|
159 </body></html> |