Remove old check_move

This commit is contained in:
Ian Jauslin 2021-09-27 21:21:03 -04:00
parent 6cb9a8cc40
commit 78f1c40757

21
main.py
View File

@ -70,27 +70,6 @@ class Cross_painter(Widget):
# redraw
self.canvas.clear()
self.draw()
## check move
#if self.check_move((touch.x,touch.y),self.selected):
# # move cross
# self.selected.pos=(touch.x,touch.y)
# # redraw
# self.canvas.clear()
# self.draw()
## try to move just x
#elif self.check_move((touch.x,self.selected.pos[1]),self.selected):
# # move cross
# self.selected.pos=(touch.x,self.selected.pos[1])
# # redraw
# self.canvas.clear()
# self.draw()
## try to move just y
#elif self.check_move((self.selected.pos[0],touch.y),self.selected):
# # move cross
# self.selected.pos=(self.selected.pos[0],touch.y)
# # redraw
# self.canvas.clear()
# self.draw()
# find the cross at position pos