eric6/Documentation/Source/eric6.E5Gui.E5MessageBox.html

changeset 7273
391d6b7b1eff
parent 6942
2602857055c5
child 7631
2c7ccb4484bf
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.E5MessageBox</h1> 23 <h1>eric6.E5Gui.E5MessageBox</h1>
24
23 <p> 25 <p>
24 Module implementing QMessageBox replacements and more convenience function. 26 Module implementing QMessageBox replacements and more convenience function.
25 </p> 27 </p>
26 <h3>Global Attributes</h3> 28 <h3>Global Attributes</h3>
29
27 <table> 30 <table>
28 <tr><td>Abort</td></tr><tr><td>AcceptRole</td></tr><tr><td>ActionRole</td></tr><tr><td>Apply</td></tr><tr><td>ApplyRole</td></tr><tr><td>Cancel</td></tr><tr><td>Close</td></tr><tr><td>Critical</td></tr><tr><td>DestructiveRole</td></tr><tr><td>Discard</td></tr><tr><td>Help</td></tr><tr><td>HelpRole</td></tr><tr><td>Ignore</td></tr><tr><td>Information</td></tr><tr><td>InvalidRole</td></tr><tr><td>No</td></tr><tr><td>NoButton</td></tr><tr><td>NoIcon</td></tr><tr><td>NoRole</td></tr><tr><td>NoToAll</td></tr><tr><td>Ok</td></tr><tr><td>Open</td></tr><tr><td>Question</td></tr><tr><td>RejectRole</td></tr><tr><td>Reset</td></tr><tr><td>ResetRole</td></tr><tr><td>RestoreDefaults</td></tr><tr><td>Retry</td></tr><tr><td>Save</td></tr><tr><td>SaveAll</td></tr><tr><td>StandardButtons</td></tr><tr><td>Warning</td></tr><tr><td>Yes</td></tr><tr><td>YesRole</td></tr><tr><td>YesToAll</td></tr><tr><td>about</td></tr><tr><td>aboutQt</td></tr> 31 <tr><td>Abort</td></tr><tr><td>AcceptRole</td></tr><tr><td>ActionRole</td></tr><tr><td>Apply</td></tr><tr><td>ApplyRole</td></tr><tr><td>Cancel</td></tr><tr><td>Close</td></tr><tr><td>Critical</td></tr><tr><td>DestructiveRole</td></tr><tr><td>Discard</td></tr><tr><td>Help</td></tr><tr><td>HelpRole</td></tr><tr><td>Ignore</td></tr><tr><td>Information</td></tr><tr><td>InvalidRole</td></tr><tr><td>No</td></tr><tr><td>NoButton</td></tr><tr><td>NoIcon</td></tr><tr><td>NoRole</td></tr><tr><td>NoToAll</td></tr><tr><td>Ok</td></tr><tr><td>Open</td></tr><tr><td>Question</td></tr><tr><td>RejectRole</td></tr><tr><td>Reset</td></tr><tr><td>ResetRole</td></tr><tr><td>RestoreDefaults</td></tr><tr><td>Retry</td></tr><tr><td>Save</td></tr><tr><td>SaveAll</td></tr><tr><td>StandardButtons</td></tr><tr><td>Warning</td></tr><tr><td>Yes</td></tr><tr><td>YesRole</td></tr><tr><td>YesToAll</td></tr><tr><td>about</td></tr><tr><td>aboutQt</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="#E5MessageBox">E5MessageBox</a></td> 38 <td><a href="#E5MessageBox">E5MessageBox</a></td>
34 <td>Class implementing a replacement for QMessageBox.</td> 39 <td>Class implementing a replacement for QMessageBox.</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="#__messageBox">__messageBox</a></td> 47 <td><a href="#__messageBox">__messageBox</a></td>
41 <td>Private module function to show a modal message box.</td> 48 <td>Private module function to show a modal message box.</td>
42 </tr><tr> 49 </tr>
50 <tr>
43 <td><a href="#critical">critical</a></td> 51 <td><a href="#critical">critical</a></td>
44 <td>Function to show a modal critical message box.</td> 52 <td>Function to show a modal critical message box.</td>
45 </tr><tr> 53 </tr>
54 <tr>
46 <td><a href="#information">information</a></td> 55 <td><a href="#information">information</a></td>
47 <td>Function to show a modal information message box.</td> 56 <td>Function to show a modal information message box.</td>
48 </tr><tr> 57 </tr>
58 <tr>
49 <td><a href="#okToClearData">okToClearData</a></td> 59 <td><a href="#okToClearData">okToClearData</a></td>
50 <td>Function to show a model message box to ask for clearing the data.</td> 60 <td>Function to show a model message box to ask for clearing the data.</td>
51 </tr><tr> 61 </tr>
62 <tr>
52 <td><a href="#question">question</a></td> 63 <td><a href="#question">question</a></td>
53 <td>Function to show a modal question message box.</td> 64 <td>Function to show a modal question message box.</td>
54 </tr><tr> 65 </tr>
66 <tr>
55 <td><a href="#retryAbort">retryAbort</a></td> 67 <td><a href="#retryAbort">retryAbort</a></td>
56 <td>Function to show a model abort/retry message box.</td> 68 <td>Function to show a model abort/retry message box.</td>
57 </tr><tr> 69 </tr>
70 <tr>
58 <td><a href="#warning">warning</a></td> 71 <td><a href="#warning">warning</a></td>
59 <td>Function to show a modal warning message box.</td> 72 <td>Function to show a modal warning message box.</td>
60 </tr><tr> 73 </tr>
74 <tr>
61 <td><a href="#yesNo">yesNo</a></td> 75 <td><a href="#yesNo">yesNo</a></td>
62 <td>Function to show a model yes/no message box.</td> 76 <td>Function to show a model yes/no message box.</td>
63 </tr> 77 </tr>
64 </table> 78 </table>
65 <hr /><hr /> 79 <hr />
80 <hr />
66 <a NAME="E5MessageBox" ID="E5MessageBox"></a> 81 <a NAME="E5MessageBox" ID="E5MessageBox"></a>
67 <h2>E5MessageBox</h2> 82 <h2>E5MessageBox</h2>
83
68 <p> 84 <p>
69 Class implementing a replacement for QMessageBox. 85 Class implementing a replacement for QMessageBox.
70 </p> 86 </p>
71 <h3>Derived from</h3> 87 <h3>Derived from</h3>
72 QMessageBox 88 QMessageBox
73 <h3>Class Attributes</h3> 89 <h3>Class Attributes</h3>
90
74 <table> 91 <table>
75 <tr><td>None</td></tr> 92 <tr><td>None</td></tr>
76 </table> 93 </table>
77 <h3>Class Methods</h3> 94 <h3>Class Methods</h3>
95
78 <table> 96 <table>
79 <tr><td>None</td></tr> 97 <tr><td>None</td></tr>
80 </table> 98 </table>
81 <h3>Methods</h3> 99 <h3>Methods</h3>
82 <table> 100
101 <table>
102
83 <tr> 103 <tr>
84 <td><a href="#E5MessageBox.__init__">E5MessageBox</a></td> 104 <td><a href="#E5MessageBox.__init__">E5MessageBox</a></td>
85 <td>Constructor</td> 105 <td>Constructor</td>
86 </tr> 106 </tr>
87 </table> 107 </table>
88 <h3>Static Methods</h3> 108 <h3>Static Methods</h3>
109
89 <table> 110 <table>
90 <tr><td>None</td></tr> 111 <tr><td>None</td></tr>
91 </table> 112 </table>
113
92 <a NAME="E5MessageBox.__init__" ID="E5MessageBox.__init__"></a> 114 <a NAME="E5MessageBox.__init__" ID="E5MessageBox.__init__"></a>
93 <h4>E5MessageBox (Constructor)</h4> 115 <h4>E5MessageBox (Constructor)</h4>
94 <b>E5MessageBox</b>(<i>icon, title, text, modal=False, buttons=QMessageBox.NoButton, parent=None</i>) 116 <b>E5MessageBox</b>(<i>icon, title, text, modal=False, buttons=QMessageBox.NoButton, parent=None</i>)
117
95 <p> 118 <p>
96 Constructor 119 Constructor
97 </p><dl> 120 </p>
121 <dl>
122
98 <dt><i>icon</i></dt> 123 <dt><i>icon</i></dt>
99 <dd> 124 <dd>
100 type of icon to be shown (QMessageBox.Icon) 125 type of icon to be shown (QMessageBox.Icon)
101 </dd><dt><i>title</i></dt> 126 </dd>
102 <dd> 127 <dt><i>title</i></dt>
103 caption of the message box (string) 128 <dd>
104 </dd><dt><i>text</i></dt> 129 caption of the message box (string)
105 <dd> 130 </dd>
106 text to be shown by the message box (string) 131 <dt><i>text</i></dt>
107 </dd><dt><i>modal=</i></dt> 132 <dd>
133 text to be shown by the message box (string)
134 </dd>
135 <dt><i>modal=</i></dt>
108 <dd> 136 <dd>
109 flag indicating a modal dialog (boolean) 137 flag indicating a modal dialog (boolean)
110 </dd><dt><i>buttons=</i></dt> 138 </dd>
139 <dt><i>buttons=</i></dt>
111 <dd> 140 <dd>
112 set of standard buttons to generate (StandardButtons) 141 set of standard buttons to generate (StandardButtons)
113 </dd><dt><i>parent=</i></dt> 142 </dd>
114 <dd> 143 <dt><i>parent=</i></dt>
115 parent widget of the message box (QWidget) 144 <dd>
116 </dd> 145 parent widget of the message box (QWidget)
117 </dl> 146 </dd>
118 <div align="right"><a href="#top">Up</a></div> 147 </dl>
119 <hr /><hr /> 148 <div align="right"><a href="#top">Up</a></div>
149 <hr />
150 <hr />
120 <a NAME="__messageBox" ID="__messageBox"></a> 151 <a NAME="__messageBox" ID="__messageBox"></a>
121 <h2>__messageBox</h2> 152 <h2>__messageBox</h2>
122 <b>__messageBox</b>(<i>parent, title, text, icon, buttons=QMessageBox.Ok, defaultButton=QMessageBox.NoButton, textFormat=Qt.AutoText</i>) 153 <b>__messageBox</b>(<i>parent, title, text, icon, buttons=QMessageBox.Ok, defaultButton=QMessageBox.NoButton, textFormat=Qt.AutoText</i>)
154
123 <p> 155 <p>
124 Private module function to show a modal message box. 156 Private module function to show a modal message box.
125 </p><dl> 157 </p>
126 <dt><i>parent</i></dt> 158 <dl>
127 <dd> 159
128 parent widget of the message box (QWidget) 160 <dt><i>parent</i></dt>
129 </dd><dt><i>title</i></dt> 161 <dd>
130 <dd> 162 parent widget of the message box (QWidget)
131 caption of the message box (string) 163 </dd>
132 </dd><dt><i>text</i></dt> 164 <dt><i>title</i></dt>
133 <dd> 165 <dd>
134 text to be shown by the message box (string) 166 caption of the message box (string)
135 </dd><dt><i>icon</i></dt> 167 </dd>
168 <dt><i>text</i></dt>
169 <dd>
170 text to be shown by the message box (string)
171 </dd>
172 <dt><i>icon</i></dt>
136 <dd> 173 <dd>
137 type of icon to be shown (QMessageBox.Icon) 174 type of icon to be shown (QMessageBox.Icon)
138 </dd><dt><i>buttons</i></dt> 175 </dd>
176 <dt><i>buttons</i></dt>
139 <dd> 177 <dd>
140 flags indicating which buttons to show 178 flags indicating which buttons to show
141 (QMessageBox.StandardButtons) 179 (QMessageBox.StandardButtons)
142 </dd><dt><i>defaultButton</i></dt> 180 </dd>
181 <dt><i>defaultButton</i></dt>
143 <dd> 182 <dd>
144 flag indicating the default button 183 flag indicating the default button
145 (QMessageBox.StandardButton) 184 (QMessageBox.StandardButton)
146 </dd><dt><i>textFormat</i></dt> 185 </dd>
186 <dt><i>textFormat</i></dt>
147 <dd> 187 <dd>
148 format of the text (Qt.TextFormat) 188 format of the text (Qt.TextFormat)
149 </dd> 189 </dd>
150 </dl><dl> 190 </dl>
191 <dl>
151 <dt>Returns:</dt> 192 <dt>Returns:</dt>
152 <dd> 193 <dd>
153 button pressed by the user (QMessageBox.StandardButton) 194 button pressed by the user (QMessageBox.StandardButton)
154 </dd> 195 </dd>
155 </dl> 196 </dl>
156 <div align="right"><a href="#top">Up</a></div> 197 <div align="right"><a href="#top">Up</a></div>
157 <hr /><hr /> 198 <hr />
199 <hr />
158 <a NAME="critical" ID="critical"></a> 200 <a NAME="critical" ID="critical"></a>
159 <h2>critical</h2> 201 <h2>critical</h2>
160 <b>critical</b>(<i>parent, title, text, buttons=QMessageBox.Ok, defaultButton=QMessageBox.NoButton</i>) 202 <b>critical</b>(<i>parent, title, text, buttons=QMessageBox.Ok, defaultButton=QMessageBox.NoButton</i>)
203
161 <p> 204 <p>
162 Function to show a modal critical message box. 205 Function to show a modal critical message box.
163 </p><dl> 206 </p>
164 <dt><i>parent</i></dt> 207 <dl>
165 <dd> 208
166 parent widget of the message box (QWidget) 209 <dt><i>parent</i></dt>
167 </dd><dt><i>title</i></dt> 210 <dd>
168 <dd> 211 parent widget of the message box (QWidget)
169 caption of the message box (string) 212 </dd>
170 </dd><dt><i>text</i></dt> 213 <dt><i>title</i></dt>
171 <dd> 214 <dd>
172 text to be shown by the message box (string) 215 caption of the message box (string)
173 </dd><dt><i>buttons</i></dt> 216 </dd>
217 <dt><i>text</i></dt>
218 <dd>
219 text to be shown by the message box (string)
220 </dd>
221 <dt><i>buttons</i></dt>
174 <dd> 222 <dd>
175 flags indicating which buttons to show 223 flags indicating which buttons to show
176 (QMessageBox.StandardButtons) 224 (QMessageBox.StandardButtons)
177 </dd><dt><i>defaultButton</i></dt> 225 </dd>
226 <dt><i>defaultButton</i></dt>
178 <dd> 227 <dd>
179 flag indicating the default button 228 flag indicating the default button
180 (QMessageBox.StandardButton) 229 (QMessageBox.StandardButton)
181 </dd> 230 </dd>
182 </dl><dl> 231 </dl>
232 <dl>
183 <dt>Returns:</dt> 233 <dt>Returns:</dt>
184 <dd> 234 <dd>
185 button pressed by the user (QMessageBox.StandardButton) 235 button pressed by the user (QMessageBox.StandardButton)
186 </dd> 236 </dd>
187 </dl> 237 </dl>
188 <div align="right"><a href="#top">Up</a></div> 238 <div align="right"><a href="#top">Up</a></div>
189 <hr /><hr /> 239 <hr />
240 <hr />
190 <a NAME="information" ID="information"></a> 241 <a NAME="information" ID="information"></a>
191 <h2>information</h2> 242 <h2>information</h2>
192 <b>information</b>(<i>parent, title, text, buttons=QMessageBox.Ok, defaultButton=QMessageBox.NoButton</i>) 243 <b>information</b>(<i>parent, title, text, buttons=QMessageBox.Ok, defaultButton=QMessageBox.NoButton</i>)
244
193 <p> 245 <p>
194 Function to show a modal information message box. 246 Function to show a modal information message box.
195 </p><dl> 247 </p>
196 <dt><i>parent</i></dt> 248 <dl>
197 <dd> 249
198 parent widget of the message box (QWidget) 250 <dt><i>parent</i></dt>
199 </dd><dt><i>title</i></dt> 251 <dd>
200 <dd> 252 parent widget of the message box (QWidget)
201 caption of the message box (string) 253 </dd>
202 </dd><dt><i>text</i></dt> 254 <dt><i>title</i></dt>
203 <dd> 255 <dd>
204 text to be shown by the message box (string) 256 caption of the message box (string)
205 </dd><dt><i>buttons</i></dt> 257 </dd>
258 <dt><i>text</i></dt>
259 <dd>
260 text to be shown by the message box (string)
261 </dd>
262 <dt><i>buttons</i></dt>
206 <dd> 263 <dd>
207 flags indicating which buttons to show 264 flags indicating which buttons to show
208 (QMessageBox.StandardButtons) 265 (QMessageBox.StandardButtons)
209 </dd><dt><i>defaultButton</i></dt> 266 </dd>
267 <dt><i>defaultButton</i></dt>
210 <dd> 268 <dd>
211 flag indicating the default button 269 flag indicating the default button
212 (QMessageBox.StandardButton) 270 (QMessageBox.StandardButton)
213 </dd> 271 </dd>
214 </dl><dl> 272 </dl>
273 <dl>
215 <dt>Returns:</dt> 274 <dt>Returns:</dt>
216 <dd> 275 <dd>
217 button pressed by the user (QMessageBox.StandardButton) 276 button pressed by the user (QMessageBox.StandardButton)
218 </dd> 277 </dd>
219 </dl> 278 </dl>
220 <div align="right"><a href="#top">Up</a></div> 279 <div align="right"><a href="#top">Up</a></div>
221 <hr /><hr /> 280 <hr />
281 <hr />
222 <a NAME="okToClearData" ID="okToClearData"></a> 282 <a NAME="okToClearData" ID="okToClearData"></a>
223 <h2>okToClearData</h2> 283 <h2>okToClearData</h2>
224 <b>okToClearData</b>(<i>parent, title, text, saveFunc, textFormat=Qt.AutoText</i>) 284 <b>okToClearData</b>(<i>parent, title, text, saveFunc, textFormat=Qt.AutoText</i>)
285
225 <p> 286 <p>
226 Function to show a model message box to ask for clearing the data. 287 Function to show a model message box to ask for clearing the data.
227 </p><dl> 288 </p>
228 <dt><i>parent</i></dt> 289 <dl>
229 <dd> 290
230 parent widget of the message box (QWidget) 291 <dt><i>parent</i></dt>
231 </dd><dt><i>title</i></dt> 292 <dd>
232 <dd> 293 parent widget of the message box (QWidget)
233 caption of the message box (string) 294 </dd>
234 </dd><dt><i>text</i></dt> 295 <dt><i>title</i></dt>
235 <dd> 296 <dd>
236 text to be shown by the message box (string) 297 caption of the message box (string)
237 </dd><dt><i>saveFunc</i></dt> 298 </dd>
299 <dt><i>text</i></dt>
300 <dd>
301 text to be shown by the message box (string)
302 </dd>
303 <dt><i>saveFunc</i></dt>
238 <dd> 304 <dd>
239 reference to a function performing the save action. It 305 reference to a function performing the save action. It
240 must be a parameterless function returning a flag indicating success. 306 must be a parameterless function returning a flag indicating success.
241 </dd><dt><i>textFormat</i></dt> 307 </dd>
308 <dt><i>textFormat</i></dt>
242 <dd> 309 <dd>
243 format of the text (Qt.TextFormat) 310 format of the text (Qt.TextFormat)
244 </dd> 311 </dd>
245 </dl><dl> 312 </dl>
313 <dl>
246 <dt>Returns:</dt> 314 <dt>Returns:</dt>
247 <dd> 315 <dd>
248 flag indicating that it is ok to clear the data (boolean) 316 flag indicating that it is ok to clear the data (boolean)
249 </dd> 317 </dd>
250 </dl> 318 </dl>
251 <div align="right"><a href="#top">Up</a></div> 319 <div align="right"><a href="#top">Up</a></div>
252 <hr /><hr /> 320 <hr />
321 <hr />
253 <a NAME="question" ID="question"></a> 322 <a NAME="question" ID="question"></a>
254 <h2>question</h2> 323 <h2>question</h2>
255 <b>question</b>(<i>parent, title, text, buttons=QMessageBox.Ok, defaultButton=QMessageBox.NoButton</i>) 324 <b>question</b>(<i>parent, title, text, buttons=QMessageBox.Ok, defaultButton=QMessageBox.NoButton</i>)
325
256 <p> 326 <p>
257 Function to show a modal question message box. 327 Function to show a modal question message box.
258 </p><dl> 328 </p>
259 <dt><i>parent</i></dt> 329 <dl>
260 <dd> 330
261 parent widget of the message box (QWidget) 331 <dt><i>parent</i></dt>
262 </dd><dt><i>title</i></dt> 332 <dd>
263 <dd> 333 parent widget of the message box (QWidget)
264 caption of the message box (string) 334 </dd>
265 </dd><dt><i>text</i></dt> 335 <dt><i>title</i></dt>
266 <dd> 336 <dd>
267 text to be shown by the message box (string) 337 caption of the message box (string)
268 </dd><dt><i>buttons</i></dt> 338 </dd>
339 <dt><i>text</i></dt>
340 <dd>
341 text to be shown by the message box (string)
342 </dd>
343 <dt><i>buttons</i></dt>
269 <dd> 344 <dd>
270 flags indicating which buttons to show 345 flags indicating which buttons to show
271 (QMessageBox.StandardButtons) 346 (QMessageBox.StandardButtons)
272 </dd><dt><i>defaultButton</i></dt> 347 </dd>
348 <dt><i>defaultButton</i></dt>
273 <dd> 349 <dd>
274 flag indicating the default button 350 flag indicating the default button
275 (QMessageBox.StandardButton) 351 (QMessageBox.StandardButton)
276 </dd> 352 </dd>
277 </dl><dl> 353 </dl>
354 <dl>
278 <dt>Returns:</dt> 355 <dt>Returns:</dt>
279 <dd> 356 <dd>
280 button pressed by the user (QMessageBox.StandardButton) 357 button pressed by the user (QMessageBox.StandardButton)
281 </dd> 358 </dd>
282 </dl> 359 </dl>
283 <div align="right"><a href="#top">Up</a></div> 360 <div align="right"><a href="#top">Up</a></div>
284 <hr /><hr /> 361 <hr />
362 <hr />
285 <a NAME="retryAbort" ID="retryAbort"></a> 363 <a NAME="retryAbort" ID="retryAbort"></a>
286 <h2>retryAbort</h2> 364 <h2>retryAbort</h2>
287 <b>retryAbort</b>(<i>parent, title, text, icon=Question, textFormat=Qt.AutoText</i>) 365 <b>retryAbort</b>(<i>parent, title, text, icon=Question, textFormat=Qt.AutoText</i>)
366
288 <p> 367 <p>
289 Function to show a model abort/retry message box. 368 Function to show a model abort/retry message box.
290 </p><dl> 369 </p>
291 <dt><i>parent</i></dt> 370 <dl>
292 <dd> 371
293 parent widget of the message box (QWidget) 372 <dt><i>parent</i></dt>
294 </dd><dt><i>title</i></dt> 373 <dd>
295 <dd> 374 parent widget of the message box (QWidget)
296 caption of the message box (string) 375 </dd>
297 </dd><dt><i>text</i></dt> 376 <dt><i>title</i></dt>
298 <dd> 377 <dd>
299 text to be shown by the message box (string) 378 caption of the message box (string)
300 </dd><dt><i>icon=</i></dt> 379 </dd>
380 <dt><i>text</i></dt>
381 <dd>
382 text to be shown by the message box (string)
383 </dd>
384 <dt><i>icon=</i></dt>
301 <dd> 385 <dd>
302 icon for the dialog (Critical, Information, Question or 386 icon for the dialog (Critical, Information, Question or
303 Warning) 387 Warning)
304 </dd><dt><i>textFormat</i></dt> 388 </dd>
389 <dt><i>textFormat</i></dt>
305 <dd> 390 <dd>
306 format of the text (Qt.TextFormat) 391 format of the text (Qt.TextFormat)
307 </dd> 392 </dd>
308 </dl><dl> 393 </dl>
394 <dl>
309 <dt>Returns:</dt> 395 <dt>Returns:</dt>
310 <dd> 396 <dd>
311 flag indicating the selection of the Retry button (boolean) 397 flag indicating the selection of the Retry button (boolean)
312 </dd> 398 </dd>
313 </dl> 399 </dl>
314 <div align="right"><a href="#top">Up</a></div> 400 <div align="right"><a href="#top">Up</a></div>
315 <hr /><hr /> 401 <hr />
402 <hr />
316 <a NAME="warning" ID="warning"></a> 403 <a NAME="warning" ID="warning"></a>
317 <h2>warning</h2> 404 <h2>warning</h2>
318 <b>warning</b>(<i>parent, title, text, buttons=QMessageBox.Ok, defaultButton=QMessageBox.NoButton</i>) 405 <b>warning</b>(<i>parent, title, text, buttons=QMessageBox.Ok, defaultButton=QMessageBox.NoButton</i>)
406
319 <p> 407 <p>
320 Function to show a modal warning message box. 408 Function to show a modal warning message box.
321 </p><dl> 409 </p>
322 <dt><i>parent</i></dt> 410 <dl>
323 <dd> 411
324 parent widget of the message box (QWidget) 412 <dt><i>parent</i></dt>
325 </dd><dt><i>title</i></dt> 413 <dd>
326 <dd> 414 parent widget of the message box (QWidget)
327 caption of the message box (string) 415 </dd>
328 </dd><dt><i>text</i></dt> 416 <dt><i>title</i></dt>
329 <dd> 417 <dd>
330 text to be shown by the message box (string) 418 caption of the message box (string)
331 </dd><dt><i>buttons</i></dt> 419 </dd>
420 <dt><i>text</i></dt>
421 <dd>
422 text to be shown by the message box (string)
423 </dd>
424 <dt><i>buttons</i></dt>
332 <dd> 425 <dd>
333 flags indicating which buttons to show 426 flags indicating which buttons to show
334 (QMessageBox.StandardButtons) 427 (QMessageBox.StandardButtons)
335 </dd><dt><i>defaultButton</i></dt> 428 </dd>
429 <dt><i>defaultButton</i></dt>
336 <dd> 430 <dd>
337 flag indicating the default button 431 flag indicating the default button
338 (QMessageBox.StandardButton) 432 (QMessageBox.StandardButton)
339 </dd> 433 </dd>
340 </dl><dl> 434 </dl>
435 <dl>
341 <dt>Returns:</dt> 436 <dt>Returns:</dt>
342 <dd> 437 <dd>
343 button pressed by the user (QMessageBox.StandardButton) 438 button pressed by the user (QMessageBox.StandardButton)
344 </dd> 439 </dd>
345 </dl> 440 </dl>
346 <div align="right"><a href="#top">Up</a></div> 441 <div align="right"><a href="#top">Up</a></div>
347 <hr /><hr /> 442 <hr />
443 <hr />
348 <a NAME="yesNo" ID="yesNo"></a> 444 <a NAME="yesNo" ID="yesNo"></a>
349 <h2>yesNo</h2> 445 <h2>yesNo</h2>
350 <b>yesNo</b>(<i>parent, title, text, icon=Question, yesDefault=False, textFormat=Qt.AutoText</i>) 446 <b>yesNo</b>(<i>parent, title, text, icon=Question, yesDefault=False, textFormat=Qt.AutoText</i>)
447
351 <p> 448 <p>
352 Function to show a model yes/no message box. 449 Function to show a model yes/no message box.
353 </p><dl> 450 </p>
354 <dt><i>parent</i></dt> 451 <dl>
355 <dd> 452
356 parent widget of the message box (QWidget) 453 <dt><i>parent</i></dt>
357 </dd><dt><i>title</i></dt> 454 <dd>
358 <dd> 455 parent widget of the message box (QWidget)
359 caption of the message box (string) 456 </dd>
360 </dd><dt><i>text</i></dt> 457 <dt><i>title</i></dt>
361 <dd> 458 <dd>
362 text to be shown by the message box (string) 459 caption of the message box (string)
363 </dd><dt><i>icon=</i></dt> 460 </dd>
461 <dt><i>text</i></dt>
462 <dd>
463 text to be shown by the message box (string)
464 </dd>
465 <dt><i>icon=</i></dt>
364 <dd> 466 <dd>
365 icon for the dialog (Critical, Information, Question or 467 icon for the dialog (Critical, Information, Question or
366 Warning) 468 Warning)
367 </dd><dt><i>yesDefault=</i></dt> 469 </dd>
470 <dt><i>yesDefault=</i></dt>
368 <dd> 471 <dd>
369 flag indicating that the Yes button should be the 472 flag indicating that the Yes button should be the
370 default button (boolean) 473 default button (boolean)
371 </dd><dt><i>textFormat</i></dt> 474 </dd>
475 <dt><i>textFormat</i></dt>
372 <dd> 476 <dd>
373 format of the text (Qt.TextFormat) 477 format of the text (Qt.TextFormat)
374 </dd> 478 </dd>
375 </dl><dl> 479 </dl>
480 <dl>
376 <dt>Returns:</dt> 481 <dt>Returns:</dt>
377 <dd> 482 <dd>
378 flag indicating the selection of the Yes button (boolean) 483 flag indicating the selection of the Yes button (boolean)
379 </dd> 484 </dd>
380 </dl> 485 </dl>

eric ide

mercurial