Snapshot/SnapWidget.py

changeset 3020
542e97d4ecb3
parent 2993
4933ac9daa80
child 3030
4a0a82ddd9d2
--- a/Snapshot/SnapWidget.py	Mon Oct 14 18:26:25 2013 +0200
+++ b/Snapshot/SnapWidget.py	Mon Oct 14 19:30:36 2013 +0200
@@ -215,7 +215,8 @@
         @return flag indicating success (boolean)
         """
         if QFileInfo(fileName).exists():
-            res = E5MessageBox.yesNo(self,
+            res = E5MessageBox.yesNo(
+                self,
                 self.trUtf8("Save Snapshot"),
                 self.trUtf8("<p>The file <b>{0}</b> already exists."
                             " Overwrite it?</p>").format(fileName),
@@ -225,18 +226,20 @@
         
         file = QFile(fileName)
         if not file.open(QFile.WriteOnly):
-            E5MessageBox.warning(self, self.trUtf8("Save Snapshot"),
-                                self.trUtf8("Cannot write file '{0}:\n{1}.")\
-                                    .format(fileName, file.errorString()))
+            E5MessageBox.warning(
+                self, self.trUtf8("Save Snapshot"),
+                self.trUtf8("Cannot write file '{0}:\n{1}.")\
+                    .format(fileName, file.errorString()))
             return False
         
         ok = self.__snapshot.save(file)
         file.close()
         
         if not ok:
-            E5MessageBox.warning(self, self.trUtf8("Save Snapshot"),
-                                self.trUtf8("Cannot write file '{0}:\n{1}.")\
-                                    .format(fileName, file.errorString()))
+            E5MessageBox.warning(
+                self, self.trUtf8("Save Snapshot"),
+                self.trUtf8("Cannot write file '{0}:\n{1}.")\
+                    .format(fileName, file.errorString()))
         
         return ok
     
@@ -473,7 +476,8 @@
         @param evt close event (QCloseEvent)
         """
         if self.__modified:
-            res = E5MessageBox.question(self,
+            res = E5MessageBox.question(
+                self,
                 self.trUtf8("eric5 Snapshot"),
                 self.trUtf8(
                     """The application contains an unsaved snapshot."""),

eric ide

mercurial