E5Gui/E5MessageBox.py

changeset 1131
7781e396c903
parent 945
8cd4d08fa9f6
child 1366
f2e7957924cb
equal deleted inserted replaced
1130:3e9f0330f833 1131:7781e396c903
75 @param text text to be shown by the message box (string) 75 @param text text to be shown by the message box (string)
76 @keyparam modal flag indicating a modal dialog (boolean) 76 @keyparam modal flag indicating a modal dialog (boolean)
77 @keyparam buttons set of standard buttons to generate (StandardButtons) 77 @keyparam buttons set of standard buttons to generate (StandardButtons)
78 @keyparam parent parent widget of the message box (QWidget) 78 @keyparam parent parent widget of the message box (QWidget)
79 """ 79 """
80 QMessageBox.__init__(self, parent) 80 super().__init__(parent)
81 self.setIcon(icon) 81 self.setIcon(icon)
82 if modal: 82 if modal:
83 if parent is not None: 83 if parent is not None:
84 self.setWindowModality(Qt.WindowModal) 84 self.setWindowModality(Qt.WindowModal)
85 else: 85 else:

eric ide

mercurial