TomSchimansky / CustomTkinter

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

Canvas borders #2450

Closed Shishkoder closed 1 month ago

Shishkoder commented 1 month ago

Снимок экрана 2024-06-02 192018 Hello! I use a canvas on which I then place an image as a background. Then I place the remaining widgets on the canvas itself. In regular tkinter, when creating a canvas, you had to specify bd = -2 to remove this white border. But when using CTkCanvas, this frame may or may not appear. Tell me, please, what is the reason? I have attached a screenshot to show which white border we are talking about. I would be grateful for your help!

dipeshSam commented 1 month ago

Setting highlightthickness=0 will remove any border around the Canvas.

Something like the following:

CTkCanvas(..., highlightthickness=0, ...).

Regards.

Shishkoder commented 1 month ago

Thanks for the answer! It really helped me. It’s just strange that with tkinter it was enough to specify the bd parameter and the problem was solved, but with customtkinter it worked every other time. Thanks again!