Hello!
I'm drawing lines like this:
def drawLine(self,x1,y1,x2,y2):
self.path = ui.Path()
self.path.line_width = 8.0
self.path.line_join_style = ui.LINE_JOIN_ROUND
self.path.line_cap_style = ui.LINE_CAP_ROUND
self.path.move_to(x1, y1)
self.path.line_to(x2, y2)
self.set_needs_display()
Is there a way to undo the last line drawn?
Thanks in advance!