Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import tkinter as tk
- def place_mouse(widget, x, y):
- widget.event_generate('<Motion>', warp=True, x=x, y=y)
- # test
- def main(n=0):
- place_mouse(root, n, n)
- if n < 200:
- root.after(12, main, n+1)
- root = tk.Tk()
- main()
- root.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement