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

gh-119174: Fix high DPI causes turtledemo(turtle-graphics examples) windows blurry by Wulian233 · Pull Request #119175 · python/cpython · GitHub

/ cpython Public

gh-119174: Fix high DPI causes turtledemo(turtle-graphics examples) windows blurry - #119175

Merged
terryjreedy merged 7 commits into
python:mainfrom
Wulian233:main
May 21, 2024
Merged

gh-119174: Fix high DPI causes turtledemo(turtle-graphics examples) windows blurry#119175
terryjreedy merged 7 commits into
python:mainfrom
Wulian233:main

Conversation

Wulian233 commented May 19, 2024
edited
Loading

Copy link
Copy Markdown
Contributor

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

if win32:
    try:
        import ctypes
        PROCESS_SYSTEM_DPI_AWARE = 1  # Int required.
        ctypes.OleDLL('shcore').SetProcessDpiAwareness(PROCESS_SYSTEM_DPI_AWARE)
    except (ImportError, AttributeError, OSError):
        pass

Wulian233 requested a review from terryjreedy as a code owner May 19, 2024 10:53

ghost commented May 19, 2024
edited by ghost
Loading

Copy link
Copy Markdown

All commit authors signed the Contributor License Agreement.

Wulian233 changed the title Fix high DPI causes turtledemo(turtle-graphics examples) windows blurry gh-119174: Fix high DPI causes turtledemo(turtle-graphics examples) windows blurry May 19, 2024
Co-authored-by: Nice Zombies <nineteendo19d0@gmail.com>

Copy link
Copy Markdown
Member

Lint failed because news item needed newline. I should have replaced default "Update ..." message as change is not visible in diffs.

I will make unrelated config.py correction in a separate PR.

I will change this to move fixup code to a new function in idlelib.util and then conditionally import and call function.

Copy link
Copy Markdown
Member

Wait for now.

python deleted a comment from bedevere-app Bot May 20, 2024
terryjreedy added needs backport to 3.12 only security fixes needs backport to 3.13 bugs and security fixes labels May 20, 2024

Copy link
Copy Markdown
Member

Ignore change request; I made all changes I think are needed. After separate config patch, I had to fix merge conflict and decided to make additional change here. Please pull changes to your system and test that revised code works.

Copy link
Copy Markdown
Contributor Author

Thanks! Look Good To Me! 😀

terryjreedy merged commit 538ed5e into python:main May 21, 2024

Copy link
Copy Markdown

Thanks @Wulian233 for the PR, and @terryjreedy for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12, 3.13.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request 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 pull request 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>

bedevere-app Bot commented May 21, 2024

Copy link
Copy Markdown

GH-119289 is a backport of this pull request to the 3.13 branch.

bedevere-app Bot removed the needs backport to 3.13 bugs and security fixes label May 21, 2024

bedevere-app Bot commented May 21, 2024

Copy link
Copy Markdown

GH-119290 is a backport of this pull request to the 3.12 branch.

bedevere-app Bot removed the needs backport to 3.12 only security fixes label May 21, 2024
terryjreedy pushed a commit that referenced this pull request May 21, 2024
…ples) windows blurry (GH-119175) (#119289)

gh-119174: Fix high DPI causes turtledemo(turtle-graphics examples) windows blurry (GH-119175)

------

(cherry picked from commit 538ed5e)

Co-authored-by: Wulian233 <71213467+Wulian233@users.noreply.github.com>
terryjreedy pushed a commit that referenced this pull request May 21, 2024
…ples) windows blurry (GH-119175) (#119290)

gh-119174: Fix high DPI causes turtledemo(turtle-graphics examples) windows blurry (GH-119175)

------

(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 pull request Jul 17, 2024
…les) windows blurry (python#119175)

------
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL