79400327

Date: 2025-01-30 15:14:41
Score: 0.5
Natty:
Report link

Tkinter processes positions weird when you're not on 100% scaling.

Here's how to make tkinter "aware" of the current DPI:

from ctypes import windll
windll.shcore.SetProcessDpiAwareness(2)

Make sure this code is ran before creating the window. Bonus: it also makes the window not blurry anymore!

Source

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: stysan