eric6/Documentation/Source/eric6.E5Gui.E5TextInputDialog.html

changeset 7273
391d6b7b1eff
parent 6942
2602857055c5
child 7989
a21d673a8f99
equal deleted inserted replaced
7272:1779dc278077 7273:391d6b7b1eff
16 16
17 a { color: #BA6D36; } 17 a { color: #BA6D36; }
18 18
19 </style> 19 </style>
20 </head> 20 </head>
21 <body><a NAME="top" ID="top"></a> 21 <body>
22 <a NAME="top" ID="top"></a>
22 <h1>eric6.E5Gui.E5TextInputDialog</h1> 23 <h1>eric6.E5Gui.E5TextInputDialog</h1>
24
23 <p> 25 <p>
24 Module implementing a dialog to enter some text. 26 Module implementing a dialog to enter some text.
25 </p> 27 </p>
26 <h3>Global Attributes</h3> 28 <h3>Global Attributes</h3>
29
27 <table> 30 <table>
28 <tr><td>None</td></tr> 31 <tr><td>None</td></tr>
29 </table> 32 </table>
30 <h3>Classes</h3> 33 <h3>Classes</h3>
31 <table> 34
35 <table>
36
32 <tr> 37 <tr>
33 <td><a href="#E5TextInputDialog">E5TextInputDialog</a></td> 38 <td><a href="#E5TextInputDialog">E5TextInputDialog</a></td>
34 <td>Class implementing a dialog to enter some text.</td> 39 <td>Class implementing a dialog to enter some text.</td>
35 </tr> 40 </tr>
36 </table> 41 </table>
37 <h3>Functions</h3> 42 <h3>Functions</h3>
38 <table> 43
44 <table>
45
39 <tr> 46 <tr>
40 <td><a href="#getText">getText</a></td> 47 <td><a href="#getText">getText</a></td>
41 <td>Function to get create a dialog to enter some text and return it.</td> 48 <td>Function to get create a dialog to enter some text and return it.</td>
42 </tr> 49 </tr>
43 </table> 50 </table>
44 <hr /><hr /> 51 <hr />
52 <hr />
45 <a NAME="E5TextInputDialog" ID="E5TextInputDialog"></a> 53 <a NAME="E5TextInputDialog" ID="E5TextInputDialog"></a>
46 <h2>E5TextInputDialog</h2> 54 <h2>E5TextInputDialog</h2>
55
47 <p> 56 <p>
48 Class implementing a dialog to enter some text. 57 Class implementing a dialog to enter some text.
49 </p> 58 </p>
50 <h3>Derived from</h3> 59 <h3>Derived from</h3>
51 QDialog 60 QDialog
52 <h3>Class Attributes</h3> 61 <h3>Class Attributes</h3>
62
53 <table> 63 <table>
54 <tr><td>None</td></tr> 64 <tr><td>None</td></tr>
55 </table> 65 </table>
56 <h3>Class Methods</h3> 66 <h3>Class Methods</h3>
67
57 <table> 68 <table>
58 <tr><td>None</td></tr> 69 <tr><td>None</td></tr>
59 </table> 70 </table>
60 <h3>Methods</h3> 71 <h3>Methods</h3>
61 <table> 72
73 <table>
74
62 <tr> 75 <tr>
63 <td><a href="#E5TextInputDialog.__init__">E5TextInputDialog</a></td> 76 <td><a href="#E5TextInputDialog.__init__">E5TextInputDialog</a></td>
64 <td>Constructor</td> 77 <td>Constructor</td>
65 </tr><tr> 78 </tr>
79 <tr>
66 <td><a href="#E5TextInputDialog.labelText">labelText</a></td> 80 <td><a href="#E5TextInputDialog.labelText">labelText</a></td>
67 <td>Public method to get the current label text.</td> 81 <td>Public method to get the current label text.</td>
68 </tr><tr> 82 </tr>
83 <tr>
69 <td><a href="#E5TextInputDialog.setLabelText">setLabelText</a></td> 84 <td><a href="#E5TextInputDialog.setLabelText">setLabelText</a></td>
70 <td>Public method to set the label text.</td> 85 <td>Public method to set the label text.</td>
71 </tr><tr> 86 </tr>
87 <tr>
72 <td><a href="#E5TextInputDialog.setTextEchoMode">setTextEchoMode</a></td> 88 <td><a href="#E5TextInputDialog.setTextEchoMode">setTextEchoMode</a></td>
73 <td>Public method to set the echo mode of the line edit.</td> 89 <td>Public method to set the echo mode of the line edit.</td>
74 </tr><tr> 90 </tr>
91 <tr>
75 <td><a href="#E5TextInputDialog.setTextValue">setTextValue</a></td> 92 <td><a href="#E5TextInputDialog.setTextValue">setTextValue</a></td>
76 <td>Public method to set the text of the line edit.</td> 93 <td>Public method to set the text of the line edit.</td>
77 </tr><tr> 94 </tr>
95 <tr>
78 <td><a href="#E5TextInputDialog.textEchoMode">textEchoMode</a></td> 96 <td><a href="#E5TextInputDialog.textEchoMode">textEchoMode</a></td>
79 <td>Public method to get the current echo mode of the line edit.</td> 97 <td>Public method to get the current echo mode of the line edit.</td>
80 </tr><tr> 98 </tr>
99 <tr>
81 <td><a href="#E5TextInputDialog.textValue">textValue</a></td> 100 <td><a href="#E5TextInputDialog.textValue">textValue</a></td>
82 <td>Public method to get the text of the line edit.</td> 101 <td>Public method to get the text of the line edit.</td>
83 </tr> 102 </tr>
84 </table> 103 </table>
85 <h3>Static Methods</h3> 104 <h3>Static Methods</h3>
86 <table> 105
87 <tr><td>None</td></tr> 106 <table>
88 </table> 107 <tr><td>None</td></tr>
108 </table>
109
89 <a NAME="E5TextInputDialog.__init__" ID="E5TextInputDialog.__init__"></a> 110 <a NAME="E5TextInputDialog.__init__" ID="E5TextInputDialog.__init__"></a>
90 <h4>E5TextInputDialog (Constructor)</h4> 111 <h4>E5TextInputDialog (Constructor)</h4>
91 <b>E5TextInputDialog</b>(<i>parent=None</i>) 112 <b>E5TextInputDialog</b>(<i>parent=None</i>)
113
92 <p> 114 <p>
93 Constructor 115 Constructor
94 </p><dl> 116 </p>
117 <dl>
118
95 <dt><i>parent</i> (QWidget)</dt> 119 <dt><i>parent</i> (QWidget)</dt>
96 <dd> 120 <dd>
97 reference to the parent widget 121 reference to the parent widget
98 </dd> 122 </dd>
99 </dl><a NAME="E5TextInputDialog.labelText" ID="E5TextInputDialog.labelText"></a> 123 </dl>
124 <a NAME="E5TextInputDialog.labelText" ID="E5TextInputDialog.labelText"></a>
100 <h4>E5TextInputDialog.labelText</h4> 125 <h4>E5TextInputDialog.labelText</h4>
101 <b>labelText</b>(<i></i>) 126 <b>labelText</b>(<i></i>)
127
102 <p> 128 <p>
103 Public method to get the current label text. 129 Public method to get the current label text.
104 </p><dl> 130 </p>
131 <dl>
105 <dt>Returns:</dt> 132 <dt>Returns:</dt>
106 <dd> 133 <dd>
107 current label text 134 current label text
108 </dd> 135 </dd>
109 </dl><dl> 136 </dl>
137 <dl>
110 <dt>Return Type:</dt> 138 <dt>Return Type:</dt>
111 <dd> 139 <dd>
112 str 140 str
113 </dd> 141 </dd>
114 </dl><a NAME="E5TextInputDialog.setLabelText" ID="E5TextInputDialog.setLabelText"></a> 142 </dl>
143 <a NAME="E5TextInputDialog.setLabelText" ID="E5TextInputDialog.setLabelText"></a>
115 <h4>E5TextInputDialog.setLabelText</h4> 144 <h4>E5TextInputDialog.setLabelText</h4>
116 <b>setLabelText</b>(<i>text</i>) 145 <b>setLabelText</b>(<i>text</i>)
146
117 <p> 147 <p>
118 Public method to set the label text. 148 Public method to set the label text.
119 </p><dl> 149 </p>
150 <dl>
151
120 <dt><i>text</i> (str)</dt> 152 <dt><i>text</i> (str)</dt>
121 <dd> 153 <dd>
122 label text 154 label text
123 </dd> 155 </dd>
124 </dl><a NAME="E5TextInputDialog.setTextEchoMode" ID="E5TextInputDialog.setTextEchoMode"></a> 156 </dl>
157 <a NAME="E5TextInputDialog.setTextEchoMode" ID="E5TextInputDialog.setTextEchoMode"></a>
125 <h4>E5TextInputDialog.setTextEchoMode</h4> 158 <h4>E5TextInputDialog.setTextEchoMode</h4>
126 <b>setTextEchoMode</b>(<i>echoMode</i>) 159 <b>setTextEchoMode</b>(<i>echoMode</i>)
160
127 <p> 161 <p>
128 Public method to set the echo mode of the line edit. 162 Public method to set the echo mode of the line edit.
129 </p><dl> 163 </p>
164 <dl>
165
130 <dt><i>echoMode</i> (QLineEdit.EchoMode)</dt> 166 <dt><i>echoMode</i> (QLineEdit.EchoMode)</dt>
131 <dd> 167 <dd>
132 echo mode of the line edit 168 echo mode of the line edit
133 </dd> 169 </dd>
134 </dl><a NAME="E5TextInputDialog.setTextValue" ID="E5TextInputDialog.setTextValue"></a> 170 </dl>
171 <a NAME="E5TextInputDialog.setTextValue" ID="E5TextInputDialog.setTextValue"></a>
135 <h4>E5TextInputDialog.setTextValue</h4> 172 <h4>E5TextInputDialog.setTextValue</h4>
136 <b>setTextValue</b>(<i>text</i>) 173 <b>setTextValue</b>(<i>text</i>)
174
137 <p> 175 <p>
138 Public method to set the text of the line edit. 176 Public method to set the text of the line edit.
139 </p><dl> 177 </p>
178 <dl>
179
140 <dt><i>text</i> (str)</dt> 180 <dt><i>text</i> (str)</dt>
141 <dd> 181 <dd>
142 text for the line edit 182 text for the line edit
143 </dd> 183 </dd>
144 </dl><a NAME="E5TextInputDialog.textEchoMode" ID="E5TextInputDialog.textEchoMode"></a> 184 </dl>
185 <a NAME="E5TextInputDialog.textEchoMode" ID="E5TextInputDialog.textEchoMode"></a>
145 <h4>E5TextInputDialog.textEchoMode</h4> 186 <h4>E5TextInputDialog.textEchoMode</h4>
146 <b>textEchoMode</b>(<i></i>) 187 <b>textEchoMode</b>(<i></i>)
188
147 <p> 189 <p>
148 Public method to get the current echo mode of the line edit. 190 Public method to get the current echo mode of the line edit.
149 </p><dl> 191 </p>
192 <dl>
150 <dt>Returns:</dt> 193 <dt>Returns:</dt>
151 <dd> 194 <dd>
152 echo mode of the line edit 195 echo mode of the line edit
153 </dd> 196 </dd>
154 </dl><dl> 197 </dl>
198 <dl>
155 <dt>Return Type:</dt> 199 <dt>Return Type:</dt>
156 <dd> 200 <dd>
157 QLineEdit.EchoMode 201 QLineEdit.EchoMode
158 </dd> 202 </dd>
159 </dl><a NAME="E5TextInputDialog.textValue" ID="E5TextInputDialog.textValue"></a> 203 </dl>
204 <a NAME="E5TextInputDialog.textValue" ID="E5TextInputDialog.textValue"></a>
160 <h4>E5TextInputDialog.textValue</h4> 205 <h4>E5TextInputDialog.textValue</h4>
161 <b>textValue</b>(<i></i>) 206 <b>textValue</b>(<i></i>)
207
162 <p> 208 <p>
163 Public method to get the text of the line edit. 209 Public method to get the text of the line edit.
164 </p><dl> 210 </p>
211 <dl>
165 <dt>Returns:</dt> 212 <dt>Returns:</dt>
166 <dd> 213 <dd>
167 text of the line edit 214 text of the line edit
168 </dd> 215 </dd>
169 </dl><dl> 216 </dl>
217 <dl>
170 <dt>Return Type:</dt> 218 <dt>Return Type:</dt>
171 <dd> 219 <dd>
172 str 220 str
173 </dd> 221 </dd>
174 </dl> 222 </dl>
175 <div align="right"><a href="#top">Up</a></div> 223 <div align="right"><a href="#top">Up</a></div>
176 <hr /><hr /> 224 <hr />
225 <hr />
177 <a NAME="getText" ID="getText"></a> 226 <a NAME="getText" ID="getText"></a>
178 <h2>getText</h2> 227 <h2>getText</h2>
179 <b>getText</b>(<i>parent, title, label, mode=QLineEdit.Normal, text="", minimumWidth=300</i>) 228 <b>getText</b>(<i>parent, title, label, mode=QLineEdit.Normal, text="", minimumWidth=300</i>)
229
180 <p> 230 <p>
181 Function to get create a dialog to enter some text and return it. 231 Function to get create a dialog to enter some text and return it.
182 </p><dl> 232 </p>
233 <dl>
234
183 <dt><i>parent</i> (QWidget)</dt> 235 <dt><i>parent</i> (QWidget)</dt>
184 <dd> 236 <dd>
185 reference to the parent widget 237 reference to the parent widget
186 </dd><dt><i>title</i> (str)</dt> 238 </dd>
239 <dt><i>title</i> (str)</dt>
187 <dd> 240 <dd>
188 title of the dialog 241 title of the dialog
189 </dd><dt><i>label</i> (str)</dt> 242 </dd>
243 <dt><i>label</i> (str)</dt>
190 <dd> 244 <dd>
191 label of the dialog 245 label of the dialog
192 </dd><dt><i>mode</i> (QLineEdit.EchoMode)</dt> 246 </dd>
247 <dt><i>mode</i> (QLineEdit.EchoMode)</dt>
193 <dd> 248 <dd>
194 echo mode of the line edit 249 echo mode of the line edit
195 </dd><dt><i>text</i> (str)</dt> 250 </dd>
251 <dt><i>text</i> (str)</dt>
196 <dd> 252 <dd>
197 initial text of the line edit 253 initial text of the line edit
198 </dd><dt><i>minimumWidth</i> (int)</dt> 254 </dd>
255 <dt><i>minimumWidth</i> (int)</dt>
199 <dd> 256 <dd>
200 minimum width of the dialog 257 minimum width of the dialog
201 </dd> 258 </dd>
202 </dl><dl> 259 </dl>
260 <dl>
203 <dt>Returns:</dt> 261 <dt>Returns:</dt>
204 <dd> 262 <dd>
205 tuple containing a flag indicating the dialog was accepted and the 263 tuple containing a flag indicating the dialog was accepted and the
206 entered text 264 entered text
207 </dd> 265 </dd>
208 </dl><dl> 266 </dl>
267 <dl>
209 <dt>Return Type:</dt> 268 <dt>Return Type:</dt>
210 <dd> 269 <dd>
211 tuple of (bool, str) 270 tuple of (bool, str)
212 </dd> 271 </dd>
213 </dl> 272 </dl>

eric ide

mercurial