eric6/WebBrowser/SafeBrowsing/SafeBrowsingLabel.py

changeset 8218
7c09585bd960
parent 8143
2c730d5fd177
--- a/eric6/WebBrowser/SafeBrowsing/SafeBrowsingLabel.py	Sat Apr 10 18:31:17 2021 +0200
+++ b/eric6/WebBrowser/SafeBrowsing/SafeBrowsingLabel.py	Sat Apr 10 18:38:27 2021 +0200
@@ -27,7 +27,7 @@
         
         @param parent reference to the parent widget (QWidget)
         """
-        super(SafeBrowsingLabel, self).__init__(parent)
+        super().__init__(parent)
         
         self.setFocusPolicy(Qt.FocusPolicy.NoFocus)
         self.setCursor(Qt.CursorShape.PointingHandCursor)
@@ -49,7 +49,7 @@
         if evt.button() == Qt.MouseButton.LeftButton:
             self.clicked.emit(evt.globalPos())
         else:
-            super(SafeBrowsingLabel, self).mouseReleaseEvent(evt)
+            super().mouseReleaseEvent(evt)
     
     def mouseDoubleClickEvent(self, evt):
         """
@@ -60,7 +60,7 @@
         if evt.button() == Qt.MouseButton.LeftButton:
             self.clicked.emit(evt.globalPos())
         else:
-            super(SafeBrowsingLabel, self).mouseDoubleClickEvent(evt)
+            super().mouseDoubleClickEvent(evt)
     
     @pyqtSlot()
     def __updateLabel(self):

eric ide

mercurial