|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric6.CondaInterface.CondaNewEnvironmentDataDialog</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.CondaInterface.CondaNewEnvironmentDataDialog</h1> |
|
23 <p> |
|
24 Module implementing a dialog to enter data for a new conda 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="#CondaNewEnvironmentDataDialog">CondaNewEnvironmentDataDialog</a></td> |
|
34 <td>Class implementing a dialog to enter data for a new conda 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="CondaNewEnvironmentDataDialog" ID="CondaNewEnvironmentDataDialog"></a> |
|
43 <h2>CondaNewEnvironmentDataDialog</h2> |
|
44 <p> |
|
45 Class implementing a dialog to enter data for a new conda environment. |
|
46 </p> |
|
47 <h3>Derived from</h3> |
|
48 QDialog, Ui_CondaNewEnvironmentDataDialog |
|
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="#CondaNewEnvironmentDataDialog.__init__">CondaNewEnvironmentDataDialog</a></td> |
|
61 <td>Constructor</td> |
|
62 </tr><tr> |
|
63 <td><a href="#CondaNewEnvironmentDataDialog.__updateOK">__updateOK</a></td> |
|
64 <td>Private method to update the enabled state of the OK button.</td> |
|
65 </tr><tr> |
|
66 <td><a href="#CondaNewEnvironmentDataDialog.getData">getData</a></td> |
|
67 <td>Public method to get the entered data.</td> |
|
68 </tr><tr> |
|
69 <td><a href="#CondaNewEnvironmentDataDialog.on_condaNameEdit_textChanged">on_condaNameEdit_textChanged</a></td> |
|
70 <td>Private slot to handle changes of the conda name.</td> |
|
71 </tr><tr> |
|
72 <td><a href="#CondaNewEnvironmentDataDialog.on_nameEdit_textChanged">on_nameEdit_textChanged</a></td> |
|
73 <td>Private slot to handle changes of the logical name.</td> |
|
74 </tr><tr> |
|
75 <td><a href="#CondaNewEnvironmentDataDialog.on_requirementsFilePicker_textChanged">on_requirementsFilePicker_textChanged</a></td> |
|
76 <td>Private slot to handle changes of the requirements file name.</td> |
|
77 </tr> |
|
78 </table> |
|
79 <h3>Static Methods</h3> |
|
80 <table> |
|
81 <tr><td>None</td></tr> |
|
82 </table> |
|
83 <a NAME="CondaNewEnvironmentDataDialog.__init__" ID="CondaNewEnvironmentDataDialog.__init__"></a> |
|
84 <h4>CondaNewEnvironmentDataDialog (Constructor)</h4> |
|
85 <b>CondaNewEnvironmentDataDialog</b>(<i>title, showRequirements, parent=None</i>) |
|
86 <p> |
|
87 Constructor |
|
88 </p><dl> |
|
89 <dt><i>title</i> (str)</dt> |
|
90 <dd> |
|
91 tirle of the dialog |
|
92 </dd><dt><i>showRequirements</i> (bool)</dt> |
|
93 <dd> |
|
94 flag indicating to show the requirements |
|
95 file input widget |
|
96 </dd><dt><i>parent</i> (QWidget)</dt> |
|
97 <dd> |
|
98 reference to the parent widget |
|
99 </dd> |
|
100 </dl><a NAME="CondaNewEnvironmentDataDialog.__updateOK" ID="CondaNewEnvironmentDataDialog.__updateOK"></a> |
|
101 <h4>CondaNewEnvironmentDataDialog.__updateOK</h4> |
|
102 <b>__updateOK</b>(<i></i>) |
|
103 <p> |
|
104 Private method to update the enabled state of the OK button. |
|
105 </p><a NAME="CondaNewEnvironmentDataDialog.getData" ID="CondaNewEnvironmentDataDialog.getData"></a> |
|
106 <h4>CondaNewEnvironmentDataDialog.getData</h4> |
|
107 <b>getData</b>(<i></i>) |
|
108 <p> |
|
109 Public method to get the entered data. |
|
110 </p><dl> |
|
111 <dt>Returns:</dt> |
|
112 <dd> |
|
113 tuple with the logical name of the new environment, the conda |
|
114 name and the requirements file name |
|
115 </dd> |
|
116 </dl><dl> |
|
117 <dt>Return Type:</dt> |
|
118 <dd> |
|
119 tuple of (str, str, str) |
|
120 </dd> |
|
121 </dl><a NAME="CondaNewEnvironmentDataDialog.on_condaNameEdit_textChanged" ID="CondaNewEnvironmentDataDialog.on_condaNameEdit_textChanged"></a> |
|
122 <h4>CondaNewEnvironmentDataDialog.on_condaNameEdit_textChanged</h4> |
|
123 <b>on_condaNameEdit_textChanged</b>(<i>txt</i>) |
|
124 <p> |
|
125 Private slot to handle changes of the conda name. |
|
126 </p><dl> |
|
127 <dt><i>txt</i> (str)</dt> |
|
128 <dd> |
|
129 current text of the conda name entry |
|
130 </dd> |
|
131 </dl><a NAME="CondaNewEnvironmentDataDialog.on_nameEdit_textChanged" ID="CondaNewEnvironmentDataDialog.on_nameEdit_textChanged"></a> |
|
132 <h4>CondaNewEnvironmentDataDialog.on_nameEdit_textChanged</h4> |
|
133 <b>on_nameEdit_textChanged</b>(<i>txt</i>) |
|
134 <p> |
|
135 Private slot to handle changes of the logical name. |
|
136 </p><dl> |
|
137 <dt><i>txt</i> (str)</dt> |
|
138 <dd> |
|
139 current text of the logical name entry |
|
140 </dd> |
|
141 </dl><a NAME="CondaNewEnvironmentDataDialog.on_requirementsFilePicker_textChanged" ID="CondaNewEnvironmentDataDialog.on_requirementsFilePicker_textChanged"></a> |
|
142 <h4>CondaNewEnvironmentDataDialog.on_requirementsFilePicker_textChanged</h4> |
|
143 <b>on_requirementsFilePicker_textChanged</b>(<i>txt</i>) |
|
144 <p> |
|
145 Private slot to handle changes of the requirements file name. |
|
146 </p><dl> |
|
147 <dt><i>txt</i> (str)</dt> |
|
148 <dd> |
|
149 current text of the requirements file name entry |
|
150 </dd> |
|
151 </dl> |
|
152 <div align="right"><a href="#top">Up</a></div> |
|
153 <hr /> |
|
154 </body></html> |