eric6/E5Gui/E5MessageBox.py

changeset 8218
7c09585bd960
parent 8143
2c730d5fd177
child 8273
698ae46f40a4
equal deleted inserted replaced
8217:385f60c94548 8218:7c09585bd960
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 @param modal flag indicating a modal dialog (boolean) 77 @param modal flag indicating a modal dialog (boolean)
78 @param buttons set of standard buttons to generate (StandardButtons) 78 @param buttons set of standard buttons to generate (StandardButtons)
79 @param 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().__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:
85 self.setWindowModality(Qt.WindowModality.WindowModal) 85 self.setWindowModality(Qt.WindowModality.WindowModal)
86 else: 86 else:

eric ide

mercurial