Python Forum

Full Version: Screen Blurriness Fix
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm developing a software with a GUI using Tkinter. I issue I'm running into is that the Tkinter window appears to be rather blurry and low quality. The text especially, looks pretty bad. Not the first impression I want to give to my users.

I start searching around online and came across this solution to fix resolution. They have used methods such as
ctypes.windll.shcore.SetProcessDpiAwareness(1)
and
root.tk.call('tk', 'scaling', 2.0)
. It works and all, but I'm having trouble understand the logic.

My tkinter screen has gotten smaller, and the position of things has moved around a bit and I'm confused about what size (pixel sizes) values to be using now. Can anyone explain the exact logic used by these commands?
change your screen resolution?
This is likely not the fault of tkinter.
I have never encountered it.
Are you sure? I've run this code on multiple different computers with different Python installations and IDE's. Same result everywhere. Even in the article it demonstrates a before and after and the difference is noticeable.
I used the term likely, not impossible.
I have never messed with either of these commands, so I will take your word for it.