Python Forum
[Tkinter] Screen Blurriness Fix
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tkinter] Screen Blurriness Fix
#1
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?
Reply
#2
change your screen resolution?
This is likely not the fault of tkinter.
I have never encountered it.
Reply
#3
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.
Reply
#4
I used the term likely, not impossible.
I have never messed with either of these commands, so I will take your word for it.
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020