[issue42992] Tkinter bbox coordinates incorrectly drawn

2021-01-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Even if there is something wrong with the returned values, Tkinter is just mostly a thin wrap around Tk. It does not change the returned value, it just converts it to appropriate Python type (a tuple of 4 integers (4, 4, 101, 101) instead of a string "4 4

[issue42992] Tkinter bbox coordinates incorrectly drawn

2021-01-23 Thread Terry J. Reedy
Change by Terry J. Reedy : -- stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue42992] Tkinter bbox coordinates incorrectly drawn

2021-01-22 Thread Ron Hoffmann
Ron Hoffmann added the comment: Thank you for your response. I have been fighting this issue in a large piece of code for quite some time. So I wrote a small test script as you asked for and the problem will not reproduce. All behaviour of code is as expected. I must therefore assume there

[issue42992] Tkinter bbox coordinates incorrectly drawn

2021-01-22 Thread E. Paine
E. Paine added the comment: I cannot reproduce. Taking a rectangle as an example, canvas.bbox(canvas.create_rectangle(5, 5, 100, 100, width=1)) returns `(4, 4, 101, 101)` (rather than `(5, 5, 100, 100)`) because of rounding while calculating the outline. As a result, running

[issue42992] Tkinter bbox coordinates incorrectly drawn

2021-01-21 Thread Ron Hoffmann
New submission from Ron Hoffmann : position coordinates retrieved from any object on a canvas with pos = canvas.bbox(object) are returned correctly but when drawn on the canvas (x0,y0) are correct, but (x1, y1) are not drawn in the proper positions. x1 has been divided by 2 somewhere and y1