-
-
Notifications
You must be signed in to change notification settings - Fork 31.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Windows] High DPI causes tkinter turtledemo windows blurry #119174
Labels
type-feature
A feature request or enhancement
Comments
terryjreedy
pushed a commit
that referenced
this issue
May 21, 2024
…indows blurry (#119175) ------ Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
May 21, 2024
…les) windows blurry (pythonGH-119175) ------ Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> (cherry picked from commit 538ed5e) Co-authored-by: Wulian233 <71213467+Wulian233@users.noreply.github.com>
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
May 21, 2024
…les) windows blurry (pythonGH-119175) ------ Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> (cherry picked from commit 538ed5e) Co-authored-by: Wulian233 <71213467+Wulian233@users.noreply.github.com>
estyxx
pushed a commit
to estyxx/cpython
that referenced
this issue
Jul 17, 2024
…les) windows blurry (python#119175) ------ Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Feature or enhancement
Comparison
Here is a side by side comparison of both tkinter turtle-graphics examples windows, with and without the GUI fix. Maybe the screenshot was reduced by me so that the difference was not obvious, but actually before the text was also blurry. Also the sizes are different. Increasing pixel density while not changing the number of pixels will result in smaller window sizes.

Solution
The solution is simple
Copy
https://github.com/python/cpython/blob/main/Lib/idlelib/pyshell.py#L16-L22
tohttps://github.com/python/cpython/blob/main/Lib/turtledemo/__main__.py
See https://learn.microsoft.com/en-us/windows/win32/api/shellscalingapi/ne-shellscalingapi-process_dpi_awareness
Has this already been discussed elsewhere?
This is a minor feature, which does not need previous discussion elsewhere
Linked PRs
The text was updated successfully, but these errors were encountered: