|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric7.VirtualEnv.VirtualenvNameDialog</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.VirtualenvNameDialog</h1> |
|
10 |
|
11 <p> |
|
12 Module implementing a dialog to enter the logical name for a new virtual |
|
13 environment. |
|
14 </p> |
|
15 <h3>Global Attributes</h3> |
|
16 |
|
17 <table> |
|
18 <tr><td>None</td></tr> |
|
19 </table> |
|
20 <h3>Classes</h3> |
|
21 |
|
22 <table> |
|
23 |
|
24 <tr> |
|
25 <td><a href="#VirtualenvNameDialog">VirtualenvNameDialog</a></td> |
|
26 <td>Class implementing a dialog to enter the logical name for a new virtual environment.</td> |
|
27 </tr> |
|
28 </table> |
|
29 <h3>Functions</h3> |
|
30 |
|
31 <table> |
|
32 <tr><td>None</td></tr> |
|
33 </table> |
|
34 <hr /> |
|
35 <hr /> |
|
36 <a NAME="VirtualenvNameDialog" ID="VirtualenvNameDialog"></a> |
|
37 <h2>VirtualenvNameDialog</h2> |
|
38 |
|
39 <p> |
|
40 Class implementing a dialog to enter the logical name for a new virtual |
|
41 environment. |
|
42 </p> |
|
43 <h3>Derived from</h3> |
|
44 QDialog, Ui_VirtualenvNameDialog |
|
45 <h3>Class Attributes</h3> |
|
46 |
|
47 <table> |
|
48 <tr><td>None</td></tr> |
|
49 </table> |
|
50 <h3>Class Methods</h3> |
|
51 |
|
52 <table> |
|
53 <tr><td>None</td></tr> |
|
54 </table> |
|
55 <h3>Methods</h3> |
|
56 |
|
57 <table> |
|
58 |
|
59 <tr> |
|
60 <td><a href="#VirtualenvNameDialog.__init__">VirtualenvNameDialog</a></td> |
|
61 <td>Constructor</td> |
|
62 </tr> |
|
63 <tr> |
|
64 <td><a href="#VirtualenvNameDialog.getName">getName</a></td> |
|
65 <td>Public method to get the entered name.</td> |
|
66 </tr> |
|
67 <tr> |
|
68 <td><a href="#VirtualenvNameDialog.on_nameEdit_textChanged">on_nameEdit_textChanged</a></td> |
|
69 <td>Private slot to handle a change of the environment name.</td> |
|
70 </tr> |
|
71 </table> |
|
72 <h3>Static Methods</h3> |
|
73 |
|
74 <table> |
|
75 <tr><td>None</td></tr> |
|
76 </table> |
|
77 |
|
78 <a NAME="VirtualenvNameDialog.__init__" ID="VirtualenvNameDialog.__init__"></a> |
|
79 <h4>VirtualenvNameDialog (Constructor)</h4> |
|
80 <b>VirtualenvNameDialog</b>(<i>environments, currentName, parent=None</i>) |
|
81 |
|
82 <p> |
|
83 Constructor |
|
84 </p> |
|
85 <dl> |
|
86 |
|
87 <dt><i>environments</i> (list of str)</dt> |
|
88 <dd> |
|
89 list of environment names to be shown |
|
90 </dd> |
|
91 <dt><i>currentName</i> (str)</dt> |
|
92 <dd> |
|
93 name to be shown in the name edit |
|
94 </dd> |
|
95 <dt><i>parent</i> (QWidget)</dt> |
|
96 <dd> |
|
97 reference to the parent widget |
|
98 </dd> |
|
99 </dl> |
|
100 <a NAME="VirtualenvNameDialog.getName" ID="VirtualenvNameDialog.getName"></a> |
|
101 <h4>VirtualenvNameDialog.getName</h4> |
|
102 <b>getName</b>(<i></i>) |
|
103 |
|
104 <p> |
|
105 Public method to get the entered name. |
|
106 </p> |
|
107 <dl> |
|
108 <dt>Return:</dt> |
|
109 <dd> |
|
110 name for the environment |
|
111 </dd> |
|
112 </dl> |
|
113 <dl> |
|
114 <dt>Return Type:</dt> |
|
115 <dd> |
|
116 str |
|
117 </dd> |
|
118 </dl> |
|
119 <a NAME="VirtualenvNameDialog.on_nameEdit_textChanged" ID="VirtualenvNameDialog.on_nameEdit_textChanged"></a> |
|
120 <h4>VirtualenvNameDialog.on_nameEdit_textChanged</h4> |
|
121 <b>on_nameEdit_textChanged</b>(<i>txt</i>) |
|
122 |
|
123 <p> |
|
124 Private slot to handle a change of the environment name. |
|
125 </p> |
|
126 <dl> |
|
127 |
|
128 <dt><i>txt</i> (str)</dt> |
|
129 <dd> |
|
130 contens of the name edit |
|
131 </dd> |
|
132 </dl> |
|
133 <div align="right"><a href="#top">Up</a></div> |
|
134 <hr /> |
|
135 </body></html> |