--- 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):