E5Gui/E5MessageBox.py

branch
Py2 comp.
changeset 3057
10516539f238
parent 2525
8b507a9a2d40
parent 2990
583beaf0b4b8
child 3058
0a02c433f52d
diff -r 9986ec0e559a -r 10516539f238 E5Gui/E5MessageBox.py
--- a/E5Gui/E5MessageBox.py	Tue Oct 15 22:03:54 2013 +0200
+++ b/E5Gui/E5MessageBox.py	Fri Oct 18 23:00:41 2013 +0200
@@ -12,9 +12,9 @@
 from PyQt4.QtCore import Qt
 from PyQt4.QtGui import QMessageBox, QApplication
 
-################################################################################
-##  Mappings to standard QMessageBox                                          ##
-################################################################################
+###############################################################################
+##  Mappings to standard QMessageBox                                         ##
+###############################################################################
 
 # QMessageBox.Icon
 NoIcon = QMessageBox.NoIcon
@@ -58,9 +58,9 @@
 ResetRole = QMessageBox.ResetRole
 YesRole = QMessageBox.YesRole
 
-################################################################################
-##  Replacement for the QMessageBox class                                     ##
-################################################################################
+###############################################################################
+##  Replacement for the QMessageBox class                                    ##
+###############################################################################
 
 
 class E5MessageBox(QMessageBox):
@@ -98,9 +98,9 @@
         self.setText(text)
         self.setStandardButtons(buttons)
 
-################################################################################
-##  Replacements for QMessageBox static methods                               ##
-################################################################################
+###############################################################################
+##  Replacements for QMessageBox static methods                              ##
+###############################################################################
 
 
 def __messageBox(parent, title, text, icon,
@@ -217,21 +217,23 @@
     return __messageBox(parent, title, text, QMessageBox.Warning,
                         buttons, defaultButton)
 
-################################################################################
-##  Additional convenience functions                                          ##
-################################################################################
+###############################################################################
+##  Additional convenience functions                                         ##
+###############################################################################
 
 
-def yesNo(parent, title, text, icon=Question, yesDefault=False, textFormat=Qt.AutoText):
+def yesNo(parent, title, text, icon=Question, yesDefault=False,
+          textFormat=Qt.AutoText):
     """
     Function to show a model yes/no message box.
     
     @param parent parent widget of the message box (QWidget)
     @param title caption of the message box (string)
     @param text text to be shown by the message box (string)
-    @keyparam icon icon for the dialog (Critical, Information, Question or Warning)
-    @keyparam yesDefault flag indicating that the Yes button should be the default
-        button (boolean)
+    @keyparam icon icon for the dialog (Critical, Information, Question or
+        Warning)
+    @keyparam yesDefault flag indicating that the Yes button should be the
+        default button (boolean)
     @param textFormat format of the text (Qt.TextFormat)
     @return flag indicating the selection of the Yes button (boolean)
     """
@@ -251,7 +253,8 @@
     @param parent parent widget of the message box (QWidget)
     @param title caption of the message box (string)
     @param text text to be shown by the message box (string)
-    @keyparam icon icon for the dialog (Critical, Information, Question or Warning)
+    @keyparam icon icon for the dialog (Critical, Information, Question or
+        Warning)
     @param textFormat format of the text (Qt.TextFormat)
     @return flag indicating the selection of the Retry button (boolean)
     """

eric ide

mercurial