E5Gui/E5ClickableLabel.py

branch
Py2 comp.
changeset 2525
8b507a9a2d40
parent 2302
f29e9405c851
child 3057
10516539f238
--- a/E5Gui/E5ClickableLabel.py	Sun Mar 24 13:52:12 2013 +0100
+++ b/E5Gui/E5ClickableLabel.py	Mon Mar 25 03:11:06 2013 +0100
@@ -7,6 +7,8 @@
 Module implementing a clickable label.
 """
 
+from __future__ import unicode_literals    # __IGNORE_WARNING__
+
 from PyQt4.QtCore import pyqtSignal, Qt, QPoint
 from PyQt4.QtGui import QLabel
 
@@ -29,7 +31,7 @@
         
         @param parent reference to the parent widget (QWidget)
         """
-        super().__init__(parent)
+        super(E5ClickableLabel, self).__init__(parent)
     
     def mouseReleaseEvent(self, evt):
         """
@@ -45,4 +47,4 @@
         elif evt.button() == Qt.MiddleButton and self.rect().contains(evt.pos()):
             self.middleClicked.emit(evt.globalPos())
         else:
-            super().mouseReleaseEvent(evt)
+            super(E5ClickableLabel, self).mouseReleaseEvent(evt)

eric ide

mercurial