Snapshot/SnapWidget.py

branch
Py2 comp.
changeset 3060
5883ce99ee12
parent 3058
0a02c433f52d
parent 3039
8dd0165d805d
child 3142
55030c09e142
diff -r 0a02c433f52d -r 5883ce99ee12 Snapshot/SnapWidget.py
--- a/Snapshot/SnapWidget.py	Fri Nov 01 15:48:48 2013 +0100
+++ b/Snapshot/SnapWidget.py	Sun Nov 03 15:58:22 2013 +0100
@@ -233,8 +233,8 @@
         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()))
+                self.trUtf8("Cannot write file '{0}:\n{1}.")
+                .format(fileName, file.errorString()))
             return False
         
         ok = self.__snapshot.save(file)
@@ -243,8 +243,8 @@
         if not ok:
             E5MessageBox.warning(
                 self, self.trUtf8("Save Snapshot"),
-                self.trUtf8("Cannot write file '{0}:\n{1}.")\
-                    .format(fileName, file.errorString()))
+                self.trUtf8("Cannot write file '{0}:\n{1}.")
+                .format(fileName, file.errorString()))
         
         return ok
     
@@ -256,7 +256,7 @@
         name = os.path.basename(self.__filename)
         
         # If the name contains a number, then increment it.
-        numSearch = QRegExp("(^|[^\\d])(\\d+)") 
+        numSearch = QRegExp("(^|[^\\d])(\\d+)")
         # We want to match as far left as possible, and when the number is
         # at the start of the name.
         
@@ -487,8 +487,8 @@
                 self.trUtf8(
                     """The application contains an unsaved snapshot."""),
                 E5MessageBox.StandardButtons(
-                    E5MessageBox.Abort | \
-                    E5MessageBox.Discard | \
+                    E5MessageBox.Abort |
+                    E5MessageBox.Discard |
                     E5MessageBox.Save))
             if res == E5MessageBox.Abort:
                 evt.ignore()

eric ide

mercurial