eric6/E5Gui/E5MessageBox.py

changeset 7900
72b88fb20261
parent 7780
41420f82c0ac
child 7923
91e843545d9a
equal deleted inserted replaced
7899:ecf67e07b6e0 7900:72b88fb20261
72 Constructor 72 Constructor
73 73
74 @param icon type of icon to be shown (QMessageBox.Icon) 74 @param icon type of icon to be shown (QMessageBox.Icon)
75 @param title caption of the message box (string) 75 @param title caption of the message box (string)
76 @param text text to be shown by the message box (string) 76 @param text text to be shown by the message box (string)
77 @keyparam modal flag indicating a modal dialog (boolean) 77 @param modal flag indicating a modal dialog (boolean)
78 @keyparam buttons set of standard buttons to generate (StandardButtons) 78 @param buttons set of standard buttons to generate (StandardButtons)
79 @keyparam parent parent widget of the message box (QWidget) 79 @param parent parent widget of the message box (QWidget)
80 """ 80 """
81 super(E5MessageBox, self).__init__(parent) 81 super(E5MessageBox, self).__init__(parent)
82 self.setIcon(icon) 82 self.setIcon(icon)
83 if modal: 83 if modal:
84 if parent is not None: 84 if parent is not None:
226 Function to show a model yes/no message box. 226 Function to show a model yes/no message box.
227 227
228 @param parent parent widget of the message box (QWidget) 228 @param parent parent widget of the message box (QWidget)
229 @param title caption of the message box (string) 229 @param title caption of the message box (string)
230 @param text text to be shown by the message box (string) 230 @param text text to be shown by the message box (string)
231 @keyparam icon icon for the dialog (Critical, Information, Question or 231 @param icon icon for the dialog (Critical, Information, Question or
232 Warning) 232 Warning)
233 @keyparam yesDefault flag indicating that the Yes button should be the 233 @param yesDefault flag indicating that the Yes button should be the
234 default button (boolean) 234 default button (boolean)
235 @param textFormat format of the text (Qt.TextFormat) 235 @param textFormat format of the text (Qt.TextFormat)
236 @return flag indicating the selection of the Yes button (boolean) 236 @return flag indicating the selection of the Yes button (boolean)
237 @exception ValueError raised to indicate a bad parameter value 237 @exception ValueError raised to indicate a bad parameter value
238 """ 238 """
252 Function to show a model abort/retry message box. 252 Function to show a model abort/retry message box.
253 253
254 @param parent parent widget of the message box (QWidget) 254 @param parent parent widget of the message box (QWidget)
255 @param title caption of the message box (string) 255 @param title caption of the message box (string)
256 @param text text to be shown by the message box (string) 256 @param text text to be shown by the message box (string)
257 @keyparam icon icon for the dialog (Critical, Information, Question or 257 @param icon icon for the dialog (Critical, Information, Question or
258 Warning) 258 Warning)
259 @param textFormat format of the text (Qt.TextFormat) 259 @param textFormat format of the text (Qt.TextFormat)
260 @return flag indicating the selection of the Retry button (boolean) 260 @return flag indicating the selection of the Retry button (boolean)
261 @exception ValueError raised to indicate a bad parameter value 261 @exception ValueError raised to indicate a bad parameter value
262 """ 262 """

eric ide

mercurial