diff -r 385f60c94548 -r 7c09585bd960 eric6/Graphics/UMLGraphicsView.py --- 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): """