import sys from PyQt4.QtGui import QApplication , QGraphicsEllipseItem , QGraphicsItemAnimationfrom PyQt4.QtGui import QGraphicsScene , QGraphicsViewfrom PyQt4.QtCore import SIGNAL , QPointF , QTimeLine app = QApplication( sys.argv ) # create a graph…