--- a/eric6/Plugins/ViewManagerPlugins/Listspace/Listspace.py Sat Apr 10 18:31:17 2021 +0200 +++ b/eric6/Plugins/ViewManagerPlugins/Listspace/Listspace.py Sat Apr 10 18:38:27 2021 +0200 @@ -35,7 +35,7 @@ @param parent parent widget @type QWidget """ - super(StackedWidget, self).__init__(parent) + super().__init__(parent) self.editors = [] @@ -47,7 +47,7 @@ @type QScintilla.EditorAssembly.EditorAssembly """ editor = assembly.getEditor() - super(StackedWidget, self).addWidget(assembly) + super().addWidget(assembly) if editor not in self.editors: self.editors.append(editor) @@ -61,7 +61,7 @@ if isinstance(widget, QScintilla.Editor.Editor): self.editors.remove(widget) widget = widget.parent() - super(StackedWidget, self).removeWidget(widget) + super().removeWidget(widget) def currentWidget(self): """ @@ -70,7 +70,7 @@ @return reference to the current editor @rtype Editor """ - widget = super(StackedWidget, self).currentWidget() + widget = super().currentWidget() if widget is not None: widget = widget.getEditor() return widget @@ -87,7 +87,7 @@ self.editors.remove(widget) self.editors.insert(0, widget) widget = widget.parent() - super(StackedWidget, self).setCurrentWidget(widget) + super().setCurrentWidget(widget) def setCurrentIndex(self, index): """