Graphics/UMLItem.py

branch
Py2 comp.
changeset 2525
8b507a9a2d40
parent 2302
f29e9405c851
child 3057
10516539f238
diff -r 139f182b72f6 -r 8b507a9a2d40 Graphics/UMLItem.py
--- a/Graphics/UMLItem.py	Sun Mar 24 13:52:12 2013 +0100
+++ b/Graphics/UMLItem.py	Mon Mar 25 03:11:06 2013 +0100
@@ -7,6 +7,8 @@
 Module implementing the UMLItem base class.
 """
 
+from __future__ import unicode_literals    # __IGNORE_WARNING__
+
 from PyQt4.QtCore import Qt, QSizeF
 from PyQt4.QtGui import QGraphicsItem, QGraphicsRectItem, QStyle
 
@@ -50,7 +52,7 @@
         @param rounded flag indicating a rounded corner (boolean)
         @keyparam parent reference to the parent object (QGraphicsItem)
         """
-        super().__init__(parent)
+        super(UMLItem, self).__init__(parent)
         self.model = model
         
         self.font = Preferences.getGraphics("Font")
@@ -139,7 +141,7 @@
         @param dx relative movement in x-direction (float)
         @param dy relative movement in y-direction (float)
         """
-        super().moveBy(dx, dy)
+        super(UMLItem, self).moveBy(dx, dy)
         self.adjustAssociations()
     
     def setPos(self, x, y):
@@ -149,7 +151,7 @@
         @param x absolute x-position (float)
         @param y absolute y-position (float)
         """
-        super().setPos(x, y)
+        super(UMLItem, self).setPos(x, y)
         self.adjustAssociations()
     
     def itemChange(self, change, value):

eric ide

mercurial