]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-32129: Avoid blurry IDLE application icon on macOS with Tk 8.6. (GH-12031)
authorNed Deily <nad@python.org>
Fri, 1 Mar 2019 22:53:50 +0000 (17:53 -0500)
committerTerry Jan Reedy <tjreedy@udel.edu>
Fri, 1 Mar 2019 22:53:50 +0000 (17:53 -0500)
 Patch by Kevin Walzer.

Lib/idlelib/pyshell.py
Misc/NEWS.d/next/IDLE/2019-02-25-11-40-14.bpo-32129.4qVCzD.rst [new file with mode: 0644]

index ea49aff08b43703b58a57cb5f64ada95aa186faa..11bafdb49aaa57ff205a7b782077dcb548970d50 100755 (executable)
@@ -1495,7 +1495,7 @@ def main():
     if system() == 'Windows':
         iconfile = os.path.join(icondir, 'idle.ico')
         root.wm_iconbitmap(default=iconfile)
-    else:
+    elif not macosx.isAquaTk():
         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-11-40-14.bpo-32129.4qVCzD.rst b/Misc/NEWS.d/next/IDLE/2019-02-25-11-40-14.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.