E5Gui/E5LineEditButton.py

branch
Py2 comp.
changeset 2525
8b507a9a2d40
parent 2302
f29e9405c851
child 3145
a9de05d4a22f
--- a/E5Gui/E5LineEditButton.py	Sun Mar 24 13:52:12 2013 +0100
+++ b/E5Gui/E5LineEditButton.py	Mon Mar 25 03:11:06 2013 +0100
@@ -7,6 +7,8 @@
 Module implementing a button class to be used with E5LineEdit.
 """
 
+from __future__ import unicode_literals    # __IGNORE_WARNING__
+
 from PyQt4.QtCore import Qt, QPoint, QPointF
 from PyQt4.QtGui import QAbstractButton, QPainter, QPainterPath
 
@@ -21,7 +23,7 @@
         
         @param parent reference to the parent widget (QWidget)
         """
-        super().__init__(parent)
+        super(E5LineEditButton, self).__init__(parent)
         
         self.__menu = None
         self.__image = None
@@ -59,7 +61,7 @@
             self.__image = None
         else:
             self.__image = icon.pixmap(16, 16).toImage()
-        super().setIcon(icon)
+        super(E5LineEditButton, self).setIcon(icon)
     
     def __clicked(self):
         """

eric ide

mercurial