Answer the question
In order to leave comments, you need to log in
When I move the cursor over the button, then the coordinates relative to the button, not the window, are written to the event variable, how can I fix it?
When I hover over the button, then the coordinates are written to the event variable relative to the button, not the window, here is the code that is responsible for the output
root.bind("<Motion>", move)
def move(event):
print(event)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question