CustomTkinter
CustomTkinter copied to clipboard
[BUG] CustomTkInter renders incorrectly on Linux when desktop scaling is used.
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:
This is how CustomTkInter renders (buggy) at 200%:
This is how it renders (correctly) when I set the desktop to 100%:
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.