Documentation/Source/eric5.E5Gui.E5MessageBox.html

changeset 1366
f2e7957924cb
parent 1229
a8207dc73672
child 2023
6636ca1adc33
equal deleted inserted replaced
1365:8f8cad8f989e 1366:f2e7957924cb
118 </dl> 118 </dl>
119 <div align="right"><a href="#top">Up</a></div> 119 <div align="right"><a href="#top">Up</a></div>
120 <hr /><hr /> 120 <hr /><hr />
121 <a NAME="__messageBox" ID="__messageBox"></a> 121 <a NAME="__messageBox" ID="__messageBox"></a>
122 <h2>__messageBox</h2> 122 <h2>__messageBox</h2>
123 <b>__messageBox</b>(<i>parent, title, text, icon, buttons=QMessageBox.Ok, defaultButton=QMessageBox.NoButton</i>) 123 <b>__messageBox</b>(<i>parent, title, text, icon, buttons=QMessageBox.Ok, defaultButton=QMessageBox.NoButton, textFormat=Qt.AutoText</i>)
124 <p> 124 <p>
125 Private module function to show a modal message box. 125 Private module function to show a modal message box.
126 </p><dl> 126 </p><dl>
127 <dt><i>parent</i></dt> 127 <dt><i>parent</i></dt>
128 <dd> 128 <dd>
142 (QMessageBox.StandardButtons) 142 (QMessageBox.StandardButtons)
143 </dd><dt><i>defaultButton</i></dt> 143 </dd><dt><i>defaultButton</i></dt>
144 <dd> 144 <dd>
145 flag indicating the default button 145 flag indicating the default button
146 (QMessageBox.StandardButton) 146 (QMessageBox.StandardButton)
147 </dd><dt><i>textFormat</i></dt>
148 <dd>
149 format of the text (Qt.TextFormat)
147 </dd> 150 </dd>
148 </dl><dl> 151 </dl><dl>
149 <dt>Returns:</dt> 152 <dt>Returns:</dt>
150 <dd> 153 <dd>
151 button pressed by the user (QMessageBox.StandardButton) 154 button pressed by the user (QMessageBox.StandardButton)
217 </dl> 220 </dl>
218 <div align="right"><a href="#top">Up</a></div> 221 <div align="right"><a href="#top">Up</a></div>
219 <hr /><hr /> 222 <hr /><hr />
220 <a NAME="okToClearData" ID="okToClearData"></a> 223 <a NAME="okToClearData" ID="okToClearData"></a>
221 <h2>okToClearData</h2> 224 <h2>okToClearData</h2>
222 <b>okToClearData</b>(<i>parent, title, text, saveFunc</i>) 225 <b>okToClearData</b>(<i>parent, title, text, saveFunc, textFormat=Qt.AutoText</i>)
223 <p> 226 <p>
224 Function to show a model message box to ask for clearing the data. 227 Function to show a model message box to ask for clearing the data.
225 </p><dl> 228 </p><dl>
226 <dt><i>parent</i></dt> 229 <dt><i>parent</i></dt>
227 <dd> 230 <dd>
234 text to be shown by the message box (string) 237 text to be shown by the message box (string)
235 </dd><dt><i>saveFunc</i></dt> 238 </dd><dt><i>saveFunc</i></dt>
236 <dd> 239 <dd>
237 reference to a function performing the save action. It 240 reference to a function performing the save action. It
238 must be a parameterless function returning a flag indicating success. 241 must be a parameterless function returning a flag indicating success.
242 </dd><dt><i>textFormat</i></dt>
243 <dd>
244 format of the text (Qt.TextFormat)
239 </dd> 245 </dd>
240 </dl><dl> 246 </dl><dl>
241 <dt>Returns:</dt> 247 <dt>Returns:</dt>
242 <dd> 248 <dd>
243 flag indicating that it is ok to clear the data (boolean) 249 flag indicating that it is ok to clear the data (boolean)
277 </dl> 283 </dl>
278 <div align="right"><a href="#top">Up</a></div> 284 <div align="right"><a href="#top">Up</a></div>
279 <hr /><hr /> 285 <hr /><hr />
280 <a NAME="retryAbort" ID="retryAbort"></a> 286 <a NAME="retryAbort" ID="retryAbort"></a>
281 <h2>retryAbort</h2> 287 <h2>retryAbort</h2>
282 <b>retryAbort</b>(<i>parent, title, text, icon=Question</i>) 288 <b>retryAbort</b>(<i>parent, title, text, icon=Question, textFormat=Qt.AutoText</i>)
283 <p> 289 <p>
284 Function to show a model abort/retry message box. 290 Function to show a model abort/retry message box.
285 </p><dl> 291 </p><dl>
286 <dt><i>parent</i></dt> 292 <dt><i>parent</i></dt>
287 <dd> 293 <dd>
293 <dd> 299 <dd>
294 text to be shown by the message box (string) 300 text to be shown by the message box (string)
295 </dd><dt><i>icon=</i></dt> 301 </dd><dt><i>icon=</i></dt>
296 <dd> 302 <dd>
297 icon for the dialog (Critical, Information, Question or Warning) 303 icon for the dialog (Critical, Information, Question or Warning)
304 </dd><dt><i>textFormat</i></dt>
305 <dd>
306 format of the text (Qt.TextFormat)
298 </dd> 307 </dd>
299 </dl><dl> 308 </dl><dl>
300 <dt>Returns:</dt> 309 <dt>Returns:</dt>
301 <dd> 310 <dd>
302 flag indicating the selection of the Retry button (boolean) 311 flag indicating the selection of the Retry button (boolean)
336 </dl> 345 </dl>
337 <div align="right"><a href="#top">Up</a></div> 346 <div align="right"><a href="#top">Up</a></div>
338 <hr /><hr /> 347 <hr /><hr />
339 <a NAME="yesNo" ID="yesNo"></a> 348 <a NAME="yesNo" ID="yesNo"></a>
340 <h2>yesNo</h2> 349 <h2>yesNo</h2>
341 <b>yesNo</b>(<i>parent, title, text, icon=Question, yesDefault=False</i>) 350 <b>yesNo</b>(<i>parent, title, text, icon=Question, yesDefault=False, textFormat=Qt.AutoText</i>)
342 <p> 351 <p>
343 Function to show a model yes/no message box. 352 Function to show a model yes/no message box.
344 </p><dl> 353 </p><dl>
345 <dt><i>parent</i></dt> 354 <dt><i>parent</i></dt>
346 <dd> 355 <dd>
356 icon for the dialog (Critical, Information, Question or Warning) 365 icon for the dialog (Critical, Information, Question or Warning)
357 </dd><dt><i>yesDefault=</i></dt> 366 </dd><dt><i>yesDefault=</i></dt>
358 <dd> 367 <dd>
359 flag indicating that the Yes button should be the default 368 flag indicating that the Yes button should be the default
360 button (boolean) 369 button (boolean)
370 </dd><dt><i>textFormat</i></dt>
371 <dd>
372 format of the text (Qt.TextFormat)
361 </dd> 373 </dd>
362 </dl><dl> 374 </dl><dl>
363 <dt>Returns:</dt> 375 <dt>Returns:</dt>
364 <dd> 376 <dd>
365 flag indicating the selection of the Yes button (boolean) 377 flag indicating the selection of the Yes button (boolean)

eric ide

mercurial