Plugins/ViewManagerPlugins/Listspace/Listspace.py

branch
Py2 comp.
changeset 2525
8b507a9a2d40
parent 2424
8fe1fdc174ab
child 2791
a9577f248f04
--- a/Plugins/ViewManagerPlugins/Listspace/Listspace.py	Sun Mar 24 13:52:12 2013 +0100
+++ b/Plugins/ViewManagerPlugins/Listspace/Listspace.py	Mon Mar 25 03:11:06 2013 +0100
@@ -7,6 +7,8 @@
 Module implementing the listspace viewmanager class.
 """
 
+from __future__ import unicode_literals    # __IGNORE_WARNING__
+
 import os
 
 from PyQt4.QtCore import pyqtSignal, QFileInfo, QEvent, Qt
@@ -31,7 +33,7 @@
         
         @param parent parent widget (QWidget)
         """
-        super().__init__(parent)
+        super(StackedWidget, self).__init__(parent)
         self.setAttribute(Qt.WA_DeleteOnClose, True)
         
         self.editors = []
@@ -44,7 +46,7 @@
             (QScintilla.EditorAssembly.EditorAssembly)
         """
         editor = assembly.getEditor()
-        super().addWidget(assembly)
+        super(StackedWidget, self).addWidget(assembly)
         if not editor in self.editors:
             self.editors.append(editor)
         
@@ -57,7 +59,7 @@
         if isinstance(widget, QScintilla.Editor.Editor):
             self.editors.remove(widget)
             widget = widget.parent()
-        super().removeWidget(widget)
+        super(StackedWidget, self).removeWidget(widget)
         
     def currentWidget(self):
         """
@@ -65,7 +67,7 @@
         
         @return reference to the current editor (Editor)
         """
-        widget = super().currentWidget()
+        widget = super(StackedWidget, self).currentWidget()
         if widget is not None:
             widget = widget.getEditor()
         return widget
@@ -80,7 +82,7 @@
             self.editors.remove(widget)
             self.editors.insert(0, widget)
             widget = widget.parent()
-        super().setCurrentWidget(widget)
+        super(StackedWidget, self).setCurrentWidget(widget)
         
     def setCurrentIndex(self, index):
         """

eric ide

mercurial