def paintEvent(self, e):
qp = QtGui.QPainter()
qp.begin(self)
for point in self.points:
rgb=(random.randint(1, 255),random.randint(1, 255),random.randint(1, 255))
color = QtGui.QColor(rgb[0],rgb[1],rgb[2])
qp.setPen(color)
qp.drawEllipse(point[0]-3, point[1]-3, 6, 6)
qp.end()