G
G
Grandma Luda2021-09-28 19:53:15
Python
Grandma Luda, 2021-09-28 19:53:15

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 question

Ask a Question

731 491 924 answers to any question