def drawPoints(self, qp):
      
        qp.setPen(QtCore.Qt.red)
        size = self.size()
        
        for i in range(1000):
            x = random.randint(1, size.width()-1)
            y = random.randint(1, size.height()-1)
            qp.drawPoint(x, y)
dataset/ETHPy150Open shuge/Qt-Python-Binding-Examples/image/drawing/drawing_points.py/Example.drawPoints/original