eric6/Graphics/UMLDialog.py

changeset 7254
f00d825fbdb3
parent 7229
53054eb5b15a
child 7360
9190402e4505
diff -r 50dbe65a1334 -r f00d825fbdb3 eric6/Graphics/UMLDialog.py
--- a/eric6/Graphics/UMLDialog.py	Sat Sep 21 16:04:17 2019 +0200
+++ b/eric6/Graphics/UMLDialog.py	Sat Sep 21 17:41:22 2019 +0200
@@ -73,39 +73,39 @@
         """
         Private slot to initialize the actions.
         """
-        self.closeAct = \
-            QAction(UI.PixmapCache.getIcon("close.png"),
-                    self.tr("Close"), self)
+        self.closeAct = QAction(
+            UI.PixmapCache.getIcon("close.png"),
+            self.tr("Close"), self)
         self.closeAct.triggered.connect(self.close)
         
-        self.openAct = \
-            QAction(UI.PixmapCache.getIcon("open.png"),
-                    self.tr("Load"), self)
+        self.openAct = QAction(
+            UI.PixmapCache.getIcon("open.png"),
+            self.tr("Load"), self)
         self.openAct.triggered.connect(self.load)
         
-        self.saveAct = \
-            QAction(UI.PixmapCache.getIcon("fileSave.png"),
-                    self.tr("Save"), self)
+        self.saveAct = QAction(
+            UI.PixmapCache.getIcon("fileSave.png"),
+            self.tr("Save"), self)
         self.saveAct.triggered.connect(self.__save)
         
-        self.saveAsAct = \
-            QAction(UI.PixmapCache.getIcon("fileSaveAs.png"),
-                    self.tr("Save As..."), self)
+        self.saveAsAct = QAction(
+            UI.PixmapCache.getIcon("fileSaveAs.png"),
+            self.tr("Save As..."), self)
         self.saveAsAct.triggered.connect(self.__saveAs)
         
-        self.saveImageAct = \
-            QAction(UI.PixmapCache.getIcon("fileSavePixmap.png"),
-                    self.tr("Save as Image"), self)
+        self.saveImageAct = QAction(
+            UI.PixmapCache.getIcon("fileSavePixmap.png"),
+            self.tr("Save as Image"), self)
         self.saveImageAct.triggered.connect(self.umlView.saveImage)
         
-        self.printAct = \
-            QAction(UI.PixmapCache.getIcon("print.png"),
-                    self.tr("Print"), self)
+        self.printAct = QAction(
+            UI.PixmapCache.getIcon("print.png"),
+            self.tr("Print"), self)
         self.printAct.triggered.connect(self.umlView.printDiagram)
         
-        self.printPreviewAct = \
-            QAction(UI.PixmapCache.getIcon("printPreview.png"),
-                    self.tr("Print Preview"), self)
+        self.printPreviewAct = QAction(
+            UI.PixmapCache.getIcon("printPreview.png"),
+            self.tr("Print Preview"), self)
         self.printPreviewAct.triggered.connect(
             self.umlView.printPreviewDiagram)
     
@@ -306,8 +306,10 @@
             # step 1: check version
             linenum = 0
             key, value = lines[linenum].split(": ", 1)
-            if key.strip() != "version" or \
-                    value.strip() not in UMLDialog.FileVersions:
+            if (
+                key.strip() != "version" or
+                value.strip() not in UMLDialog.FileVersions
+            ):
                 self.__showInvalidDataMessage(filename, linenum)
                 return False
             else:

eric ide

mercurial