359
358
def paintEvent(self, event):
361
361
painter.setBrush(Qt.CrossPattern)
365
364
rayon=int(self.mainWin.getRayonAstre()/self.echelle)
366
365
painter.drawLine(self.milieuX, 0, self.milieuX, self.milieuY*2)
367
366
painter.drawLine(0,self.milieuY , 2*self.milieuX, self.milieuY)
369
368
sourcerect=QRect(0,0,512,512)
370
targetrect=QRect(self.milieuX-rayon,self.milieuY-rayon,2*rayon,2*rayon) #TODO : il faudrait redessiner le rectangle en fonction de l'échelle
371
targetrect=QRect(self.milieuX-rayon,self.milieuY-rayon,2*rayon,2*rayon)
371
374
painter.drawEllipse(targetrect)
372
375
painter.drawImage(targetrect,img,sourcerect)