Preferences/ConfigurationDialog.py

branch
Py2 comp.
changeset 2525
8b507a9a2d40
parent 2474
8727522a69d5
child 2847
1843ef6e2656
--- a/Preferences/ConfigurationDialog.py	Sun Mar 24 13:52:12 2013 +0100
+++ b/Preferences/ConfigurationDialog.py	Mon Mar 25 03:11:06 2013 +0100
@@ -7,6 +7,8 @@
 Module implementing a dialog for the configuration of eric5.
 """
 
+from __future__ import unicode_literals    # __IGNORE_WARNING__
+
 import os
 import types
 
@@ -42,7 +44,7 @@
         @param pageName name of the configuration page (string)
         @param iconFile file name of the icon to be shown (string)
         """
-        super().__init__(parent, [text])
+        super(ConfigurationPageItem, self).__init__(parent, [text])
         self.setIcon(0, UI.PixmapCache.getIcon(iconFile))
         
         self.__pageName = pageName
@@ -91,7 +93,7 @@
             ConfigurationWidget.TrayStarterMode
         )
         
-        super().__init__(parent)
+        super(ConfigurationWidget, self).__init__(parent)
         self.fromEric = fromEric
         self.displayMode = displayMode
         
@@ -745,7 +747,7 @@
         @keyparam displayMode mode of the configuration dialog
             (DefaultMode, HelpBrowserMode, TrayStarterMode)
         """
-        super().__init__(parent)
+        super(ConfigurationDialog, self).__init__(parent)
         if name:
             self.setObjectName(name)
         self.setModal(modal)
@@ -802,7 +804,7 @@
         self.cw.setPreferences()
     
     def accept(self):
-        super().accept()
+        super(ConfigurationDialog, self).accept()
 
 
 class ConfigurationWindow(E5MainWindow):
@@ -815,7 +817,7 @@
         
         @param parent reference to the parent widget (QWidget)
         """
-        super().__init__(parent)
+        super(ConfigurationWindow, self).__init__(parent)
         
         self.cw = ConfigurationWidget(self, fromEric=False)
         size = self.cw.size()

eric ide

mercurial