E5Gui/E5MessageBox.py

changeset 3022
57179e4cdadd
parent 2990
583beaf0b4b8
child 3058
0a02c433f52d
child 3160
209a07d7e401
--- a/E5Gui/E5MessageBox.py	Mon Oct 14 20:08:19 2013 +0200
+++ b/E5Gui/E5MessageBox.py	Tue Oct 15 18:29:32 2013 +0200
@@ -237,10 +237,11 @@
     """
     assert icon in [Critical, Information, Question, Warning]
     
-    res = __messageBox(parent, title, text, icon,
-            QMessageBox.StandardButtons(QMessageBox.Yes | QMessageBox.No),
-            yesDefault and QMessageBox.Yes or QMessageBox.No,
-            textFormat)
+    res = __messageBox(
+        parent, title, text, icon,
+        QMessageBox.StandardButtons(QMessageBox.Yes | QMessageBox.No),
+        yesDefault and QMessageBox.Yes or QMessageBox.No,
+        textFormat)
     return res == QMessageBox.Yes
 
 
@@ -258,10 +259,11 @@
     """
     assert icon in [Critical, Information, Question, Warning]
     
-    res = __messageBox(parent, title, text, icon,
-            QMessageBox.StandardButtons(QMessageBox.Retry | QMessageBox.Abort),
-            QMessageBox.Retry,
-            textFormat)
+    res = __messageBox(
+        parent, title, text, icon,
+        QMessageBox.StandardButtons(QMessageBox.Retry | QMessageBox.Abort),
+        QMessageBox.Retry,
+        textFormat)
     return res == QMessageBox.Retry
 
 
@@ -277,11 +279,12 @@
     @param textFormat format of the text (Qt.TextFormat)
     @return flag indicating that it is ok to clear the data (boolean)
     """
-    res = __messageBox(parent, title, text, QMessageBox.Warning,
-            QMessageBox.StandardButtons(
-                QMessageBox.Abort | QMessageBox.Discard | QMessageBox.Save),
-            QMessageBox.Save,
-            textFormat)
+    res = __messageBox(
+        parent, title, text, QMessageBox.Warning,
+        QMessageBox.StandardButtons(
+            QMessageBox.Abort | QMessageBox.Discard | QMessageBox.Save),
+        QMessageBox.Save,
+        textFormat)
     if res == QMessageBox.Abort:
         return False
     if res == QMessageBox.Save:

eric ide

mercurial