eric6/Graphics/UMLGraphicsView.py

changeset 8218
7c09585bd960
parent 8150
fc1ae39af8c9
child 8220
006ee31b4835
--- a/eric6/Graphics/UMLGraphicsView.py	Sat Apr 10 18:31:17 2021 +0200
+++ b/eric6/Graphics/UMLGraphicsView.py	Sat Apr 10 18:38:27 2021 +0200
@@ -331,7 +331,7 @@
         @param limit flag indicating to limit the scene to the
             initial size (boolean)
         """
-        super(UMLGraphicsView, self).autoAdjustSceneSize(limit=limit)
+        super().autoAdjustSceneSize(limit=limit)
         self.__checkSizeActions()
         
     def saveImage(self):
@@ -362,7 +362,7 @@
                 if not res:
                     return
             
-            success = super(UMLGraphicsView, self).saveImage(
+            success = super().saveImage(
                 fname, QFileInfo(fname).suffix().upper())
             if not success:
                 E5MessageBox.critical(
@@ -434,7 +434,7 @@
         
         printDialog = QPrintDialog(printer, self)
         if printDialog.exec():
-            super(UMLGraphicsView, self).printDiagram(
+            super().printDiagram(
                 printer, self.diagramName)
         
     def printPreviewDiagram(self):
@@ -474,7 +474,7 @@
         
         @param printer reference to the printer object (QPrinter)
         """
-        super(UMLGraphicsView, self).printDiagram(printer, self.diagramName)
+        super().printDiagram(printer, self.diagramName)
         
     def setDiagramName(self, name):
         """
@@ -611,7 +611,7 @@
                 evt.accept()
                 return
         
-        super(UMLGraphicsView, self).keyPressEvent(evt)
+        super().keyPressEvent(evt)
     
     def wheelEvent(self, evt):
         """
@@ -628,7 +628,7 @@
             evt.accept()
             return
         
-        super(UMLGraphicsView, self).wheelEvent(evt)
+        super().wheelEvent(evt)
     
     def event(self, evt):
         """
@@ -641,7 +641,7 @@
             self.gestureEvent(evt)
             return True
         
-        return super(UMLGraphicsView, self).event(evt)
+        return super().event(evt)
     
     def gestureEvent(self, evt):
         """

eric ide

mercurial