--- a/eric6/E5Gui/E5ToolButton.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/E5Gui/E5ToolButton.py Sat Apr 10 18:38:27 2021 +0200 @@ -43,7 +43,7 @@ @param parent reference to the parent widget @type QWidget """ - super(E5ToolButton, self).__init__(parent) + super().__init__(parent) self.setMinimumWidth(16) @@ -214,7 +214,7 @@ self.setDown(True) self.__showMenu() else: - super(E5ToolButton, self).mousePressEvent(evt) + super().mousePressEvent(evt) def mouseReleaseEvent(self, evt): """ @@ -239,7 +239,7 @@ self.controlClicked.emit() self.setDown(False) else: - super(E5ToolButton, self).mouseReleaseEvent(evt) + super().mouseReleaseEvent(evt) def mouseDoubleClickEvent(self, evt): """ @@ -248,7 +248,7 @@ @param evt reference to the mouse event @type QMouseEvent """ - super(E5ToolButton, self).mouseDoubleClickEvent(evt) + super().mouseDoubleClickEvent(evt) self.__pressTimer.stop() @@ -266,7 +266,7 @@ if self.__menu is not None: return - super(E5ToolButton, self).contextMenuEvent(evt) + super().contextMenuEvent(evt) ################################################################## ## Methods to handle the tool button badge