TomSchimansky / CustomTkinter

A modern and customizable python UI-library based on Tkinter
MIT License
10.88k stars 1.02k forks source link

CTkCanvas.coords(id) not returning the coords. #1419

Open VasigaranAndAngel opened 1 year ago

VasigaranAndAngel commented 1 year ago

I have been using your CustomTkinter library and have noticed that in the coords() method CTkCanvas,

https://github.com/TomSchimansky/CustomTkinter/blob/09e584634c867f2b6074fcbfe41cba80d2b78c66/customtkinter/windows/widgets/core_rendering/ctk_canvas.py#L83-L99

the super().coords() method is being called but the returned values are not being returned. Instead, the method seems to be used for its side effects.

image

it returns a list of coordinates for the item given as an argument.

I wanted to bring this to your attention as it may be a design choice that you made intentionally, but I also wanted to suggest that capturing and utilizing the returned values from super().coords() could be beneficial in certain cases. Thank you for your time and for creating CustomTkinter! ❤️

VasigaranAndAngel commented 1 year ago

@TomSchimansky, Can I fix this?

rcrist commented 2 months ago

As a work around, I am using a standard Tkinter canvas which does return the coordinates.