ViewManager/ViewManager.py

branch
Py2 comp.
changeset 2525
8b507a9a2d40
parent 2484
105d78ba97d4
child 2677
3d4277929fb3
diff -r 139f182b72f6 -r 8b507a9a2d40 ViewManager/ViewManager.py
--- a/ViewManager/ViewManager.py	Sun Mar 24 13:52:12 2013 +0100
+++ b/ViewManager/ViewManager.py	Mon Mar 25 03:11:06 2013 +0100
@@ -7,6 +7,8 @@
 Module implementing the viewmanager base class.
 """
 
+from __future__ import unicode_literals    # __IGNORE_WARNING__
+
 import os
 
 from PyQt4.QtCore import QSignalMapper, QTimer, QFileInfo, pyqtSignal, QRegExp, \
@@ -70,7 +72,7 @@
         if evt.key() == Qt.Key_Escape:
             self.escPressed.emit()
         else:
-            super().keyPressEvent(evt)  # pass it on
+            super(QuickSearchLineEdit, self).keyPressEvent(evt)  # pass it on
     
     def focusInEvent(self, evt):
         """
@@ -79,7 +81,7 @@
         @param evt focus event (QFocusEvent)
         """
         self.gotFocus.emit()
-        super().focusInEvent(evt)   # pass it on
+        super(QuickSearchLineEdit, self).focusInEvent(evt)   # pass it on
 
 
 class ViewManager(QObject):
@@ -132,7 +134,7 @@
         """
         Constructor
         """
-        super().__init__()
+        super(ViewManager, self).__init__()
         
         # initialize the instance variables
         self.editors = []

eric ide

mercurial