]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-32129: Avoid blurry IDLE application icon on macOS with Tk 8.6. Original patch...
authorNed Deily <nad@python.org>
Fri, 1 Mar 2019 23:12:45 +0000 (18:12 -0500)
committerGitHub <noreply@github.com>
Fri, 1 Mar 2019 23:12:45 +0000 (18:12 -0500)
Lib/idlelib/PyShell.py
Misc/NEWS.d/next/IDLE/2019-02-25-12-59-24.bpo-32129.4qVCzD.rst [new file with mode: 0644]

index db854b65e22aa9a27de66653288fa2d1b089489c..2ea7e6b939a6373d03f6c9808ea6c4c41f76753f 100755 (executable)
@@ -1560,7 +1560,7 @@ def main():
     if system() == 'Windows':
         iconfile = os.path.join(icondir, 'idle.ico')
         root.wm_iconbitmap(default=iconfile)
-    elif TkVersion >= 8.5:
+    elif TkVersion >= 8.5 and sys.platform != 'darwin':
         ext = '.png' if TkVersion >= 8.6 else '.gif'
         iconfiles = [os.path.join(icondir, 'idle_%d%s' % (size, ext))
                      for size in (16, 32, 48)]
diff --git a/Misc/NEWS.d/next/IDLE/2019-02-25-12-59-24.bpo-32129.4qVCzD.rst b/Misc/NEWS.d/next/IDLE/2019-02-25-12-59-24.bpo-32129.4qVCzD.rst
new file mode 100644 (file)
index 0000000..54a5c72
--- /dev/null
@@ -0,0 +1,2 @@
+Avoid blurry IDLE application icon on macOS with Tk 8.6. Patch by Kevin
+Walzer.