[Tkinter] Screen Blurriness Fix - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: GUI (https://python-forum.io/forum-10.html) +--- Thread: [Tkinter] Screen Blurriness Fix (/thread-27076.html) |
Screen Blurriness Fix - Knight18 - May-25-2020 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? RE: Screen Blurriness Fix - Larz60+ - May-25-2020 change your screen resolution? This is likely not the fault of tkinter. I have never encountered it. RE: Screen Blurriness Fix - Knight18 - May-25-2020 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. RE: Screen Blurriness Fix - Larz60+ - May-25-2020 I used the term likely, not impossible. I have never messed with either of these commands, so I will take your word for it. |