FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[Windows] High DPI causes tkinter turtledemo windows blurry · Issue #119174 · python/cpython · GitHub

/ cpython Public

[Windows] High DPI causes tkinter turtledemo windows blurry #119174

Description

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 to https://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

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-featureA feature request or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


    Back | FazBrowse Home | New Git URL