Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Coordinate conversion error #124

Open
XCram opened this issue Feb 3, 2024 · 0 comments
Open

Coordinate conversion error #124

XCram opened this issue Feb 3, 2024 · 0 comments

Comments

@XCram
Copy link

XCram commented Feb 3, 2024

First of all, I am very grateful to the author of this code (Tom Schimansky).

And I want to share my experience of using it.
I found a bug in the convert_canvas_coords_to_decimal_coords function.

Screen size (self.height ; self.width) is different from canvas size (self.canvas.winfo_height() ; self.canvas.winfo_width()) and we have to use screen size in it.
Otherwise, there may be displacements along the axes that affect the display of coordinates (right mouse button).

It was the incorrect display of coordinates that I encountered. And, unfortunately, it took a lot of time to find the root cause.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant