eric6/E5Gui/E5MessageBox.py

branch
maintenance
changeset 8273
698ae46f40a4
parent 8176
31965986ecd1
parent 8218
7c09585bd960
equal deleted inserted replaced
8190:fb0ef164f536 8273:698ae46f40a4
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