HiDPI support
On hidpi screens, the text is too blurry and low res. Doesnt matter to many but is a nice QoL feature to have especially if it is easy to be implemented!
You can just add this after the imports should fix it.
try:
ctypes.windll.shcore.SetProcessDpiAwareness(2)
except AttributeError:
ctypes.windll.user32.SetProcessDPIAware(True)
@7gxycn08 thanks! I guess import ctypes is also needed.
I did not try this and don't know that module at all. I'm sadly unable to replicate. If anyone could confirm this
@BigBoiCJ Yes import ctypes obviously should come first. Got a screenshot of both with the ctypes fix and without so you can see the issue clearly.
Normally tkinter is not dpi aware that's why there is a blur effect on text In the GUI. With ctypes you can set the application to be dpi aware which causes the GUI to be crisp.
Here are some screenshots:
Without ctypes fix:
With ctypes fix:
To replicate the issue you can set windows scale to something greater than 100% something like 225% or 300%.