def move_up(self):
p_v = self.y
self.y -= 90
if self.y >= 0:
pyautogui.moveTo(self.x, self.y, duration=0.25)
print(self.y) # Debugging purpose
else:
self.y = p_v # setting to the previous value of the y axis
# Below Function will be responsible for the Moving of the cursor down (negative y - axis)
评论列表
文章目录