self.clear()# we are drawing nowself.isDrawing =True# convert the clicked position to map coordinatespoint = self.toMapCoordinates( e.pos() )# add a new point to the rubber bandself.rubberBand.addPoint( point,True)# True = display updates on the canvas# and finally show the rubber band...
defaccept(self):self.buttonOk.setEnabled(False)ifnotself.rdoCoordinates.isChecked()andself.inShape.currentText() =="": QMessageBox.information(self, self.tr("Generate Regular Points"), self.tr("Please specify input layer"))elifself.rdoCoordinates.isChecked()and(self.xMin.text() ==""orsel...