UI/NotificationWidget.py

branch
Py2 comp.
changeset 2525
8b507a9a2d40
parent 2302
f29e9405c851
child 3057
10516539f238
--- a/UI/NotificationWidget.py	Sun Mar 24 13:52:12 2013 +0100
+++ b/UI/NotificationWidget.py	Mon Mar 25 03:11:06 2013 +0100
@@ -7,6 +7,8 @@
 Module implementing a Notification widget.
 """
 
+from __future__ import unicode_literals    # __IGNORE_WARNING__
+
 from PyQt4.QtCore import Qt, QTimer, QPoint
 from PyQt4.QtGui import QWidget, QPixmap
 
@@ -27,7 +29,7 @@
         @param setPosition flag indicating to set the display
             position interactively (boolean)
         """
-        super().__init__(parent)
+        super(NotificationWidget, self).__init__(parent)
         self.setupUi(self)
         
         self.__timeout = 5000
@@ -98,7 +100,7 @@
             self.__timer.setInterval(self.__timeout)
             self.__timer.start()
         
-        super().show()
+        super(NotificationWidget, self).show()
     
     def mousePressEvent(self, evt):
         """

eric ide

mercurial