IconEditor/IconEditorGrid.py

branch
Py2 comp.
changeset 2525
8b507a9a2d40
parent 2404
cba0ff902c2b
child 3057
10516539f238
--- a/IconEditor/IconEditorGrid.py	Sun Mar 24 13:52:12 2013 +0100
+++ b/IconEditor/IconEditorGrid.py	Mon Mar 25 03:11:06 2013 +0100
@@ -7,6 +7,8 @@
 Module implementing the icon editor grid.
 """
 
+from __future__ import unicode_literals    # __IGNORE_WARNING__
+
 from PyQt4.QtCore import pyqtSignal, Qt, QPoint, QRect, QSize
 from PyQt4.QtGui import QUndoCommand, QImage, QWidget, QColor, QPixmap, QSizePolicy, \
     QUndoStack, qRgba, QPainter, QApplication, QCursor, QBrush, QDialog, qGray, qAlpha
@@ -29,7 +31,7 @@
         @param oldImage copy of the icon before the changes were applied (QImage)
         @param parent reference to the parent command (QUndoCommand)
         """
-        super().__init__(text, parent)
+        super(IconEditCommand, self).__init__(text, parent)
         
         self.__grid = grid
         self.__imageBefore = QImage(oldImage)
@@ -114,7 +116,7 @@
         
         @param parent reference to the parent widget (QWidget)
         """
-        super().__init__(parent)
+        super(IconEditorGrid, self).__init__(parent)
         
         self.setAttribute(Qt.WA_StaticContents)
         self.setSizePolicy(QSizePolicy.Minimum, QSizePolicy.Minimum)

eric ide

mercurial