CustomTkinter icon indicating copy to clipboard operation
CustomTkinter copied to clipboard

[BUG] CustomTkInter renders incorrectly on Linux when desktop scaling is used.

Open Arcitec opened this issue 1 year ago • 8 comments

System:

  • GNOME 46 on Fedora Workstation 40

I have seen this bug in a lot of tickets here. Many people might not realize what's wrong.

The issue is that CustomTkInter renders all controls and their borders in a squashed way when desktop UI scaling is used:

Here, my desktop is set to 200% scale:

image

This is how CustomTkInter renders (buggy) at 200%:

image

This is how it renders (correctly) when I set the desktop to 100%:

image

To support desktop scaling, it looks like the issue is that CustomTkInter needs to detect the desktop scale and enlarge its own widgets to fit everything correctly. Right now, it seems like the widgets at 200% are rendering with larger widgets but within the exact same PHYSICAL space as 100% widgets would use.

Arcitec avatar Sep 29 '24 16:09 Arcitec