I want to access the coordinates outside the mousePress function. What I want is:
self.curve.scene().sigMouseClicked.connect(self.mousePress)