def METHOD_NAME(self, p, opt, widget):
    #p.setPen(QtGui.QPen(QtGui.QColor(100, 100, 100)))
    #p.drawRect(self.boundingRect())
    #UIGraphicsItem.paint(self, p, opt, widget)
    ### draw picture
    if self.picture is None:
        #print "no pic, draw.."
        self.generatePicture()
    p.drawPicture(QtCore.QPointF(0, 0), self.picture)
    #p.setPen(QtGui.QPen(QtGui.QColor(255,0,0)))
    #p.drawLine(0, -100, 0, 100)
    #p.drawLine(-100, 0, 100, 0)
    #print "drawing Grid."