E5Gui/E5MessageBox.py

branch
Py2 comp.
changeset 2525
8b507a9a2d40
parent 2302
f29e9405c851
child 3057
10516539f238
equal deleted inserted replaced
2523:139f182b72f6 2525:8b507a9a2d40
4 # 4 #
5 5
6 """ 6 """
7 Module implementing QMessageBox replacements and more convenience function. 7 Module implementing QMessageBox replacements and more convenience function.
8 """ 8 """
9
10 from __future__ import unicode_literals # __IGNORE_WARNING__
9 11
10 from PyQt4.QtCore import Qt 12 from PyQt4.QtCore import Qt
11 from PyQt4.QtGui import QMessageBox, QApplication 13 from PyQt4.QtGui import QMessageBox, QApplication
12 14
13 ################################################################################ 15 ################################################################################
76 @param text text to be shown by the message box (string) 78 @param text text to be shown by the message box (string)
77 @keyparam modal flag indicating a modal dialog (boolean) 79 @keyparam modal flag indicating a modal dialog (boolean)
78 @keyparam buttons set of standard buttons to generate (StandardButtons) 80 @keyparam buttons set of standard buttons to generate (StandardButtons)
79 @keyparam parent parent widget of the message box (QWidget) 81 @keyparam parent parent widget of the message box (QWidget)
80 """ 82 """
81 super().__init__(parent) 83 super(E5MessageBox, self).__init__(parent)
82 self.setIcon(icon) 84 self.setIcon(icon)
83 if modal: 85 if modal:
84 if parent is not None: 86 if parent is not None:
85 self.setWindowModality(Qt.WindowModal) 87 self.setWindowModality(Qt.WindowModal)
86 else: 88 else:

eric ide

mercurial