5 <link rel="stylesheet" href="styles.css"> |
5 <link rel="stylesheet" href="styles.css"> |
6 </head> |
6 </head> |
7 <body> |
7 <body> |
8 <a NAME="top" ID="top"></a> |
8 <a NAME="top" ID="top"></a> |
9 <h1>eric7.EricWidgets.EricTextInputDialog</h1> |
9 <h1>eric7.EricWidgets.EricTextInputDialog</h1> |
10 |
|
11 <p> |
10 <p> |
12 Module implementing a dialog to enter some text. |
11 Module implementing a dialog to enter some text. |
13 </p> |
12 </p> |
|
13 |
14 <h3>Global Attributes</h3> |
14 <h3>Global Attributes</h3> |
15 |
15 <table> |
16 <table> |
16 <tr><td>None</td></tr> |
17 <tr><td>None</td></tr> |
17 </table> |
18 </table> |
18 |
19 <h3>Classes</h3> |
19 <h3>Classes</h3> |
20 |
20 <table> |
21 <table> |
|
22 |
|
23 <tr> |
21 <tr> |
24 <td><a href="#EricTextInputDialog">EricTextInputDialog</a></td> |
22 <td><a href="#EricTextInputDialog">EricTextInputDialog</a></td> |
25 <td>Class implementing a dialog to enter some text.</td> |
23 <td>Class implementing a dialog to enter some text.</td> |
26 </tr> |
24 </tr> |
27 </table> |
25 </table> |
|
26 |
28 <h3>Functions</h3> |
27 <h3>Functions</h3> |
29 |
28 <table> |
30 <table> |
|
31 |
|
32 <tr> |
29 <tr> |
33 <td><a href="#getText">getText</a></td> |
30 <td><a href="#getText">getText</a></td> |
34 <td>Function to get create a dialog to enter some text and return it.</td> |
31 <td>Function to get create a dialog to enter some text and return it.</td> |
35 </tr> |
32 </tr> |
36 </table> |
33 </table> |
|
34 |
37 <hr /> |
35 <hr /> |
38 <hr /> |
36 <hr /> |
39 <a NAME="EricTextInputDialog" ID="EricTextInputDialog"></a> |
37 <a NAME="EricTextInputDialog" ID="EricTextInputDialog"></a> |
40 <h2>EricTextInputDialog</h2> |
38 <h2>EricTextInputDialog</h2> |
41 |
|
42 <p> |
39 <p> |
43 Class implementing a dialog to enter some text. |
40 Class implementing a dialog to enter some text. |
44 </p> |
41 </p> |
|
42 |
45 <h3>Derived from</h3> |
43 <h3>Derived from</h3> |
46 QDialog |
44 QDialog |
47 <h3>Class Attributes</h3> |
45 <h3>Class Attributes</h3> |
48 |
46 <table> |
49 <table> |
47 <tr><td>None</td></tr> |
50 <tr><td>None</td></tr> |
48 </table> |
51 </table> |
49 |
52 <h3>Class Methods</h3> |
50 <h3>Class Methods</h3> |
53 |
51 <table> |
54 <table> |
52 <tr><td>None</td></tr> |
55 <tr><td>None</td></tr> |
53 </table> |
56 </table> |
54 |
57 <h3>Methods</h3> |
55 <h3>Methods</h3> |
58 |
56 <table> |
59 <table> |
|
60 |
|
61 <tr> |
57 <tr> |
62 <td><a href="#EricTextInputDialog.__init__">EricTextInputDialog</a></td> |
58 <td><a href="#EricTextInputDialog.__init__">EricTextInputDialog</a></td> |
63 <td>Constructor</td> |
59 <td>Constructor</td> |
64 </tr> |
60 </tr> |
65 <tr> |
61 <tr> |
85 <tr> |
81 <tr> |
86 <td><a href="#EricTextInputDialog.textValue">textValue</a></td> |
82 <td><a href="#EricTextInputDialog.textValue">textValue</a></td> |
87 <td>Public method to get the text of the line edit.</td> |
83 <td>Public method to get the text of the line edit.</td> |
88 </tr> |
84 </tr> |
89 </table> |
85 </table> |
|
86 |
90 <h3>Static Methods</h3> |
87 <h3>Static Methods</h3> |
91 |
88 <table> |
92 <table> |
89 <tr><td>None</td></tr> |
93 <tr><td>None</td></tr> |
90 </table> |
94 </table> |
91 |
95 |
92 |
96 <a NAME="EricTextInputDialog.__init__" ID="EricTextInputDialog.__init__"></a> |
93 <a NAME="EricTextInputDialog.__init__" ID="EricTextInputDialog.__init__"></a> |
97 <h4>EricTextInputDialog (Constructor)</h4> |
94 <h4>EricTextInputDialog (Constructor)</h4> |
98 <b>EricTextInputDialog</b>(<i>parent=None</i>) |
95 <b>EricTextInputDialog</b>(<i>parent=None</i>) |
99 |
|
100 <p> |
96 <p> |
101 Constructor |
97 Constructor |
102 </p> |
98 </p> |
|
99 |
103 <dl> |
100 <dl> |
104 |
101 |
105 <dt><i>parent</i> (QWidget)</dt> |
102 <dt><i>parent</i> (QWidget)</dt> |
106 <dd> |
103 <dd> |
107 reference to the parent widget |
104 reference to the parent widget |
108 </dd> |
105 </dd> |
109 </dl> |
106 </dl> |
110 <a NAME="EricTextInputDialog.labelText" ID="EricTextInputDialog.labelText"></a> |
107 <a NAME="EricTextInputDialog.labelText" ID="EricTextInputDialog.labelText"></a> |
111 <h4>EricTextInputDialog.labelText</h4> |
108 <h4>EricTextInputDialog.labelText</h4> |
112 <b>labelText</b>(<i></i>) |
109 <b>labelText</b>(<i></i>) |
113 |
|
114 <p> |
110 <p> |
115 Public method to get the current label text. |
111 Public method to get the current label text. |
116 </p> |
112 </p> |
|
113 |
117 <dl> |
114 <dl> |
118 <dt>Return:</dt> |
115 <dt>Return:</dt> |
119 <dd> |
116 <dd> |
120 current label text |
117 current label text |
121 </dd> |
118 </dd> |
127 </dd> |
124 </dd> |
128 </dl> |
125 </dl> |
129 <a NAME="EricTextInputDialog.setLabelText" ID="EricTextInputDialog.setLabelText"></a> |
126 <a NAME="EricTextInputDialog.setLabelText" ID="EricTextInputDialog.setLabelText"></a> |
130 <h4>EricTextInputDialog.setLabelText</h4> |
127 <h4>EricTextInputDialog.setLabelText</h4> |
131 <b>setLabelText</b>(<i>text</i>) |
128 <b>setLabelText</b>(<i>text</i>) |
132 |
|
133 <p> |
129 <p> |
134 Public method to set the label text. |
130 Public method to set the label text. |
135 </p> |
131 </p> |
|
132 |
136 <dl> |
133 <dl> |
137 |
134 |
138 <dt><i>text</i> (str)</dt> |
135 <dt><i>text</i> (str)</dt> |
139 <dd> |
136 <dd> |
140 label text |
137 label text |
141 </dd> |
138 </dd> |
142 </dl> |
139 </dl> |
143 <a NAME="EricTextInputDialog.setTextEchoMode" ID="EricTextInputDialog.setTextEchoMode"></a> |
140 <a NAME="EricTextInputDialog.setTextEchoMode" ID="EricTextInputDialog.setTextEchoMode"></a> |
144 <h4>EricTextInputDialog.setTextEchoMode</h4> |
141 <h4>EricTextInputDialog.setTextEchoMode</h4> |
145 <b>setTextEchoMode</b>(<i>echoMode</i>) |
142 <b>setTextEchoMode</b>(<i>echoMode</i>) |
146 |
|
147 <p> |
143 <p> |
148 Public method to set the echo mode of the line edit. |
144 Public method to set the echo mode of the line edit. |
149 </p> |
145 </p> |
|
146 |
150 <dl> |
147 <dl> |
151 |
148 |
152 <dt><i>echoMode</i> (QLineEdit.EchoMode)</dt> |
149 <dt><i>echoMode</i> (QLineEdit.EchoMode)</dt> |
153 <dd> |
150 <dd> |
154 echo mode of the line edit |
151 echo mode of the line edit |
155 </dd> |
152 </dd> |
156 </dl> |
153 </dl> |
157 <a NAME="EricTextInputDialog.setTextValue" ID="EricTextInputDialog.setTextValue"></a> |
154 <a NAME="EricTextInputDialog.setTextValue" ID="EricTextInputDialog.setTextValue"></a> |
158 <h4>EricTextInputDialog.setTextValue</h4> |
155 <h4>EricTextInputDialog.setTextValue</h4> |
159 <b>setTextValue</b>(<i>text</i>) |
156 <b>setTextValue</b>(<i>text</i>) |
160 |
|
161 <p> |
157 <p> |
162 Public method to set the text of the line edit. |
158 Public method to set the text of the line edit. |
163 </p> |
159 </p> |
|
160 |
164 <dl> |
161 <dl> |
165 |
162 |
166 <dt><i>text</i> (str)</dt> |
163 <dt><i>text</i> (str)</dt> |
167 <dd> |
164 <dd> |
168 text for the line edit |
165 text for the line edit |
169 </dd> |
166 </dd> |
170 </dl> |
167 </dl> |
171 <a NAME="EricTextInputDialog.textEchoMode" ID="EricTextInputDialog.textEchoMode"></a> |
168 <a NAME="EricTextInputDialog.textEchoMode" ID="EricTextInputDialog.textEchoMode"></a> |
172 <h4>EricTextInputDialog.textEchoMode</h4> |
169 <h4>EricTextInputDialog.textEchoMode</h4> |
173 <b>textEchoMode</b>(<i></i>) |
170 <b>textEchoMode</b>(<i></i>) |
174 |
|
175 <p> |
171 <p> |
176 Public method to get the current echo mode of the line edit. |
172 Public method to get the current echo mode of the line edit. |
177 </p> |
173 </p> |
|
174 |
178 <dl> |
175 <dl> |
179 <dt>Return:</dt> |
176 <dt>Return:</dt> |
180 <dd> |
177 <dd> |
181 echo mode of the line edit |
178 echo mode of the line edit |
182 </dd> |
179 </dd> |
188 </dd> |
185 </dd> |
189 </dl> |
186 </dl> |
190 <a NAME="EricTextInputDialog.textValue" ID="EricTextInputDialog.textValue"></a> |
187 <a NAME="EricTextInputDialog.textValue" ID="EricTextInputDialog.textValue"></a> |
191 <h4>EricTextInputDialog.textValue</h4> |
188 <h4>EricTextInputDialog.textValue</h4> |
192 <b>textValue</b>(<i></i>) |
189 <b>textValue</b>(<i></i>) |
193 |
|
194 <p> |
190 <p> |
195 Public method to get the text of the line edit. |
191 Public method to get the text of the line edit. |
196 </p> |
192 </p> |
|
193 |
197 <dl> |
194 <dl> |
198 <dt>Return:</dt> |
195 <dt>Return:</dt> |
199 <dd> |
196 <dd> |
200 text of the line edit |
197 text of the line edit |
201 </dd> |
198 </dd> |
210 <hr /> |
207 <hr /> |
211 <hr /> |
208 <hr /> |
212 <a NAME="getText" ID="getText"></a> |
209 <a NAME="getText" ID="getText"></a> |
213 <h2>getText</h2> |
210 <h2>getText</h2> |
214 <b>getText</b>(<i>parent, title, label, mode=QLineEdit.EchoMode.Normal, text="", minimumWidth=300</i>) |
211 <b>getText</b>(<i>parent, title, label, mode=QLineEdit.EchoMode.Normal, text="", minimumWidth=300</i>) |
215 |
|
216 <p> |
212 <p> |
217 Function to get create a dialog to enter some text and return it. |
213 Function to get create a dialog to enter some text and return it. |
218 </p> |
214 </p> |
|
215 |
219 <dl> |
216 <dl> |
220 |
217 |
221 <dt><i>parent</i> (QWidget)</dt> |
218 <dt><i>parent</i> (QWidget)</dt> |
222 <dd> |
219 <dd> |
223 reference to the parent widget |
220 reference to the parent widget |